/**
 * @category  Thinkbeat
 * @package   Thinkbeat_EstimatedDelivery
 * @author    Thinkbeat
 * @copyright Copyright (c) 2026 Thinkbeat
 */

/* Animations */
@keyframes ed-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

@keyframes ed-heartbeat {
    0% { transform: scale(1); }
    14% { transform: scale(1.3); }
    28% { transform: scale(1); }
    42% { transform: scale(1.3); }
    70% { transform: scale(1); }
}

@keyframes ed-wiggle {
    0%, 10% { transform: rotate(0); }
    25% { transform: rotate(-15deg); }
    40% { transform: rotate(10deg); }
    55% { transform: rotate(-10deg); }
    70% { transform: rotate(5deg); }
    85% { transform: rotate(-3deg); }
    100% { transform: rotate(0); }
}

@keyframes ed-truck-speed {
    0% { transform: translateX(0) skewX(0deg); }
    20% { transform: translateX(-2px) skewX(-5deg); }
    40% { transform: translateX(4px) skewX(10deg); }
    60% { transform: translateX(-2px) skewX(0deg); }
    80% { transform: translateX(1px) skewX(0deg); }
    100% { transform: translateX(0) skewX(0deg); }
}

@keyframes ed-pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 152, 0, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(255, 152, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 152, 0, 0); }
}

/* All Templates Common */
.estimated-delivery-wrapper {
    margin: 15px 0;
    max-width: 100%;
    box-sizing: border-box;
}

.estimated-delivery-wrapper *,
.estimated-delivery-wrapper *::before,
.estimated-delivery-wrapper *::after {
    box-sizing: border-box;
}

