/* UNÆG Gift Cards v1.4.1
 * Frontend WooCommerce/My Account UI.
 * This stylesheet controls layout/spacing only and deliberately inherits the active theme's
 * font family, text color, input styling, and WooCommerce button styling.
 */

.unage-gc-wrap,
.unage-gc-checkout-box,
.unage-gc-pay-header,
body.unage-gc-direct-order-pay {
  --unage-gc-radius: var(--wd-brd-radius, var(--button-border-radius, var(--wc-border-radius, 5px)));
  --unage-gc-radius-lg: max(var(--unage-gc-radius), 8px);
  --unage-gc-border: rgba(0, 0, 0, .14);
  --unage-gc-border-strong: rgba(0, 0, 0, .34);
  --unage-gc-muted: currentColor;
  --unage-gc-soft: rgba(0, 0, 0, .025);
  --unage-gc-shadow: 0 8px 24px rgba(0, 0, 0, .055);
  --unage-gc-focus: 0 0 0 3px rgba(0, 0, 0, .10);
  width: 100%;
  max-width: 1180px;
  min-width: 0;
  margin-inline: auto;
  color: inherit;
  font: inherit;
}

@supports (color: color-mix(in srgb, currentColor 50%, transparent)) {
  .unage-gc-wrap,
  .unage-gc-checkout-box,
  .unage-gc-pay-header,
  body.unage-gc-direct-order-pay {
    --unage-gc-border: color-mix(in srgb, currentColor 14%, transparent);
    --unage-gc-border-strong: color-mix(in srgb, currentColor 34%, transparent);
    --unage-gc-muted: color-mix(in srgb, currentColor 68%, transparent);
    --unage-gc-soft: color-mix(in srgb, currentColor 4%, transparent);
    --unage-gc-shadow: 0 8px 24px color-mix(in srgb, currentColor 7%, transparent);
    --unage-gc-focus: 0 0 0 3px color-mix(in srgb, currentColor 12%, transparent);
  }
}

.unage-gc-wrap,
.unage-gc-wrap *,
.unage-gc-checkout-box,
.unage-gc-checkout-box *,
.unage-gc-pay-header,
.unage-gc-pay-header * {
  box-sizing: border-box;
}

.unage-gc-shell {
  width: 100%;
  max-width: 1180px;
  min-width: 0;
  margin-inline: auto;
}

.woocommerce-account .woocommerce-MyAccount-content .unage-gc-wrap,
.woocommerce-MyAccount-content .unage-gc-wrap {
  max-width: none;
  margin: 0;
  padding: 0;
}

.unage-gc-page,
.unage-gc-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 330px);
  gap: clamp(18px, 2.4vw, 28px);
  align-items: start;
  min-width: 0;
  max-width: 100%;
}

.unage-gc-layout-account .unage-gc-page,
.unage-gc-layout-account .unage-gc-layout,
.woocommerce-MyAccount-content .unage-gc-layout-account .unage-gc-page,
.woocommerce-MyAccount-content .unage-gc-layout-account .unage-gc-layout {
  grid-template-columns: minmax(0, 1fr);
}

.unage-gc-panel,
.unage-gc-form-card,
.unage-gc-terms-card,
.unage-gc-simple-card,
.unage-gc-empty-card,
.unage-gc-checkout-box,
.unage-gc-pay-header,
.unage-gc-pay-preview,
.unage-gc-pay-panel,
.unage-gc-balance-result,
.unage-gc-account-card {
  border: 1px solid var(--unage-gc-border);
  border-radius: var(--unage-gc-radius-lg);
}

.unage-gc-form-card,
.unage-gc-form-panel {
  padding: clamp(20px, 3vw, 34px);
  min-width: 0;
}

.unage-gc-terms-card,
.unage-gc-terms-panel {
  padding: clamp(16px, 2vw, 22px);
  position: sticky;
  top: 24px;
  background: var(--unage-gc-soft);
}

.unage-gc-layout-account .unage-gc-terms-card,
.unage-gc-layout-account .unage-gc-terms-panel,
.woocommerce-MyAccount-content .unage-gc-terms-card,
.woocommerce-MyAccount-content .unage-gc-terms-panel {
  position: static;
}

