/* Cookie lišta - sdílená pro media, reality i sports (viz js/cookie-consent.js) */

.cookie-consent {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3000; /* nad sports coverem (2000) a Bootstrap modaly */
    padding: 1rem;
    pointer-events: none;
}

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

.cookie-consent-card {
    pointer-events: auto;
    max-width: 920px;
    margin: 0 auto;
    padding: 1.25rem 1.5rem;
    background: var(--mynaro-dark, #16140f);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 10px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, .35);
    font-family: var(--font-sans, 'Helvetica Neue', Arial, sans-serif);
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
}

.cookie-consent-title {
    margin: 0 0 .4rem;
    font-size: 1rem;
    font-weight: 700;
    color: var(--mynaro-gold, #b89f16);
}

.cookie-consent-text {
    margin: 0;
    font-size: .875rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, .85);
}

.cookie-consent-text a {
    color: var(--mynaro-gold, #b89f16);
    text-decoration: underline;
}

.cookie-consent-settings {
    margin-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, .12);
}

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

.cookie-consent-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.cookie-consent-row div > strong {
    display: block;
    font-size: .875rem;
}

.cookie-consent-row div > span {
    display: block;
    font-size: .8rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, .65);
}

.cookie-consent-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: .6rem;
    margin-top: 1rem;
}

.cookie-btn {
    padding: .6rem 1.1rem;
    border: 1px solid transparent;
    border-radius: var(--btn-radius, 6px);
    font: inherit;
    font-size: .85rem;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    transition: background-color .15s, color .15s, border-color .15s;
}

.cookie-btn[hidden] {
    display: none;
}

/* "Přijmout" a "Odmítnout" jsou záměrně stejně velké a viditelné */
.cookie-btn-primary {
    background: var(--mynaro-gold, #b89f16);
    border-color: var(--mynaro-gold, #b89f16);
    color: var(--mynaro-dark, #16140f);
}

.cookie-btn-primary:hover {
    background: #fff;
    border-color: #fff;
}

.cookie-btn-secondary {
    background: transparent;
    border-color: rgba(255, 255, 255, .55);
    color: #fff;
}

.cookie-btn-secondary:hover {
    background: rgba(255, 255, 255, .12);
    border-color: #fff;
}

.cookie-btn-link {
    margin-right: auto;
    padding-left: 0;
    padding-right: 0;
    background: none;
    color: rgba(255, 255, 255, .8);
    text-decoration: underline;
}

.cookie-btn-link:hover {
    color: var(--mynaro-gold, #b89f16);
}

.cookie-btn:focus-visible,
.cookie-switch input:focus-visible + span {
    outline: 2px solid var(--mynaro-gold, #b89f16);
    outline-offset: 2px;
}

/* přepínač */
.cookie-switch {
    position: relative;
    flex: 0 0 auto;
    width: 44px;
    height: 24px;
    margin: 0;
}

.cookie-switch input {
    position: absolute;
    inset: 0;
    opacity: 0;
    margin: 0;
    cursor: pointer;
}

.cookie-switch span {
    position: absolute;
    inset: 0;
    border-radius: 24px;
    background: rgba(255, 255, 255, .25);
    transition: background-color .15s;
    pointer-events: none;
}

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

.cookie-switch input:checked + span {
    background: var(--mynaro-gold, #b89f16);
}

.cookie-switch input:checked + span::after {
    transform: translateX(20px);
}

.cookie-switch input:disabled {
    cursor: not-allowed;
}

.cookie-switch input:disabled + span {
    opacity: .5;
}

/* odkaz "Nastavení cookies" v patičkách */
.cookie-settings-link {
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    color: inherit;
    text-decoration: underline;
    cursor: pointer;
    opacity: .85;
}

.cookie-settings-link:hover {
    color: var(--mynaro-gold, #b89f16);
    opacity: 1;
}

@media (max-width: 575.98px) {
    .cookie-consent {
        padding: .5rem;
    }

    .cookie-consent-card {
        padding: 1rem;
    }

    .cookie-consent-actions {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .cookie-btn-link {
        margin: 0;
        text-align: center;
        padding: .5rem 0;
    }
}

/* řádek s odkazy v patičce (ochrana údajů + nastavení cookies) */
.footer-legal {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .5rem 1.25rem;
    margin-top: 2rem;
    font-size: .8rem;
}

.footer-legal a {
    color: inherit;
    opacity: .85;
}

.footer-legal a:hover {
    color: var(--mynaro-gold, #b89f16);
    opacity: 1;
}

.footer-cookie-line {
    font-size: .8rem;
}
