/* Cookie consent banner — markup: inc/consent/consent.php, behaviour: js/consent.js.
   Fixed to the bottom, so showing it never moves the page (CLS 0); while it is
   open, body gets matching bottom padding so nothing stays hidden under it.
   Both buttons share one style on purpose: neither choice may look preferred. */

.mg-consent {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    background: #111111;
    color: #e6e6e6;
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, .25);
}

.mg-consent[hidden] { display: none; }

.mg-consent:focus { outline: none; }
.mg-consent:focus-visible { outline: 2px solid #ffffff; outline-offset: -4px; }

.mg-consent__inner {
    box-sizing: border-box;
    max-width: 1170px;
    margin: 0 auto;
    padding: 16px 15px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.mg-consent__body { flex: 1 1 auto; min-width: 0; }

.mg-consent__title {
    margin: 0 0 2px;
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
}

.mg-consent__text { margin: 0; }

.mg-consent__text a {
    color: #ffffff;
    text-decoration: underline;
}
.mg-consent__text a:hover { color: #ed1c24; }

.mg-consent__actions {
    flex: 0 0 auto;
    display: flex;
    gap: 12px;
}

.mg-consent__btn {
    min-width: 132px;
    min-height: 44px;
    margin: 0;
    padding: 10px 20px;
    border: 2px solid #ffffff;
    border-radius: 0;
    background: transparent;
    color: #ffffff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}
.mg-consent__btn:hover { background: #ed1c24; border-color: #ed1c24; }
.mg-consent__btn:focus-visible { outline: 2px solid #ed1c24; outline-offset: 2px; }

body.mg-consent-open { padding-bottom: var(--mg-consent-h, 0px); }
body.mg-consent-open #back-to-top { bottom: calc(32px + var(--mg-consent-h, 0px)); }

@media (max-width: 767px) {
    .mg-consent { font-size: 13px; line-height: 1.4; }
    .mg-consent__inner {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding: 10px 16px;
    }
    .mg-consent__title { font-size: 14px; margin: 0; }
    .mg-consent__btn { flex: 1 1 0; min-width: 0; padding: 8px 10px; }
}

@media print {
    .mg-consent { display: none; }
    body.mg-consent-open { padding-bottom: 0; }
}

/* Footer links: privacy policy + "Ustawienia cookies" (footer.php). */
#site-footer .footer-left a,
#site-footer .footer-link {
    color: #b3b3b3;
    text-decoration: none;
    white-space: nowrap;
}
#site-footer .footer-link {
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    line-height: inherit;
    cursor: pointer;
}
#site-footer .footer-left a:hover,
#site-footer .footer-link:hover { color: #ffffff; }
