/**
* 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.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
*  @author    PrestaShop SA <contact@prestashop.com>
*  @copyright 2007-2025 PrestaShop SA
*  @license   http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
*  International Registered Trademark & Property of PrestaShop SA
*
* Don't forget to prefix your containers with your own identifier
* to avoid any conflicts with others containers.
*/

.ic-shipsched-container {
    background: #fff;
    border: 1px solid #e7e7e7;
    border-radius: 4px;
    padding: 15px;
    margin: 15px 0;
    text-align: center;
}

.ic-shipsched-container.urgent {
    background: #fff3cd;
    border-color: #E67E22;
}

.ic-shipsched-container.closed {
    background: #f8d7da;
    border-color: #dc3545;
}

.ic-shipsched-timer {
    font-size: 1.4em;
    font-weight: bold;
    color: #E67E22;
    display: inline-block;
    padding: 0 5px;
}

.ic-shipsched-container.urgent .ic-shipsched-timer {
    color: #E67E22;
}

.ic-shipsched-container.closed .ic-shipsched-timer {
    color: #721c24;
}

.ic-shipsched-open, .ic-shipsched-closed, .ic-shipsched-vacation {
    display: none;
}

.ic-shipsched-container:not(.closed):not(.vacation) .ic-shipsched-open {
    display: block;
}

.ic-shipsched-container.closed:not(.vacation) .ic-shipsched-closed {
    display: block;
}

.ic-shipsched-container.vacation .ic-shipsched-vacation {
    display: block;
}

/* Styles pour la bulle d'information */
.ic-shipsched-bubble {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 8px 32px rgba(230, 126, 34, 0.15);
    padding: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 1000;
    max-width: 280px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: popAndBounce 1s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border: 2px solid #E67E22;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    font-size: 0.95em;
}

.ic-shipsched-bubble.urgent {
    animation: pulseUrgent 2s infinite;
    background: linear-gradient(135deg, #fff3cd, #ffffff);
}

.ic-shipsched-bubble.closed {
    background: linear-gradient(135deg, #f8d7da, #ffffff);
    border-color: #dc3545;
}

.ic-shipsched-bubble.vacation {
    background: linear-gradient(135deg, #fff3cd, #ffffff);
    border-color: #E67E22;
}

.ic-shipsched-bubble-icon {
    background: linear-gradient(135deg, #E67E22, #f39c12);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(230, 126, 34, 0.2);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.ic-shipsched-bubble-icon:hover {
    transform: scale(1.05) rotate(5deg);
}

.ic-shipsched-bubble-icon i {
    color: #fff;
    font-size: 20px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.ic-shipsched-bubble.closed .ic-shipsched-bubble-icon {
    background: linear-gradient(135deg, #dc3545, #c82333);
}

.ic-shipsched-bubble-content {
    flex: 1;
    min-width: 0;
}

.ic-shipsched-bubble-title {
    font-weight: 600;
    margin-bottom: 4px;
    color: #2c3e50;
    font-size: 1em;
    letter-spacing: 0.2px;
}

.ic-shipsched-bubble-text {
    font-size: 0.9em;
    color: #505c6e;
    line-height: 1.4;
}

.ic-shipsched-bubble-timer {
    font-weight: 700;
    color: #E67E22;
    background: rgba(230, 126, 34, 0.1);
    padding: 2px 8px;
    border-radius: 12px;
    display: inline-block;
    transition: all 0.3s ease;
}

.ic-shipsched-bubble-close {
    background: rgba(0, 0, 0, 0.05);
    border: none;
    padding: 6px;
    cursor: pointer;
    opacity: 0.7;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

.ic-shipsched-bubble-close:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.1);
    transform: rotate(90deg);
}

.ic-shipsched-bubble-close i {
    font-size: 14px;
    color: #505c6e;
}

@keyframes popAndBounce {
    0% {
        transform: scale(0.3) translateY(100px);
        opacity: 0;
    }
    40% {
        transform: scale(1.1) translateY(-20px);
        opacity: 0.7;
    }
    70% {
        transform: scale(0.95) translateY(10px);
        opacity: 0.9;
    }
    100% {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

@keyframes pulseUrgent {
    0% {
        transform: scale(1);
        box-shadow: 0 8px 32px rgba(230, 126, 34, 0.15);
    }
    50% {
        transform: scale(1.02) translateY(-2px);
        box-shadow: 0 12px 36px rgba(230, 126, 34, 0.25);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 8px 32px rgba(230, 126, 34, 0.15);
    }
}

.ic-shipsched-bubble.hidden {
    transform: translateY(100px) scale(0.9);
    opacity: 0;
    pointer-events: none;
}

/* Media queries pour le responsive */
@media (max-width: 767px) {
    .ic-shipsched-bubble {
        left: 10px;
        bottom: 10px;
        max-width: 240px;
        padding: 10px;
        gap: 10px;
        font-size: 0.9em;
        border-radius: 12px;
    }

    .ic-shipsched-bubble-icon {
        width: 36px;
        height: 36px;
    }

    .ic-shipsched-bubble-icon i {
        font-size: 18px;
    }

    .ic-shipsched-bubble-title {
        font-size: 0.95em;
        margin-bottom: 2px;
    }

    .ic-shipsched-bubble-text {
        font-size: 0.85em;
    }

    .ic-shipsched-bubble-close {
        width: 24px;
        height: 24px;
        padding: 4px;
    }

    .ic-shipsched-bubble-close i {
        font-size: 14px;
    }
}

/* Gestion des très petits écrans */
@media (max-width: 320px) {
    .ic-shipsched-bubble {
        left: 8px;
        bottom: 8px;
        max-width: calc(100% - 16px);
        padding: 8px;
        gap: 8px;
    }

    .ic-shipsched-bubble-icon {
        width: 32px;
        height: 32px;
    }

    .ic-shipsched-bubble-icon i {
        font-size: 16px;
    }

    .ic-shipsched-bubble-title {
        font-size: 0.9em;
    }

    .ic-shipsched-bubble-text {
        font-size: 0.8em;
    }
}

/* Gestion de la hauteur pour éviter les conflits */
@media (max-height: 700px) and (max-width: 767px) {
    .ic-shipsched-bubble {
        bottom: 65px;
    }
}

/* Animation de survol */
.ic-shipsched-bubble:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(230, 126, 34, 0.2);
}

/* Support des modes sombres */
@media (prefers-color-scheme: dark) {
    .ic-shipsched-bubble {
        background: rgba(255, 255, 255, 0.98);
    }
}


