.sgp-shipping-message {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 15px 0;
    border-radius: 12px;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.sgp-shipping-message.is-ready {
    opacity: 1;
}

.sgp-shipping-message--product {
    padding: 14px 18px;
    background-color: #f2f9f4;
}

.sgp-shipping-message--cart {
    min-height: 48px;
    padding: 12px 15px;
    margin-bottom: 20px;
    border: 2px solid #ff4d4d;
    background: #fff5f2;
    animation: sgp-soft-pulse 2s infinite;
}

.sgp-shipping-message--loop {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-height: 0;
    gap: 7px;
    margin: 9px 0 0;
    padding: 8px 10px;
    border-radius: 8px;
    background: #f2f9f4;
}

.sgp-shipping-message__icon {
    flex-shrink: 0;
}

.sgp-shipping-icon {
    width: 32px;
    height: 32px;
    fill: #5eb560;
}

.sgp-inline-icon {
    display: inline-flex;
    font-size: 20px;
    animation: sgp-bolt-flash 1s infinite;
}

.sgp-shipping-message__text {
    font-size: 14px;
    line-height: 1.4;
    color: #201917;
}

.sgp-shipping-message--loop .sgp-shipping-icon {
    width: 20px;
    height: 20px;
}

.sgp-shipping-message--loop .sgp-shipping-message__text {
    min-width: 0;
    overflow-wrap: anywhere;
    font-size: 12.5px;
    line-height: 1.3;
    color: #333;
}

.sgp-shipping-message--product .sgp-shipping-message__text strong {
    color: #222;
}

.sgp-shipping-message--cart .sgp-shipping-message__text strong {
    color: #ff4d4d;
    text-decoration: underline;
}

.sgp-highlight {
    color: #5eb560;
    font-weight: 700;
}

.sgp-shipping-message__progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255, 77, 73, 0.1);
}

.sgp-shipping-message__progress-bar {
    height: 100%;
    width: 100%;
    background: #ff4d4d;
    transform-origin: left;
}

.sgp-shipping-message--cart.is-counting .sgp-shipping-message__progress-bar {
    animation: sgp-shrink-bar 60s linear infinite;
}

@keyframes sgp-soft-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 77, 77, 0.2);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 77, 77, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 77, 77, 0);
    }
}

@keyframes sgp-bolt-flash {
    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

@keyframes sgp-shrink-bar {
    from {
        transform: scaleX(1);
    }
    to {
        transform: scaleX(0);
    }
}
