.hidden {
    display: none !important;
}

#cookie-banner,
#cookie-preferences-modal {
    box-sizing: border-box;
    font-family: inherit;
}

#cookie-banner *,
#cookie-preferences-modal * {
    box-sizing: border-box;
}

#cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: min(90%, 1100px);
    border-radius: 999px;
    border: 2px solid #F1F0F0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 24px;
    z-index: 10000;
    gap: 20px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 18px 50px rgba(0, 38, 58, 0.12);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

#cookie-banner p {
    margin: 0;
    color: #333;
    font-size: 16px;
    line-height: 1.45;
}

#cookie-banner a {
    color: #333;
    text-decoration: underline;
    text-underline-offset: 3px;
}

#cookie-banner .cookie-actions {
    display: flex;
    gap: 14px;
    align-items: center;
    flex-shrink: 0;
}

#cookie-banner button,
#cookie-preferences-modal button {
    border: none;
    cursor: pointer;
    font-weight: 700;
    line-height: 1;
    transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

#cookie-banner button:focus-visible,
#cookie-preferences-modal button:focus-visible,
#cookie-preferences-modal input:focus-visible + .slider {
    outline: 3px solid rgba(255, 144, 33, 0.35);
    outline-offset: 3px;
}

#cookie-banner button:hover,
#cookie-preferences-modal button:hover {
    transform: translateY(-1px);
}

#accept-all-btn {
    min-width: 190px;
    padding: 18px 28px;
    border-radius: 12px;
    background-color: #ff9021;
    color: white;
    box-shadow: 0 12px 24px rgba(255, 144, 33, 0.24);
}

#accept-all-btn:hover {
    background-color: #f57f0d;
}

#customize-btn {
    padding: 18px 28px;
    border-radius: 12px;
    background-color: rgba(255, 255, 255, 0.82);
    color: #ff9021;
}

#customize-btn:hover,
#cancel-btn:hover {
    background-color: #fff8ed;
}

#modal-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.52);
    z-index: 10001;
}

#cookie-preferences-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(90%, 560px);
    background-color: #fff;
    padding: 44px 54px 50px;
    border-radius: 24px;
    border: 4px solid #F1F0F0;
    box-shadow: 0 25px 70px rgba(0, 38, 58, 0.22);
    z-index: 10002;
}

#cookie-preferences-modal h3 {
    margin: 0 0 34px;
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.05;
    color: #00263A;
}

.cookie-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    margin-bottom: 28px;
}

.cookie-option label:first-child {
    font-size: clamp(20px, 2.5vw, 30px);
    color: #00263A;
    font-weight: 700;
    line-height: 1.2;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 18px;
    margin-top: 42px;
}

.modal-actions button {
    min-width: 154px;
    padding: 20px 28px;
    border-radius: 14px;
    font-size: 20px;
}

#save-prefs-btn {
    background-color: #ff9021;
    color: white;
    box-shadow: 0 12px 24px rgba(255, 144, 33, 0.24);
}

#save-prefs-btn:hover {
    background-color: #f57f0d;
}

#cancel-btn {
    color: #ff9021;
    background-color: transparent;
}

.switch {
    position: relative;
    display: inline-block;
    width: 72px;
    height: 46px;
    flex: 0 0 auto;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background-color: #d7dde2;
    transition: 0.25s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 34px;
    width: 34px;
    left: 6px;
    bottom: 6px;
    background-color: white;
    transition: 0.25s;
    box-shadow: 0 4px 10px rgba(0, 38, 58, 0.18);
}

input:checked + .slider {
    background-color: #ff9021;
}

input:disabled + .slider {
    background-color: #ff9021;
    cursor: not-allowed;
    opacity: 0.72;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.slider.round {
    border-radius: 999px;
}

.slider.round:before {
    border-radius: 50%;
}

@media screen and (max-width: 991px) {
    #cookie-banner {
        width: min(94%, 900px);
    }

    #cookie-banner p {
        font-size: 14px;
    }

    #accept-all-btn,
    #customize-btn {
        min-width: auto;
        padding: 15px 20px;
    }
}

@media screen and (max-width: 767px) {
    #cookie-banner {
        flex-direction: column;
        align-items: stretch;
        padding: 20px;
        border-radius: 24px;
        gap: 18px;
        text-align: center;
    }

    #cookie-banner .cookie-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        width: 100%;
    }

    #accept-all-btn,
    #customize-btn {
        width: 100%;
        padding: 16px 14px;
    }

    #cookie-preferences-modal {
        width: 92%;
        padding: 28px 22px;
        border-radius: 20px;
    }

    .modal-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .modal-actions button {
        min-width: 0;
        width: 100%;
        padding: 16px 14px;
        font-size: 17px;
    }
}
