
/* Estilos generales de la tabla */
.product-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.product-table th, .product-table td {
    border: 1px solid #ddd;
    padding: 8px;
}

.product-table th {
    background-color: #f4f4f4;
    text-align: left;
}

.product-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.product-table tr:hover {
    background-color: #f1f1f1;
}

.product-table img {
    max-width: 50px;
    height: auto;
}

/* Estilos del popup y direccion */
.ast-header-html.inner-link-style- {
    cursor: pointer;
}

.selected-address-text {
    color: white;
    font-size: 16px;
}
.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.popup-content {
    background-color: white;
    padding: 20px;
    width: 400px;
    max-width: 90%;
    border-radius: 8px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
}

.popup-content h2 {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 10px;
}

.popup-content p {
    font-size: 14px;
    margin-bottom: 15px;
    color: #666666;
}

.popup-content .input-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.popup-content .ast-input-text {
    width: 100%;
    padding: 12px;
    border-radius: 4px;
    border: 1px solid #ccc;
    margin-bottom: 10px;
}

.popup-content .ast-button {
    width: 100%;
    padding: 12px;
    background-color: #26352E;
    color: white;
    border: none;
    border-radius: 0px;
    cursor: pointer;
    font-size: 16px;
}

.popup-content .ast-button:hover {
    background-color: #26352E;
} 

.popup-content .close-popup {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    cursor: pointer;
    background: none;
    border: none;
    color: #333;
}


/**Spinner**/
.spinner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1001;
    display: none; /* Oculto por defecto */
}

.spinner {
    border: 8px solid #f3f3f3;
    border-top: 8px solid #2196F3;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


/* ----------------------------------------------------------------------------------------------------------------------------------------- */
/* css para tabla beneficios */

.benefits-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #e0f7f7;
}
.benefits-table thead th {
    background-color: #88d8d8;
    padding: 10px;
    text-align: left;
    font-weight: bold;
}
.benefits-table tbody tr {
    border-bottom: 1px solid #ccc;
}
.benefits-table tbody td {
    padding: 10px;
}
.circle {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1px solid #88d8d8;
    margin-right: 5px;
}
.circle.filled {
    background-color: #3498db;
}
.view-button {
    padding: 5px 10px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}
.view-button:hover {
    background-color: #1d6fa5;
}



.astra-shop-thumbnail-wrap {
    width: 100%;
    max-width: 100%;
    display: block;
}
.woocommerce-js ul.products li.product a img {
    width: 90%;
}

/* Estilos para el icono de corazón */
.corazon {
    width: 10px;
    height: 10px;
    position: relative;
    transform: rotate(-135deg);
    margin: 4px;
    background: white;
    }

    .corazon::before,
    .corazon::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: inherit;
    background-color: white;
    }

    .corazon::before {
    left: 5px;  /* Ajustado para que se vea correctamente */
    top: 0;
    }

    .corazon::after {
    left: 0;
    top: 5px;  /* Ajustado para que se vea correctamente */
    }

/* Estilos para el icono de billete */
.money-icon {
    position: relative;
    display: inline-block;
    width: 24px;
    height: 12px;
    border: 2px solid white;
    border-radius: 4px;
}
.money-icon::before {
    content: "$";
    color: white;
    position: absolute;
    font-size: 10px;
    font-weight: bold;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.field-error {
    border-color: red !important;
}


/* estilo css ribons */
.woocommerce ul.products li.product .woocommerce-loop-product__link{
    overflow: visible !important;
}

.woocommerce-js ul.products li.product a img {
    width: 100%;
    height:100% !important; max-height:300px; 
    object-fit: contain !important;
}
.woocommerce ul.products li.product .astra-shop-thumbnail-wrap{
    margin: min(8vw, 50px) 0 !important;
}

.ast-article-post {
    margin-bottom: 1em !important;
}

.loyalty-ribbon {
    color: white;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    padding: 10px 0;
    width: 100%!important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 5px;
    border-radius: 20px;
    position: absolute;
    bottom: 0;
    transform: translateY(30px);
    line-height: 1;
}

.mensaje-beneficio {
    background-color: #E0F7FA; /* Azul cielo */
    border: 1px solid #81D4FA;
    color: #0277BD;
    padding: 15px;
    margin: 20px 0;
    border-radius: 8px;
    font-size: 16px;
    text-align: center;
    font-weight: 600;
    position: relative;
}

.icono-info {
    background-color: #81D4FA; /* Azul más fuerte */
    color: white;
    border-radius: 50%;
    display: inline-block;
    width: 24px;
    height: 24px;
    line-height: 24px;
    text-align: center;
    font-weight: bold;
    margin-right: 10px;
    font-size: 16px;
}
