/* Base Layout */
.rs_plugin_gutschein {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  padding: 40px 60px;
  width: 100%;
}

.rs_plugin_left,
.rs_plugin_right {
  flex: 1 1 48%;
}

/* Left Side */
.rs_plugin_title {
  font-size: 3rem;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 20px;
}

.rs_plugin_image_wrapper {
  position: relative;
  width: 100%;
  max-width: 500px;
  cursor: pointer;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease-in-out;
}

#svCanvasText {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.editable-field {
  position: absolute;
  pointer-events: all;
  cursor: text;
  padding: 5px 10px;
  border-radius: 4px;
  transition: all 0.2s;
  /* border: 2px dashed transparent; */
  background: transparent;
  text-align: left;
  font-family: Arial, sans-serif;
}

.editable-field:focus {
  outline: none;
  border: 0;
}

.field-title-line1 {
  top: 9.5%;
  left: 33%;
  font-size: 32px;
  font-weight: bold;
  color: white;
  width: 240px;
  line-height: 1.1;
  padding-left: 10px;
}

.field-title-line2 {
  position: absolute;
  top: 24%;
  left: 35%;
  background: rgb(0 0 0 / 92%);
  border-radius: 1px;
  font-size: 12px;
  padding: 2px;
  color: #fff;
}

.field-title-line3,
.field-title-line4,
.field-title-line5 {
  position: absolute;
  top: 31%;
  left: 45%;
  font-weight: 700;
  font-size: 18px;
}

.field-title-line4 {
  top: 39%;
}

.field-title-line5 {
  top: 46%;
}

.rs_plugin_image_wrapper:hover::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #0000002f;
}

.rs_plugin_image_wrapper img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s;
}

.rs_plugin_image_wrapper:hover img {
  transform: scale(1.05);
}

.rs_plugin_zoom_icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2rem;
  color: #fff;
  opacity: 0;
  transition: 0.3s;
  z-index: 2;
}

.rs_plugin_image_wrapper:hover .rs_plugin_zoom_icon {
  opacity: 1;
}

/* Right Side */
.rs_plugin_description {
  font-size: 1.2rem;
  color: #a47d4e;
  margin-bottom: 20px;
}

.rs_plugin_subtitle {
  font-size: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.rs_plugin_gutschein .rs_plugin_hr {
  border: none;
  height: 1px;
  background: #000;
  margin-bottom: 15px;
}

/* Grid */
.rs_plugin_grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.rs_plugin_item {
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
  height: 200px;
  border: 2px solid transparent;
  cursor: pointer;
  position: relative;
  border-radius: 6px;
  transition: 0.3s;
}

.rs_plugin_item:hover::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 221, 0, 0.75);
}

.rs_plugin_item.active {
  border-color: #ffdd00;
}

.rs_plugin_hover {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  text-align: center;
  font-weight: bold;
  color: #000;
  transition: opacity 0.3s;
  z-index: 2;
  font-size: 1.3rem;
}

.rs_plugin_item:hover .rs_plugin_hover {
  opacity: 1;
}

/* Price Box */
.rs_plugin_price {
  display: flex;
  align-items: center;
  gap: 5px;
}

.rs_plugin_price_wrapper label {
  font-size: 1.5rem;
  font-weight: bold;
}

.rs_plugin_price input {
  width: 80px;
  padding: 5px;
  font-size: 1rem;
  margin-top: 10px;
}

.rs_plugin_price_error {
  color: red;
  font-size: 0.85rem;
  margin-top: 5px;
  display: none;
}

.rs_plugin_price_error.active {
  display: block;
}

/* Quantity */
.rs_plugin_quantity_box {
  margin: 20px 0;
}

.rs_plugin_quantity_control {
  display: flex;
  gap: 10px;
  align-items: center;
}

.rs_plugin_quantity_label {
  font-size: 1.5rem;
  font-weight: bold;
}

.rs_plugin_options .rs_plugin_quantity_box .rs_plugin_quantity_control button {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: transparent;
  color: #000;
  border: none;
  cursor: pointer;
  padding: 0px;
  font-size: 1.5rem;
}