.unage-gc-hero {
  margin: 0 0 clamp(18px, 2.4vw, 28px);
  padding-bottom: clamp(14px, 2vw, 20px);
  border-bottom: 1px solid var(--unage-gc-border);
}

.unage-gc-eyebrow {
  margin: 0 0 .45rem;
  color: inherit;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .12em;
  line-height: 1.25;
  text-transform: uppercase;
  opacity: .72;
}

.unage-gc-title {
  margin: 0 0 .55rem;
  color: inherit;
  font-family: inherit;
  font-size: clamp(1.7rem, 3vw, 2.45rem);
  line-height: 1.1;
  letter-spacing: -.025em;
}

.unage-gc-intro {
  max-width: 760px;
  margin: 0;
  color: var(--unage-gc-muted);
  font: inherit;
  font-size: 1rem;
  line-height: 1.65;
}

.unage-gc-form {
  margin: 0;
  min-width: 0;
  color: inherit;
  font: inherit;
}

.unage-gc-step {
  margin: 0 0 clamp(18px, 2.2vw, 26px);
  min-width: 0;
}

.unage-gc-step:last-child {
  margin-bottom: 0;
}

.unage-gc-step-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  min-width: 0;
}

.unage-gc-step-head > span,
.unage-gc-step-inline {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  margin: 0 !important;
  border: 1px solid var(--unage-gc-border);
  border-radius: 999px;
  background: var(--unage-gc-soft);
  color: inherit;
  font-size: .82rem;
  font-weight: 700;
  line-height: 1;
}

.unage-gc-step-head label,
.unage-gc-section-label {
  display: block;
  margin: 0 !important;
  color: inherit;
  font: inherit;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .09em;
  line-height: 1.35;
  text-transform: uppercase;
}

.unage-gc-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 18px);
  min-width: 0;
}

.unage-gc-grid-compact {
  max-width: 720px;
}

.unage-gc-field,
.unage-gc-form p {
  min-width: 0;
}

.unage-gc-field {
  margin: 0 0 1rem;
}

.unage-gc-details-step .unage-gc-field,
.unage-gc-message-field,
.unage-gc-delivery-step .unage-gc-field,
.unage-gc-grid .unage-gc-field {
  margin-bottom: 0;
}

.unage-gc-field label,
.unage-gc-custom-amount label,
.unage-gc-form p > label,
.unage-gc-checkout-box label {
  display: block;
  margin: 0;
  color: inherit;
  font: inherit;
  line-height: 1.45;
}

.unage-gc-label-text,
.unage-gc-custom-amount label > span {
  display: block;
  margin: 0 0 8px;
  color: inherit;
  font: inherit;
  font-size: .93rem;
  font-weight: 600;
  line-height: 1.35;
}

