.cookie-consent {
    position: fixed;
    top: 50%;
    left: 50%;
    width: min(90%, 620px);
    max-width: calc(100% - 30px);
    max-height: calc(100dvh - 30px);
    transform: translate(-50%, -50%);
    z-index: 99999999;
    display: none;
    box-sizing: border-box;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.cookie-consent-inner {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 2rem;
    box-sizing: border-box;
    background-color: #F8F3EE;
    border: 1px solid rgba(63, 57, 53, 0.15);
    border-radius: 4px;
    box-shadow: 0 20px 60px rgba(63, 57, 53, 0.20);
    color: #403331;
}

.cookie-consent-text h2 {
    margin: 0 0 0.75rem;
    color: #403331;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 500;
}

.cookie-consent-text p {
    margin: 0 0 0.75rem;
    color: #403331;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    line-height: 1.6;
}

.cookie-consent-text a {
    color: #79552F;
    font-weight: 600;
    text-decoration: underline;
}

.cookie-consent-text a:hover {
    color: #54391F;
}

.cookie-consent-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.6rem;
}

.cookie-btn {
    padding: 0.7rem 1.1rem;
    border: 1px solid #a47b6d;
    border-radius: 2px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    line-height: 1.2;
    cursor: pointer;
    box-sizing: border-box;
    transition:
        background-color 0.25s ease,
        color 0.25s ease,
        border-color 0.25s ease;
}

.cookie-btn-secondary {
    color: #403331;
    background-color: transparent;
}

.cookie-btn-secondary:hover {
    color: #fff;
    background-color: #a47b6d;
    border-color: #a47b6d;
}

.cookie-btn-primary {
    background-color: #79552F;
    color: #FFFFFF;
    border: 1px solid #79552F;
    font-weight: 600;
}

.cookie-btn-primary:hover {
    background-color: #54391F;
    color: #FFFFFF;
    border-color: #54391F;
}

.cookie-btn-primary:focus-visible,
.cookie-consent-text a:focus-visible {
    outline: 3px solid #54391F;
    outline-offset: 3px;
}

.cookie-settings {
    position: fixed;
    inset: 0;
    z-index: 100000000;
    display: none;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    height: 100dvh;
    padding: 1rem;
    box-sizing: border-box;
    background-color: rgba(63, 57, 53, 0.45);
    overflow: hidden;
}

.cookie-settings-box {
    position: relative;
    width: min(90%, 550px);
    max-width: 100%;
    max-height: calc(100dvh - 2rem);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 2rem;
    box-sizing: border-box;
    background-color: #F8F3EE;
    border: 1px solid rgba(63, 57, 53, 0.15);
    border-radius: 4px;
    box-shadow: 0 20px 60px rgba(63, 57, 53, 0.25);
    color: #403331;
}

.cookie-settings-close {
    position: absolute;
    top: 0.75rem;
    right: 0.9rem;
    width: 35px;
    height: 35px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #403331;
    font-size: 1.7rem;
    line-height: 1;
    cursor: pointer;
}

.cookie-settings-close:hover {
    color: #a47b6d;
}

.cookie-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(63, 57, 53, 0.12);
}

.cookie-option strong {
    display: block;
    margin-bottom: 0.25rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
}

.cookie-option span {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    line-height: 1.5;
    opacity: 0.75;
}

.cookie-switch {
    position: relative;
    flex-shrink: 0;
    width: 44px;
    height: 24px;
}

.cookie-switch input {
    width: 0;
    height: 0;
    opacity: 0;
}

.cookie-slider {
    position: absolute;
    inset: 0;
    background-color: #d8d0c8;
    border-radius: 24px;
    cursor: pointer;
    transition: background-color 0.25s ease;
}

.cookie-slider::before {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    background-color: #fff;
    border-radius: 50%;
    transition: transform 0.25s ease;
}

.cookie-switch input:checked + .cookie-slider {
    background-color: #a47b6d;
}

.cookie-switch input:checked + .cookie-slider::before {
    transform: translateX(20px);
}

.cookie-settings-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 1.5rem;
}

.cookie-policy {
    width: 100%;
    min-height: 100svh;
    min-height: 100dvh;
    height: auto;
    padding: 5rem 2rem;
    box-sizing: border-box;
    background-color: #F8F3EE;
    color: #403331;
    font-family: 'Montserrat', sans-serif;
    overflow: visible;
}

