/* Gift Card Marconi — only the isolated Gift Cards page */
#giftcards{--gc-ink:#243642;--gc-gold:#b9914b;--gc-border:#e0e5e9}
#giftcards .gc-hero{background:linear-gradient(112deg,#172c39,#304a4b);color:#fff;padding:24px;border-radius:20px;display:flex;justify-content:space-between;align-items:center;gap:20px;flex-wrap:wrap}
#giftcards .gc-hero h2{color:#fff;margin:4px 0;font-size:26px}
#giftcards .gc-hero p{color:#dce6e7;margin:0;font-size:13px}
#giftcards .gc-eyebrow{letter-spacing:2px;text-transform:uppercase;font-weight:800;font-size:11px;color:#e3c789}
#giftcards .gc-hero button{border-radius:10px;background:#e6c686;color:#213342;border:0;padding:12px 18px;font-weight:800;cursor:pointer}
#giftcards .gc-stats{display:grid;grid-template-columns:repeat(4,minmax(120px,1fr));gap:12px;margin:16px 0}
#giftcards .gc-stat{padding:17px 16px;background:#fff;border:1px solid var(--gc-border);border-radius:15px;box-shadow:0 5px 12px #152d3810}
#giftcards .gc-stat small{display:block;color:#657580;font-size:12px}
#giftcards .gc-stat strong{display:block;font-size:25px;color:#223942;margin-top:5px}
#giftcards .gc-stat span{display:block;font-size:11px;color:#687984;margin-top:2px}
#giftcards .gc-layout{display:grid;grid-template-columns:minmax(320px,1fr) minmax(360px,1.3fr);gap:16px;align-items:start}
#giftcards .gc-panel{background:#fff;border:1px solid var(--gc-border);border-radius:16px;padding:19px;margin-bottom:15px}
#giftcards .gc-panel h3{font-size:18px;margin:0 0 13px}
#giftcards .gc-grid2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
#giftcards label{display:flex;flex-direction:column;gap:6px;color:#4a5964;font-size:12px;font-weight:700}
#giftcards input,#giftcards select,#giftcards textarea{width:100%;box-sizing:border-box;padding:10px 11px;border:1px solid #cad3d7;border-radius:9px;background:#fff;color:#22323c;font:inherit;min-width:0}
#giftcards textarea{resize:vertical;min-height:54px}
#giftcards .gc-inline{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
#giftcards .gc-inline input{flex:1;min-width:120px}
#giftcards .gc-button{border:0;border-radius:9px;background:#23465a;color:white;padding:10px 13px;font-weight:750;cursor:pointer}
#giftcards .gc-button.soft{background:#f1f5f5;color:#314958;border:1px solid #cbd5db}
#giftcards .gc-button.gold{background:#ae8340;color:white}
#giftcards .gc-button:disabled{opacity:.5;cursor:not-allowed}
#giftcards .gc-hint{font-size:12px;line-height:1.5;color:#647887}
#giftcards .gc-result{margin:14px 0 0}
#giftcards .gc-cardinfo{border-radius:11px;border:1px solid #dae1e5;padding:14px}
#giftcards .gc-row{display:flex;gap:8px;align-items:center;justify-content:space-between;flex-wrap:wrap;margin-bottom:9px}
#giftcards .gc-state{display:inline-block;font-size:11px;font-weight:800;border-radius:999px;padding:4px 9px;background:#e5f6ee;color:#24674b}
#giftcards .gc-state.SCADUTA{background:#fff1db;color:#96581b}
#giftcards .gc-state.UTILIZZATA{background:#eaf0fb;color:#385d9c}
#giftcards .gc-state.ANNULLATA{background:#f1eff0;color:#767075}
#giftcards .gc-scroll{overflow-x:auto;max-width:100%}
#giftcards .gc-table{width:100%;border-collapse:collapse;text-align:left;font-size:12px}
#giftcards .gc-table th,#giftcards .gc-table td{padding:11px 9px;border-bottom:1px solid #edf1f3;white-space:nowrap}
#giftcards .gc-table th{font-size:11px;color:#647781;background:#f7f9fa}
#giftcards .gc-table tr:hover{background:#f8fbfc}
#giftcards .gc-table button{border:0;background:#eef3f5;padding:6px 8px;border-radius:6px;cursor:pointer;color:#264457}
#giftcards .gc-picture{width:100%;border-radius:13px;border:1px solid #e4e8eb}
#giftcards .gc-activity{margin:8px 0;padding:0;list-style:none}
#giftcards .gc-activity li{padding:7px 0;border-bottom:1px solid #eaeef1;font-size:12px;color:#5b6e7c}
#giftcards .gc-soft{padding:12px;background:#fbf8f0;border:1px solid #eee2c7;border-radius:9px;color:#786140}
#giftcards #gcNotice{min-height:19px;font-size:12px}
@media(max-width:1000px){#giftcards .gc-layout{grid-template-columns:1fr}}
@media(max-width:650px){#giftcards .gc-stats{grid-template-columns:repeat(2,minmax(0,1fr))}#giftcards .gc-grid2{grid-template-columns:1fr}#giftcards .gc-stat strong{font-size:22px}#giftcards .gc-panel{padding:15px}#giftcards .gc-hero h2{font-size:22px}}

/* The existing generic modal is outside #giftcards. */
#modal .gc-inline{display:flex;gap:9px;flex-wrap:wrap;margin-top:14px}
#modal .gc-button{border:0;border-radius:9px;background:#23465a;color:white;padding:10px 14px;font-weight:700;cursor:pointer}
#modal .gc-button.soft{background:#edf2f4;color:#263e4b}
#modal .gc-button.gold{background:#ae8340}
#modal .gc-hint{font-size:12px;color:#617583;line-height:1.5}
#modal .gc-soft{padding:10px;background:#fbf8f0;color:#786140;border-radius:9px}

#giftcards .gc-preview-gallery{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:13px}
#giftcards .gc-preview-gallery label{display:block;cursor:pointer;border:2px solid #e5e7eb;border-radius:12px;padding:9px}
#giftcards .gc-preview-gallery label:has(input:checked){border-color:#b99246;background:#fffaf0}
#giftcards .gc-preview-gallery img{width:100%;border-radius:7px;display:block;margin-top:8px}

#giftcards .gc-live-preview-img{min-height:300px;display:flex;align-items:center;justify-content:center;background:#f8f9fb;border-radius:14px;overflow:hidden;margin:12px 0}
#giftcards .gc-preview-placeholder{text-align:center;color:#8a713f;font-size:28px;padding:40px}
#giftcards .gc-preview-placeholder p{font-size:14px;color:#687386}

/* Gift Card Albano: lightweight searchable WhatsApp address book and paged archive. */
.gc-contact-wrap{position:relative;display:block;min-width:0}
.gc-contact-results{display:none;position:absolute;z-index:110;left:0;right:0;top:100%;background:#fff;
 border:1px solid #b7c6d4;border-radius:10px;box-shadow:0 8px 24px #15243630;max-height:238px;overflow-y:auto}
.gc-contact-results.gc-open{display:block}
.gc-contact-option{display:flex;flex-direction:column;align-items:flex-start;gap:3px;box-sizing:border-box;
 border:0;border-bottom:1px solid #e7edf1;background:white;width:100%;padding:10px 12px;
 cursor:pointer;text-align:left;color:#182837;font:inherit}
.gc-contact-option:hover,.gc-contact-option:focus-visible{background:#eef5fb}
.gc-contact-option small{font-size:12px;color:#567083}
.gc-more-wrap{text-align:center;margin:12px 0}


/* Mobile feedback and recovery states for manual WhatsApp delivery. */
#giftcards .gc-send-warning,#modal .gc-send-warning{
 display:block;padding:11px 13px;border:1px solid #e1bf78;background:#fff7e7;
 color:#684418;border-radius:10px;font-size:13px;line-height:1.5;margin:10px 0}
#modal .gc-send-warning input{width:auto;vertical-align:middle;margin-right:8px}
#giftcards button:disabled,#modal button:disabled{opacity:.55;cursor:progress}
@media(max-width:650px){
 #giftcards .gc-layout{grid-template-columns:minmax(0,1fr)}
 #giftcards .gc-inline>*{max-width:100%}
 #giftcards input,#giftcards select,#giftcards textarea,#modal #gcSendPhone{font-size:16px}
 #giftcards .gc-contact-option{min-height:48px}
 #giftcards .gc-live-preview-img{min-height:170px}
 #giftcards #gcLivePreview img{max-height:320px;object-fit:contain}
 #giftcards .gc-grid2{min-width:0}
 #giftcards .gc-contact-wrap{width:100%}
 #giftcards .gc-contact-results{max-height:38vh}
}