.unage-gc-screen-reader-text {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.unage-gc-field input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
.unage-gc-field textarea,
.unage-gc-field select,
.unage-gc-custom-amount input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
.unage-gc-form p > label > input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
.unage-gc-form p > label > textarea,
.unage-gc-form p > label > select,
.unage-gc-checkout-box input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
.unage-gc-checkout-box select,
.unage-gc-checkout-box textarea {
  display: block;
  width: 100%;
  max-width: 100% !important;
  min-height: 48px;
  margin: 0;
  padding: .78rem .92rem;
  border: 1px solid var(--unage-gc-border);
  border-radius: var(--unage-gc-radius);
  color: inherit;
  font: inherit;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.35;
  box-shadow: none;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.unage-gc-form p > label > input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
.unage-gc-form p > label > textarea,
.unage-gc-form p > label > select,
.unage-gc-checkout-box label > input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
.unage-gc-checkout-box label > select,
.unage-gc-checkout-box label > textarea {
  margin-top: 8px;
}

.unage-gc-field textarea,
.unage-gc-checkout-box textarea {
  min-height: 122px;
  resize: vertical;
}

.unage-gc-field input::placeholder,
.unage-gc-field textarea::placeholder,
.unage-gc-custom-amount input::placeholder,
.unage-gc-form p > label > input::placeholder,
.unage-gc-form p > label > textarea::placeholder {
  color: currentColor;
  font-weight: 400;
  opacity: .54;
}

.unage-gc-field input:not([type="checkbox"]):not([type="radio"]):hover,
.unage-gc-field textarea:hover,
.unage-gc-field select:hover,
.unage-gc-custom-amount input:hover,
.unage-gc-checkout-box input:not([type="checkbox"]):not([type="radio"]):hover,
.unage-gc-checkout-box select:hover,
.unage-gc-checkout-box textarea:hover {
  border-color: var(--unage-gc-border-strong);
}

.unage-gc-field input:not([type="checkbox"]):not([type="radio"]):focus,
.unage-gc-field textarea:focus,
.unage-gc-field select:focus,
.unage-gc-custom-amount input:focus,
.unage-gc-checkout-box input:not([type="checkbox"]):not([type="radio"]):focus,
.unage-gc-checkout-box select:focus,
.unage-gc-checkout-box textarea:focus {
  outline: 0;
  border-color: currentColor;
  box-shadow: var(--unage-gc-focus);
}

.unage-gc-field small,
.unage-gc-limit,
.unage-gc-secure-note,
.unage-gc-checkout-note {
  display: block;
  margin-top: .5rem;
  color: var(--unage-gc-muted);
  font: inherit;
  font-size: .9rem;
  line-height: 1.55;
}

.unage-gc-amounts {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  min-width: 0;
}

.unage-gc-amount-option {
  position: relative;
  display: flex !important;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 54px;
  padding: 10px 8px;
  border: 1px solid var(--unage-gc-border);
  border-radius: var(--unage-gc-radius);
  color: inherit;
  cursor: pointer;
  font: inherit;
  font-size: .96rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  transition: transform .18s ease, border-color .18s ease, background-color .18s ease, box-shadow .18s ease;
}

.unage-gc-amount-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.unage-gc-amount-option > span,
.unage-gc-amount-option .amount,
.unage-gc-amount-option bdi {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: .18em;
  width: auto !important;
  max-width: 100%;
  color: inherit;
  white-space: nowrap;
}

.unage-gc-amount-option:hover {
  transform: translateY(-1px);
  border-color: var(--unage-gc-border-strong);
  box-shadow: var(--unage-gc-shadow);
}

.unage-gc-amount-option.is-selected,
.unage-gc-amount-option:has(input:checked) {
  border-color: currentColor;
  background: var(--unage-gc-soft);
  box-shadow: var(--unage-gc-focus);
}

.unage-gc-form.is-custom-amount-active .unage-gc-amount-option.is-selected,
.unage-gc-form.is-custom-amount-active .unage-gc-amount-option:has(input:checked) {
  border-color: var(--unage-gc-border);
  background: transparent;
  box-shadow: none;
}

.unage-gc-custom-amount {
  margin-top: 14px;
}

.unage-gc-form.is-custom-amount-active .unage-gc-custom-amount input {
  border-color: currentColor;
  box-shadow: var(--unage-gc-focus);
}

.unage-gc-submit {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin: clamp(22px, 2.6vw, 32px) 0 0;
}

.unage-gc-button,
.unage-gc-checkout-box button,
.unage-gc-checkout-box .button,
.unage-gc-pay-header button,
.unage-gc-pay-header .button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: .7rem;
  min-height: 48px;
  font-family: inherit;
  line-height: 1.2;
  text-decoration: none !important;
  cursor: pointer;
}

.unage-gc-button.loading {
  opacity: .75;
  cursor: wait;
}

.unage-gc-button-price {
  opacity: .86;
}

.unage-gc-secure-note {
  flex: 1 1 240px;
  max-width: 520px;
  margin-top: 0;
}

/* Template carousel */
.unage-gc-design-field {
  margin-top: clamp(18px, 2.2vw, 26px);
}

.unage-gc-template-carousel {
  position: relative;
  min-width: 0;
  max-width: 100%;
  margin-top: 4px;
}

.unage-gc-template-viewport {
  overflow: hidden;
  min-width: 0;
}

.unage-gc-template-track {
  display: flex;
  gap: 14px;
  min-width: 0;
  max-width: 100%;
  padding: 4px 2px 12px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.unage-gc-template-track::-webkit-scrollbar {
  display: none;
}

.unage-gc-template {
  position: relative;
  display: block;
  flex: 0 0 calc((100% - 28px) / 3);
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--unage-gc-border);
  border-radius: var(--unage-gc-radius-lg);
  color: inherit;
  cursor: pointer;
  scroll-snap-align: start;
  transition: transform .18s ease, border-color .18s ease, background-color .18s ease, box-shadow .18s ease;
}

.unage-gc-template input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.unage-gc-template:hover {
  transform: translateY(-1px);
  border-color: var(--unage-gc-border-strong);
  box-shadow: var(--unage-gc-shadow);
}

.unage-gc-template.is-selected,
.unage-gc-template:has(input:checked) {
  border-color: currentColor;
  background: var(--unage-gc-soft);
  box-shadow: var(--unage-gc-focus);
}

.unage-gc-template-card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--unage-gc-radius);
  background: var(--unage-gc-soft);
}

