.fc-card, #cookie-dialog, #cookie-toast {
    box-sizing: border-box;
    background: #171e2a;
    color: white;
    font-family: Onest, "Segoe UI", system-ui, sans-serif;
    text-align: left;
}
.fc-card[hidden], #cookie-toast[hidden], #cookie-dialog:not([open]) { display: none; }
.fc-card {
    position: fixed; left: 16px; bottom: 16px; z-index: 99999;
    width: 300px; max-width: calc(100vw - 32px); padding: 16px;
    border: 1px solid rgba(255,255,255,.08); border-radius: 5px 19px 19px 19px;
    box-shadow: 0 20px 50px -15px rgba(0,0,0,.8), 0 0 0 1px rgba(132,86,255,.12);
}
.fc-summary, .fc-card-actions, .fc-actions { display: flex; gap: 12px; }
.fc-summary { align-items: flex-start; min-width: 0; }
.fc-card-actions { align-items: center; justify-content: space-between; }
.fc-icon {
    display: grid; place-items: center; flex: none; width: 32px; height: 32px;
    background: rgba(132,86,255,.22); color: #b79dff; border-radius: 4px 9px 9px 9px;
}
.fc-message { margin: 0 0 12px; font-size: 13px; line-height: 1.45; font-weight: 500; color: rgba(255,255,255,.6); }
.fc-card .short { display: none; }
.fc-card .fc-link { color: #cbb6ff; font-size: 13px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.fc-card .fc-link:hover { color:white; }
.fc-primary, .fc-outline {
    cursor: pointer; border-radius: 100px; font-family: inherit; font-weight: 600; color: white;
}
.fc-primary { border: 0; background: linear-gradient(180deg,#9466ff,#7340ff); box-shadow: 0 12px 26px -12px rgba(132,86,255,.65); }
.fc-card .fc-primary { height: 34px; padding: 0 18px; font-size: 13px; }
#cookie-dialog {
    position: fixed; inset: 0; margin: auto; z-index: 100000;
    width: min(440px, calc(100% - 32px)); max-width: none;
    height: fit-content; max-height: calc(100dvh - 32px); overflow: auto;
    padding: 22px; border-radius: 5px 20px 20px 20px; border: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 30px 80px -20px rgba(0,0,0,.9), 0 0 0 1px rgba(132,86,255,.15);
}
#cookie-dialog::backdrop { background: rgba(5,8,14,.7); backdrop-filter: blur(4px); }
#cookie-dialog::before { content:""; position:absolute; top:0; left:20%; width:60%; height:1px; background:linear-gradient(90deg,transparent,rgba(132,86,255,.6),transparent); }
#cookie-heading { margin: 0 34px 6px 0; font-size: 19px; line-height: 1.3; font-weight: 600; }
#cookie-heading span { color: #8456ff; }
#cookie-intro { margin: 0 0 16px; font-size: 13px; line-height: 1.5; color: rgba(255,255,255,.55); }
.fc-close {
    position:absolute; top:14px; right:14px; width:30px; height:30px; box-sizing:border-box;
    display:flex; align-items:center; justify-content:center; padding:0; border-radius:50%;
    border:1px solid rgba(255,255,255,.1); background:rgba(255,255,255,.04); color:rgba(255,255,255,.7); cursor:pointer;
}
.fc-close svg { display: block; }
.fc-close:hover { color: white; border-color: rgba(132,86,255,.5); }
.fc-required { padding:4px 0 10px; margin-bottom:14px; border-bottom:1px solid #3c4353; }
.fc-options { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
.fc-row { min-width:0; flex-direction:column; display:flex; align-items:flex-start; justify-content:space-between; gap:14px; margin:0; padding:10px 12px; background:#141a25; border:1px solid #222c3d; border-radius:14px; cursor:pointer; }
.fc-row strong, .fc-required strong { display:block; margin-bottom:3px; font-size:14px; font-weight:600; }
.fc-required small { display:inline-block; margin-left:6px; padding:2px 7px; border-radius:100px; background:rgba(132,86,255,.18); color:#cbb6ff; font-size:10.5px; vertical-align:1px; }
.fc-detail { display:block; color:rgba(255,255,255,.5); font-size:12px; line-height:1.4; }
.fc-row input {
    appearance:none; flex:none; position:relative; width:40px; height:22px; margin:2px 0 0; padding:0;
    border:0; border-radius:100px; background:#2a3346; cursor:pointer;
}
.fc-row input::after { content:""; position:absolute; top:3px; left:3px; width:16px; height:16px; border-radius:50%; background:white; transition:transform .2s; }
.fc-row input:checked { background:linear-gradient(180deg,#9466ff,#7340ff); }
.fc-row input:checked::after { transform:translateX(18px); }
.fc-row input:disabled { opacity:.55; }
.fc-actions { gap:10px; margin-top:16px; }
.fc-actions button { flex:1; height:42px; font-size:14px; }
.fc-outline { background:#141a25; border:1px solid #222c3d; }
.fc-outline:hover { background:#222c3d; }
.fc-card :focus-visible, #cookie-dialog :focus-visible { outline:2px solid #cbb6ff; outline-offset:2px; }
#cookie-toast { position:fixed; top:16px; left:50%; transform:translateX(-50%); z-index:100001; border:1px solid rgba(132,86,255,.35); color:#cbb6ff; font-size:13px; padding:8px 14px; border-radius:100px; }
@media (min-width:768px) and (max-width:1024px) {
    .fc-card { width:270px; padding:14px; } .fc-message { font-size:12.5px; } .fc-card .fc-primary { height:32px; padding:0 16px; }
}
@media (max-width:767px) {
    .fc-card { left:12px; bottom:12px; width:max-content; max-width:calc(100vw - 24px); padding:10px 10px 10px 12px; display:flex; align-items:center; gap:10px; overflow:hidden; }
    .fc-summary { align-items:center; gap:8px; } .fc-icon { width:26px; height:26px; border-radius:4px 8px 8px 8px; } .fc-icon svg { width:15px; height:15px; }
    .fc-card .long { display:none; } .fc-card .short { display:inline; }
    .fc-message { min-width:0; margin:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; font-size:12px; }
    .fc-card-actions { flex:none; gap:10px; } .fc-card .fc-link { font-size:12px; }
    .fc-card .fc-primary { height:30px; padding:0 12px; font-size:12px; }
    #cookie-dialog { inset:auto 0 max(10px,env(safe-area-inset-bottom)); width:calc(100% - 20px); max-height:calc(100dvh - 32px); padding:18px; border-radius:5px 18px 18px 18px; }
    #cookie-dialog[open] { animation:fc-rise .18s ease-out; }
    #cookie-heading { font-size:17px; } .fc-actions button { height:40px; font-size:13px; }
}
@media (max-width:340px) { .fc-message { display:none; } }
@keyframes fc-rise { from {transform:translateY(24px);opacity:0} to {transform:none;opacity:1} }
@media (prefers-reduced-motion:reduce) { #cookie-dialog[open], .fc-row input::after { animation:none; transition:none; } }
/* Match the reference dimensions when the storefront applies its desktop body zoom. */
@media (min-width:1180px) and (hover:hover) and (pointer:fine) {
    .fc-card, #cookie-dialog, #cookie-toast { zoom:calc(1 / 0.9); }
}

@media (min-width:768px) {
    .fc-card { display:grid; grid-template-columns:1fr auto; gap:6px 12px; align-items:center; }
    .fc-summary { grid-column:1/-1; margin-bottom:2px; }
    .fc-message { margin:0; }
    .fc-card-actions { display:contents; }
    .fc-card .fc-link { justify-self:start; }
}
