.weidu-gift-card {
  --gift-ink: #2c252b;
  --gift-muted: #716a6e;
  --gift-border: #d8d3d6;
  --gift-soft: #f7f5f6;
  color: var(--gift-ink);
  padding: 28px 0 72px;
}

.weidu-gift-card *,
.weidu-gift-card *::before,
.weidu-gift-card *::after {
  box-sizing: border-box;
}

.weidu-gift-card__breadcrumbs {
  align-items: center;
  color: #777176;
  display: flex;
  flex-wrap: wrap;
  font-size: 14px;
  gap: 8px;
  margin-bottom: 28px;
}

.weidu-gift-card__breadcrumbs a {
  color: var(--gift-ink);
  text-decoration: none;
}

.weidu-gift-card__product {
  align-items: start;
  display: grid;
  gap: clamp(36px, 5vw, 84px);
  grid-template-columns: minmax(0, 1.08fr) minmax(420px, .92fr);
}

.gift-card-gallery {
  display: grid;
  gap: 18px;
  grid-template-columns: 76px minmax(0, 1fr);
  position: sticky;
  top: 28px;
}

.gift-card-gallery__thumbs {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.gift-card-gallery__thumb {
  background: #fff;
  border: 1px solid transparent;
  cursor: pointer;
  display: block;
  padding: 2px;
  transition: border-color .2s ease;
}

.gift-card-gallery__thumb.is-active,
.gift-card-gallery__thumb:hover,
.gift-card-gallery__thumb:focus-visible {
  border-color: var(--gift-ink);
  outline: none;
}

.gift-card-gallery__thumb img {
  aspect-ratio: 1 / 1;
  display: block;
  height: auto;
  object-fit: cover;
  width: 100%;
}

.gift-card-gallery__main {
  align-items: center;
  background: #f5f3f4;
  display: flex;
  justify-content: center;
  min-height: 520px;
  overflow: hidden;
}

.gift-card-gallery__main img {
  display: block;
  height: 100%;
  max-height: 650px;
  object-fit: cover;
  width: 100%;
}

.gift-card-purchase {
  max-width: 560px;
  width: 100%;
}

.gift-card-purchase__header {
  border-bottom: 1px solid var(--gift-border);
  margin-bottom: 24px;
  padding-bottom: 22px;
}

.gift-card-purchase__header h1 {
  color: var(--gift-ink);
  font-size: clamp(32px, 3vw, 48px);
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: 1.05;
  margin: 0 0 12px;
}

.gift-card-purchase__price {
  color: var(--gift-ink);
  font-size: 24px;
  font-weight: 500;
  line-height: 1.3;
}

.gift-card-purchase__price .woocommerce-Price-currencySymbol {
  margin-right: 1px;
}

.gift-card-purchase__header p {
  color: var(--gift-muted);
  font-size: 15px;
  line-height: 1.55;
  margin: 12px 0 0;
}

.gift-card-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.gift-card-form fieldset {
  border: 0;
  margin: 0;
  min-width: 0;
  padding: 0;
}

.gift-card-form legend,
.gift-card-form label > span:first-child,
.gift-card-form__field > span:first-child {
  color: var(--gift-ink);
  display: block;
  font-size: 15px;
  font-style: normal;
  font-weight: 600;
  margin-bottom: 9px;
}

.gift-card-form em {
  color: #b22727;
  font-style: normal;
}

.gift-card-amount-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 12px;
}

.gift-card-amount {
  cursor: pointer;
  display: block;
  margin: 0;
  position: relative;
}

.gift-card-amount input {
  height: 1px;
  opacity: 0;
  position: absolute;
  width: 1px;
}

.gift-card-amount > span {
  align-items: center;
  background: #fff;
  border: 1px solid var(--gift-border);
  display: flex;
  font-size: 16px;
  font-weight: 500;
  justify-content: center;
  min-height: 48px;
  padding: 8px;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}

.gift-card-amount.is-selected > span,
.gift-card-amount input:checked + span {
  background: var(--gift-ink);
  border-color: var(--gift-ink);
  color: #fff;
}

