/* ============================================================
   okienko-cookies.pl — banner.css v1.3
   Port 1:1 z dnt_cookies.css — nowe nazwy klas, te same wartości.
   Kolor "Akceptuj": #cc0645 (brand) zamiast #EF5350.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700&display=swap');

/* ============================================================
   BANNER ROOT — domyślnie ukryty, JS pokazuje
   ============================================================ */
#okc {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 -2px 10px #888;
    color: #000;
    padding: 1.5rem 1rem 1rem;
    font-size: 0.875rem;
    line-height: 1.4;
    font-family: 'Inter', sans-serif;
    z-index: 10000000;
    min-width: 700px;
}

/* ============================================================
   TREŚĆ
   ============================================================ */
#okc .okc-text {
    margin: 0 0 1rem;
    overflow: auto;
    max-height: 200px;
    font-size: .8rem;
    line-height: 1.2rem;
}

/* Domyślnie ukryta — JS dodaje klasę is-visible */
#okc .okc-text--full {
    display: none !important;
}
#okc .okc-text--full.is-visible {
    display: block !important;
}

/* Linki w treści bannera */
#okc .okc-text strong {
    font-weight: 700;
}
#okc .okc-text a {
    display: inline !important;
    color: #000 !important;
    text-decoration: underline !important;
}
#okc .okc-text a:link,
#okc .okc-text a:visited {
    color: #000 !important;
    text-decoration: underline !important;
}

/* Tabele (lista kategorii cookies) */
#okc .okc-text table {
    border-collapse: collapse;
    margin-bottom: 1rem;
    border-color: #fafafa;
}
#okc .okc-text table tr td {
    border: solid 1px #f1f2f6;
    padding: .5rem 1rem;
}

/* ============================================================
   PRZYCISKI
   ============================================================ */
#okc .okc-btns {
    margin: 0 0 1rem;
    display: flex;
    flex-flow: row wrap;
    gap: 1rem;
}

#okc .okc-btns .okc-btn {
    transition: .4s all;
    background: #f1f2f6;
    color: #000;
    font-weight: 400;
    border: none;
    padding: .2rem .6rem;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    border-radius: .25rem;
    line-height: 1;
    font-family: inherit;
    box-sizing: border-box;
    font-size:.8rem;
}

#okc .okc-btns .okc-btn:hover {
    background: #ccc;
}

/* Akceptuj wszystkie */
#okc .okc-btns .okc-btn--primary {
    background-color: #cc0645;
    color: #fff;
    font-size:0.9rem;
    padding: .7rem 1rem;
    line-height: 1.2;
}
#okc .okc-btns .okc-btn--primary:hover {
    background-color: #424242;
    color: #fff;
}

/* Ukryty (Zapisz zaznaczone — widoczny dopiero po "Dowiedz się więcej") */
#okc .okc-hidden {
    display: none !important;
}

/* ============================================================
   OPCJE — checkboxy (domyślnie ukryte)
   ============================================================ */
#okc .okc-options {
    display: none !important;
    justify-content: center;
    flex-flow: row wrap;
    gap: 1rem;
    margin: 0 0 1rem;
}
#okc .okc-options.is-visible {
    display: flex !important;
}

#okc .okc-label {
    display: flex;
    align-items: center;
    gap: .4rem;
    cursor: pointer;
}

/* ============================================================
   OVERLAY
   ============================================================ */
#okc-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999999;
    pointer-events: none;
}
#okc-overlay.okc-overlay--white { background: rgba(255, 255, 255, .78); }
#okc-overlay.okc-overlay--dark  { background: rgba(0,   0,   0,   .55); }
#okc-overlay.is-visible {
    display: block;
    pointer-events: auto;
}

/* ============================================================
   POZYCJE NAROŻNE
   ============================================================ */
#okc.okc--bottom-right,
#okc.okc--bottom-left,
#okc.okc--top-right,
#okc.okc--top-left {
    left: auto;
    right: auto;
    bottom: auto;
    top: auto;
    max-width: 420px;
    border-radius: .5rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, .18);
}
#okc.okc--bottom-right { bottom: 1.5rem; right: 1.5rem; }
#okc.okc--bottom-left  { bottom: 1.5rem; left:  1.5rem; }
#okc.okc--top-right    { top:    1.5rem; right: 1.5rem; }
#okc.okc--top-left     { top:    1.5rem; left:  1.5rem; }

/* ============================================================
   POZYCJA ŚRODEK
   ============================================================ */
#okc.okc--center {
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    bottom: auto;
    right: auto;
    min-width: unset;
    max-width: 600px;
    border-radius: .5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, .25);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1000px) {
    #okc .okc-text { max-height: 200px; }
}

@media (max-width: 700px) {
    #okc { min-width: unset; }
    #okc .okc-btns .okc-btn          { width: 100%; order: 1; }
    #okc .okc-btns .okc-btn--primary  { order: 0; }

    #okc.okc--bottom-right,
    #okc.okc--bottom-left,
    #okc.okc--top-right,
    #okc.okc--top-left {
        left: 1rem;
        right: 1rem;
        max-width: none;
    }
    #okc.okc--bottom-right,
    #okc.okc--bottom-left { bottom: 1rem; }
    #okc.okc--top-right,
    #okc.okc--top-left    { top: 1rem; }

    #okc.okc--center {
        width: calc(100% - 2rem);
        max-width: none;
        transform: translate(-50%, -50%);
    }
}

@media (max-height: 700px) {
    #okc           { position: absolute; top: 0; bottom: 0; overflow: auto; }
    #okc .okc-text { min-height: 100px; }
    #okc .okc-options { gap: .25rem; }
}

@media (orientation: landscape) {
    #okc .okc-btns .okc-btn { width: auto; }
}

/* ============================================================
   STICKY REOPEN BUTTON
   ============================================================ */
.okc-sticky {
    position: fixed;
    bottom: 1.25rem;
    display: none;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: #cc0645;
    border: none;
    cursor: pointer;
    z-index: 9999999;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .35);
    padding: 0;
    transition: background .2s, transform .15s;
}
.okc-sticky svg {
    width: 1.5rem;
    height: 1.5rem;
    fill: #fff;
    display: block;
}
.okc-sticky--bottom-left  { left:  1.25rem; }
.okc-sticky--bottom-right { right: 1.25rem; }
.okc-sticky.is-visible    { display: flex; }
.okc-sticky:hover         { background: #9a0534; transform: scale(1.08); }
