/* Store Gift Cards – storefront */

/* Product form */
.sgc-form__layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: start; }
@media (max-width: 900px) { .sgc-form__layout { grid-template-columns: 1fr; } .sgc-form__preview { order: -1; } }
.sgc-form fieldset.sgc-field { border: 0; padding: 0; margin: 0 0 1.5em; min-width: 0; }
.sgc-form legend { font-weight: 600; margin-bottom: .6em; padding: 0; }
.sgc-form label { display: block; margin-bottom: .3em; }
.sgc-form input[type="text"], .sgc-form input[type="email"], .sgc-form input[type="number"], .sgc-form input[type="date"], .sgc-form textarea { width: 100%; box-sizing: border-box; }
.sgc-form p { margin: 0 0 1em; }
.sgc-form [hidden] { display: none !important; }
.sgc-optional { font-weight: 400; opacity: .7; font-size: .9em; }
.sgc-counter { display: block; text-align: right; opacity: .6; font-size: .85em; }
.sgc-bonus-note { margin-top: .5em; font-weight: 600; color: #2e7d32; }

.sgc-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.sgc-pill { display: inline-block; margin: 0; cursor: pointer; }
.sgc-pill input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sgc-pill span { display: inline-block; padding: .55em 1.1em; border: 1px solid currentColor; border-radius: 999px; opacity: .75; transition: opacity .15s, background .15s; }
.sgc-pill input:checked + span { opacity: 1; background: #1f1f1f; border-color: #1f1f1f; color: #fff; }
.sgc-pill input:focus-visible + span { outline: 2px solid #1f1f1f; outline-offset: 2px; }
.sgc-custom-amount { margin-top: .8em; }

.sgc-swatches { display: flex; flex-wrap: wrap; gap: 12px; }
.sgc-swatch { display: flex !important; flex-direction: column; align-items: center; gap: 4px; cursor: pointer; margin: 0 !important; width: 92px; text-align: center; }
.sgc-swatch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sgc-swatch__chip { display: block; width: 56px; height: 36px; border-radius: 6px; border: 2px solid transparent; background-size: cover; background-position: center; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
.sgc-swatch input:checked + .sgc-swatch__chip { outline: 2px solid #1f1f1f; outline-offset: 2px; }
.sgc-swatch input:focus-visible + .sgc-swatch__chip { outline: 2px dashed #1f1f1f; outline-offset: 2px; }
.sgc-swatch__name { font-size: .8em; line-height: 1.2; letter-spacing: normal !important; overflow-wrap: anywhere; }
.sgc-pill span { white-space: nowrap; }

.sgc-radio { display: flex !important; gap: .5em; align-items: center; margin: 0 0 .4em !important; padding: 0 !important; }
.sgc-radio input { margin: 0 !important; }
.sgc-recipient { margin-top: .8em; }
.sgc-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.sgc-actions .quantity { margin: 0; }

.sgc-form__preview { position: sticky; top: 24px; }
.sgc-preview-label { font-size: .8em; text-transform: uppercase; letter-spacing: .1em; opacity: .6; margin: 0 0 .5em; }
.sgc-form__preview .sgc-card { box-shadow: 0 10px 30px rgba(0,0,0,.12); }
.sgc-card { word-break: break-word; }

/* Redeem box (cart / checkout) */
.sgc-redeem { margin: 0 0 1.2em; }
.sgc-redeem__details { border: 1px solid rgba(0,0,0,.12); border-radius: 6px; padding: .8em 1em; }
.sgc-redeem__title { cursor: pointer; font-weight: 600; }
.sgc-redeem__form { display: flex; gap: 8px; margin-top: .8em; }
.sgc-redeem__form input { flex: 1 1 auto; min-width: 0; text-transform: uppercase; }
.sgc-redeem__form .button { flex: 0 0 auto; white-space: nowrap; }
.sgc-redeem__applied { list-style: none; margin: .8em 0 0; padding: 0; }
.sgc-redeem__applied li { display: flex; justify-content: space-between; gap: 8px; align-items: center; padding: .3em 0; border-top: 1px dashed rgba(0,0,0,.12); font-size: .95em; }
.sgc-redeem__remove { background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; cursor: pointer; font-size: .9em; }
.sgc-redeem__wallet-label { display: flex; gap: .5em; align-items: center; margin-top: .8em; }
.sgc-redeem__message { margin: .6em 0 0; font-size: .95em; }
.sgc-redeem__message:empty { display: none; }
.sgc-redeem__message.is-error, .sgc-balance__result.is-error { color: #b32d2e; }
.sgc-redeem__message.is-success, .sgc-balance__result.is-success { color: #2e7d32; }
.sgc-redeem.is-busy { opacity: .6; }
.sgc-total-row td { color: #2e7d32; }

/* Blocks */
.sgc-blocks { padding: 12px 16px; }
.sgc-blocks__title { font-weight: 600; margin: 0 0 .5em; }
.sgc-blocks__total { margin: .6em 0 0; font-weight: 600; color: #2e7d32; }

/* Balance checker */
.sgc-balance { max-width: 520px; margin: 1em 0; }
.sgc-balance label { font-weight: 600; }
.sgc-balance__result { margin: .6em 0 0; font-weight: 600; }

/* My Account */
.sgc-account__section { margin-bottom: 2.5em; }
.sgc-account__balance { font-size: 1.15em; }
.sgc-account__hint { opacity: .75; font-size: .9em; }
.sgc-account__transfer { margin: 1.2em 0; max-width: 560px; }
.sgc-account__transfer label { font-weight: 600; display: block; }
.sgc-account__pager { display: flex; gap: 8px; }
.sgc-account code { font-size: .95em; letter-spacing: .5px; white-space: nowrap; }
