/*
 * Pneuservis Šišmiš – napojení promo lišty (Nastavení › Lišty) na design webu.
 * Barvu pozadí a textu lišty nastavuje administrace (inline styl), tady je jen
 * typografie, rozložení a tlačítko ve stylu webu. Vzhled pop-up oken je ve
 * skinu „Šišmiš“ v modulu Pop-up (editovatelný v administraci).
 */

/* Lišta nahoře je v toku stránky nad hlavičkou – nepřekrývá telefon a menu. */
#ace-bars-root { position: relative; z-index: 1001; }
.ace-promo-bar.is-top { position: relative; top: auto; }

.ace-promo-bar {
    font-family: 'Barlow', Arial, Helvetica, sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.35;
    padding: 10px 48px 10px 20px;
    gap: 20px;
    box-shadow: none;
    border-bottom: 3px solid #fd6b1c;
}
.ace-promo-bar.is-bottom { border-bottom: 0; border-top: 3px solid #fd6b1c; }
.ace-promo-bar__text { margin: 0; }
.ace-promo-bar__text::before {
    content: '';
    display: inline-block;
    width: 10px;
    height: 10px;
    margin-right: 10px;
    background: #fd6b1c;
    transform: rotate(45deg) translateY(-2px);
}
.ace-promo-bar__cta {
    flex: 0 0 auto;
    padding: 0 22px;
    border-radius: 0;
    background: #fd6b1c;
    color: #fff !important;
    font-size: 14px;
    font-weight: 700;
    line-height: 38px;
    letter-spacing: .04em;
    text-transform: uppercase;
    text-decoration: none !important;
    transition: background-color .2s;
}
.ace-promo-bar__cta:hover,
.ace-promo-bar__cta:focus { background: #e45102; }
.ace-promo-bar__close {
    position: absolute;
    top: 50%;
    right: 12px;
    width: 32px;
    height: 32px;
    margin-top: -16px;
    padding: 0;
    font-size: 24px;
    opacity: .75;
    transition: opacity .2s;
}
.ace-promo-bar__close:hover { opacity: 1; }

@media (max-width: 640px) {
    .ace-promo-bar {
        flex-wrap: wrap;
        gap: 8px 14px;
        padding: 10px 44px 10px 14px;
        font-size: 14px;
        text-align: left;
        justify-content: flex-start;
    }
    .ace-promo-bar__cta { line-height: 32px; padding: 0 16px; font-size: 13px; }
}

/* ------------------------------------------------------------------ */
/* Cookie lišta (Nastavení › Lišty › Cookie lišta) – vzhled webu Šišmiš */
/* ------------------------------------------------------------------ */
.ace-cookie-bar {
    left: 24px;
    right: auto;
    bottom: 24px;
    width: calc(100% - 48px);
    max-width: 440px;
    margin: 0;
    padding: 26px 28px 24px;
    background: #fff;
    border: 0;
    border-top: 5px solid #fd6b1c;
    border-radius: 0;
    box-shadow: 0 24px 60px rgba(1, 30, 50, .28);
    font-family: 'Barlow', Arial, Helvetica, sans-serif;
    color: #222;
    animation: sismisCookieIn .35s ease-out;
}
.ace-cookie-bar::before {
    content: 'Cookies na našem webu';
    display: block;
    margin: 0 0 10px;
    padding-left: 38px;
    min-height: 28px;
    line-height: 28px;
    font-size: 22px;
    font-weight: 800;
    color: #013e64;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fd6b1c' d='M12 2a10 10 0 1 0 10 10 4 4 0 0 1-4.5-4A4 4 0 0 1 13.4 3.2 3 3 0 0 1 12 2z'/%3E%3Ccircle cx='8' cy='9' r='1.4' fill='%23fff'/%3E%3Ccircle cx='15.5' cy='15' r='1.4' fill='%23fff'/%3E%3Ccircle cx='9' cy='15.5' r='1.1' fill='%23fff'/%3E%3C/svg%3E") left center / 28px 28px no-repeat;
}
.ace-cookie-bar--modal {
    left: 50%;
    top: 50%;
    bottom: auto;
    max-width: 560px;
    transform: translate(-50%, -50%);
    animation: none;
}
.ace-cookie-backdrop { background: rgba(1, 30, 50, .6); }

.ace-cookie-bar__text {
    margin: 0 0 18px;
    font-size: 16px;
    line-height: 1.5;
    color: #444;
}
.ace-cookie-bar .ace-cookie-btn--link {
    display: inline;
    padding: 0;
    border: 0;
    background: none;
    color: #013e64;
    font-size: inherit;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
    text-transform: none;
    letter-spacing: normal;
    min-height: 0;
}
.ace-cookie-bar .ace-cookie-btn--link:hover { color: #fd6b1c; }

.ace-cookie-bar__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.ace-cookie-btn {
    min-height: 46px;
    padding: 0 16px;
    border: 2px solid #013e64;
    border-radius: 0;
    background: #fff;
    color: #013e64;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color .2s, color .2s, border-color .2s;
}
.ace-cookie-btn:hover,
.ace-cookie-btn:focus-visible { background: #013e64; color: #fff; }
.ace-cookie-btn:focus-visible { outline: 3px solid rgba(253, 107, 28, .5); outline-offset: 2px; }
.ace-cookie-btn--primary {
    grid-column: 1 / -1;
    border-color: #fd6b1c;
    background: #fd6b1c;
    color: #fff;
    min-height: 52px;
    font-size: 15px;
}
.ace-cookie-btn--primary:hover,
.ace-cookie-btn--primary:focus-visible { border-color: #e45102; background: #e45102; color: #fff; }

/* Nastavení kategorií – přepínače */
.ace-cookie-settings {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #d7e1e7;
}
.ace-cookie-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 0;
    padding: 10px 0;
    border-bottom: 1px solid #eff4f7;
    font-size: 16px;
    font-weight: 600;
    color: #013e64;
    cursor: pointer;
}
.ace-cookie-row input {
    order: 2;
    flex: 0 0 auto;
    -webkit-appearance: none;
    appearance: none;
    position: relative;
    width: 46px;
    height: 26px;
    margin: 0;
    border-radius: 13px;
    background: #bbc6ce;
    cursor: pointer;
    transition: background-color .2s;
}
.ace-cookie-row input::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
    transition: transform .2s;
}
.ace-cookie-row input:checked { background: #fd6b1c; }
.ace-cookie-row input:checked::after { transform: translateX(20px); }
.ace-cookie-row input:disabled { background: #013e64; opacity: .55; cursor: not-allowed; }
.ace-cookie-row input:focus-visible { outline: 3px solid rgba(253, 107, 28, .5); outline-offset: 2px; }
.ace-cookie-settings .ace-cookie-btn { width: 100%; margin-top: 14px; }

/* Znovuotevření nastavení */
.ace-cookie-reopen {
    left: 20px;
    right: auto;
    bottom: 20px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px 9px 12px;
    border: 0;
    border-radius: 999px;
    background: #013e64;
    color: #fff;
    font-family: 'Barlow', Arial, Helvetica, sans-serif;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 6px 18px rgba(1, 30, 50, .3);
    transition: background-color .2s;
}
.ace-cookie-reopen::before {
    content: '';
    width: 18px;
    height: 18px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fd6b1c' d='M12 2a10 10 0 1 0 10 10 4 4 0 0 1-4.5-4A4 4 0 0 1 13.4 3.2 3 3 0 0 1 12 2z'/%3E%3Ccircle cx='8' cy='9' r='1.4' fill='%23013e64'/%3E%3Ccircle cx='15.5' cy='15' r='1.4' fill='%23013e64'/%3E%3C/svg%3E") center / contain no-repeat;
}
.ace-cookie-reopen:hover { background: #fd6b1c; }
.ace-cookie-reopen:hover::before { filter: brightness(0) invert(1); }
/* lišta otevřená = tlačítko schovat */
#ace-cookie-root:not([style*="none"]) ~ .ace-cookie-reopen { display: none; }

@keyframes sismisCookieIn {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 640px) {
    .ace-cookie-bar {
        left: 0;
        bottom: 0;
        width: 100%;
        max-width: none;
        padding: 20px 18px 18px;
        box-shadow: 0 -12px 40px rgba(1, 30, 50, .3);
    }
    .ace-cookie-bar::before { font-size: 20px; }
    .ace-cookie-bar__text { font-size: 15px; margin-bottom: 14px; }
    .ace-cookie-bar--modal { top: auto; bottom: 0; left: 0; transform: none; }
    .ace-cookie-reopen { left: 12px; bottom: 12px; }
}
@media (prefers-reduced-motion: reduce) {
    .ace-cookie-bar { animation: none; }
}

/* Cookie lišta musí jít ovládat i když je otevřený pop-up (overlay má z-index 99999) */
#ace-cookie-root .ace-cookie-bar { z-index: 100001; }
#ace-cookie-root .ace-cookie-backdrop { z-index: 100000; }

/* Ikony Font Awesome jako inline SVG (místo 1,2 MB fontawesome.all.min.js) */
.svg-inline--fa { display: inline-block; height: 1em; overflow: visible; vertical-align: -.125em; font-size: inherit; }

/* Přístupnost – kontrast textů (WCAG AA); oranžová značky beze změny */
.section-title span { color: #666666; }
.page-content th, .article-full__content th { color: #555555; }
.uk-text-meta { color: #666666; }
.page-footer-bottom a { color: #9fb3c2; }
.page-footer-bottom a:hover { color: #ffffff; }
#formular .uk-text-small a { text-decoration: underline; }
#formular { scroll-margin-top: 130px; }
