/* Estilos generales para la página */

/* The Modal (background) */
.my-custom-modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

.text-sm {
    font-size: .875rem;
}

.my-custom-cookie-banner {
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    width: 60%;
}

.my-custom-cookie-banner-content {
    display: flex;
    align-items: center;
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    padding: 20px;
    width: 100%;
    gap: 30px;
}

.my-custom-cookie-logo {
    width: 100%;
}

    .my-custom-cookie-logo img {
        height: 28vh;
        object-fit: contain;
        margin-right: 20px;
    }

.my-custom-cookie-info {
    flex-grow: 1;
}

    .my-custom-cookie-info h2 {
        font-size: 18px !important;
        color: #333;
        font-weight: 600;
    }

    .my-custom-cookie-info p {
        margin: 10px 0;
        color: #666;
        font-size: 14px;
    }

.my-custom-cookie-options {
    display: flex;
    gap: 20px;
    padding-top: 10px;
    padding-bottom: 10px;
}

    .my-custom-cookie-options label {
        display: flex;
        align-items: center;
        font-size: 14px;
        color: #6B7280;
    }

    .my-custom-cookie-options input[type="checkbox"] {
        margin-left: 10px;
        width: 20px;
        height: 20px;
    }

/* Estilo para alinear los botones uno sobre el otro */
.my-custom-cookie-actions {
    display: flex;
    flex-direction: column; /* Cambia la dirección del flujo a columna */
    gap: 5px; /* Espacio entre los botones */
}

    .my-custom-cookie-actions .my-custom-btn {
        padding: 13px 65px !important;
        border: none;
        border-radius: 5px;
        cursor: pointer;
        font-size: 14px;
        font-weight: 500;
    }

        .my-custom-cookie-actions .my-custom-btn.accept {
            background-color: #00234a;
            color: #fff;
        }

        .my-custom-cookie-actions .my-custom-btn.decline {
            background-color: #f9f9f9;
            color: #333;
            border: 1px solid #ccc;
        }

/*Switches*/

.my-custom-switch {
    --secondary-container: #00234a;
    --primary: #fff;
    font-size: 17px;
    position: relative;
    display: inline-block;
    width: 3.4em;
    height: 1.4em;
}

    .my-custom-switch input {
        display: none;
        opacity: 0;
        width: 0;
        height: 0;
    }

.my-custom-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .2s;
    border-radius: 30px;
}

    .my-custom-slider:before {
        position: absolute;
        content: "";
        height: 1em;
        width: 1em;
        border-radius: 20px;
        left: 0.2em;
        bottom: 0.2em;
        background-color: #fff;
        transition: .4s;
    }

input:checked + .my-custom-slider::before {
    background-color: var(--primary);
}

input:checked + .my-custom-slider {
    background-color: var(--secondary-container);
}

input:focus + .my-custom-slider {
    box-shadow: 0 0 1px var(--secondary-container);
}

input:checked + .my-custom-slider:before {
    transform: translateX(1.9em);
}

/* Vista en pantallas medianas (tablets) */
@media (max-width: 1400px) {
    .my-custom-cookie-banner {
        width: 80%;
    }

    .my-custom-cookie-logo img {
        width: 100%;
    }

    .my-custom-cookie-logo img {
        height: 22vh;
    }

    .my-custom-cookie-banner-content {
        flex-direction: column; /* Mantén la dirección horizontal para tablets */
        align-items: center; /* Centra los elementos en el eje transversal */
        gap: 20px;
    }

    .my-custom-cookie-logo,
    .my-custom-cookie-info,
    .my-custom-cookie-actions {
        flex: 1 1 100%; /* Permite que cada elemento ocupe el 100% del ancho disponible */
        text-align: center; /* Centra el contenido para mejorar la legibilidad */
    }

        .my-custom-cookie-info h2 {
            font-size: 16px;
        }

        .my-custom-cookie-info p {
            font-size: 12px;
        }

    .my-custom-cookie-options {
        justify-content: center; /* Centra las opciones de cookies */
        flex-direction: row;
    }

    .my-custom-cookie-actions .my-custom-btn {
        padding: 10px 50px !important; /* Ajusta el padding de los botones */
    }

    .my-custom-cookie-actions {
        flex-direction: row;
    }
}

/* Media Queries para responsividad */
@media (max-width: 768px) {
    .my-custom-cookie-logo img {
        height: 22vh;
    }

    .my-custom-cookie-logo {
        margin-bottom: 10px; /* Añade un margen inferior para separar el logo de los otros elementos */
    }

    .my-custom-cookie-info {
        text-align: center; /* Centra el texto en pantallas pequeñas */
    }

    .my-custom-cookie-options {
        flex-direction: row; /* Cambia las opciones a columnas en pantallas pequeñas */
        align-items: center; /* Centra las opciones en el eje transversal */
        gap: 10px; /* Ajusta el espacio entre opciones */
    }

    .my-custom-cookie-actions {
        width: 100%;
        align-items: center; /* Centra los botones en el eje transversal */
    }

        .my-custom-cookie-actions .my-custom-btn {
            width: 80% !important; /* Ajusta el ancho de los botones */
        }
}

@media (max-width: 480px) {
    .my-custom-cookie-logo img {
        height: 22vh;
    }

    .my-custom-cookie-banner {
        width: 90%;
        padding: 10px;
    }

    .my-custom-cookie-banner-content {
        padding: 10px;
        gap: 10px;
    }

    .my-custom-cookie-actions .my-custom-btn {
        padding: 10px 40px !important;
    }

    .my-custom-cookie-options {
        flex-direction: row; /* Cambia las opciones a columnas en pantallas pequeñas */
    }

    .my-custom-cookie-actions {
        flex-direction: row;
    }
}

@media (max-width: 360px) {
    .my-custom-cookie-options {
        flex-direction: column;
    }
}
