/* =========================================================
   SVT Balti - YouTube and privacy consent
   ========================================================= */


/* YouTube placeholder */

.svt-youtube-wrapper {
    position: relative;
    width: 100%;
    max-width: 560px;
    min-height: 315px;
    margin: 1rem 0;
    background: #f2f2f2;
    border: 1px solid #ddd;
}

.svt-youtube-wrapper iframe[data-src] {
    display: none;
}

.svt-youtube-consent {
    min-height: 315px;
    padding: 35px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.svt-youtube-title {
    display: block;
    margin-bottom: 12px;
    font-size: 1.2rem;
}

.svt-youtube-consent p {
    max-width: 430px;
    margin-bottom: 20px;
}

.svt-youtube-active {
    min-height: 0;
    border: 0;
    background: transparent;
}

.svt-youtube-active .svt-youtube-consent {
    display: none;
}

.svt-youtube-active iframe {
    display: block;
    max-width: 100%;
}


/* Consent banner */

.svt-consent-banner {
    position: fixed;
    z-index: 99999;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 15px;
    background: rgba(255, 255, 255, 0.98);
    border-top: 1px solid #ccc;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.15);
}

.svt-consent-banner-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.svt-consent-banner-text {
    flex: 1;
    line-height: 1.5;
}

.svt-consent-banner-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}


/* Privacy settings modal */

.svt-consent-modal {
    position: fixed;
    z-index: 100000;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.svt-consent-modal-box {
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    background: #fff;
    padding: 30px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.25);
}

.svt-consent-modal-box h3 {
    margin-top: 0;
    margin-bottom: 25px;
}

.svt-consent-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    padding: 18px 0;
    border-top: 1px solid #ddd;
}

.svt-consent-option p {
    margin: 5px 0 0;
    font-size: 0.95rem;
}

.svt-consent-option-clickable {
    cursor: pointer;
}

.svt-consent-checkbox {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
}

.svt-consent-always-on {
    font-size: 22px;
    font-weight: bold;
}

.svt-consent-save {
    margin-top: 20px;
}


/* Privacy Notice link inside settings */

.svt-consent-privacy {
    margin-top: 18px;
    margin-bottom: 0;
    font-size: 0.95rem;
}

.svt-consent-privacy a {
    text-decoration: underline;
}


/* Footer settings link */

.svt-consent-footer-link {
    text-align: center;
    padding: 10px;
}

.svt-consent-footer-link button {
    border: 0;
    padding: 0;
    background: transparent;
    text-decoration: underline;
    cursor: pointer;
    font: inherit;
}


/* Mobile */

@media (max-width: 767px) {

    .svt-consent-banner-inner {
        display: block;
    }

    .svt-consent-banner-buttons {
        margin-top: 15px;
    }

    .svt-consent-banner-buttons .btn {
        flex: 1 1 auto;
    }

    .svt-consent-modal-box {
        padding: 20px;
    }
}