/**
 * WC Estimated Delivery Pro - Frontend Styles
 */

.wced-delivery-estimate {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    margin: 15px 0;
    background-color: #f8f9fa;
    transition: all 0.3s ease;
}

.wced-delivery-estimate:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.wced-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wced-icon-emoji {
    font-size: 20px;
    line-height: 1;
}

.wced-icon-svg {
    width: 22px;
    height: 22px;
}

.wced-icon-svg svg {
    width: 100%;
    height: 100%;
}

.wced-icon-custom {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.wced-message {
    flex: 1;
    font-size: 14px;
    line-height: 1.4;
}

/* Animation for AJAX updates */
.wced-delivery-estimate.wced-updating {
    opacity: 0.6;
}

.wced-delivery-estimate.wced-updated {
    animation: wced-pulse 0.5s ease;
}

@keyframes wced-pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
    100% {
        transform: scale(1);
    }
}

/* Product page positioning */
.product .wced-delivery-estimate {
    margin-top: 20px;
}

/* Cart page positioning */
.woocommerce-cart .wced-delivery-estimate {
    margin-bottom: 20px;
}

/* Trust Badges */
.wced-trust-badges {
    display: grid;
    gap: 10px;
    margin: 20px 0 10px 0;
}

.wced-trust-badge {
    border-radius: 8px;
    padding: 12px 10px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.wced-trust-badge:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.wced-badge-icon {
    font-size: 24px;
    line-height: 1;
}

.wced-badge-text {
    font-size: 12px;
    line-height: 1.3;
    font-weight: 500;
}

/* Responsive */
@media screen and (max-width: 600px) {
    .wced-delivery-estimate {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }

    .wced-icon {
        margin: 0;
    }

    /* Trust badges stack vertically on mobile */
    .wced-trust-badges {
        grid-template-columns: 1fr !important;
    }

    .wced-trust-badge {
        flex-direction: row;
        text-align: left;
        padding: 10px 15px;
    }

    .wced-badge-icon {
        font-size: 20px;
    }

    .wced-badge-text {
        font-size: 13px;
    }
}