/* Template 1: Classic Green */
.estimated-delivery-template1 {
    width: 100%;
    padding: 16px 20px;
    background: var(--ed-bg, #ffffff);
    border-left: 5px solid var(--ed-icon, #2e7d32);
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.estimated-delivery-template1:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.estimated-delivery-template1 p {
    margin: 0;
    font-size: 14px;
    color: var(--ed-text, #333);
    line-height: 1.6;
    font-weight: 500;
}

/* Template 2: Gradient Orange */
.estimated-delivery-template2 {
    width: 100%;
    padding: 18px 22px;
    background: var(--ed-bg, linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%));
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 4px 15px rgba(230, 81, 0, 0.15);
    border: 1px solid var(--ed-icon, rgba(255, 183, 77, 0.4));
}

.estimated-delivery-template2 .icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    padding: 6px;
}

.estimated-delivery-template2 .icon svg {
    width: 100%;
    height: 100%;
    fill: var(--ed-icon, #e65100);
    animation: ed-wiggle 2s ease-in-out infinite;
}

.estimated-delivery-template2 .text {
    font-size: 14px;
    color: var(--ed-text, #e65100);
    font-weight: 600;
    line-height: 1.5;
    text-shadow: 0 1px 1px rgba(255,255,255,0.5);
}

/* Template 3: Gradient Pink */
.estimated-delivery-template3 {
    width: 100%;
    padding: 18px 22px;
    background: var(--ed-bg, linear-gradient(135deg, #fce4ec 0%, #f8bbd0 100%));
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 4px 15px rgba(194, 24, 91, 0.15);
    border: 1px solid var(--ed-icon, rgba(244, 143, 177, 0.4));
}

.estimated-delivery-template3 .icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    padding: 6px;
}

.estimated-delivery-template3 .icon svg {
    width: 100%;
    height: 100%;
    fill: var(--ed-icon, #c2185b);
    animation: ed-heartbeat 1.5s ease-in-out infinite;
}

.estimated-delivery-template3 .text {
    font-size: 14px;
    color: var(--ed-text, #c2185b);
    font-weight: 600;
    line-height: 1.5;
    text-shadow: 0 1px 1px rgba(255,255,255,0.5);
}

/* Template 4: Clean White Timeline */
.estimated-delivery-template4 {
    width: 100%;
    padding: 24px;
    background: var(--ed-bg, #ffffff);
    border-radius: 16px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    border: 1px solid #f0f0f0;
}

.estimated-delivery-template4 .title {
    font-size: 15px;
    font-weight: 700;
    color: var(--ed-text, #424242);
    margin-bottom: 24px;
    text-align: center;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.estimated-delivery-template4 .timeline {
    display: flex;
    justify-content: space-around;
    gap: 12px;
    position: relative;
    padding-top: 10px;
}

/* Connecting line */
.estimated-delivery-template4 .timeline::before {
    content: '';
    position: absolute;
    top: 35px;
    left: 40px;
    right: 40px;
    height: 2px;
    background: #e0e0e0;
    z-index: 0;
}

.estimated-delivery-template4 .step {
    text-align: center;
    flex: 1;
    position: relative;
    z-index: 1;
}

.estimated-delivery-template4 .step-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 10px;
    background: var(--ed-icon, #4caf50);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 10px rgba(76, 175, 80, 0.3);
    border: 3px solid #fff;
}

.estimated-delivery-template4 .step-icon svg {
    width: 24px;
    height: 24px;
    fill: white;
    animation: ed-float 3s ease-in-out infinite;
}

.estimated-delivery-template4 .step-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--ed-text, #212121);
    margin-bottom: 4px;
}

.estimated-delivery-template4 .step-date {
    font-size: 12px;
    color: var(--ed-text, #757575);
    font-weight: 500;
}

/* Template 5: Dark Gradient */
.estimated-delivery-template5 {
    width: 100%;
    padding: 18px 22px;
    background: var(--ed-bg, linear-gradient(135deg, #323232 0%, #000000 100%));
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid #333;
}

.estimated-delivery-template5 .icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    padding: 6px;
}

.estimated-delivery-template5 .icon svg {
    width: 100%;
    height: 100%;
    fill: var(--ed-icon, #fff);
    animation: ed-truck-speed 2s linear infinite;
}

.estimated-delivery-template5 .text {
    font-size: 14px;
    color: var(--ed-text, #fff);
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: 0.3px;
}

/* Template 6: Ocean Blue Gradient */
.estimated-delivery-template6 {
    width: 100%;
    padding: 18px 22px;
    background: var(--ed-bg, linear-gradient(135deg, #42a5f5 0%, #1976d2 100%));
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.35);
}

.estimated-delivery-template6 .icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    padding: 6px;
}

.estimated-delivery-template6 .icon svg {
    width: 100%;
    height: 100%;
    fill: var(--ed-icon, #fff);
    animation: ed-float 3s ease-in-out infinite;
}

.estimated-delivery-template6 .text {
    font-size: 14px;
    color: var(--ed-text, #fff);
    font-weight: 500;
    line-height: 1.5;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* Template 7: Deep Indigo Gradient */
.estimated-delivery-template7 {
    width: 100%;
    padding: 18px 22px;
    background: var(--ed-bg, linear-gradient(135deg, #3f51b5 0%, #1a237e 100%));
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 4px 15px rgba(26, 35, 126, 0.4);
}

.estimated-delivery-template7 .icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    padding: 6px;
}

.estimated-delivery-template7 .icon svg {
    width: 100%;
    height: 100%;
    fill: var(--ed-icon, #fff);
    animation: ed-wiggle 3s ease-in-out infinite;
}

.estimated-delivery-template7 .text {
    font-size: 14px;
    color: var(--ed-text, #fff);
    font-weight: 500;
    line-height: 1.5;
}

/* Template 8: Premium Peach Timeline */
.estimated-delivery-template8 {
    box-sizing: border-box;
    padding: 24px;
    background: var(--ed-bg, #fff8e1);
    border: 3px solid var(--ed-icon, #ffa726);
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(255, 167, 38, 0.2);
}

.estimated-delivery-template8 .title {
    font-size: 16px;
    font-weight: 700;
    color: var(--ed-text, #e65100);
    text-align: center;
    margin-bottom: 24px;
    text-transform: uppercase;
}

.estimated-delivery-template8 .timeline {
    display: flex;
    justify-content: space-around;
    gap: 12px;
    position: relative;
    padding-top: 10px;
}

.estimated-delivery-template8 .timeline::before {
    content: '';
    position: absolute;
    top: 35px;
    left: 40px;
    right: 40px;
    height: 3px;
    /* Use icon color for line if set, otherwise default gradient */
    background: var(--ed-icon, linear-gradient(to right, #ff9800 33%, #ff9800 66%, #ff9800 100%));
    z-index: 0;
}

.estimated-delivery-template8 .step {
    text-align: center;
    flex: 1;
    position: relative;
    z-index: 1;
}

.estimated-delivery-template8 .step-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 12px;
    background: #fff;
    border: 3px solid var(--ed-icon, #ff9800);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 16px rgba(255, 152, 0, 0.3);
}

.estimated-delivery-template8 .step-icon svg {
    width: 32px;
    height: 32px;
    fill: var(--ed-icon, #e65100);
    animation: ed-pulse 2s ease-in-out infinite;
}

.estimated-delivery-template8 .step-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--ed-text, #e65100);
    margin-bottom: 4px;
}

.estimated-delivery-template8 .step-date {
    font-size: 11px;
    color: var(--ed-text, #f57c00);
    font-weight: 600;
}

/* Template 9: Modern Gradient Glass */
.estimated-delivery-template9 {
    width: 100%;
    padding: 24px;
    background: var(--ed-bg, linear-gradient(135deg, #667eea 0%, #764ba2 100%));
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(118, 75, 162, 0.4);
    color: var(--ed-text, white);
}

.estimated-delivery-template9::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    z-index: 0;
}

.estimated-delivery-template9 .content-wrapper {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 20px;
}

.estimated-delivery-template9 .icon-box {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.estimated-delivery-template9 .icon-box svg {
    width: 28px;
    height: 28px;
    fill: var(--ed-icon, white);
    animation: ed-float 3s ease-in-out infinite;
}

.estimated-delivery-template9 .text-content {
    flex: 1;
}

.estimated-delivery-template9 .title {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
    margin-bottom: 4px;
    font-weight: 600;
}

.estimated-delivery-template9 .date {
    font-size: 16px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Template 10: Neomorphism (Soft UI) */
.estimated-delivery-template10 {
    width: 100%;
    padding: 24px;
    background: var(--ed-bg, #eef1f6);
    border-radius: 20px;
    box-shadow:  12px 12px 24px #d1d5db, 
                -12px -12px 24px #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.estimated-delivery-template10 .icon-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--ed-bg, #eef1f6);
    box-shadow: inset 8px 8px 16px #d1d5db, 
                inset -8px -8px 16px #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.estimated-delivery-template10 .icon-circle svg {
    width: 28px;
    height: 28px;
    fill: var(--ed-icon, #555);
    animation: ed-pulse 2s ease-in-out infinite;
}

.estimated-delivery-template10 .info-group {
    flex: 1;
    text-align: center;
}

.estimated-delivery-template10 .label {
    font-size: 12px;
    color: var(--ed-text, #8892b0);
    font-weight: 600;
    margin-bottom: 5px;
}

.estimated-delivery-template10 .value {
    font-size: 15px;
    color: var(--ed-text, #4b5563);
    font-weight: 700;
}

/* Admin Previews for 9 & 10 (Legacy Support) */
.template9-preview {
    width: 100%;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    color: white;
    display: flex;
    align-items: center;
    gap: 15px;
}

.template9-preview .icon-box {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.template9-preview .icon-box svg {
    width: 24px;
    height: 24px;
    fill: white;
    animation: ed-float 3s ease-in-out infinite;
}

.template9-preview .text {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
}

.template10-preview {
    width: 100%;
    padding: 20px;
    background: #eef1f6;
    border-radius: 16px;
    box-shadow:  8px 8px 16px #d1d5db, -8px -8px 16px #ffffff;
    display: flex;
    align-items: center;
    gap: 15px;
}

.template10-preview .icon-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #eef1f6;
    box-shadow: inset 4px 4px 8px #d1d5db, inset -4px -4px 8px #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.template10-preview .icon-circle svg {
    width: 20px;
    height: 20px;
    fill: #666;
    animation: ed-pulse 2s ease-in-out infinite;
}

.template10-preview .text {
    font-size: 13px;
    color: #555;
    font-weight: 600;
    line-height: 1.4;
}

/* Responsive */
@media (max-width: 767px) {
    .estimated-delivery-template4 .timeline,
    .estimated-delivery-template8 .timeline {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .estimated-delivery-template4 .timeline::before,
    .estimated-delivery-template8 .timeline::before {
        height: 100%;
        width: 2px;
        top: 0;
        bottom: 0;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
    }

    .estimated-delivery-template4 .step,
    .estimated-delivery-template8 .step {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        background: rgba(255,255,255,0.8);
        padding: 10px;
        border-radius: 8px;
    }
}
