
/* =========================================
   ARVIPO - COOKIES
========================================= */

.arv-cookie-banner[hidden],
.arv-cookie-modal[hidden] {
    display: none !important;
}

.arv-cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 99990;
    background: #fff;
    border-top: 3px solid #e30613;
    box-shadow: 0 -5px 35px rgba(0, 0, 0, .15);
}

.arv-cookie-banner-inner {
    max-width: 1400px;
    margin: auto;
    padding: 25px 35px;
    display: flex;
    align-items: center;
    gap: 40px;
}

.arv-cookie-banner-text {
    flex: 1;
}

.arv-cookie-banner-text h2 {
    font-size: 17px;
    font-weight: 800;
    margin-bottom: 10px;
    color: #252525;
}

.arv-cookie-banner-text p {
    font-size: 13px;
    line-height: 1.7;
    color: #666;
    margin: 0;
}

.arv-cookie-banner a,
.arv-cookie-modal a {
    color: #e30613;
    text-decoration: underline;
}

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

.arv-cookie-btn {
    border: 1px solid #252525;
    border-radius: 3px;
    padding: 12px 18px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: .2s;
    white-space: nowrap;
}

.arv-cookie-btn-primary {
    background: #e30613;
    border-color: #e30613;
    color: #fff;
}

.arv-cookie-btn-primary:hover {
    background: #b9000b;
    border-color: #b9000b;
}

.arv-cookie-btn-outline {
    background: #fff;
    color: #252525;
}

.arv-cookie-btn-outline:hover {
    background: #252525;
    color: #fff;
}

/* MODAL */

.arv-cookie-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0, 0, 0, .65);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.arv-cookie-modal-content {
    width: 100%;
    max-width: 650px;
    max-height: 90vh;
    overflow-y: auto;
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, .2);
}

.arv-cookie-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 1px solid #eee;
}

.arv-cookie-modal-header h2 {
    font-size: 19px;
    font-weight: 800;
    margin: 0;
}

.arv-cookie-close {
    border: 0;
    background: transparent;
    font-size: 30px;
    cursor: pointer;
    color: #555;
}

.arv-cookie-modal-body {
    padding: 30px;
}

.arv-cookie-modal-body > p {
    font-size: 14px;
    line-height: 1.8;
    color: #666;
}

.arv-cookie-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 23px 0;
    border-bottom: 1px solid #eee;
}

.arv-cookie-option strong {
    font-size: 15px;
}

.arv-cookie-option p {
    font-size: 12px;
    color: #777;
    margin: 8px 0 0;
}

.arv-cookie-required {
    color: #777;
    font-size: 12px;
    white-space: nowrap;
}

.arv-cookie-modal-link {
    margin-top: 20px;
}

.arv-cookie-modal-footer {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
    padding: 20px 30px;
    border-top: 1px solid #eee;
}

/* INTERRUPTOR */

.arv-cookie-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
    flex-shrink: 0;
}

.arv-cookie-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.arv-cookie-switch-slider {
    position: absolute;
    inset: 0;
    background: #ccc;
    border-radius: 30px;
    cursor: pointer;
    transition: .2s;
}

.arv-cookie-switch-slider::before {
    content: "";
    position: absolute;
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background: #fff;
    border-radius: 50%;
    transition: .2s;
}

.arv-cookie-switch input:checked + .arv-cookie-switch-slider {
    background: #e30613;
}

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

.arv-cookie-switch input:focus-visible + .arv-cookie-switch-slider {
    outline: 2px solid #252525;
    outline-offset: 3px;
}

/* RESPONSIVE */

@media (max-width: 991px) {
    .arv-cookie-banner-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
        padding: 22px;
    }

    .arv-cookie-banner-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 575px) {
    .arv-cookie-banner-actions {
        flex-direction: column;
    }

    .arv-cookie-btn {
        width: 100%;
    }

    .arv-cookie-modal-header,
    .arv-cookie-modal-body,
    .arv-cookie-modal-footer {
        padding: 20px;
    }

    .arv-cookie-modal-footer {
        flex-direction: column;
    }
}
