/* ============================================================
   DNT Cookies — banner styles
   Consent Mode v2 by Doneta
   ============================================================ */

/* === Banner base (domyślnie: pełna szerokość na dole) === */
.cookie-consent-banner {
    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: 1em;
    z-index: 10000000;
    min-width:700px;
}

.cookie-consent-banner-info {
    margin: 0 0 1rem;
    overflow: auto;
    max-height: 200px;
    font-size: .7rem;
    line-height: 1.2rem;
}

#footer .cookie-consent-banner-info a {
    display: inline !important;
    color:#000 !important;
}
#footer  .cookie-consent-banner-info a:link, #footer .cookie-consent-banner-info a:visited
{
    color: #000 !important;
    text-decoration: underline !important;
}
.cookie-consent-banner-info table {
    border-collapse: collapse;
    margin-bottom: 1rem;
    border-color:#fafafa;
}

.cookie-consent-banner-info table tr td {
    border: solid 1px #f1f2f6;
    padding: .5rem 1rem;
}

.cookie-consent-banner-buttons {
    margin: 0 0 1rem;
    display: flex;
    flex-flow: row wrap;
    gap: 1rem;
}

.cookie-consent-banner-buttons button {
    transition: .4s all;
    background: #f1f2f6;
    color: #000;
    font-weight: 400;
    border: none;
    padding: .7rem 1rem;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    border-radius: .25rem;
}

.cookie-consent-banner-buttons button:hover {
    background: #ccc;
}

.cookie-consent-banner-buttons .cookie-consent-button.btn-success {
    background-color: #EF5350;
    color: #fff;
}

.cookie-consent-banner-buttons .cookie-consent-button.btn-success:hover {
    background-color: #424242;
}

.cookie-consent-options {
    display: none;
    justify-content: center;
    flex-flow: row wrap;
    gap: 1rem;
    margin: 0 0 1rem;
}

.cookie-consent-options label {
    display: flex;
    align-items: center;
    gap: .4rem;
    cursor: pointer;
}


/* ============================================================
   Warianty pozycji — narożniki
   ============================================================ */
.cookie-consent-banner.pos-bottom-right,
.cookie-consent-banner.pos-bottom-left,
.cookie-consent-banner.pos-top-right,
.cookie-consent-banner.pos-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);
}

.cookie-consent-banner.pos-bottom-right { bottom: 1.5rem; right: 1.5rem; }
.cookie-consent-banner.pos-bottom-left  { bottom: 1.5rem; left:  1.5rem; }
.cookie-consent-banner.pos-top-right    { top:    1.5rem; right: 1.5rem; }
.cookie-consent-banner.pos-top-left     { top:    1.5rem; left:  1.5rem; }


/* ============================================================
   Wariant pozycji — środek
   ============================================================ */
.cookie-consent-banner.pos-center {
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    bottom: auto;
    right: auto;
    max-width: 600px;
    border-radius: .5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, .25);
}


/* ============================================================
   Overlay
   ============================================================ */
.dnt-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999999;
}

.dnt-overlay.overlay-white { background: rgba(255, 255, 255, .78); }
.dnt-overlay.overlay-dark  { background: rgba(0,   0,   0,   .55); }


/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1000px) {
    .cookie-consent-banner-info { max-height: 200px; }
}

@media (max-width: 700px) {
    /* Przyciski — pełna szerokość, "Akceptuj" na górze */
    .cookie-consent-banner-buttons button                          { width: 100%; order: 1; }
    .cookie-consent-banner-buttons .cookie-consent-button.btn-success { order: 0; }

    /* Narożniki na mobile — rozciągnij do marginesów */
    .cookie-consent-banner.pos-bottom-right,
    .cookie-consent-banner.pos-bottom-left,
    .cookie-consent-banner.pos-top-right,
    .cookie-consent-banner.pos-top-left {
        left: 1rem;
        right: 1rem;
        max-width: none;
    }
    .cookie-consent-banner.pos-bottom-right,
    .cookie-consent-banner.pos-bottom-left { bottom: 1rem; }
    .cookie-consent-banner.pos-top-right,
    .cookie-consent-banner.pos-top-left    { top: 1rem; }

    /* Środek na mobile */
    .cookie-consent-banner.pos-center {
        width: calc(100% - 2rem);
        max-width: none;
        transform: translate(-50%, -50%);
    }
}

@media (max-height: 700px) {
    .cookie-consent-banner        { position: absolute; top: 0; bottom: 0; overflow: auto; }
    .cookie-consent-banner-info   { min-height: 100px; }
    .cookie-consent-options       { gap: .25rem; }
}

@media (orientation: landscape) {
    .cookie-consent-banner-buttons button { width: auto; }
}