.gift-card-amount input:focus-visible + span {
  outline: 2px solid var(--gift-ink);
  outline-offset: 2px;
}

.gift-card-custom-amount {
  display: block;
  margin-top: 16px;
}

.gift-card-custom-amount__input {
  align-items: center;
  border: 1px solid var(--gift-border);
  display: flex;
  min-height: 48px;
  padding: 0 15px;
}

.gift-card-custom-amount__input:focus-within {
  border-color: var(--gift-ink);
  box-shadow: 0 0 0 1px var(--gift-ink);
}

.gift-card-custom-amount__input > span {
  color: var(--gift-muted);
  flex: 0 0 auto;
}

.gift-card-custom-amount__input .gift-card-custom-amount__choice {
  height: 1px;
  min-height: 1px;
  opacity: 0;
  padding: 0;
  pointer-events: none;
  position: absolute;
  width: 1px;
}

.gift-card-custom-amount__input input {
  border: 0 !important;
  box-shadow: none !important;
  flex: 1;
  min-height: 46px;
  outline: 0;
  padding: 0 8px;
  width: 100%;
}

.gift-card-form__gift-toggle {
  align-items: center;
  border-bottom: 1px solid var(--gift-border);
  border-top: 1px solid var(--gift-border);
  display: flex;
  justify-content: space-between;
  padding: 18px 0;
}

.gift-card-form__gift-toggle strong,
.gift-card-form__gift-toggle div > span {
  display: block;
}

.gift-card-form__gift-toggle strong {
  font-size: 16px;
  margin-bottom: 3px;
}

.gift-card-form__gift-toggle div > span {
  color: var(--gift-muted);
  font-size: 13px;
}

.gift-card-switch {
  cursor: pointer;
  display: block;
  flex: 0 0 auto;
  height: 28px;
  margin-left: 16px;
  position: relative;
  width: 50px;
}

.gift-card-switch input {
  height: 1px;
  opacity: 0;
  position: absolute;
  width: 1px;
}

.gift-card-switch > span[aria-hidden="true"] {
  background: #aaa5a8;
  border-radius: 20px;
  inset: 0;
  margin: 0;
  position: absolute;
  transition: background-color .2s ease;
}

.gift-card-switch > span[aria-hidden="true"]::after {
  background: #fff;
  border-radius: 50%;
  content: "";
  height: 22px;
  left: 3px;
  position: absolute;
  top: 3px;
  transition: transform .2s ease;
  width: 22px;
}

.gift-card-switch input:checked + span {
  background: var(--gift-ink);
}

.gift-card-switch input:checked + span::after {
  transform: translateX(22px);
}

.gift-card-switch input:focus-visible + span {
  outline: 2px solid var(--gift-ink);
  outline-offset: 2px;
}

