#cookieConsent * {
    box-sizing: border-box;
}

.cookie-banner {
    position: fixed;
    left: 24px;
    right: 24px;
    bottom: 24px;
    z-index: 9998;
    display: none;
}

.cookie-banner-inner {
    max-width: 1120px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 22px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
    padding: 22px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.cookie-banner-title {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
}

.cookie-banner-desc {
    font-size: 14px;
    color: #6b7280;
}

.cookie-banner-desc a{
    color: #dc2627;
    text-decoration: underline;
}

.cookie-banner-text{
    flex: 0 0 60%;
}

.cookie-banner-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.cookie-btn {
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    transition: all 0.2s ease;
    height: 40px;
    padding: 0 20px;
}

.cookie-btn-primary {
    background: #dc2627;
    color: #ffffff;
}

.cookie-btn-primary:hover {
    opacity: 0.8;
}

.cookie-btn-light {
    background: #f3f4f6;
    color: #111827;
}

.cookie-btn-light:hover {
    background: #e5e7eb;
}

.cookie-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(17, 24, 39, 0.45);
    z-index: 9999;
    display: none;
}

.cookie-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    width: min(920px, calc(100vw - 30px));
    max-height: calc(100vh - 40px);
    overflow: auto;
    transform: translate(-50%, -50%);
    background: #ffffff;
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.18);
    padding: 34px;
    z-index: 10000;
    display: none;
}

.cookie-close {
    position: absolute;
    top: 18px;
    right: 20px;
    border: 0;
    background: transparent;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 36px;
    line-height: 1;
    color: #9ca3af;
    cursor: pointer;
}

.cookie-modal-header h2 {
    font-size: 25px;
    color: #111827;
    font-weight: 700;
}

.cookie-modal-header p {
    margin: 0 0 28px 0;
    font-size: 16px;
    line-height: 1.6;
    color: #6b7280;
    max-width: 700px;
}

.cookie-categories {
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
}

.cookie-row {
    padding: 22px 0;
    border-bottom: 1px solid #e5e7eb;
}

.cookie-row:last-child {
    border-bottom: 0;
}

.cookie-row-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.cookie-row-left {
    flex: 1;
}

.cookie-row-title {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
}

.cookie-row-description {
    font-size: 14px;
    line-height: 1.5;
    color: #6b7280;
}

.cookie-row-services {
    margin-top: 12px;
    font-size: 13px;
    color: #6b7280;
}

.cookie-switch {
    position: relative;
    display: inline-block;
    width: 62px;
    height: 36px;
    flex: 0 0 auto;
}

.cookie-switch input {
    display: none;
}

.cookie-slider {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: #d1d5db;
    transition: 0.2s ease;
    cursor: pointer;
}

.cookie-slider:before {
    content: "";
    position: absolute;
    width: 28px;
    height: 28px;
    left: 4px;
    top: 4px;
    border-radius: 50%;
    background: #ffffff;
    transition: 0.2s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.18);
}

.cookie-switch input:checked + .cookie-slider {
    background: #1f7a28;
}

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

.cookie-switch.cookie-switch-disabled {
    opacity: 0.6;
    pointer-events: none;
}

.cookie-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding-top: 24px;
    flex-wrap: wrap;
}

body.cookie-modal-open {
    overflow: hidden;
}

@media (max-width: 768px) {
    .cookie-banner {
        left: 12px;
        right: 12px;
        bottom: 12px;
    }

    .cookie-banner-inner {
        flex-direction: column;
        align-items: stretch;
        padding: 18px;
        border-radius: 18px;
    }

    .cookie-banner-actions {
        justify-content: stretch;
    }

    .cookie-banner-actions .cookie-btn {
        width: 100%;
    }

    .cookie-modal {
        width: calc(100vw - 16px);
        padding: 22px 18px;
        border-radius: 22px;
    }

    .cookie-modal-header h2 {
        font-size: 24px;
        padding-right: 34px;
    }

    .cookie-row-main {
        align-items: flex-start;
    }

    .cookie-modal-footer .cookie-btn {
        width: 100%;
    }
}