.rs_plugin_quantity_control button:hover {
  background: transparent;
  color: #000;
}

.rs_plugin_quantity_control button:active {
  background: transparent;
  color: #000;
}

.rs_plugin_quantity_control button:focus {
  background: transparent;
  color: #000;
}

.rs_plugin_quantity_control button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.rs_plugin_quantity_control button:disabled i {
  color: #ddd;
}

.rs_plugin_quantity_value {
  width: 50px;
  height: 50px;
  background: #000;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 1.5rem;
  font-weight: bold;
}

/* Buttons */
.rs_plugin_buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.rs_plugin_button {
  flex: 1;
  min-width: 150px;
  border: 2px solid #000 !important;
  color: #000 !important;
  padding: 10px !important;
  font-weight: bold;
  background: transparent;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s;
  border-radius: none !important;
}

.rs_plugin_button .rs_customize {
  flex: 1;
  min-width: 150px;
  border: 2px solid #000;
  color: #000;
  padding: 10px;
  font-weight: bold;
  background: transparent;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s;
}

.rs_plugin_button:hover {
  background: #ffdd00;
  border-color: #ffdd00;
  color: #000;
}

.rs_plugin_button:focus {
  background: #ffdd00;
  border-color: #ffdd00;
  color: #000;
}

#rs_plugin_editor_popup {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999999 !important;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px;
  overflow: auto;
  visibility: hidden;
  transition: visibility 0s linear 0.4s;
}

#rs_plugin_editor_popup.active {
  visibility: visible;
  transition-delay: 0s;
}

#rs_plugin_editor_popup .rs_popup_inner {
  width: 1000px;
  inset: 0;
  height: auto;
  background: #fff;
  transform: translateY(-120%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

#rs_plugin_editor_popup .rs_popup_inner.active {
  transform: translateY(0);
}

#rs_plugin_editor_popup .rs_popup_inner {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

#rs_plugin_editor_popup .rs_popup_inner .rs_popup_head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  background: #00633b;
  padding: 0px 20px;
  height: 50px;
  margin: 0;
}

.rs_popup_inner .rs_popup_head h3 {
  color: #fff;
  font-size: 20px;
  font-weight: 400;
  font-family: "DroidSans", sans-serif;
  text-transform: uppercase;
  margin: 0;
  line-height: 40px;
}

.rs_popup_inner .rs_popup_head i {
  color: #fff;
  cursor: pointer;
}

.rs_popup_inner .rs_popup_sub_section {
  padding: 20px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: end;
}

.rs_popup_inner .rs_popup_sub_section p {
  color: black;
  line-height: 1.5;
  font-family: "DroidSans", sans-serif;
  font-weight: 400;
  font-size: 16px;
  margin-bottom: 9px;
}

.rs_popup_inner .rs_popup_sub_section #rs_popup_image_editor_options {
  display: flex;
  justify-content: end;
  align-items: center;
  gap: 0px;
  border: 1px solid #00633b;
}

.rs_popup_sub_section #rs_popup_image_editor_options button {
  border: 0;
  border-left: 1px solid #00633b;
  color: #00633b;
  padding: 5px 10px;
  background: transparent;
  border-radius: 0;
  font-size: 12px;
}

.rs_popup_sub_section #rs_popup_image_editor_options button:first-child {
  border-left: 0;
}

.rs_popup_sub_section #rs_popup_image_editor_options button:hover,
.rs_popup_sub_section #rs_popup_image_editor_options button:focus {
  background: #00633b;
  border-color: #00633b;
  color: #fff;
}

.rs_popup_inner #rs_popup_editor_canvas {
  width: 100%;
  height: 500px;
  background: #ffdd00;
  overflow: auto;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rs_popup_inner #rs_popup_editor_canvas img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.rs_popup_inner .rs_popup_footer {
  width: 100%;
  padding: 20px;
  display: flex;
  justify-content: end;
  align-items: center;
}

.rs_popup_inner .rs_popup_footer .rs_plugin_button {
  flex: 0 0 auto;
}