.unage-gc-template-card img,
.unage-gc-pay-card img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.unage-gc-template-placeholder {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--unage-gc-border);
  color: inherit;
  font-weight: 700;
  text-align: center;
}

.unage-gc-template-check {
  position: absolute;
  top: 8px;
  right: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--unage-gc-border);
  border-radius: 999px;
  background: Canvas;
  color: CanvasText;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  opacity: 0;
  transform: scale(.86);
  transition: opacity .18s ease, transform .18s ease;
}

.unage-gc-template.is-selected .unage-gc-template-check,
.unage-gc-template:has(input:checked) .unage-gc-template-check {
  opacity: 1;
  transform: scale(1);
}

.unage-gc-template-name {
  display: block;
  margin: 10px 0 4px;
  color: inherit;
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.25;
}

.unage-gc-template-caption {
  display: -webkit-box;
  min-height: 2.75em;
  overflow: hidden;
  color: var(--unage-gc-muted);
  font: inherit;
  font-size: .9rem;
  line-height: 1.42;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.unage-gc-template-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  min-height: 42px;
  margin: -32px 0 0;
  padding: 0;
  border: 1px solid var(--unage-gc-border) !important;
  border-radius: var(--unage-gc-radius) !important;
  background: Canvas !important;
  color: CanvasText !important;
  box-shadow: var(--unage-gc-shadow);
  cursor: pointer;
}

.unage-gc-template-prev { left: 4px; }
.unage-gc-template-next { right: 4px; }

.unage-gc-template-nav svg {
  display: block;
  width: 20px;
  height: 20px;
}

.unage-gc-template-nav:disabled {
  opacity: .38;
  cursor: default;
  transform: none;
  box-shadow: none;
}

.unage-gc-template-dots {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin-top: 2px;
}

.unage-gc-template-dot {
  display: block;
  width: 7px;
  height: 7px;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: currentColor;
  opacity: .28;
  cursor: pointer;
}

.unage-gc-template-dot.is-active {
  width: 22px;
  opacity: .8;
}

/* Terms */
.unage-gc-terms-card h3 {
  display: block;
  margin: 0 0 14px;
  color: inherit;
  font-family: inherit;
  font-size: clamp(1.08rem, 1.6vw, 1.28rem);
  line-height: 1.3;
}

.unage-gc-terms-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.unage-gc-term {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 10px;
  border: 1px solid var(--unage-gc-border);
  border-radius: var(--unage-gc-radius);
}

.unage-gc-term-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--unage-gc-border);
  border-radius: 999px;
  color: inherit;
  font-size: .92rem;
  font-weight: 700;
}

.unage-gc-term strong {
  display: block;
  margin: 0 0 3px;
  color: inherit;
  font-size: .92rem;
  font-weight: 700;
  line-height: 1.3;
}

.unage-gc-term p {
  margin: 0;
  color: var(--unage-gc-muted);
  font-size: .88rem;
  line-height: 1.5;
}

.unage-gc-help-card {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid var(--unage-gc-border);
  border-radius: var(--unage-gc-radius);
}

.unage-gc-help-card strong {
  display: block;
  margin: 0 0 4px;
}

.unage-gc-help-card p {
  margin: 0 0 7px;
  color: var(--unage-gc-muted);
  font-size: .92rem;
  line-height: 1.5;
}

.unage-gc-help-card a {
  color: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: .18em;
}

