/* Lista so suhlasom s cookies - pouziva sa na ceskej verzii webu (_CookieConsent.cshtml). */

.cc-banner,
.cc-modal {
    display: none;
}

    .cc-banner.cc-show,
    .cc-modal.cc-show {
        display: block;
    }

/* ---------------------------------------------------------------- lista */

.cc-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2147483000;
    background: #fff;
    border-top: 3px solid #fe8a00;
    box-shadow: 0 -4px 18px rgba(0,0,0,.18);
    font-size: 14px;
    line-height: 1.5;
    color: #333;
}

.cc-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 18px 16px;
}

.cc-title {
    margin: 0 0 6px;
    font-size: 17px;
    font-weight: 700;
}

.cc-text {
    margin: 0 0 14px;
}

    .cc-text a {
        color: #fe8a00;
        text-decoration: underline;
    }

.cc-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* "Prijat" a "Odmietnut" musia byt rovnako vyrazne */
.cc-btn {
    flex: 0 0 auto;
    padding: 11px 26px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    border-radius: 4px;
    border: 2px solid #fe8a00;
    background: #fe8a00;
    color: #fff;
    cursor: pointer;
}

    .cc-btn:hover {
        background: #ac5d00;
        border-color: #ac5d00;
        color: #fff;
    }

.cc-btn-secondary {
    background: #fff;
    color: #ac5d00;
}

    .cc-btn-secondary:hover {
        background: #fff3e6;
        color: #ac5d00;
    }

.cc-btn-link {
    border-color: transparent;
    background: transparent;
    color: #555;
    text-decoration: underline;
    padding-left: 10px;
    padding-right: 10px;
}

    .cc-btn-link:hover {
        background: transparent;
        border-color: transparent;
        color: #000;
    }

/* ---------------------------------------------------------------- podrobne nastavenia */

.cc-modal {
    position: fixed;
    inset: 0;
    z-index: 2147483001;
    background: rgba(0,0,0,.5);
    overflow-y: auto;
}

.cc-dialog {
    max-width: 640px;
    margin: 40px auto;
    background: #fff;
    border-radius: 6px;
    padding: 24px;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
}

.cc-cat {
    border-top: 1px solid #e4e4e4;
    padding: 14px 0;
}

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

.cc-cat-name {
    font-weight: 700;
}

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

.cc-cat-cookies {
    margin: 4px 0 0;
    color: #777;
    font-size: 12px;
}

/* prepinac */
.cc-switch {
    position: relative;
    flex: 0 0 auto;
    width: 46px;
    height: 24px;
}

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

    .cc-switch span {
        position: absolute;
        inset: 0;
        background: #c9c9c9;
        border-radius: 24px;
        transition: background .15s;
        pointer-events: none;
    }

        .cc-switch span::before {
            content: "";
            position: absolute;
            top: 3px;
            left: 3px;
            width: 18px;
            height: 18px;
            background: #fff;
            border-radius: 50%;
            transition: transform .15s;
        }

    .cc-switch input:checked + span {
        background: #fe8a00;
    }

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

    .cc-switch input:disabled + span {
        background: #b9d8b9;
    }

    .cc-switch input:disabled {
        cursor: default;
    }

.cc-dialog-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    border-top: 1px solid #e4e4e4;
    padding-top: 16px;
    margin-top: 4px;
}

/* ---------------------------------------------------------------- zastupny obsah (mapa) */

.cc-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #f3f3f3;
    border: 1px dashed #c4c4c4;
    color: #555;
    font-size: 13px;
    text-align: center;
    padding: 16px;
}

@media (max-width: 600px) {
    .cc-actions .cc-btn,
    .cc-dialog-actions .cc-btn {
        flex: 1 1 100%;
    }

    .cc-dialog {
        margin: 0;
        border-radius: 0;
        min-height: 100%;
    }
}
