/* Serwis Cookies – style */

:root {
    --sc-accent:       #2563eb;
    --sc-accent-dark:  #1d4ed8;
    --sc-bg:           #ffffff;
    --sc-text:         #111827;
    --sc-muted:        #6b7280;
    --sc-border:       #e5e7eb;
    --sc-shadow:       0 -2px 24px rgba(0,0,0,.08);
    --sc-radius:       16px;
    --sc-font:         -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ── Baner ──────────────────────────────────────────────────────────────── */

.sc-banner {
    position:    fixed;
    left:        0;
    right:       0;
    z-index:     99998;
    background:  var(--sc-bg);
    box-shadow:  var(--sc-shadow);
    font-family: var(--sc-font);
    font-size:   15px;
    color:       var(--sc-text);
    animation:   sc-slide-up .35s cubic-bezier(.16,1,.3,1);
}

.sc-bottom {
    bottom:         0;
    border-top:     1px solid var(--sc-border);
    border-radius:  var(--sc-radius) var(--sc-radius) 0 0;
}
.sc-top {
    top:            0;
    border-bottom:  1px solid var(--sc-border);
    border-radius:  0 0 var(--sc-radius) var(--sc-radius);
}

.sc-banner[hidden] { display: none; }

@keyframes sc-slide-up {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.sc-banner__inner {
    display:         flex;
    flex-wrap:       wrap;
    align-items:     center;
    gap:             20px;
    max-width:       1200px;
    margin:          0 auto;
    padding:         20px 28px;
}

.sc-banner__text { flex: 1 1 320px; }

.sc-banner__title {
    display:       block;
    font-size:     17px;
    font-weight:   700;
    margin-bottom: 6px;
    letter-spacing: -.01em;
}

.sc-banner__desc {
    margin:      0;
    color:       var(--sc-muted);
    line-height: 1.6;
    font-size:   14px;
}

.sc-banner__actions {
    display:     flex;
    flex-wrap:   wrap;
    gap:         10px;
    flex:        0 0 auto;
    align-items: center;
}

/* ── Przyciski ──────────────────────────────────────────────────────────── */

.sc-btn {
    cursor:        pointer;
    border:        none;
    border-radius: 10px;
    padding:       11px 20px;
    font-size:     14px;
    font-weight:   600;
    font-family:   var(--sc-font);
    line-height:   1;
    transition:    background .15s, color .15s, box-shadow .15s, transform .1s;
    white-space:   nowrap;
}

.sc-btn:active { transform: scale(.97); }

.sc-btn--primary {
    background: var(--sc-accent);
    color:      #fff;
    box-shadow: 0 1px 4px rgba(37,99,235,.3);
}
.sc-btn--primary:hover {
    background: var(--sc-accent-dark);
    box-shadow: 0 4px 12px rgba(37,99,235,.4);
}

.sc-btn--secondary {
    background: #f3f4f6;
    color:      var(--sc-text);
    border:     1px solid var(--sc-border);
}
.sc-btn--secondary:hover {
    background: #e5e7eb;
}

.sc-btn--ghost {
    background:      transparent;
    color:           var(--sc-muted);
    text-decoration: underline;
    text-underline-offset: 3px;
    padding:         11px 6px;
}
.sc-btn--ghost:hover { color: var(--sc-text); }

/* ── Modal overlay ──────────────────────────────────────────────────────── */

.sc-modal-overlay {
    position:        fixed;
    inset:           0;
    z-index:         99999;
    background:      rgba(0,0,0,.45);
    backdrop-filter: blur(3px);
    display:         flex;
    align-items:     center;
    justify-content: center;
    padding:         16px;
    font-family:     var(--sc-font);
    animation:       sc-fade-in .2s ease;
}

.sc-modal-overlay[hidden] { display: none; }

@keyframes sc-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ── Modal ──────────────────────────────────────────────────────────────── */

.sc-modal {
    background:    var(--sc-bg);
    border-radius: var(--sc-radius);
    box-shadow:    0 8px 40px rgba(0,0,0,.16);
    width:         100%;
    max-width:     520px;
    max-height:    90vh;
    overflow-y:    auto;
    color:         var(--sc-text);
    animation:     sc-modal-in .25s cubic-bezier(.16,1,.3,1);
}

@keyframes sc-modal-in {
    from { opacity: 0; transform: translateY(12px) scale(.98); }
    to   { opacity: 1; transform: translateY(0)    scale(1); }
}

.sc-modal__title {
    font-size:     18px;
    font-weight:   700;
    margin:        0;
    padding:       24px 24px 0;
    letter-spacing: -.01em;
}

.sc-modal__categories {
    display:        flex;
    flex-direction: column;
    gap:            10px;
    padding:        20px 24px;
}

.sc-modal__row {
    display:       flex;
    align-items:   center;
    gap:           14px;
    padding:       16px;
    border:        1px solid var(--sc-border);
    border-radius: 12px;
    background:    #fafafa;
    transition:    border-color .15s, background .15s;
}

.sc-modal__row:has(input:checked) {
    border-color: var(--sc-accent);
    background:   #eff6ff;
}

.sc-modal__row-info {
    flex:           1;
    display:        flex;
    flex-direction: column;
    gap:            3px;
}

.sc-modal__row-info strong {
    font-weight: 600;
    font-size:   14px;
}
.sc-modal__row-info span {
    font-size:   13px;
    color:       var(--sc-muted);
    line-height: 1.5;
}

.sc-modal__footer {
    display:       flex;
    gap:           10px;
    padding:       0 24px 24px;
    flex-wrap:     wrap;
    border-top:    1px solid var(--sc-border);
    padding-top:   20px;
}

/* ── Toggle ─────────────────────────────────────────────────────────────── */

.sc-toggle {
    position:    relative;
    display:     inline-block;
    width:       46px;
    height:      26px;
    flex-shrink: 0;
}

.sc-toggle input { opacity: 0; width: 0; height: 0; }

.sc-toggle__slider {
    position:      absolute;
    inset:         0;
    background:    #d1d5db;
    border-radius: 26px;
    cursor:        pointer;
    transition:    background .2s;
}

.sc-toggle__slider::before {
    content:       '';
    position:      absolute;
    width:         20px;
    height:        20px;
    left:          3px;
    bottom:        3px;
    background:    #fff;
    border-radius: 50%;
    transition:    transform .2s;
    box-shadow:    0 1px 4px rgba(0,0,0,.2);
}

.sc-toggle input:checked   + .sc-toggle__slider            { background: var(--sc-accent); }
.sc-toggle input:checked   + .sc-toggle__slider::before    { transform: translateX(20px); }
.sc-toggle input:disabled  + .sc-toggle__slider            { background: var(--sc-accent); opacity: .55; cursor: not-allowed; }
.sc-toggle input:disabled  + .sc-toggle__slider::before    { transform: translateX(20px); }

/* ── Widżet "Zarządzaj" ─────────────────────────────────────────────────── */

#sc-reopen {
    position:        fixed;
    bottom:          16px;
    right:           16px;
    z-index:         99997;
    display:         inline-flex;
    align-items:     center;
    justify-content: center;
    width:           48px;
    height:          48px;
    background:      #16a34a;
    color:           #fff;
    border:          none;
    border-radius:   50%;
    padding:         0;
    cursor:          pointer;
    box-shadow:      0 2px 10px rgba(0,0,0,.2);
    transition:      background .15s, box-shadow .15s, transform .15s;
}

#sc-reopen:hover {
    background:  #15803d;
    box-shadow:  0 4px 16px rgba(0,0,0,.25);
    transform:   scale(1.1);
}

/* ── Link ────────────────────────────────────────────────────────────────── */

.sc-link {
    color:           var(--sc-accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.sc-link:hover { text-decoration: none; }

/* ── No-scroll ───────────────────────────────────────────────────────────── */

.sc-no-scroll { overflow: hidden; }

/* ── Responsywność ───────────────────────────────────────────────────────── */

@media (max-width: 640px) {
    .sc-banner__inner   { padding: 16px; gap: 14px; }
    .sc-banner__actions { width: 100%; flex-direction: column; }
    .sc-btn             { width: 100%; text-align: center; padding: 13px; }
    .sc-modal__footer   { flex-direction: column; }
    .sc-modal__footer .sc-btn { width: 100%; text-align: center; }
}