/* Checkout redemption box */
.unage-gc-checkout-box {
  width: 100%;
  max-width: none;
  margin: 16px 0;
  padding: 16px;
  color: inherit;
  font: inherit;
}

.unage-gc-checkout-box [hidden] {
  display: none !important;
}

.unage-gc-checkout-heading {
  margin: 0 0 12px;
  color: inherit;
  font: inherit;
  font-weight: 600;
  line-height: 1.35;
}

.unage-gc-toggle-option,
.unage-gc-method-option {
  display: inline-flex !important;
  align-items: center;
  gap: 10px;
  width: auto;
  max-width: 100%;
  margin: 0;
  cursor: pointer;
  color: inherit;
  font: inherit;
  line-height: 1.35;
}

.unage-gc-toggle-option input[type="checkbox"],
.unage-gc-method-option input[type="radio"],
.unage-gc-checkbox,
.unage-gc-radio {
  position: static !important;
  display: inline-block !important;
  flex: 0 0 auto !important;
  width: 16px !important;
  height: 16px !important;
  min-width: 16px !important;
  min-height: 16px !important;
  max-width: 16px !important;
  max-height: 16px !important;
  margin: 0 !important;
  padding: 0 !important;
  opacity: 1 !important;
  transform: none !important;
  vertical-align: middle;
  accent-color: currentColor;
  box-shadow: none !important;
}

.unage-gc-toggle-option input[type="checkbox"],
.unage-gc-checkbox {
  -webkit-appearance: checkbox !important;
  appearance: auto !important;
}

.unage-gc-method-option input[type="radio"],
.unage-gc-radio {
  -webkit-appearance: radio !important;
  appearance: auto !important;
}


.unage-gc-inline-notice {
  margin: 10px 0 0;
  padding: 10px 12px;
  border: 1px solid var(--unage-gc-border);
  border-radius: var(--unage-gc-radius);
  color: inherit;
  font: inherit;
  line-height: 1.45;
}

.unage-gc-inline-notice-error {
  border-color: rgba(180, 35, 24, .45);
  background: rgba(180, 35, 24, .06);
}

.unage-gc-inline-notice-success {
  border-color: rgba(25, 120, 70, .42);
  background: rgba(25, 120, 70, .06);
}

.unage-gc-inline-notice-notice {
  background: var(--unage-gc-soft);
}

.unage-gc-checkout-panel {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--unage-gc-border);
}

.unage-gc-methods {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin: 14px 0;
}

.unage-gc-method-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.unage-gc-method-panel .form-row {
  float: none !important;
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
}

.unage-gc-method-panel .form-row-wide,
.unage-gc-method-panel .clear {
  grid-column: 1 / -1;
}

.unage-gc-method-panel label {
  font-weight: 600;
}

.unage-gc-method-panel select,
.unage-gc-method-panel input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]) {
  margin-top: 8px;
}

.unage-gc-available-balance,
.unage-gc-applied-card,
.unage-gc-applied {
  margin: 10px 0 0;
  padding: 12px 14px;
  border: 1px solid var(--unage-gc-border);
  border-radius: var(--unage-gc-radius);
  color: inherit;
  line-height: 1.5;
}

.unage-gc-applied-summary {
  margin: 0;
  font-weight: 700;
}

.unage-gc-post-action {
  margin-top: 12px;
}

/* Order-pay gift card screen */
.unage-gc-pay-header {
  margin: 0 0 18px;
  padding: clamp(20px, 3vw, 32px);
  background: var(--unage-gc-soft);
}

