/**
 * 2007-2025 PrestaShop
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the Academic Free License (AFL 3.0)
 * that is bundled with this package in the file LICENSE.txt.
 * It is also available through the world-wide-web at this URL:
 * http://opensource.org/licenses/afl-3.0.php
 * If you did not receive a copy of the license and are unable to
 * obtain it through the world-wide-web, please send an email
 * to license@prestashop.com so we can send you a copy immediately.
 *
 * @author    eComm360
 * @copyright 2025 eComm360
 * @license   http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
 */

/* Skeleton loading animation */
.integrafy-skeleton {
    display: inline-block;
    min-width: 80px;
    height: 1em;
    background: linear-gradient(90deg, #e8e8e8 25%, #f5f5f5 50%, #e8e8e8 75%);
    background-size: 200% 100%;
    animation: integrafy-shimmer 1.5s infinite;
    border-radius: 3px;
}

.integrafy-skeleton-line {
    display: block;
    width: 60%;
    height: 1em;
    margin: 4px 0;
}

@keyframes integrafy-shimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Fecha de envío en PDP y PLP */
.integrafy-delivery-date {
    display: flex;
    width: 100%;
    align-items: start;
    gap: 6px;
    font-size: 0.9em;
    margin: 8px 0;
    padding: 6px 10px;
    border-radius: 3px;
    min-height: 36px;
}

.integrafy-delivery-date i {
    font-size: 18px;
}

.integrafy-delivery-date .integrafy-delivery-label {
    font-weight: 600;
}

.integrafy-delivery-date .integrafy-delivery-value {
    font-weight: 700;
    min-width: 60px;
    min-height: 1em;
}

/* Desglose de fechas en líneas de carrito */
.integrafy-cart-breakdown {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 6px;
    padding: 6px 10px;
    background-color: #e8f5e9;
    border-radius: 3px;
    font-size: 0.85em;
    color: #2e7d32;
    min-height: 32px;
}

.integrafy-cart-breakdown i {
    font-size: 16px;
    color: #388e3c;
    flex-shrink: 0;
    margin-top: 2px;
}

.integrafy-breakdown-lines {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 120px;
}

.integrafy-breakdown-line {
    display: flex;
    align-items: center;
    gap: 4px;
}

.integrafy-breakdown-qty,
.integrafy-breakdown-date {
    font-weight: 700;
}

/* Resumen de fechas en footer carrito y resumen checkout */
.integrafy-delivery-summary {
    background-color: #e8f5e9;
    border: 1px solid #a5d6a7;
    border-radius: 4px;
    padding: 12px 15px;
    margin: 12px 0;
    font-size: 0.9em;
    color: #1b5e20;
    min-height: 60px;
}

.integrafy-delivery-summary-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 1em;
    color: #2e7d32;
}

.integrafy-delivery-summary-header i {
    font-size: 20px;
}

.integrafy-delivery-summary-content {
    min-height: 1.2em;
}

.integrafy-delivery-summary-product {
    margin-bottom: 4px;
}

.integrafy-summary-line {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 2px 0;
}

.integrafy-summary-qty,
.integrafy-summary-date {
    font-weight: 700;
}

.integrafy-checkout-delivery {
    border-color: #81c784;
}

/* Precio por almacén en desglose de carrito */
.integrafy-breakdown-price {
    font-weight: 600;
}

.integrafy-breakdown-summary {
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px dashed #a5d6a7;
    font-size: 0.95em;
}

.integrafy-breakdown-summary-label {
    font-weight: 600;
}

.integrafy-breakdown-summary-value {
    font-weight: 700;
}
