.cookie-consent {
    position: relative;
    background: #f1f2f4;
    border-radius: 14px;
    padding: 16px 16px 14px;
    margin: 0 18px;
    box-shadow: 0 8px 24px rgba(20, 24, 33, 0.18);
    animation: slideUp 0.35s ease;
    height: 198px;
    overflow: hidden;
}

.cookie-panel {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 0 8px;
    --cookie-content-inset: 4px;
    position: relative;
    z-index: 1;
}

.cookie-close {
    position: absolute;
    top: 10px;
    right: 12px;
    border: none;
    width: 18px;
    height: 18px;
    background: #8a94a3;
    color: #fff;
    border-radius: 50%;
    font-size: 12px;
    line-height: 18px;
    cursor: pointer;
    text-align: center;
    padding: 0;
    transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    z-index: 10;
    pointer-events: auto;
}

.cookie-close:hover {
    background: #ea1d0f;
    box-shadow: 0 0 0 3px rgba(234, 29, 15, 0.25);
    transform: scale(1.06);
}

.cookie-title {
    font-size: 26px;
    font-weight: 700;
    color: #1f2328;
    margin: 4px 0 8px;
    letter-spacing: -0.02em;
    padding-left: 10px;
}

.cookie-icon {
    font-size: 16px;
    vertical-align: middle;
    margin-left: 4px;
}

.cookie-desc {
    font-size: 13.5px;
    line-height: 1.5;
    color: #33393f;
    margin-bottom: 8px;
    max-width: none;
    width: 100%;
    text-align: justify;
    padding-left: 10px;
}

.modal-cookie-consent {
    display: inline;
    padding: 0 !important;
    font-size: inherit;
    font-weight: 500;
    vertical-align: baseline;
}

.modal-cookie-consent:focus {
    box-shadow: none;
}

.cookie-consent button.modal-cookie-consent:hover {
    color: #89150b !important;
}

.cookie-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: auto;
    padding-top: 10px;
}

.btn-accept,
.btn-reject {
    min-width: 90px;
    height: 34px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    padding: 0 14px;
}

.btn-accept {
    border: none;
    background: #ea1d0f;
    color: #fff;
}

.btn-accept:hover {
    background: #cf170c;
}

.btn-reject {
    border: 1px solid #8d939d;
    color: #1f2328;
    background: #f7f7f8;
}

.btn-reject:hover {
    background: #eceef1;
}

.btn-icon {
    margin-right: 6px;
    font-size: 12px;
}

.cookie-preferences {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 18px;
    margin-top: 8px;
    margin-bottom: 2px;
    padding-left: var(--cookie-content-inset);
}

.cookie-pref-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #1f2328;
    position: relative;
}

.cookie-pref-item-locked {
    /* background: #eceff3; */
    /* border: 1px solid #d7dce3; */
    border-radius: 6px;
    padding: 4px 8px;
    cursor: not-allowed;
}

.cookie-pref-item-locked > span:first-child {
    color: #6f7783;
}

.cookie-pref-item input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.cookie-switch {
    position: relative;
    width: 24px;
    height: 14px;
    background: #d6d6d6;
    border-radius: 999px;
    transition: background 0.2s ease;
}

.cookie-switch::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 10px;
    height: 10px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.2s ease;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
}

.cookie-pref-item input:checked + .cookie-switch {
    background: #ea1d0f;
}

.cookie-pref-item input:checked + .cookie-switch::after {
    transform: translateX(10px);
}

.cookie-pref-item-locked input:disabled + .cookie-switch {
    opacity: 1;
    background: #ea1d0f;
}

.cookie-pref-item-locked input:checked:disabled + .cookie-switch {
    background: #ea1d0f;
}

.cookie-pref-item-locked input:checked:disabled + .cookie-switch::after {
    transform: translateX(10px);
    background: #fff;
}

@keyframes slideUp {
    from {
        transform: translateY(22px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@media (max-width: 991.98px) {
    .cookie-consent {
        margin: 0 12px;
        padding: 14px 14px 12px;
        border-radius: 12px;
        height: 198px;
    }

}

@media (min-width: 576px) and (max-width: 991.98px) {
    .cookie-consent {
        margin: 0 12px;
        padding: 14px 14px 12px;
        border-radius: 12px;
        /* height: 198px; */
        max-width: 620px;
        margin: 0 auto;
        height: auto;
    }

    .cookie-panel {
        height: auto;
    }

    .cookie-actions {
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
    }

    .btn-accept,
    .btn-reject {
        width: 100%;
        max-width: 220px;
    }

    .cookie-panel-manage .cookie-actions {
        padding-top: 0px;
    }

    .cookie-title {
        font-size: 23px;
        line-height: 1.05;
    }

    .cookie-desc {
        font-size: 13px;
    }

    .cookie-preferences {
        gap: 12px 16px;
        margin-bottom: 15px;
    }
}

@media (max-width: 575.98px) {
    .cookie-consent,
    .cookie-panel {
        height: auto;
    }

    .cookie-panel {
        padding: 0 4px;
    }

    .cookie-title {
        font-size: 20px;
    }

    .cookie-actions {
        justify-content: stretch;
        flex-wrap: wrap;
        gap: 10px;
    }

    .btn-accept,
    .btn-reject {
        width: 100%;
    }

    .cookie-preferences {
        gap: 14px 18px;
    }
}
