/* /giftcard - pages/landing/giftcard.php. Colours come from theme-root.css, so dark mode follows the site. */
.gc-page {
    width: calc(100% - 32px);
    max-width: 1132px;
    margin: 0 auto;
    padding: 16px 0 48px;
    color: var(--textMain);
    font-family: var(--fontInter);
    font-size: var(--font_main);
    line-height: 1.5;
}
.gc-page, .gc-page * { box-sizing: border-box; }
.gc-page h1, .gc-page h2 { font-family: var(--font); font-weight: var(--fontweight_heavy); }
.gc-page h1 { font-size: var(--font_about_title); line-height: 1.2; margin: 0 0 12px; }
.gc-page h2 { font-size: var(--font_title); line-height: 1.4; margin: 0 0 20px; }
.gc-muted { color: var(--textSecondary, #63518f); font-weight: 400; }
.gc-small { font-size: var(--font_second); margin: 12px 0 0; }
.gc-error { color: var(--Sale, #f7592e); font-size: 14px; margin: 8px 0 0; min-height: 0; }
.gc-ok { color: var(--Green, #1f7a5c); font-size: 14px; margin: 8px 0 0; font-weight: 600; }

.gc-banner {
    border-radius: var(--radius-large);
    background: var(--White);
    padding: 16px;
    margin: 0 0 16px;
    overflow-wrap: anywhere;
    line-height: 1.5;
}
.gc-banner--ok strong { color: var(--Purple); }

.gc-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    gap: 32px;
    align-items: center;
    padding: 16px;
    margin: 0 0 24px;
}
.gc-hero__text p { max-width: 480px; font-size: var(--font_large); line-height: 1.5; color: var(--textSecondary); margin: 0; }
.gc-check-link { display: none; margin-top: 16px; color: var(--textMain); font-size: var(--font_main); font-weight: var(--fontweight_heavy); line-height: 1.5; text-decoration: underline; text-underline-offset: 3px; }
#gcCheck { scroll-margin-top: 80px; }
#gcCheck:focus-visible { outline: 2px solid var(--Purple); outline-offset: 4px; }
.gc-hero__card { display: flex; justify-content: center; }

/* ---- a little wish-list hint ---- */
.gc-share { max-width: 480px; margin-top: 20px; }
.gc-share .gc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: fit-content;
    max-width: 100%;
    min-height: 44px;
    padding: 10px 18px;
    border: 1px solid var(--Purple);
    border-radius: 999px;
    color: var(--textMain);
    font-size: var(--font_main);
    font-weight: var(--fontweight_heavy);
    cursor: pointer;
}
.gc-share .gc-btn:hover { background: var(--btnBackground); }
.gc-share__status:empty { display: none; }

/* ---- the card ---- */
.gc-card {
    position: relative;
    width: 100%;
    max-width: 320px;
    aspect-ratio: 1.586;
    border-radius: var(--radius-large);
    padding: 20px 22px;
    box-sizing: border-box;
    color: var(--White-500);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: background 0.25s ease;
}
/* Gift card design colors match the card delivered by email. */
.gc-card--1 { background: linear-gradient(135deg, #a471fb 0%, #5b2bb5 100%); }
.gc-card--2 { background: linear-gradient(135deg, #ff8db4 0%, #d23a6e 100%); }
.gc-card--3 { background: linear-gradient(135deg, #6fd3a8 0%, #1f7a5c 100%); }
.gc-card--4 { background: linear-gradient(135deg, #f6b17a 0%, #b5552a 100%); }
.gc-card__top { font-family: var(--font); font-size: var(--font_second); font-weight: var(--fontweight_heavy); letter-spacing: 1px; }
.gc-card__ribbot { position: absolute; top: 36px; right: 12px; width: 104px; height: 104px; object-fit: contain; }
.gc-card__amount { font-family: var(--font); font-size: 36px; font-weight: var(--fontweight_heavy); line-height: 1; margin-top: auto; }
.gc-card__line { font-size: 13px; min-height: 18px; margin-top: 6px; opacity: 0.95; max-width: calc(100% - 120px); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.gc-card__code {
    align-self: flex-start;
    margin-top: 10px;
    font-family: var(--fontInter);
    font-variant-numeric: tabular-nums;
    font-weight: var(--fontweight_main);
    letter-spacing: 1px;
    font-size: var(--font_second);
}

/* ---- layout ---- */
.gc-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.gc-side { display: grid; gap: 16px; min-width: 0; }
.gc-panel {
    min-width: 0;
    background: var(--White);
    border: 0;
    border-radius: var(--radius-large);
    padding: 24px;
    margin: 0 0 16px;
}
.gc-grid .gc-panel, .gc-side .gc-panel { margin: 0; }

/* ---- form ---- */
.gc-field { border: 0; padding: 0; margin: 0 0 20px; min-width: 0; }
.gc-field legend { color: var(--textSecondary); font-weight: var(--fontweight_500); font-size: var(--font_main); margin-bottom: 8px; padding: 0; }
.gc-label { display: block; color: var(--textSecondary); font-weight: var(--fontweight_500); font-size: var(--font_main); margin: 0 0 16px; }
.gc-label input, .gc-label textarea, .gc-inline input, .gc-when input, .gc-custom input {
    display: block;
    width: 100%;
    box-sizing: border-box;
    margin-top: 6px;
    min-height: 44px;
    min-width: 0;
    padding: 12px;
    border: 1px solid var(--menu);
    border-radius: var(--radius-small);
    background: var(--White);
    color: var(--textMain);
    font: inherit;
    font-family: var(--fontInter) !important; /* Override the shared input font rule. */
    font-weight: 400;
}
.gc-page input::placeholder, .gc-page textarea::placeholder { color: var(--textSupport); opacity: 1; }
.gc-page input:focus-visible, .gc-page textarea:focus-visible { border-color: var(--Purple); outline: 2px solid var(--Purple); outline-offset: 2px; }
.gc-label textarea { resize: vertical; }
.gc-chips, .gc-designs, .gc-toggle { display: flex; flex-wrap: wrap; gap: 8px; }
.gc-chip, .gc-toggle button {
    min-height: 44px;
    border: 1px solid var(--menu);
    background: transparent;
    color: var(--textSecondary);
    border-radius: var(--radius-small);
    padding: 10px 16px;
    font: inherit;
    font-family: var(--fontInter) !important;
    font-weight: var(--fontweight_500);
    cursor: pointer;
    transition: background-color 0.17s ease, border-color 0.17s ease;
}
.gc-chip { flex: 1 1 64px; }
.gc-chip:hover, .gc-toggle button:hover { background: var(--menu); }
.gc-chip.is-on { background: var(--btnBackground); border-color: var(--Purple); color: var(--textMain); font-weight: var(--fontweight_heavy); }
.gc-toggle { gap: 4px; width: fit-content; max-width: 100%; padding: 4px; border-radius: var(--radius-small); background: var(--background); }
.gc-toggle button { flex: 1; min-height: 36px; padding: 8px 16px; border-color: transparent; border-radius: 8px; white-space: nowrap; }
.gc-toggle button.is-on { background: var(--White); color: var(--textMain); font-weight: var(--fontweight_heavy); }
.gc-custom { display: flex; align-items: center; gap: 6px; margin-top: 10px; max-width: 200px; font-weight: 700; }
.gc-custom input { margin-top: 0; }
.gc-design {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    padding: 5px;
    border-radius: var(--radius-small);
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 0.15s ease;
}
.gc-design img { display: block; width: 48px; height: 48px; object-fit: contain; }
.gc-design:hover { transform: translateY(-2px); }
.gc-design:focus-visible { outline: 2px solid var(--Purple, #a471fb); outline-offset: 3px; }
.gc-design.is-on { border-color: var(--White-500); outline: 2px solid var(--Purple); outline-offset: 2px; }
.gc-when { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.gc-when input { width: auto; margin-top: 0; }
.gc-inline { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.gc-inline input { flex: 1 1 180px; margin-top: 0; text-transform: uppercase; letter-spacing: 1px; }

.gc-btn {
    display: inline-block;
    border: 0;
    border-radius: 999px;
    background: var(--Purple);
    color: var(--White-500);
    min-height: 48px;
    padding: 12px 24px;
    font: inherit;
    font-family: var(--fontInter) !important;
    font-weight: var(--fontweight_heavy);
    font-size: var(--font_large);
    line-height: 20px;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: opacity 0.17s ease, transform 0.1s ease;
}
#gcBuyBtn { width: 100%; margin-top: 6px; }
.gc-btn:hover:not(:disabled) { opacity: var(--opacityHover); }
.gc-btn:active:not(:disabled) { transform: scale(0.98); }
.gc-page button:focus-visible, .gc-page a:focus-visible { outline: 2px solid var(--Purple); outline-offset: 3px; }
.gc-btn:disabled { opacity: 0.6; cursor: default; }
.gc-btn--small { min-height: 44px; padding: 12px 18px; font-size: var(--font_main); margin-top: 12px; }
.gc-inline .gc-btn--small { margin-top: 0; }
.gc-btn--ghost { background: transparent; color: var(--Purple); border: 1px solid var(--Purple); }

/* ---- balance / wallet ---- */
.gc-result { margin-top: 14px; }
.gc-result__amt { font-family: var(--font); font-size: 32px; font-weight: 700; }
.gc-wallet-total { font-size: 16px; margin-bottom: 10px; }
.gc-wallet { list-style: none; margin: 0; padding: 0; }
.gc-wallet li { overflow-wrap: anywhere; display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; padding: 8px 0; border-top: 1px solid var(--menu); font-size: 14px; }
.gc-page .gc-faq h2 { font-weight: var(--fontweight_main); }
.gc-faq sl-details { display: block; border-bottom: 1px solid var(--menu); }
.gc-faq sl-details:last-child { border-bottom: 0; }
.gc-faq sl-details::part(base) { border: 0; border-radius: 0; background: transparent; font-family: var(--fontInter); font-size: var(--font_main); font-weight: var(--fontweight_main); color: var(--textMain); }
.gc-faq sl-details::part(header) { padding: 12px 0; }
.gc-faq sl-details:first-of-type::part(header) { padding-top: 0; }
.gc-faq sl-details::part(summary) { font-weight: var(--fontweight_main); line-height: 1.5; }
.gc-faq sl-details::part(summary-icon) { color: var(--textSecondary); }
.gc-faq sl-details::part(content) { padding: 0 0 12px; }
.gc-faq sl-details:last-child::part(content) { padding-bottom: 0; }
.gc-faq p { margin: 0; line-height: 1.5; color: var(--textSecondary); }

@media (max-width: 767px) {
    .gc-hero, .gc-grid { grid-template-columns: 1fr; }
    .gc-hero { gap: 24px; padding: 8px 0 0; }
    .gc-hero__text p { max-width: none; font-size: var(--font_main); }
    .gc-panel { padding: 20px 16px; }
    .gc-page h1 { font-size: var(--font_pat_title); }
    .gc-check-link { display: inline-block; }
}

@media (max-width: 380px) {
    .gc-card { padding: 18px; }
    .gc-card__ribbot { top: 36px; right: 12px; width: 104px; height: 104px; }
    .gc-card__line { max-width: calc(100% - 100px); }
}

@media (prefers-reduced-motion: reduce) {
    .gc-card, .gc-design, .gc-chip, .gc-toggle button, .gc-btn { transition: none; }
    .gc-btn:active:not(:disabled) { transform: none; }
    .gc-design:hover { transform: none; }
}

.gc-email-check { margin: -8px 0 14px; min-height: 0; }
.gc-email-check .gc-ok, .gc-email-check .gc-error { margin: 0; }

.gc-renew { display: flex; gap: 8px; align-items: center; margin-top: 12px; font-size: 14px; font-weight: 600; cursor: pointer; }
.gc-renew-msg .gc-ok, .gc-renew-msg .gc-error { margin: 4px 0 0; }

/* [hidden] must win over the display:flex rules above (date row, custom amount, recipient) */
.gc-page [hidden] { display: none !important; }