.unage-gc-pay-eyebrow {
  display: inline-flex;
  margin: 0 0 10px;
  padding: 5px 10px;
  border: 1px solid var(--unage-gc-border);
  border-radius: 999px;
  color: inherit;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.unage-gc-pay-header h1 {
  margin: 0 0 12px;
  color: inherit;
  font-family: inherit;
  font-size: clamp(1.45rem, 3vw, 2.25rem);
  line-height: 1.12;
  letter-spacing: -.025em;
}

.unage-gc-pay-intro {
  max-width: 820px;
  color: var(--unage-gc-muted);
  line-height: 1.65;
}

.unage-gc-pay-layout {
  display: grid;
  grid-template-columns: minmax(280px, 1.1fr) minmax(260px, .9fr);
  gap: 16px;
  margin-top: 18px;
}

.unage-gc-pay-preview,
.unage-gc-pay-panel {
  padding: 16px;
}

.unage-gc-pay-card {
  overflow: hidden;
  border-radius: var(--unage-gc-radius);
  background: var(--unage-gc-soft);
}

.unage-gc-pay-recap {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.unage-gc-pay-recap div,
.unage-gc-pay-message,
.unage-gc-pay-amount {
  padding: 12px;
  border: 1px solid var(--unage-gc-border);
  border-radius: var(--unage-gc-radius);
}

.unage-gc-pay-recap span,
.unage-gc-pay-message span {
  display: block;
  margin-bottom: 4px;
  color: var(--unage-gc-muted);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.unage-gc-pay-amount {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.unage-gc-pay-amount strong {
  font-size: 1.35rem;
}

.unage-gc-pay-points {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.unage-gc-pay-points li {
  position: relative;
  margin: 0;
  padding-left: 20px;
  color: var(--unage-gc-muted);
  line-height: 1.55;
}

.unage-gc-pay-points li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: .62em;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: currentColor;
  opacity: .55;
}

body.unage-gc-direct-order-pay .woocommerce-order-overview,
body.unage-gc-direct-order-pay .woocommerce table.shop_table.order_details,
body.unage-gc-direct-order-pay .woocommerce #order_review_heading {
  display: none !important;
}

body.unage-gc-direct-order-pay .woocommerce form#order_review,
body.unage-gc-direct-order-pay .woocommerce #order_review {
  padding: 18px;
  border: 1px solid var(--unage-gc-border);
  border-radius: var(--unage-gc-radius-lg);
}

body.unage-gc-direct-order-pay .woocommerce #payment {
  background: transparent !important;
  border: 0 !important;
}

/* Simple account forms and tables */
.unage-gc-simple-wrap,
.unage-gc-table-wrap {
  max-width: none;
}

.unage-gc-simple-card,
.unage-gc-empty-card,
.unage-gc-balance-result,
.unage-gc-account-card {
  padding: clamp(18px, 2.5vw, 26px);
}

.unage-gc-simple-form .unage-gc-submit {
  margin-top: 18px;
}

.unage-gc-empty-card {
  color: var(--unage-gc-muted);
  line-height: 1.55;
}

.unage-gc-table-scroll {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--unage-gc-border);
  border-radius: var(--unage-gc-radius-lg);
}

.unage-gc-account-table,
.unage-gc-table-wrap table.shop_table {
  width: 100%;
  min-width: 720px;
  margin: 0 !important;
  border: 0 !important;
  border-collapse: collapse;
  border-radius: 0 !important;
  background: transparent;
}

.unage-gc-account-table th,
.unage-gc-account-table td,
.unage-gc-table-wrap table.shop_table th,
.unage-gc-table-wrap table.shop_table td {
  padding: 13px 14px !important;
  border-top: 0 !important;
  border-bottom: 1px solid var(--unage-gc-border) !important;
  color: inherit;
  line-height: 1.45;
  vertical-align: middle;
}

