#giftcard_product #block_amounts .ld-gift-native-amount {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

#giftcard_product .ld-gift-amounts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 8px auto 22px;
}

#giftcard_product .ld-gift-amount-btn,
#giftcard_product .ld-gift-custom-amount {
  height: 44px;
  min-height: 44px;
  border: 1px solid var(--ld-line, #e6dfd0);
  border-radius: 6px;
  background: #fff;
  color: var(--ld-ink, #1d1d1b);
  font-family: var(--ld-f-body, sans-serif);
  font-size: 14px;
}

#giftcard_product .ld-gift-amount-btn {
  min-width: 82px;
  padding: 0 18px;
  font-weight: 650;
}

#giftcard_product .ld-gift-amount-btn.is-active {
  border-color: var(--ld-ink, #1d1d1b);
  background: var(--ld-ink, #1d1d1b);
  color: var(--ld-paper, #faf6ec);
}

#giftcard_product .ld-gift-custom-amount {
  display: inline-flex;
  align-items: center;
  width: 174px;
  padding: 0 0 0 14px;
}

#giftcard_product .ld-gift-custom-amount span {
  color: var(--ld-ink-mute, #6f665a);
  font-size: 13px;
  white-space: nowrap;
}

#giftcard_product .ld-gift-custom-amount input {
  width: 70px;
  height: 34px;
  margin-left: auto;
  border: 0;
  border-left: 1px solid var(--ld-line, #e6dfd0);
  padding: 0 0 0 8px;
  background: transparent;
  color: var(--ld-ink, #1d1d1b);
  font-weight: 650;
  text-align: center;
}

#giftcard_product #block_customization .content > .form-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

#giftcard_product #block_customization .form-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  margin: 0;
  padding: 0 16px;
  border: 1px solid var(--ld-line, #e6dfd0);
  border-radius: 6px;
  background: #fff;
}

#giftcard_product #block_button .row {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-right: 0;
  margin-left: 0;
}

#giftcard_product #block_button [class*="col-"] {
  float: none;
  flex: 1 1 0;
  max-width: 360px;
  padding-right: 0;
  padding-left: 0;
}

#giftcard_product #block_button .content {
  margin: 0;
}

#giftcard_product #block_button .btn {
  width: 100%;
  min-height: 46px;
  right: auto !important;
  left: auto !important;
  border-radius: 6px;
  text-transform: none;
}

@media (max-width: 575px) {
  #giftcard_product .ld-gift-amounts,
  #giftcard_product #block_customization .content > .form-group,
  #giftcard_product #block_button .row {
    justify-content: stretch;
  }

  #giftcard_product .ld-gift-amount-btn,
  #giftcard_product .ld-gift-custom-amount,
  #giftcard_product #block_customization .form-inline,
  #giftcard_product #block_button [class*="col-"] {
    flex: 1 1 100%;
    max-width: none;
  }
}

/* Branded skin for the Addons module. Keep its markup and purchase logic intact. */
body#module-thegiftcard-page #main > #content {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

#giftcard_product {
  color: var(--ld-ink, #1d1d1b);
  font-family: var(--ld-f-body, sans-serif);
}

#giftcard_product #block_category {
  margin-bottom: 24px;
}

#giftcard_product .content_scene_cat .content_scene_cat_bg {
  display: flex;
  align-items: center;
  min-height: 170px !important;
  padding: 36px 42px !important;
  border-radius: 12px;
  background: linear-gradient(135deg, #1d1d1b 0%, #302b24 68%, #9b824b 100%) !important;
  box-shadow: var(--ld-shadow-card, 0 10px 30px rgba(29, 29, 27, .08));
}

#giftcard_product .content_scene_cat span.category-name {
  margin: 0;
  color: var(--ld-paper, #faf6ec);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 400;
  line-height: 1.05;
}

#giftcard_product #block_templates,
#giftcard_product #block_amounts,
#giftcard_product #block_customization,
#giftcard_product #block_quantity {
  margin-top: 20px;
  padding: 24px 28px;
  border: 1px solid var(--ld-line, #e6dfd0);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--ld-shadow-card, 0 10px 30px rgba(29, 29, 27, .06));
}

