.cesit-cookie-overlay {
    position: fixed;
    inset: 0;
    z-index: 99998;
    background: rgba(0, 0, 0, 0.42);
}

.cesit-cookie-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    font-family: Arial, Helvetica, sans-serif;
}

.cesit-cookie-box {
    position: relative;
    width: 100%;
    max-width: 760px;
    max-height: calc(100vh - 36px);
    overflow-y: auto;
    background: #ffffff;
    color: #222222;
    border-radius: 12px;
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.28);
    padding: 28px;
    box-sizing: border-box;
}

.cesit-cookie-close {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 38px;
    height: 38px;
    border: 1px solid #d8d8d8;
    background: #ffffff;
    color: #222222;
    border-radius: 50%;
    font-size: 26px;
    line-height: 34px;
    cursor: pointer;
}

.cesit-cookie-close:hover,
.cesit-cookie-close:focus {
    outline: none;
    border-color: #555555;
}

.cesit-cookie-header h2 {
    margin: 0 42px 12px 0;
    font-size: 24px;
    line-height: 1.25;
    color: #222222;
}

.cesit-cookie-header p,
.cesit-cookie-summary p,
.cesit-cookie-category p {
    font-size: 15px;
    line-height: 1.55;
    margin: 0 0 12px 0;
    color: #333333;
}

.cesit-cookie-summary a {
    color: #1f5f8b;
    text-decoration: underline;
}

.cesit-cookie-preferences {
    margin-top: 18px;
    border-top: 1px solid #e8e8e8;
}

.cesit-cookie-category {
    display: flex;
    gap: 18px;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
    border-bottom: 1px solid #e8e8e8;
}

.cesit-cookie-category strong {
    display: block;
    margin-bottom: 6px;
    font-size: 16px;
    color: #222222;
}

.cesit-cookie-switch {
    position: relative;
    display: inline-block;
    width: 54px;
    min-width: 54px;
    height: 30px;
}

.cesit-cookie-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cesit-cookie-switch span {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background-color: #d0d0d0;
    transition: 0.2s;
    border-radius: 999px;
}

.cesit-cookie-switch span:before {
    position: absolute;
    content: "";
    width: 24px;
    height: 24px;
    left: 3px;
    top: 3px;
    background-color: #ffffff;
    transition: 0.2s;
    border-radius: 50%;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

.cesit-cookie-switch input:checked + span {
    background-color: #2f6f8f;
}

.cesit-cookie-switch input:checked + span:before {
    transform: translateX(24px);
}

.cesit-cookie-switch input:disabled + span {
    cursor: not-allowed;
    opacity: 0.75;
}

.cesit-cookie-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.cesit-cookie-btn {
    flex: 1 1 150px;
    min-height: 44px;
    border: 1px solid #2f6f8f;
    background: #ffffff;
    color: #2f6f8f;
    border-radius: 6px;
    padding: 10px 16px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
}

.cesit-cookie-btn:hover,
.cesit-cookie-btn:focus {
    outline: none;
    background: #2f6f8f;
    color: #ffffff;
}

.cesit-cookie-manage-btn {
    display: inline-block;
    border: 0;
    background: transparent;
    color: inherit;
    padding: 0;
    margin: 0;
    font: inherit;
    text-decoration: underline;
    cursor: pointer;
}

.cesit-cookie-manage-btn:hover,
.cesit-cookie-manage-btn:focus {
    outline: none;
    text-decoration: none;
}

body.cesit-cookie-modal-open {
    overflow: hidden;
}

@media (max-width: 640px) {
    .cesit-cookie-box {
        padding: 22px 18px;
        border-radius: 10px;
    }

    .cesit-cookie-header h2 {
        font-size: 21px;
    }

    .cesit-cookie-category {
        align-items: flex-start;
    }

    .cesit-cookie-actions {
        flex-direction: column;
    }

    .cesit-cookie-btn {
        width: 100%;
        flex-basis: auto;
    }
}
#cesit-cookie-overlay[hidden],
#cesit-cookie-modal[hidden],
.cesit-cookie-overlay[hidden],
.cesit-cookie-modal[hidden],
#cesit-cookie-summary[hidden],
#cesit-cookie-preferences[hidden],
#cesit-cookie-customize[hidden],
#cesit-cookie-save[hidden] {
    display: none !important;
}