.unage-gc-account-table thead th,
.unage-gc-table-wrap table.shop_table thead th {
  background: var(--unage-gc-soft);
  color: inherit;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.unage-gc-account-table tbody tr:last-child td,
.unage-gc-table-wrap table.shop_table tbody tr:last-child td {
  border-bottom: 0 !important;
}

.unage-gc-account-table .button,
.unage-gc-table-wrap table.shop_table .button {
  min-height: 34px;
  padding-block: 8px;
}

@media (max-width: 1100px) {
  .unage-gc-page,
  .unage-gc-layout,
  .unage-gc-pay-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .unage-gc-terms-card,
  .unage-gc-terms-panel {
    position: static;
  }
}

@media (max-width: 900px) {
  .unage-gc-amounts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 780px) {
  .unage-gc-grid,
  .unage-gc-pay-recap,
  .unage-gc-method-panel {
    grid-template-columns: minmax(0, 1fr);
  }

  .unage-gc-template {
    flex-basis: calc((100% - 14px) / 2);
  }
}

@media (max-width: 640px) {
  .unage-gc-form-card,
  .unage-gc-form-panel,
  .unage-gc-terms-card,
  .unage-gc-terms-panel,
  .unage-gc-simple-card,
  .unage-gc-empty-card,
  .unage-gc-pay-header {
    padding: 18px;
  }

  .unage-gc-step-head {
    align-items: flex-start;
  }

  .unage-gc-submit {
    display: block;
  }

  .unage-gc-button,
  .unage-gc-submit .button {
    width: 100%;
  }

  .unage-gc-secure-note {
    max-width: none;
    margin-top: 10px;
  }

  .unage-gc-amounts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .unage-gc-template {
    flex-basis: 86%;
  }

  .unage-gc-template-nav {
    display: none !important;
  }

  .unage-gc-checkout-box {
    padding: 14px;
  }
}

@media (max-width: 380px) {
  .unage-gc-amounts {
    grid-template-columns: minmax(0, 1fr);
  }
}


/* v1.2.8: theme-inherited layout hardening and exact alignment fixes. */
.unage-gc-wrap,
.unage-gc-checkout-box,
.unage-gc-pay-header {
  font-family: inherit !important;
  color: inherit !important;
}

.unage-gc-form p,
.unage-gc-balance-form p,
.unage-gc-claim-form p,
.unage-gc-checkout-box p {
  margin: 0 !important;
  padding: 0 !important;
}

.unage-gc-step-head,
.unage-gc-field,
.unage-gc-field label,
.unage-gc-custom-amount,
.unage-gc-custom-amount label,
.unage-gc-submit {
  float: none !important;
  clear: none !important;
}

.unage-gc-step-head > span,
.unage-gc-step-inline {
  padding: 0 !important;
  text-indent: 0 !important;
  text-align: center !important;
}

.unage-gc-amounts {
  align-items: stretch !important;
}

.unage-gc-amount-option {
  display: grid !important;
  place-items: center !important;
  min-height: 56px !important;
  padding: 0 12px !important;
  text-align: center !important;
  line-height: 1 !important;
  overflow: hidden !important;
  user-select: none;
}

.unage-gc-amount-option::before,
.unage-gc-amount-option::after,
.unage-gc-template::before,
.unage-gc-template::after,
.unage-gc-toggle-option::before,
.unage-gc-toggle-option::after,
.unage-gc-method-option::before,
.unage-gc-method-option::after {
  content: none !important;
  display: none !important;
}

.unage-gc-amount-option input[type="radio"] {
  position: absolute !important;
  inset: 0 auto auto 0 !important;
  width: 1px !important;
  height: 1px !important;
  min-width: 1px !important;
  min-height: 1px !important;
  max-width: 1px !important;
  max-height: 1px !important;
  margin: 0 !important;
  padding: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.unage-gc-amount-option .unage-gc-amount-text,
.unage-gc-amount-option .woocommerce-Price-amount,
.unage-gc-amount-option .amount,
.unage-gc-amount-option bdi,
.unage-gc-amount-option .woocommerce-Price-currencySymbol {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  color: inherit !important;
  font-family: inherit !important;
  font-size: inherit !important;
  font-style: normal !important;
  font-weight: inherit !important;
  letter-spacing: inherit !important;
  line-height: 1 !important;
  text-align: center !important;
  text-decoration: none !important;
  text-indent: 0 !important;
  vertical-align: middle !important;
  white-space: nowrap !important;
}

.unage-gc-amount-option .unage-gc-amount-text {
  gap: .22em !important;
  transform: translateY(0) !important;
}

.unage-gc-amount-option .woocommerce-Price-currencySymbol {
  margin-right: .2em !important;
}

.unage-gc-field input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
.unage-gc-field textarea,
.unage-gc-field select,
.unage-gc-custom-amount input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
.unage-gc-checkout-box input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
.unage-gc-checkout-box select,
.unage-gc-checkout-box textarea {
  float: none !important;
  box-sizing: border-box !important;
  color: inherit;
  font-family: inherit !important;
}

.unage-gc-field input[type="date"] {
  appearance: auto;
  -webkit-appearance: auto;
}

.unage-gc-template-track {
  scroll-padding-inline: 2px;
}

.unage-gc-template-name,
.unage-gc-template-caption {
  text-align: left !important;
}

.unage-gc-template-card img,
.unage-gc-pay-card img {
  max-height: none !important;
}

.unage-gc-checkout-box label,
.unage-gc-toggle-option,
.unage-gc-method-option {
  text-transform: none !important;
  letter-spacing: normal !important;
}

.unage-gc-toggle-option input[type="checkbox"],
.unage-gc-method-option input[type="radio"],
.unage-gc-checkbox,
.unage-gc-radio {
  line-height: normal !important;
  vertical-align: middle !important;
}

.woocommerce-MyAccount-content .unage-gc-simple-card .unage-gc-grid-compact,
.woocommerce-MyAccount-content .unage-gc-balance-wrap .unage-gc-grid-compact,
.woocommerce-MyAccount-content .unage-gc-claim-wrap .unage-gc-grid-compact {
  align-items: end !important;
}

@media (min-width: 901px) {
  .woocommerce-MyAccount-content .unage-gc-account-buy .unage-gc-amounts,
  .unage-gc-layout-account .unage-gc-amounts {
    grid-template-columns: repeat(5, minmax(120px, 1fr)) !important;
  }
}

@media (max-width: 520px) {
  .unage-gc-amount-option {
    min-height: 52px !important;
  }

  .unage-gc-template {
    flex-basis: 88% !important;
  }
}

/* v1.2.8: exact choice-control isolation.
 * Some themes style radio inputs, labels, WooCommerce price spans, or pseudo-elements globally.
 * Keep the real radio accessible but remove it completely from the visual centering math.
 */
.unage-gc-amount-option {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 56px !important;
  padding: 0 !important;
  overflow: hidden !important;
  text-align: center !important;
  isolation: isolate;
}

.unage-gc-amount-option input[type="radio"] {
  position: absolute !important;
  inset: 50% auto auto 50% !important;
  width: 1px !important;
  height: 1px !important;
  min-width: 1px !important;
  min-height: 1px !important;
  max-width: 1px !important;
  max-height: 1px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  outline: 0 !important;
  opacity: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
  transform: translate(-50%, -50%) !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
}

.unage-gc-amount-option > .unage-gc-amount-text {
  position: absolute !important;
  inset: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  max-width: none !important;
  height: 100% !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 10px !important;
  border: 0 !important;
  color: inherit !important;
  font: inherit !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  text-align: center !important;
  white-space: nowrap !important;
  pointer-events: none !important;
  transform: none !important;
}

.unage-gc-amount-option > .unage-gc-amount-text::before,
.unage-gc-amount-option > .unage-gc-amount-text::after,
.unage-gc-amount-option .woocommerce-Price-amount::before,
.unage-gc-amount-option .woocommerce-Price-amount::after,
.unage-gc-amount-option .amount::before,
.unage-gc-amount-option .amount::after,
.unage-gc-amount-option bdi::before,
.unage-gc-amount-option bdi::after,
.unage-gc-amount-option .woocommerce-Price-currencySymbol::before,
.unage-gc-amount-option .woocommerce-Price-currencySymbol::after {
  content: none !important;
  display: none !important;
}

.unage-gc-amount-option .unage-gc-amount-text > .woocommerce-Price-amount,
.unage-gc-amount-option .unage-gc-amount-text > .amount,
.unage-gc-amount-option .woocommerce-Price-amount,
.unage-gc-amount-option .amount,
.unage-gc-amount-option bdi,
.unage-gc-amount-option .woocommerce-Price-currencySymbol {
  position: static !important;
  float: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: inherit !important;
  font: inherit !important;
  font-weight: inherit !important;
  letter-spacing: inherit !important;
  line-height: 1 !important;
  text-align: center !important;
  text-decoration: none !important;
  text-indent: 0 !important;
  vertical-align: baseline !important;
  white-space: nowrap !important;
  transform: none !important;
}

.unage-gc-amount-option bdi {
  gap: 0 !important;
}

.unage-gc-amount-option input[type="radio"]:focus-visible + .unage-gc-amount-text {
  outline: 2px solid currentColor !important;
  outline-offset: -4px !important;
}

.unage-gc-template input[type="radio"],
.unage-gc-method-option input[type="radio"],
.unage-gc-toggle-option input[type="checkbox"] {
  flex: 0 0 auto !important;
  margin: 0 !important;
}