#giftcard_product .header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  padding: 0 0 16px;
  border-bottom: 1px solid var(--ld-line, #e6dfd0);
  background: transparent;
  color: var(--ld-ink, #1d1d1b);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 24px;
  line-height: 1.2;
  text-transform: none;
}

#giftcard_product .header [class^="icon-"],
#giftcard_product .header [class*=" icon-"] {
  flex: 0 0 24px;
  margin: 0;
  opacity: .72;
}

#giftcard_product .header .title {
  margin: 0;
}

#giftcard_product #block_templates .tab-pane.active {
  display: flex !important;
  flex-wrap: wrap;
  gap: 16px;
}

#giftcard_product #block_templates .img_attribute {
  float: none;
  flex: 0 1 calc(50% - 8px);
  width: auto;
  max-width: 270px;
  margin: 0;
  padding: 0;
}

#giftcard_product #block_templates .product-image-container {
  padding: 4px;
  border: 2px solid transparent;
  border-radius: 10px;
  background: var(--ld-paper, #faf6ec);
  cursor: pointer;
  transition: border-color .18s ease, transform .18s ease;
}

#giftcard_product #block_templates .product-image-container img,
#giftcard_product #block_templates .product-image-container:hover img,
#giftcard_product #block_templates .product-image-container.selected img {
  display: block;
  width: 100%;
  height: auto;
  border: 0;
  border-radius: 7px;
  outline: 0;
  box-shadow: none;
  filter: none;
}

#giftcard_product #block_templates .product-image-container.selected {
  border-color: var(--ld-gold-deep, #9b824b);
}

@media (hover: hover) {
  #giftcard_product #block_templates .product-image-container:hover {
    border-color: var(--ld-gold, #b89a59);
    transform: translateY(-2px);
  }
}

#giftcard_product .ld-gift-amounts,
#giftcard_product #block_customization .content > .form-group {
  justify-content: flex-start;
}

#giftcard_product .ld-gift-amount-btn,
#giftcard_product .ld-gift-custom-amount,
#giftcard_product #block_customization .form-inline {
  border-color: var(--ld-line, #e6dfd0);
  box-shadow: none;
}

#giftcard_product .ld-gift-amount-btn:hover,
#giftcard_product .ld-gift-amount-btn:focus-visible {
  border-color: var(--ld-gold-deep, #9b824b);
  outline: 0;
}

#giftcard_product .ld-gift-amount-btn.is-active {
  border-color: var(--ld-gold-deep, #9b824b);
  background: var(--ld-gold-deep, #9b824b);
  color: #fff;
}

#giftcard_product #block_customization .form-inline {
  min-height: 46px;
  padding: 0 18px;
  cursor: pointer;
}

#giftcard_product #block_customization .form-inline:hover,
#giftcard_product #block_customization .form-inline:has(input:checked) {
  border-color: var(--ld-gold-deep, #9b824b);
  background: var(--ld-paper, #faf6ec);
}

#giftcard_product #block_customization .form-inline:has(input:focus-visible) {
  outline: 2px solid var(--ld-gold-deep, #9b824b);
  outline-offset: 2px;
}

#giftcard_product #block_customization input[type="radio"] {
  accent-color: var(--ld-gold-deep, #9b824b);
}

#giftcard_product .ld-gift-quantity-content {
  display: flex;
  align-items: center;
  gap: 20px;
}

#giftcard_product .ld-gift-quantity-stepper {
  display: grid;
  flex: 0 0 auto;
  grid-template-columns: 44px 62px 44px;
  min-height: 44px;
  overflow: hidden;
  border: 1px solid var(--ld-line, #e6dfd0);
  border-radius: 6px;
  background: #fff;
}

#giftcard_product .ld-gift-quantity-stepper button,
#giftcard_product .ld-gift-quantity-stepper input {
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--ld-ink, #1d1d1b);
  font: inherit;
  text-align: center;
}

