﻿/* Overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    z-index: 2050;
    display: none;
}

/* Toast banner */
.cookie-toast {
    position: fixed;
    bottom: 10px;
    right: 10px;
    width: 26%;
    background: #f3f4f6;
    padding: 25px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #ccc;
    z-index: 2000;
    box-sizing: border-box;
    font-family: 'FbReforma', 'FbSpoilerEn', arial, tahoma;
    border-radius: 3px;
    border-top-left-radius: 67px;
    flex-direction: column;
}

.toast-actions button {
    margin-left: 8px;
}

/* Slide-in panel balról */
.cookie-panel {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 320px;
    background: #fff;
    transform: translateX(-100%);
    transition: transform .3s ease;
    z-index: 2100;
    box-shadow: 2px 0 10px rgba(0,0,0,.3);
}

    .cookie-panel.show {
        transform: translateX(0);
        color: #083555;
    }

    .cookie-panel .cookie-content {
        padding: 3rem 2rem;
        overflow-y: auto;
        height: 100%;
    }

.cookie-img {
    width: 40px;
    margin-left: 2rem
}

.cookies-desc {
    display: inline-flex;
    align-items: center;
    padding-bottom: 16px;
}

.cookie-close {
    position: absolute;
    top: 10px;
    right: 10px;
    border: none;
    background: none;
    font-size: 1.2rem;
    cursor: pointer;
}

/* Toggle  */
.cookie-option {
    display: flex;
    align-items: center;
    margin: 1rem 0;
    gap: 1rem;
    align-items: flex-start;
}

    .cookie-option .desc {
        margin-left: 12px;
        text-align: right;
        max-width: 170px;
    }

        .cookie-option .desc p {
            font-size: 13px;
            color: #555;
            margin: 2px 0 0;
        }

.switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 20px;
}

    .switch input {
        opacity: 0;
        width: 0;
        height: 0;
    }

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #ccc;
    border-radius: 20px;
    transition: .4s;
}

    .slider:before {
        position: absolute;
        content: "";
        height: 14px;
        width: 14px;
        left: 3px;
        bottom: 3px;
        background: #fff;
        border-radius: 50%;
        transition: .4s;
    }

input:checked + .slider {
    background: #2196F3;
}

    input:checked + .slider:before {
        transform: translateX(20px);
    }

/* Gombok */
.btnc {
    padding: .5rem 1rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    cursor: pointer;
    border-radius: 1.5625rem;
    min-width: 85px;
}

    .btnc.primary {
        background: #083555;
        color: #fff;
        border: none;
    }

        .btnc:hover, .btnc.primary:hover {
            background: #1f689a;
            color: #fff;
        }

@media only screen and (max-width: 1024px) {
    .cookie-toast {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }

}

#accept-all-toast {
    background: #083555;
    color: #fff;
}

    #accept-all-toast:hover {
        background: #8eccf7;
        color: #083555;
    }

#reject-all-toast {
    background: #e0e5ec;
    color: #214a67;
}

    #reject-all-toast:hover {
        background: #8eccf7;
        color: #083555;
    }

#open-settings-toast {
    background: #1f689a;
    color: #fff;
}

    #open-settings-toast:hover {
        background: #8eccf7;
        color: #083555;
    }
