/* "My gift to you" pages (gift list and send a gift). Loaded from Head.cshtml: <style> blocks inside the Vue-mounted page are dropped by Vue. */

.hg { --hg-olive: #69772A; --hg-olive-dark: #56621F; --hg-olive-soft: #EEF2DD; --hg-olive-line: #D3DDB0; --hg-card-green: #4F5A1C; --hg-orange: #CB6D28; --hg-orange-dark: #B25E20; --hg-cream: #FCF8F3; --hg-cream-line: #EFE3D4; --hg-gold: #C08A2B; --hg-ink: #1E2A2F; --hg-muted: #5E6A6E; --hg-line: #E6E6E6; color: var(--hg-ink); }

/* ---------------------------------------------------------------- shared bits */

.hg .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.hg .hg-head { margin-bottom: 28px; text-align: center; }
.hg .hg-head h1 { margin: 0; font-size: 32px; font-weight: 700; color: var(--hg-card-green); }
.hg .hg-head p { margin: 8px auto 0; color: var(--hg-muted); max-width: 640px; line-height: 1.7; }

.hg .hg-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 50px; padding: 0 24px; border-radius: 14px; border: 0; background: var(--hg-olive); color: #FFFFFF; font-weight: 700; font-size: 16px; font-family: inherit; text-decoration: none; cursor: pointer; transition: background .15s ease; }
.hg .hg-btn:hover, .hg .hg-btn:focus { background: var(--hg-olive-dark); color: #FFFFFF; text-decoration: none; }
.hg .hg-btn-orange { background: var(--hg-orange); }
.hg .hg-btn-orange:hover, .hg .hg-btn-orange:focus { background: var(--hg-orange-dark); }
.hg .hg-btn-block { width: 100%; }

.hg .hg-errors { margin-bottom: 20px; }
.hg .hg-errors ul { list-style: none; margin: 0; padding: 0; }
.hg .hg-errors li { background: #FDF1F0; border: 1px solid #E8B4B0; color: #B3261E; border-radius: 12px; padding: 12px 16px; margin-bottom: 8px; }
.hg .hg-errors li:empty { display: none; }
.hg .field-validation-error { display: block; margin-top: 6px; color: #B3261E; font-size: 14px; }

/* ------------------------------------------------------------- the gift list */

.hg-gifts .hg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }

.hg-gifts .hg-card { display: flex; flex-direction: column; background: #FFFFFF; border: 1px solid var(--hg-line); border-radius: 20px; overflow: hidden; transition: box-shadow .15s ease, transform .15s ease; }
.hg-gifts .hg-card:hover { box-shadow: 0 10px 28px rgba(30, 42, 47, .10); transform: translateY(-2px); }

.hg-gifts .hg-card-media { position: relative; display: block; aspect-ratio: 3 / 2; background: var(--hg-olive-soft); overflow: hidden; }
.hg-gifts .hg-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* shown until the gift has artwork of its own, instead of a broken looking placeholder */
.hg-gifts .hg-card-media-fallback { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; background: var(--hg-card-green); color: rgba(255, 255, 255, .45); }

.hg-gifts .hg-card-body { flex: 1 1 auto; padding: 18px 20px 0; }
.hg-gifts .hg-card-body h2 { margin: 0; font-size: 19px; font-weight: 700; color: var(--hg-card-green); }
.hg-gifts .hg-card-desc { margin: 8px 0 0; color: var(--hg-muted); font-size: 15px; line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hg-gifts .hg-card-desc p { margin: 0; }

.hg-gifts .hg-card-foot { display: flex; align-items: center; gap: 10px; padding: 16px 20px 20px; }
.hg-gifts .hg-card-foot select { flex: 1 1 auto; min-width: 0; height: 50px; border-radius: 14px; border: 1px solid var(--hg-line); background: #FFFFFF; padding: 0 12px; color: var(--hg-ink); font-family: inherit; font-size: 15px; }
.hg-gifts .hg-card-foot select:focus { outline: 0; border-color: var(--hg-olive); }
.hg-gifts .hg-card-foot .hg-btn { flex: none; }
/* a gift with no packages yet has no select beside the button, so let it span the row */
.hg-gifts .hg-card-foot-single .hg-btn { flex: 1 1 auto; }

.hg-gifts .hg-empty { margin: 40px 0; text-align: center; color: var(--hg-muted); }

/* ----------------------------------------------------------- send a gift page */

.hg-send .hg-back { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 18px; color: var(--hg-muted); text-decoration: none; font-size: 15px; }
.hg-send .hg-back:hover { color: var(--hg-olive); text-decoration: none; }

.hg-send .hg-layout { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; }
.hg-send .hg-col-main { flex: 999 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.hg-send .hg-col-side { flex: 1 1 290px; min-width: 0; display: flex; flex-direction: column; gap: 16px; position: sticky; top: 20px; }

.hg-send .hg-section-title { margin: 0 0 14px; font-size: 16px; font-weight: 700; color: var(--hg-ink); }
.hg-send .hg-req { color: #B3261E; margin-inline-start: 2px; }
.hg-send .hg-optional { display: inline-block; margin-inline-start: 8px; padding: 2px 9px; border-radius: 999px; background: #F0F0EE; color: var(--hg-muted); font-size: 12px; font-weight: 500; vertical-align: middle; }

/* packages */
.hg-send .hg-packages { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; }
.hg-send .hg-package { position: relative; }
.hg-send .hg-package input { position: absolute; opacity: 0; width: 0; height: 0; }
.hg-send .hg-package-box { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; height: 100%; margin: 0; padding: 20px 14px 18px; border: 1.5px solid var(--hg-line); border-radius: 16px; background: #FFFFFF; cursor: pointer; text-align: center; transition: border-color .15s ease, background .15s ease; }
.hg-send .hg-package-box:hover { border-color: var(--hg-olive-line); }
.hg-send .hg-package input:checked + .hg-package-box { border-color: var(--hg-olive); border-width: 2px; background: var(--hg-olive-soft); padding: 19px 13px 17px; }
.hg-send .hg-package input:focus-visible + .hg-package-box { outline: 2px solid var(--hg-olive); outline-offset: 2px; }

.hg-send .hg-package-icon { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 999px; background: #F4F2EC; color: var(--hg-olive); overflow: hidden; }
.hg-send .hg-package-icon img { width: 100%; height: 100%; object-fit: cover; }
.hg-send .hg-package input:checked + .hg-package-box .hg-package-icon { background: #FFFFFF; }
.hg-send .hg-package-title { font-weight: 600; font-size: 15px; color: var(--hg-ink); }
.hg-send .hg-package-price { display: flex; align-items: baseline; gap: 5px; }
.hg-send .hg-package-price b { font-size: 26px; font-weight: 700; line-height: 1; color: var(--hg-gold); direction: ltr; unicode-bidi: isolate; }
.hg-send .hg-package-price span { font-size: 13px; color: var(--hg-muted); }

/* the tick that marks the chosen tile */
.hg-send .hg-tick { position: absolute; top: -10px; inset-inline-start: -10px; display: none; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 999px; background: var(--hg-olive); color: #FFFFFF; border: 2px solid #FFFFFF; }
.hg-send input:checked + .hg-package-box .hg-tick,
.hg-send input:checked + .hg-pay-box .hg-tick { display: flex; }

/* fields */
.hg-send .hg-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.hg-send .hg-field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.hg-send .hg-field > label { font-weight: 500; font-size: 14px; color: var(--hg-ink); }
.hg-send .hg-field input, .hg-send .hg-field select, .hg-send .hg-field textarea { height: 52px; border-radius: 12px; border: 1px solid var(--hg-line); background: #FFFFFF; padding: 0 14px; color: var(--hg-ink); font-family: inherit; font-size: 16px; width: 100%; }
.hg-send .hg-field textarea { height: auto; min-height: 104px; padding: 14px; line-height: 1.6; resize: vertical; }
.hg-send .hg-field input:focus, .hg-send .hg-field select:focus, .hg-send .hg-field textarea:focus { outline: 0; border-color: var(--hg-olive); }
.hg-send .hg-field-wide { grid-column: 1 / -1; }

/* intlTelInput wraps the field in .iti, which must stretch like a plain input would */
.hg-send .hg-field .iti { width: 100%; display: block; }
.hg-send .hg-field .iti input.hg-tel { direction: ltr; text-align: start; }
.hg-send .hg-field .iti--separate-dial-code .iti__selected-flag { border-start-start-radius: 12px; border-end-start-radius: 12px; background-color: #F7F7F5; }
.hg-send .hg-field input.hg-tel.is-invalid { border-color: #B3261E; }
.hg-send .hg-field input.hg-tel.is-valid { border-color: var(--hg-olive-line); }
.hg-send .field-validation-error:empty { display: none; }

/* yes / no choice rows */
.hg-send .hg-choices { display: flex; flex-direction: column; gap: 12px; }
.hg-send .hg-choice { position: relative; }
.hg-send .hg-choice input { position: absolute; opacity: 0; width: 0; height: 0; }
.hg-send .hg-choice-box { display: flex; align-items: flex-start; gap: 12px; margin: 0; padding: 16px 18px; border: 1.5px solid var(--hg-line); border-radius: 14px; background: #FFFFFF; cursor: pointer; transition: border-color .15s ease, background .15s ease; }
.hg-send .hg-choice-box:hover { border-color: var(--hg-olive-line); }
.hg-send .hg-choice-box::before { content: ""; flex: none; margin-top: 2px; width: 20px; height: 20px; border-radius: 999px; border: 2px solid #C4CBCE; background: #FFFFFF; }
.hg-send .hg-choice input:checked + .hg-choice-box { border-color: var(--hg-olive); background: #FFFFFF; }
.hg-send .hg-choice input:checked + .hg-choice-box::before { border-color: var(--hg-olive); box-shadow: inset 0 0 0 4px var(--hg-olive); }
.hg-send .hg-choice input:focus-visible + .hg-choice-box { outline: 2px solid var(--hg-olive); outline-offset: 2px; }
.hg-send .hg-choice-text { display: flex; flex-direction: column; gap: 3px; }
.hg-send .hg-choice-text b { font-weight: 600; font-size: 15px; }
.hg-send .hg-choice-text span { font-size: 13px; color: var(--hg-muted); }

/* note */
.hg-send .hg-note { display: flex; gap: 12px; padding: 16px 18px; border-radius: 14px; background: var(--hg-cream); border: 1px solid var(--hg-cream-line); color: #6B5433; font-size: 14px; line-height: 1.7; }
.hg-send .hg-note svg { flex: none; margin-top: 2px; }

/* payment */
.hg-send .hg-pays { display: flex; flex-wrap: wrap; gap: 14px; }
.hg-send .hg-pay { position: relative; }
.hg-send .hg-pay input { position: absolute; opacity: 0; width: 0; height: 0; }
.hg-send .hg-pay-box { position: relative; display: flex; align-items: center; justify-content: center; margin: 0; width: 132px; height: 76px; padding: 12px; border: 1.5px solid var(--hg-line); border-radius: 14px; background: #FFFFFF; cursor: pointer; transition: border-color .15s ease; }
.hg-send .hg-pay-box img { max-width: 100%; max-height: 100%; object-fit: contain; }
.hg-send .hg-pay-box:hover { border-color: var(--hg-olive-line); }
.hg-send .hg-pay input:checked + .hg-pay-box { border-color: var(--hg-olive); border-width: 2px; padding: 11px; }
.hg-send .hg-pay input:focus-visible + .hg-pay-box { outline: 2px solid var(--hg-olive); outline-offset: 2px; }

/* side column */
.hg-send .hg-preview { border-radius: 18px; overflow: hidden; background: var(--hg-card-green); }
.hg-send .hg-preview img { width: 100%; display: block; aspect-ratio: 16 / 10; object-fit: cover; }
.hg-send .hg-preview-caption { padding: 26px 20px; color: #FFFFFF; font-weight: 700; font-size: 18px; line-height: 1.5; text-align: center; }

.hg-send .hg-summary { background: var(--hg-card-green); color: #FFFFFF; border-radius: 18px; padding: 22px; display: flex; flex-direction: column; gap: 16px; }
.hg-send .hg-summary h2 { margin: 0; font-size: 17px; font-weight: 700; color: #FFFFFF; text-align: center; }
.hg-send .hg-sum-rows { display: flex; flex-direction: column; gap: 12px; }
.hg-send .hg-sum-row { display: flex; align-items: baseline; gap: 8px; font-size: 15px; }
.hg-send .hg-sum-row dt { flex: none; margin: 0; color: rgba(255, 255, 255, .72); font-weight: 400; }
.hg-send .hg-sum-row .hg-leader { flex: 1 1 auto; border-bottom: 1px dotted rgba(255, 255, 255, .45); transform: translateY(-4px); }
.hg-send .hg-sum-row dd { flex: none; margin: 0; font-weight: 600; max-width: 60%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hg-send .hg-sum-amount { align-self: center; display: inline-flex; align-items: baseline; gap: 5px; padding: 9px 22px; border-radius: 999px; background: var(--hg-gold); color: #3A2B06; font-weight: 700; }
.hg-send .hg-sum-amount b { font-size: 19px; direction: ltr; unicode-bidi: isolate; }
.hg-send .hg-sum-amount span { font-size: 13px; }

.hg-send .hg-submit { margin-top: 4px; }

@media (max-width: 575.98px) {
    .hg-send .hg-packages { grid-template-columns: repeat(auto-fit, minmax(135px, 1fr)); }
    .hg-send .hg-pay-box { width: 112px; height: 68px; }
}

/* ------------------------------------------------------- paid confirmation */

.hg-done { display: flex; justify-content: center; padding: 10px 0 30px; }
.hg-done .hg-done-card { width: 100%; max-width: 420px; background: #FFFFFF; border: 1px solid var(--hg-line); border-radius: 20px; padding: 32px 24px 24px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.hg-done .hg-done-tick { display: flex; align-items: center; justify-content: center; width: 74px; height: 74px; border-radius: 999px; background: #FFFFFF; border: 3px solid var(--hg-olive); color: var(--hg-olive); margin-bottom: 18px; }
.hg-done .hg-done-art { width: 100%; max-width: 240px; border-radius: 14px; margin-bottom: 18px; }
.hg-done h1 { margin: 0; font-size: 24px; font-weight: 700; color: var(--hg-card-green); }
.hg-done .hg-done-note { margin: 12px 0 0; color: var(--hg-muted); font-size: 14px; line-height: 1.8; }
.hg-done .hg-done-rows { width: 100%; margin: 22px 0 0; }
.hg-done .hg-done-rows > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 12px 0; border-bottom: 1px solid #EEEEEE; font-size: 15px; text-align: start; }
.hg-done .hg-done-rows > div:last-child { border-bottom: 0; }
.hg-done .hg-done-rows dt { margin: 0; color: var(--hg-muted); font-weight: 400; flex: none; }
.hg-done .hg-done-rows dd { margin: 0; font-weight: 600; text-align: end; }
.hg-done .hg-done-amount { color: var(--hg-gold); font-weight: 700; direction: ltr; unicode-bidi: isolate; }
.hg-done .hg-btn-ghost { background: #FFFFFF; border: 1.5px solid var(--hg-olive); color: #3E4716; margin-top: 22px; }
.hg-done .hg-btn-ghost:hover, .hg-done .hg-btn-ghost:focus { background: var(--hg-olive-soft); color: #3E4716; }
