/* Cookie Policy Modal */
.cookie-mask {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9998;
}

.cookie-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    overflow-y: auto;
    padding: 0;
}

.cookie-modal-dialog {
    width: 900px;
    max-width: 90vw;
    margin: 0;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.cookie-modal-content {
    background-color: #fff;
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.cookie-modal-header {
    background-color: #393737;
    padding: 20px 20px 10px;
    border-radius: 4px 4px 0 0;
}

.cookie-modal-title {
    color: #fff;
    font-size: 28px;
    text-align: left;
    margin: 0;
}

.cookie-modal-body {
    padding: 15px 20px;
    text-align: left;
}

.cookie-modal-body p {
    margin-bottom: 10px;
    line-height: 1.6;
}

.cookie-modal-footer {
    padding: 15px 20px 20px;
    border-top: none;
}

.cookie-footer-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cookie-preference {
    margin-bottom: 0;
}

.cookie-preference-link {
    color: #4990e2;
    cursor: pointer;
    text-decoration: none;
}

.cookie-preference-link:hover {
    text-decoration: none;
}

.cookie-buttons {
    text-align: right;
}

.cookie-btn {
    display: inline-block;
    padding: 8px 20px;
    font-size: 14px;
    border-radius: 4px;
    cursor: pointer;
    border: 1px solid transparent;
    margin-left: 8px;
}

.cookie-btn-default {
    background-color: #fff;
    border-color: #ccc;
    color: #333;
    --btn-fill-bg: #fff;
    --btn-fill-sweep: #27201F;
    --btn-fill-text: #fff;
}

.cookie-btn-default:hover {
    border-color: #27201F;
}

.cookie-btn-primary {
    background-color: #27201F;
    border-color: #27201F;
    color: #fff;
}

.cookie-btn-primary:hover {
    border-color: #27201F;
}

/* Accordion */
.cookie-accordion {
    text-align: left;
    margin-top: 10px;
    margin-bottom: 15px;
}

.cookie-panel {
    margin-top: 0;
    border-bottom: 1px solid #ebeef5;
}

.cookie-panel-heading {
    background-color: #ffffff;
    padding: 12px 15px;
    border-top: 1px solid #ebeef5;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cookie-panel-title {
    display: inline-block;
}

.cookie-option {
    color: #4990e2;
    cursor: pointer;
    text-decoration: none;
}

.cookie-option:hover {
    text-decoration: none;
}

.cookie-option-arrow {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-right: 2px solid #4990e2;
    border-bottom: 2px solid #4990e2;
    transform: rotate(-45deg);
    transform-origin: 75% 75%;
    margin-right: 3px;
    margin-bottom: 5px;
    transition: transform 0.3s ease;
    vertical-align: middle;
}

.cookie-option-arrow.rotated {
    transform: rotate(45deg);
}



.cookie-badge {
    display: inline-block;
    background-color: #333333;
    color: #fff;
    font-size: 11px;
    padding: 0px 7px;
    border-radius: 13px;
    margin-left: 5px;
}

.cookie-panel-collapse {
    overflow: hidden;
}

.cookie-panel-body {
    padding: 10px 15px 15px;
    border-top: 1px solid #e9e5e5;
}

/* Cookie Row */
.cookie-row {
    margin-bottom: 4px;
}

.cookie-row-item {
    display: flex;
}

.cookie-option-header {
    flex: 2;
    font-weight: bold;
    white-space: nowrap;
}

.cookie-row-value {
    flex: 7;
}

.cookie-row-separator {
    margin: 0.5rem 0;
}

.cookie-hr {
    border: none;
    height: 1px;
    background-color: #e9e5e5;
    margin: 0;
}

/* Switch */
.cookie-switch {
    display: inline-block;
    float: right;
}

.cookie-switch-label {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    margin: 0;
    cursor: pointer;
}

.cookie-switch-input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-switch-slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    border-radius: 24px;
    transition: background-color 0.3s ease;
}

.cookie-switch-slider::before {
    content: "";
    position: absolute;
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: #fff;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.cookie-switch-input:checked + .cookie-switch-slider {
    background-color: #0d6efd;
}

.cookie-switch-input:checked + .cookie-switch-slider::before {
    transform: translateX(20px);
}

/* Responsive */
@media (max-width: 767px) {
    .cookie-modal-dialog {
        width: 100%;
        max-width: 100vw;
        margin: 0;
    }

    .cookie-modal-content {
        border-radius: 0;
    }

    .cookie-modal-title {
        font-size: 22px;
    }

    .cookie-buttons {
        text-align: center;
    }

    .cookie-btn {
        display: block;
        width: 100%;
        margin-left: 0;
        margin-bottom: 8px;
    }

    .cookie-option-header {
        flex: 3;
    }

    .cookie-row-value {
        flex: 5;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .cookie-modal-dialog {
        width: 700px;
    }
}