.gift-card-form__recipient {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.gift-card-form__recipient[hidden] {
  display: none;
}

.gift-card-form__row {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.gift-card-form label {
  margin: 0;
}

.gift-card-form input[type="text"],
.gift-card-form input[type="email"],
.gift-card-form input[type="date"],
.gift-card-form textarea {
  background: #fff;
  border: 1px solid var(--gift-border);
  border-radius: 0;
  color: var(--gift-ink);
  display: block;
  font: inherit;
  outline: none;
  width: 100%;
}

.gift-card-form input[type="text"],
.gift-card-form input[type="email"],
.gift-card-form input[type="date"] {
  min-height: 48px;
  padding: 0 14px;
}

.gift-card-form textarea {
  min-height: 112px;
  padding: 12px 14px;
  resize: vertical;
}

.gift-card-form input:focus,
.gift-card-form textarea:focus {
  border-color: var(--gift-ink);
  box-shadow: 0 0 0 1px var(--gift-ink);
}

.gift-card-form__message {
  position: relative;
}

.gift-card-form__message small {
  color: var(--gift-muted);
  display: block;
  font-size: 12px;
  margin-top: 6px;
  text-align: right;
}

.gift-card-form__error {
  background: #fff0f0;
  border: 1px solid #d9a4a4;
  color: #8e2424;
  font-size: 14px;
  margin: 0;
  padding: 10px 12px;
}

.gift-card-form__submit {
  align-items: center;
  background: var(--gift-ink);
  border: 1px solid var(--gift-ink);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font-size: 17px;
  font-weight: 600;
  justify-content: center;
  min-height: 54px;
  padding: 12px 24px;
  transition: background-color .2s ease, color .2s ease;
  width: 100%;
}

.gift-card-form__submit:hover,
.gift-card-form__submit:focus-visible {
  background: #fff;
  color: var(--gift-ink);
  outline: none;
}

.gift-card-form__submit[disabled] {
  cursor: wait;
  opacity: .65;
}

.gift-card-form__checkout-note {
  color: var(--gift-muted);
  font-size: 12px;
  line-height: 1.5;
  margin: -10px 0 0;
  text-align: center;
}

.weidu-gift-card__description {
  border-top: 1px solid var(--gift-border);
  display: grid;
  gap: clamp(32px, 6vw, 96px);
  grid-template-columns: minmax(160px, .35fr) minmax(0, 1fr);
  margin-top: 72px;
  padding-top: 42px;
}

.weidu-gift-card__description-label {
  font-size: 20px;
  font-weight: 700;
}

.weidu-gift-card__description-content {
  color: #4c464a;
  font-size: 16px;
  line-height: 1.75;
  max-width: 820px;
}

.weidu-gift-card__description-content h2,
.weidu-gift-card__description-content h3 {
  color: var(--gift-ink);
  font-weight: 700;
  line-height: 1.2;
}

.weidu-gift-card__description-content h2 {
  font-size: clamp(26px, 3vw, 36px);
  margin: 0 0 18px;
}

.weidu-gift-card__description-content h3 {
  font-size: 20px;
  margin: 28px 0 10px;
}

.weidu-gift-card__description-content p {
  margin: 0 0 15px;
}

.weidu-gift-card__description-content ol {
  list-style: decimal;
  margin: 0 0 20px;
  padding-left: 22px;
}

.weidu-gift-card__description-content li + li {
  margin-top: 6px;
}

@media (max-width: 1023px) {
  .weidu-gift-card {
    padding-top: 18px;
  }

  .weidu-gift-card__product {
    gap: 34px;
    grid-template-columns: 1fr;
  }

  .gift-card-gallery {
    display: block;
    position: static;
  }

  .gift-card-gallery__thumbs {
    display: none;
  }

  .gift-card-gallery__main {
    min-height: 0;
  }

  .gift-card-gallery__main img {
    aspect-ratio: 1.42 / 1;
    object-fit: cover;
  }

  .gift-card-purchase {
    max-width: none;
  }
}

@media (max-width: 640px) {
  .weidu-gift-card {
    padding: 12px 0 48px;
  }

  .weidu-gift-card__breadcrumbs {
    font-size: 12px;
    margin-bottom: 16px;
  }

  .weidu-gift-card__product {
    gap: 26px;
  }

  .gift-card-purchase__header {
    margin-bottom: 20px;
    padding-bottom: 18px;
  }

  .gift-card-purchase__header h1 {
    font-size: 30px;
  }

  .gift-card-purchase__price {
    font-size: 20px;
  }

  .gift-card-form {
    gap: 20px;
  }

  .gift-card-amount-grid {
    gap: 8px;
  }

  .gift-card-amount > span {
    font-size: 14px;
    min-height: 42px;
    padding: 6px 3px;
  }

  .gift-card-form__row {
    gap: 10px;
  }

  .gift-card-form legend,
  .gift-card-form label > span:first-child,
  .gift-card-form__field > span:first-child {
    font-size: 14px;
  }

  .gift-card-form__gift-toggle div > span {
    max-width: 260px;
  }

  .weidu-gift-card__description {
    display: block;
    margin-top: 46px;
    padding-top: 28px;
  }

  .weidu-gift-card__description-label {
    margin-bottom: 22px;
  }

  .weidu-gift-card__description-content {
    font-size: 15px;
  }
}

@media (max-width: 390px) {
  .gift-card-form__row {
    grid-template-columns: 1fr;
  }
}
