.cookie-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
}

.cookie-banner__content {
    background-color: #333;
    color: white;
    padding: 24px;
    border-radius: 8px;
    max-width: 500px;
    width: calc(100% - 32px);
    margin: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.cookie-banner__text {
    margin: 0 0 20px 0;
    line-height: 1.5;
}

.cookie-banner__link {
    color: #A20011;
    text-decoration: underline;
}

.cookie-banner__buttons {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.cookie-banner__button {
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    min-width: 120px;
    transition: background-color 0.2s;
}

.cookie-banner__button--accept {
    background-color: #A20011;
    color: white;
}

.cookie-banner__button--accept:hover {
    background-color: #8B0010;
}

.cookie-banner__button--essential {
    background-color: #666;
    color: white;
}

.cookie-banner__button--essential:hover {
    background-color: #555;
}

/* Cookie Consent Banner Styles */
.cookie-consent {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 50;
    max-width: 400px;
}

.cookie-consent__close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: #484848;
    cursor: pointer;
    padding: 0.3125rem;
    line-height: 1;
    transition: color 0.3s ease;
}

.cookie-consent__close:hover {
    color: #A20011;
}

.cookie-consent__title {
    color: #484848;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.9375rem;
    text-align: center;
    letter-spacing: 0.0625rem;
}

.cookie-consent__description {
    color: #484848;
    line-height: 1.4;
    margin-bottom: 0.9375rem;
    text-align: center;
    font-size: 0.875rem;
}

.cookie-consent__links {
    text-align: center;
    margin-bottom: 0.9375rem;
    font-size: 0.875rem;
}

.cookie-consent__link {
    color: #000;
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.3s ease;
}

.cookie-consent__link:hover {
    color: #A20011;
}

.cookie-consent__separator {
    margin: 0 0.625rem;
    color: #484848;
}

.cookie-consent__buttons {
    display: flex;
    justify-content: center;
    gap: 0.625rem;
    margin-top: 0.9375rem;
}

.cookie-consent__button {
    padding: 0.5rem 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 0.875rem;
    cursor: pointer;
}

.cookie-consent__button--decline {
    border: 1px solid #000;
    color: #000;
    background: transparent;
}

.cookie-consent__button--decline:hover {
    background: #000;
    color: white;
}

.cookie-consent__button--accept {
    border: 1px solid #000;
    color: #000;
    background: transparent;
}

.cookie-consent__button--accept:hover {
    opacity: 0.9;
}

@media (max-width: 480px) {
    .cookie-consent {
        bottom: 1rem;
        right: 1rem;
        left: 1rem;
        max-width: none;
    }
}

/* Cookie Preferences Styles */
.cookie-preferences {
    max-width: 800px;
    margin: 3rem auto;
    padding: 0 2rem;
}

.cookie-group {
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}

.cookie-group:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.cookie-preferences h1 {
    color: #000;
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 1.5em;
}

.cookie-group h2 {
    margin: 0 0 1rem 0;
    font-weight: 600;
    color: #000;
    font-size: 1.25rem;
}

.cookie-description {
    color: #4b5563;
    font-weight: 400;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.cookie-list {
    margin: 1.5rem 0;
    padding: 1.25rem;
    background-color: #f9fafb;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
}

.cookie-list ul {
    list-style-type: disc;
    padding-left: 1.5rem;
    margin: 0;
}

.cookie-list li {
    color: #374151;
    margin-bottom: 0.75rem;
    font-weight: 400;
    font-family: 'Toyota-Type-Regular';
    font-size: 0.95rem;
}

.cookie-list li:last-child {
    margin-bottom: 0;
}

.toggle-switch {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 500;
    padding: 0.5rem 0;
    font-family: 'Toyota-Type-Regular';
}

/* Custom checkbox styling */
.toggle-switch input[type="checkbox"] {
    position: relative;
    width: 50px;
    height: 26px;
    appearance: none;
    background-color: #e5e7eb;
    border-radius: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.toggle-switch input[type="checkbox"]:checked {
    background-color: #A20011;
}

.toggle-switch input[type="checkbox"]:disabled {
    background-color: #9ca3af;
    cursor: not-allowed;
}

.toggle-switch input[type="checkbox"]::before {
    content: "";
    position: absolute;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    top: 2px;
    left: 2px;
    background-color: white;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.toggle-switch input[type="checkbox"]:checked::before {
    transform: translateX(24px);
}

.toggle-switch input[type="checkbox"]:disabled::before {
    background-color: #f3f4f6;
}

#save-preferences {
    padding: 12px 24px;
    background: #A20011;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 1rem;
    cursor: pointer;
    font-family: 'ToyotaType-Regular';
}

#save-preferences:hover {
    background: #8a000e;
    transform: translateY(-1px);
}

.notification {
    padding: 1rem 1.5rem;
    background-color: #059669;
    color: white;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease-in-out;
    z-index: 1000;
    margin-top: 1rem;
    width: 100%;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    font-weight: 500;
}

.notification.show {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 640px) {
    .cookie-preferences {
        margin: 2rem auto;
        padding: 0 1rem;
    }

    .cookie-group {
        padding: 1rem;
    }

    .cookie-preferences h1 {
        font-size: 24px;
    }
}