.cookie-rolex-modal {
    display: none;
    position: fixed;
    bottom: 40px;
    left: 40px;
    width: 90%;
    z-index: 9999999;
    background: white;
    padding: 20px 26px;
    box-shadow: 0 -1px 10px 0 #acabab4d;
    border-radius: 6px;
}

.cookie-rolex-modal .cookie-modal-categories {
    display: flex;
    gap: 10px;
    width: 100%;
}

.cookie-rolex-modal .cookie-modal-categories .category-header {
    gap: 10px;
    width: 100%;
    justify-content: flex-start;
}

.cookie-rolex-modal #cookie-rolex-configure {
    width: fit-content;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px 0;
    color: #006039;
    font-family: "Helvetica", Sans-serif;
    font-size: 14px;
    font-weight: bold;
}

.cookie-rolex-modal h2,
.cookie-rolex-modal h3,
.cookie-rolex-modal h4,
.cookie-rolex-modal p,
.cookie-rolex-modal button,
.cookie-rolex-modal label,
.cookie-rolex-modal input,
.cookie-rolex-modal span {
    font-family: 'Helvetica', Helvetica, Arial, sans-serif;
}

.cookie-rolex-modal .title,
#modal-manage h4 {
    color: #212121;
    font-weight: 700;
    font-size: 18px;
    line-height: 24px;
    margin: 0 0 12px 0;
    word-break: break-word;
}

.cookie-rolex-modal .description,
#modal-manage p {
    font-size: 14px;
    line-height: 24px;
    font-weight: 400;
    color: #212121;
}

.cookie-rolex-modal .description-btn-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 30%;
}

.cookie-rolex-modal .description-btn-container button,
#save-manage,
#cancel-manage {
    border: 3px solid #006039;
    flex: auto;
    max-width: 100%;
    font-size: 14px;
    font-family: 'Helvetica', Helvetica, Arial, sans-serif;
    line-height: 24px;
    padding: 8px;
    font-weight: 500;
    border-radius: 2px;
    cursor: pointer;
    text-align: center;
    text-transform: none;
    min-height: 0;
    background: transparent;
}

#cookie-small {
    display: none;
    position: fixed;
    bottom: 40px;
    left: 40px;
    z-index: 9999999;
    background: white;
    padding: 15px 15px 10px 15px;
    border: none;
    border-radius: 100%;
    cursor: pointer;
    font-size: 24px;
    border: 3px solid var(--e-global-color-primary);
}

#cookie-small img {
    width: 30px;
}

#modal-manage {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 999999;
    background-color: #3c3c3c46;
    justify-content: center;
    align-items: center;
}

/* Asegurar que el modal se muestre cuando se active */
#modal-manage.show,
#modal-manage[style*="display: block"],
#modal-manage[style*="display:flex"] {
    display: flex !important;
}

#modal-manage .modal-content {
    margin: 0 auto;
    width: 70%;
    z-index: 9999999;
    background: white;
    padding: 20px;
    box-shadow: 0 -1px 10px 0 #acabab4d;
    border-radius: 6px;
}

#modal-manage .container-title {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
}

#modal-manage .container-text {
    width: 60%;
}

.cookie-rolex-modal .switch-container {
    display: flex;
    align-items: center;
    width: 40%;
    height: fit-content;
    justify-content: flex-end;
}

.cookie-rolex-modal .switch-label {
    margin: 0 10px;
    font-size: 12px;
}

.cookie-rolex-modal .switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

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

.cookie-rolex-modal .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
    border-radius: 34px;
}

.cookie-rolex-modal .slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
    border-radius: 50%;
}

.cookie-rolex-modal input:checked+.slider {
    background-color: #3C3C3C;
}

.cookie-rolex-modal input:focus+.slider {
    box-shadow: 0 0 1px #3C3C3C;
}

.cookie-rolex-modal input:checked+.slider:before {
    -webkit-transform: translateX(26px);
    -ms-transform: translateX(26px);
    transform: translateX(26px);
}

#modal-manage .container-btn {
    display: flex;
    gap: 8px;
    margin-top: 20px;
}

/* Estilos específicos para los botones del modal de configuración */
#modal-manage .container-btn #accept-all-manage,
#modal-manage .container-btn #accept-selected-manage,
#modal-manage .container-btn #reject-all-manage  {
    background-color: transparent;
    color: black;
    border: 3px solid #006039;
    width: 100%;
    padding: 10px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 2px;
    cursor: pointer;
    text-align: center;
}

@media (max-width: 768px) {
    #modal-manage .modal-content {
        width: 90%;
    }

    #modal-manage .container-title {
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    #modal-manage .switch-container {
        width: 100%;
        justify-content: center;
    }

    #modal-manage .modal-content h3 {
        text-align: center;
    }

    #cookie-small {
        bottom: 20px;
        left: 20px;
    }

    .cookie-rolex-modal {
        width: 90%;
        bottom: 0;
        left: 0;
        max-width: 100%;
        padding: 20px;
        flex-direction: column;
    }

    .cookie-rolex-modal .description-btn-container {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    .cookie-rolex-modal .cookie-modal-categories {
        flex-direction: column;
        width: 100%;
    }

    .cookie-rolex-modal .cookie-modal-categories .category-header {
        justify-content: space-between;
        width: 100%;
    }
}

/* Estilos para las categorías de cookies */
.cookie-categories {
    margin: 20px 0;
}

.cookie-category {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 16px;
    margin-bottom: 12px;
    background: #fafafa;
}

.cookie-category:last-child {
    margin-bottom: 0;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.category-header h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #212121;
}

.category-description {
    font-size: 13px;
    line-height: 18px;
    color: #666;
    margin: 0;
}

/* Estilos para switches deshabilitados */
.switch input:disabled+.slider {
    background-color: #ccc;
    cursor: not-allowed;
}

.switch input:disabled+.slider:before {
    background-color: #999;
}

/* Estilos para el botón del shortcode */
.rolex-cookies-config-btn {
    background-color: #006039;
    color: white;
    border: 2px solid #006039;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.rolex-cookies-config-btn:hover {
    background-color: #004d2e;
    border-color: #004d2e;
    color: white;
    text-decoration: none;
}

.rolex-cookies-config-btn:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 96, 57, 0.3);
}