/**
 * B2B DHL Shipping Frontend Styles
 */

.b2b-shipping-details {
    font-size: 14px;
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dhl-details {
    border-color: #D40511 !important;
}

.container-details {
    border-color: #0077B6 !important;
}

.b2b-shipping-calculator {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.b2b-shipping-calculator h2 {
    color: #333;
    border-bottom: 2px solid #D40511;
    padding-bottom: 10px;
}

.b2b-shipping-calculator button[type="submit"]:hover {
    background: #b00410 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(212, 5, 17, 0.3);
    transition: all 0.3s ease;
}

.shipping-comparison {
    animation: slideIn 0.4s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive styles */
@media (max-width: 768px) {
    .b2b-shipping-calculator {
        padding: 15px !important;
    }
    
    .shipping-comparison > div {
        grid-template-columns: 1fr !important;
    }
}

/* Loading animation */
.b2b-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(212, 5, 17, 0.3);
    border-radius: 50%;
    border-top-color: #D40511;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Savings badge */
.savings-badge {
    background: linear-gradient(135deg, #06D6A0 0%, #05b389 100%);
    box-shadow: 0 4px 12px rgba(6, 214, 160, 0.3);
    animation: pulse 2s ease-in-out infinite;
}

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

/* Checkout shipping comparison */
.woocommerce-checkout .b2b-shipping-details {
    margin-top: 8px;
    padding: 12px;
    background: #f9f9f9;
    border-radius: 4px;
}

.woocommerce-checkout .dhl-details {
    border-left: 3px solid #D40511;
}

.woocommerce-checkout .container-details {
    border-left: 3px solid #0077B6;
}

/* Price highlights */
.shipping-cost-highlight {
    font-size: 1.2em;
    font-weight: bold;
    color: #D40511;
}

/* Icons */
.shipping-icon {
    display: inline-block;
    margin-right: 5px;
}

/* Tooltips */
.b2b-tooltip {
    position: relative;
    display: inline-block;
    cursor: help;
}

.b2b-tooltip:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 12px;
    background: #333;
    color: white;
    border-radius: 4px;
    white-space: nowrap;
    z-index: 1000;
    font-size: 12px;
}
