/* ==========================================================
   GDPR — cookie lišta, nastavenia cookies, blokovaný externý
   obsah (mapa) a súhlas v kontaktnom formulári.
   Spoločné pre všetky stránky; logika je v js/cookie-consent.js.
   ========================================================== */

.cc-banner,
.cc-modal,
.cc-placeholder {
    font-family: var(--body-font, "Inter", Helvetica, Arial, sans-serif);
    font-size: 14px;
    line-height: 1.6;
    color: #555555;
    -webkit-font-smoothing: antialiased;
}

.cc-banner[hidden],
.cc-modal[hidden],
.cc-blocked {
    display: none !important;
}

.cc-title {
    margin: 0 0 8px;
    font-family: var(--heading-font, "Urbanist", Helvetica, Arial, sans-serif);
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
    color: #000000;
}

.cc-text {
    margin: 0 0 18px;
    color: #555555;
}

.cc-text a,
.cc-placeholder a {
    color: #000000;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* --- Tlačidlá --- */
.cc-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.cc-btn {
    flex: 1 1 auto;
    min-height: 44px;
    padding: 10px 18px;
    border: 1.5px solid #000000;
    border-radius: var(--btn-rounded, 8px);
    font: inherit;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

.cc-btn-solid {
    background: #000000;
    color: #ffffff;
}

.cc-btn-solid:hover {
    background: #333333;
    border-color: #333333;
}

.cc-btn-outline {
    background: #ffffff;
    color: #000000;
}

.cc-btn-outline:hover {
    background: #f2f2f2;
}

.cc-btn-link {
    flex: 0 0 auto;
    min-height: 44px;
    padding: 10px 6px;
    border: 0;
    background: none;
    font: inherit;
    font-weight: 500;
    color: #000000;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.cc-btn:focus-visible,
.cc-btn-link:focus-visible,
.cc-close:focus-visible,
.cc-switch input:focus-visible + .cc-slider {
    outline: 2px solid #000000;
    outline-offset: 2px;
}

/* --- Lišta --- */
.cc-banner {
    position: fixed;
    left: 24px;
    bottom: 24px;
    z-index: 99990;
    width: calc(100% - 48px);
    max-width: 460px;
    padding: 24px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, .2), 0 0 0 1px rgba(0, 0, 0, .06);
    animation: cc-rise .45s cubic-bezier(.22, 1, .36, 1) both;
}

@keyframes cc-rise {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: none; }
}

/* --- Okno s nastaveniami --- */
.cc-lock {
    overflow: hidden;
}

.cc-modal {
    position: fixed;
    inset: 0;
    z-index: 99991;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(0, 0, 0, .55);
}

.cc-dialog {
    position: relative;
    width: 100%;
    max-width: 560px;
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    padding: 28px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, .3);
}

.cc-dialog .cc-title {
    padding-right: 40px;
    font-size: 22px;
}

.cc-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: none;
    font-size: 26px;
    line-height: 1;
    color: #000000;
    cursor: pointer;
}

.cc-close:hover {
    background: #f2f2f2;
}

.cc-cat {
    margin-bottom: 10px;
    padding: 16px;
    border: 1px solid #e6e6e6;
    border-radius: 12px;
}

.cc-cat-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.cc-cat-name {
    font-weight: 600;
    color: #000000;
}

.cc-cat-desc {
    margin: 6px 0 0;
    font-size: 13px;
    color: #666666;
}

.cc-always {
    flex: 0 0 auto;
    font-size: 12px;
    font-weight: 600;
    color: #666666;
}

.cc-dialog .cc-actions {
    margin-top: 20px;
}

/* Prepínač */
.cc-switch {
    position: relative;
    flex: 0 0 auto;
    width: 46px;
    height: 26px;
    margin: 0;
    cursor: pointer;
}

.cc-switch input {
    position: absolute;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}

.cc-slider {
    position: absolute;
    inset: 0;
    border-radius: 26px;
    background: #c9c9c9;
    transition: background-color .2s ease;
    pointer-events: none;
}

.cc-slider::before {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .3);
    transition: transform .2s ease;
}

.cc-switch input:checked + .cc-slider {
    background: #000000;
}

.cc-switch input:checked + .cc-slider::before {
    transform: translateX(20px);
}

/* --- Zástupný blok namiesto mapy, kým nie je súhlas --- */
.cc-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 320px;
    padding: 40px 20px;
    text-align: center;
    background: #f2f2f2;
}

.cc-placeholder svg {
    width: 36px;
    height: 36px;
    color: #000000;
}

.cc-placeholder .cc-title,
.cc-placeholder .cc-text {
    margin: 0;
}

.cc-placeholder .cc-text {
    max-width: 440px;
}

.cc-placeholder .cc-btn {
    flex: 0 0 auto;
    margin-top: 6px;
}

/* --- Súhlas so spracovaním údajov vo formulári --- */
#contact_form .gdpr-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

#contact_form .gdpr-consent input[type=checkbox] {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    margin: 1px 0 0;
    border: 1.5px solid #8a8a8a;
    border-radius: 5px;
    background: #ffffff;
    opacity: 1;
    appearance: none;
    -webkit-appearance: none;
    transition: background-color .15s ease, border-color .15s ease;
}

#contact_form .gdpr-consent input[type=checkbox]:checked {
    border-color: #000000;
    background: #000000 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 10'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M1 5l3.5 3.5L11 1.5'/%3E%3C/svg%3E") center / 11px no-repeat;
}

#contact_form .gdpr-consent input[type=checkbox]:focus-visible {
    outline: 2px solid #000000;
    outline-offset: 2px;
}

#contact_form .gdpr-consent label {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: #606060;
    cursor: pointer;
}

#contact_form .gdpr-consent label a {
    color: #000000;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* --- Pätička: spodný riadok s odkazom „Nastavenia cookies“ sa na mobile ukladá pod seba --- */
@media (max-width: 767px) {
    footer .footer-bottom {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        margin-bottom: 56px;    /* miesto pre plávajúce tlačidlo „hore“, aby neprekrývalo odkazy */
        text-align: center;
    }

    footer .menu-simple li {
        white-space: nowrap;
    }

    footer .footer-bottom > .de-flex-col {
        display: block;
    }

    footer .footer-bottom .menu-simple {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px 18px;
    }

    footer .footer-bottom .menu-simple li {
        margin: 0;
    }
}

/* --- Mobil --- */
@media (max-width: 575px) {
    .cc-banner {
        left: 12px;
        bottom: 12px;
        width: calc(100% - 24px);
        padding: 18px;
        font-size: 13px;
    }

    .cc-banner .cc-text {
        margin-bottom: 14px;
    }

    /* „Nastavenia“ na vlastný riadok pod dvoma tlačidlami */
    .cc-banner .cc-btn-link {
        flex: 1 1 100%;
        min-height: 36px;
        padding: 4px 6px;
    }

    .cc-dialog {
        padding: 22px 18px;
    }

    .cc-dialog .cc-actions .cc-btn {
        flex-basis: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cc-banner {
        animation: none;
    }

    .cc-btn,
    .cc-slider,
    .cc-slider::before {
        transition: none;
    }
}