.cookie-policy-inner {
    width: 100%;
    max-width: 850px;
    margin: 0 auto;
    padding: 0 2.5rem;
    box-sizing: border-box;
}

.cookie-policy-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 3rem;
    color: #a47b6d;
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.25s ease;
}

.cookie-policy-back:hover {
    color: #8f763f;
}

.cookie-policy-back i {
    display: inline-block;
    font-size: 1rem;
}

.cookie-policy h1 {
    margin: 0 0 2rem;
    color: #403331;
    font-size: 2.4rem;
    font-weight: 500;
    line-height: 1.2;
}

.cookie-policy h2 {
    margin: 2.5rem 0 0.9rem;
    color: #403331;
    font-size: 1.2rem;
    font-weight: 500;
    line-height: 1.4;
}

.cookie-policy p {
    margin: 0 0 1rem;
    color: #403331;
    font-size: 0.95rem;
    line-height: 1.8;
}

.cookie-policy-intro {
    margin-bottom: 2.5rem !important;
    font-size: 1rem !important;
    line-height: 1.8;
}

.cookie-policy a {
    color: #a47b6d;
    text-decoration: none;
    transition: color 0.25s ease;
}

.cookie-policy a:hover {
    color: #8f763f;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.cookie-policy-contact {
    margin-top: 1.5rem;
    padding: 1.5rem 2rem;
    background-color: rgba(255, 255, 255, 0.35);
    border-left: 3px solid #a47b6d;
}

.cookie-policy-contact p {
    margin-bottom: 0.6rem;
}

.cookie-policy-contact p:last-child {
    margin-bottom: 0;
}

.cookie-policy-updated {
    margin-top: 3rem !important;
    padding-top: 1rem;
    border-top: 1px solid rgba(63, 57, 53, 0.12);
    color: rgba(63, 57, 53, 0.65) !important;
    font-size: 0.75rem !important;
}

@media (max-width: 600px) {
    .cookie-consent {
        top: 50%;
        left: 50%;
        width: calc(100% - 30px);
        max-width: none;
        max-height: calc(100dvh - 30px);
    }

    .cookie-consent-inner {
        gap: 1.25rem;
        padding: 1.5rem;
    }

    .cookie-consent-text h2 {
        font-size: 1.3rem;
    }

    .cookie-consent-text p {
        font-size: 0.85rem;
        line-height: 1.55;
    }

    .cookie-consent-actions {
        flex-direction: column;
        width: 100%;
    }

    .cookie-btn {
        width: 100%;
        min-height: 44px;
    }

    .cookie-settings {
        align-items: center;
        padding: 0.75rem;
    }

    .cookie-settings-box {
        width: 100%;
        max-width: 100%;
        max-height: calc(100dvh - 1.5rem);
        padding: 1.5rem;
    }

    .cookie-option {
        align-items: flex-start;
        gap: 0.75rem;
    }

    .cookie-option strong {
        font-size: 0.85rem;
    }

    .cookie-option span {
        font-size: 0.7rem;
    }

    .cookie-settings-actions {
        width: 100%;
    }

    .cookie-settings-actions .cookie-btn {
        width: 100%;
    }

    .cookie-policy {
        width: 100%;
        min-height: 0;
        height: auto;
        padding: 3rem 1rem;
        overflow: visible;
    }

    .cookie-policy-inner {
        width: 100%;
        max-width: 100%;
        padding: 0 0.5rem;
    }

    .cookie-policy-back {
        margin-bottom: 2rem;
    }

    .cookie-policy h1 {
        margin-bottom: 1.5rem;
        font-size: 2rem;
    }

    .cookie-policy h2 {
        margin-top: 2rem;
        font-size: 1.1rem;
    }

    .cookie-policy p {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .cookie-policy-contact {
        padding: 1.25rem 1rem;
    }
}

@media (max-width: 375px) {
    .cookie-consent {
        width: calc(100% - 20px);
        max-height: calc(100dvh - 20px);
    }

    .cookie-consent-inner {
        padding: 1.25rem;
    }

    .cookie-settings {
        padding: 0.5rem;
    }

    .cookie-settings-box {
        max-height: calc(100dvh - 1rem);
        padding: 1.25rem;
    }

    .cookie-policy {
        padding: 2.5rem 0.85rem;
    }

    .cookie-policy h1 {
        font-size: 1.8rem;
    }
}