#giftcard_product .ld-gift-quantity-stepper button {
  cursor: pointer;
  font-size: 20px;
}

#giftcard_product .ld-gift-quantity-stepper button:hover:not(:disabled) {
  background: var(--ld-paper, #faf6ec);
}

#giftcard_product .ld-gift-quantity-stepper button:focus-visible,
#giftcard_product .ld-gift-quantity-stepper input:focus-visible {
  z-index: 1;
  outline: 2px solid var(--ld-gold-deep, #9b824b);
  outline-offset: -2px;
}

#giftcard_product .ld-gift-quantity-stepper button:disabled {
  cursor: not-allowed;
  opacity: .35;
}

#giftcard_product .ld-gift-quantity-stepper input {
  border-right: 1px solid var(--ld-line, #e6dfd0);
  border-left: 1px solid var(--ld-line, #e6dfd0);
  appearance: textfield;
  font-weight: 650;
}

#giftcard_product .ld-gift-quantity-stepper input::-webkit-inner-spin-button,
#giftcard_product .ld-gift-quantity-stepper input::-webkit-outer-spin-button {
  margin: 0;
  appearance: none;
}

#giftcard_product .ld-gift-quantity-content p {
  max-width: 650px;
  margin: 0;
  color: var(--ld-ink-mute, #6f665a);
  font-size: 14px;
  line-height: 1.5;
}

#giftcard_product #card_text_fields {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--ld-line, #e6dfd0);
}

#giftcard_product #card_text_fields .form-group {
  display: grid;
  grid-template-columns: minmax(150px, 210px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

#giftcard_product #card_text_fields textarea.form-control {
  min-height: 52px;
  border-color: var(--ld-line, #e6dfd0);
  border-radius: 6px;
  color: var(--ld-ink, #1d1d1b);
  box-shadow: none;
}

#giftcard_product #card_text_fields #textField2 {
  min-height: 120px;
}

#giftcard_product #block_button .row {
  flex-wrap: wrap;
  margin-top: 24px;
}

#giftcard_product #block_button .btn {
  border: 1px solid var(--ld-ink, #1d1d1b);
  background: var(--ld-ink, #1d1d1b);
  color: #fff;
  font-weight: 650;
  box-shadow: none;
}

#giftcard_product #block_button [js-action="preview"] {
  background: transparent;
  color: var(--ld-ink, #1d1d1b);
}

#giftcard_product #block_button .btn:hover,
#giftcard_product #block_button .btn:focus-visible {
  border-color: var(--ld-gold-deep, #9b824b);
  background: var(--ld-gold-deep, #9b824b);
  color: #fff;
}

@media (max-width: 767px) {
  body#module-thegiftcard-page #content-wrapper {
    padding-right: 14px;
    padding-left: 14px;
  }

  #giftcard_product .content_scene_cat .content_scene_cat_bg {
    min-height: 130px !important;
    padding: 24px !important;
  }

  #giftcard_product #block_templates,
  #giftcard_product #block_amounts,
  #giftcard_product #block_customization,
  #giftcard_product #block_quantity {
    padding: 18px;
  }

  #giftcard_product .header {
    margin-bottom: 18px;
    padding-bottom: 14px;
    font-size: 21px;
  }

  #giftcard_product .ld-gift-amounts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  #giftcard_product .ld-gift-amount-btn {
    width: 100%;
    min-width: 0;
  }

  #giftcard_product .ld-gift-custom-amount {
    grid-column: 1 / -1;
    width: 100%;
  }

  #giftcard_product .ld-gift-custom-amount input {
    flex: 1;
    min-width: 0;
  }

  #giftcard_product #card_text_fields .form-group {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  #giftcard_product .ld-gift-quantity-content {
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
  }

  #giftcard_product .ld-gift-quantity-stepper {
    grid-template-columns: 46px minmax(0, 1fr) 46px;
    width: 100%;
  }

  #giftcard_product #block_button [class*="col-"] {
    flex-basis: 100%;
  }
}