#rs_plugin_cart_popup {
  inset: 0;
  width: 100vw;
  height: 100vh;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999999 !important;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: start;
  padding: 10px;
  overflow: auto;
  visibility: hidden;
  transition: visibility 0s linear 0.4s;
}

#rs_plugin_cart_popup.active {
  visibility: visible;
  transition-delay: 0s;
}

#rs_plugin_cart_popup .rs_plugin_cart_inner {
  width: 600px;
  inset: 0;
  height: auto;
  background: #fff;
  transform: translateY(-120%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
  padding: 10px 20px 20px 20px;
  margin-top: 50px;
}

#rs_plugin_cart_popup .rs_plugin_cart_inner.active {
  transform: translateY(0);
}

#rs_plugin_cart_popup .rs_plugin_cart_inner {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

#rs_plugin_cart_popup .rs_plugin_cart_head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 10px;
}

.rs_plugin_cart_inner .rs_plugin_cart_head h2 {
  font-size: 20px;
  color: black;
  font-family: "DroidSans", sans-serif;
  font-weight: 400;
  line-height: 35px;
  text-transform: uppercase;
}

.rs_plugin_cart_inner .rs_plugin_cart_head i {
  font-size: 14px;
  color: #00633b;
  padding-top: 10px;
}

#rs_plugin_cart_popup .rs_plugin_cart_body {
  display: flex;
  justify-content: center;
  align-items: start;
  gap: 20px;
  padding: 10px 0px 30px 0px;
}

#rs_plugin_cart_popup .rs_plugin_cart_body img {
  width: 100px;
}

#rs_plugin_cart_popup .rs_plugin_cart_body h5 {
  font-size: 20px;
  color: black;
  font-family: "DroidSans", sans-serif;
  font-weight: 400;
  line-height: 35px;
  text-transform: uppercase;
  margin: 0;
}

#rs_plugin_cart_popup .rs_plugin_cart_body span {
  font-size: 14px;
  color: black;
  font-family: "DroidSans", sans-serif;
}

#rs_plugin_cart_popup .rs_plugin_cart_footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.rs_plugin_gutschein .rs_main_icon.hide {
  display: none;
}

.rs_plugin_gutschein .rs_loading_icon {
  display: none;
}

.rs_plugin_gutschein .rs_loading_icon.active {
  display: inline-block;
  animation: rs-spin 1s linear infinite;
}

#svCanvas {
  width: 100%;
  height: 100%;
  object-fit: contain;
  top: 0;
  bottom: 0;
  /* position: absolute; */
  margin: 0 auto;
  display: block;
}

@keyframes rs-spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* Responsive */

@media (max-width: 1850px) {
  .rs_plugin_buttons {
    max-width: 430px !important;
  }
}

/* Tablet */
@media (max-width: 992px) {
  .rs_plugin_grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .rs_plugin_item {
    height: 180px;
  }

  .rs_popup_inner .rs_popup_head h3 {
    font-size: 16px;
    line-height: 14px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .rs_plugin_gutschein {
    padding: 20px 15px;
    flex-direction: column;
  }

  .rs_plugin_left,
  .rs_plugin_right {
    width: 100%;
  }

  .rs_plugin_grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .rs_plugin_item {
    height: 150px;
  }

  .rs_plugin_title {
    font-size: 2rem;
  }

  .rs_plugin_description {
    font-size: 1rem;
  }

  .rs_plugin_buttons {
    flex-direction: column;
  }

  .rs_popup_inner .rs_popup_head h3 {
    font-size: 16px;
    line-height: 14px;
  }

  .rs_plugin_cart_inner .rs_plugin_cart_head h2,
  #rs_plugin_cart_popup .rs_plugin_cart_body h5 {
    font-size: 16px;
    line-height: 18px;
  }

  #rs_plugin_cart_popup .rs_plugin_cart_footer button,
  #rs_plugin_cart_popup .rs_plugin_cart_footer a {
    font-size: 12px;
  }

  #rs_plugin_cart_popup .rs_plugin_cart_inner {
    width: 100%;
  }
}
