/* WooLogger Thank You Page - Shipping Card Styles (System Design Compatible) */

.wlg-ty-shipping-card {
    margin-top: 16px;
    animation: wlgFadeInUp 0.5s ease-out 0.3s both;
}

.wlg-ty-shipment-item {
    padding: 16px 18px;
    background: var(--wlg-ty-bg);
    border-bottom: 1px solid var(--wlg-ty-border-light);
    transition: background 0.15s ease;
}

.wlg-ty-shipment-item:last-child {
    border-bottom: 1px solid var(--wlg-ty-border);
}

.wlg-ty-shipment-item:hover {
    background: rgba(0,0,0,0.01);
}

.wlg-ty-shipment-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.wlg-ty-shipment-logo {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: 1px solid var(--wlg-ty-border-light);
    border-radius: 8px;
    padding: 4px;
}

.wlg-ty-shipment-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.wlg-ty-shipment-courier {
    font-weight: 700;
    color: var(--wlg-ty-text);
    font-size: 15px;
    line-height: 1.3;
}

.wlg-ty-shipment-body {
    margin-bottom: 12px;
}

.wlg-ty-shipment-tracking {
    font-size: 13px;
    color: var(--wlg-ty-text-secondary);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.wlg-ty-shipment-label {
    color: var(--wlg-ty-text-muted);
    font-weight: 500;
    font-size: 12px;
}

.wlg-ty-shipment-tracking-number {
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-weight: 600;
    color: var(--wlg-ty-text);
    letter-spacing: 0.5px;
}

.wlg-ty-shipment-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.wlg-ty-shipment-status-preparing {
    background: #f3f4f6;
    color: var(--wlg-ty-text-secondary);
}

.wlg-ty-shipment-status-shipped {
    background: #e0e7ff;
    color: #3730a3;
}

.wlg-ty-shipment-status-in_transit {
    background: #ede9fe;
    color: #5b21b6;
}

.wlg-ty-shipment-status-delivered {
    background: #dcfce7;
    color: #166534;
}

.wlg-ty-shipment-status-returned {
    background: #fee2e2;
    color: #991b1b;
}

.wlg-ty-track-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 18px;
    background: #111111;
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s ease;
    width: 100%;
    box-sizing: border-box;
}

.wlg-ty-track-btn:hover {
    background: #333333;
    transform: translateY(-1px);
}

.wlg-ty-track-btn svg {
    width: 14px;
    height: 14px;
}

@media (max-width: 640px) {
    .wlg-ty-shipment-item {
        padding: 14px 16px;
    }

    .wlg-ty-shipment-logo {
        width: 36px;
        height: 36px;
    }

    .wlg-ty-shipment-courier {
        font-size: 14px;
    }

    .wlg-ty-track-btn {
        padding: 9px 16px;
        font-size: 12px;
    }
}

/* Premium Tracking Stepper Visual Upgrade */
.wlg-tracking-stepper {
    margin: 24px 0 16px 0;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(229, 231, 235, 0.5);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.02), 0 8px 10px -6px rgba(0, 0, 0, 0.02);
}

.wlg-tracking-stepper-stages {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    position: relative;
    gap: 12px;
}

.wlg-tracking-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
    position: relative;
    z-index: 2;
}

.wlg-stage-icon-wrap {
    position: relative;
    width: 46px;
    height: 46px;
    margin-bottom: 12px;
}

.wlg-stage-icon {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #f3f4f6;
    color: #9ca3af;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #ffffff;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.wlg-stage-icon svg {
    width: 20px;
    height: 20px;
    stroke-width: 2.25px;
    transition: transform 0.4s ease;
}

.wlg-stage-pulse {
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border-radius: 50%;
    border: 2px solid transparent;
    opacity: 0;
    pointer-events: none;
    z-index: -1;
}

/* Connectors */
.wlg-tracking-connector {
    flex: 1;
    height: 3px;
    background: #e5e7eb;
    margin-top: 22px;
    position: relative;
    z-index: 1;
    border-radius: 2px;
    transition: background 0.4s ease;
}

/* Connector statuses */
.wlg-tracking-connector.wlg-conn-completed {
    background: linear-gradient(90deg, #4f46e5 0%, #6366f1 100%);
}

/* Stage status classes */
.wlg-tracking-stage.wlg-step-completed .wlg-stage-icon {
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(79, 70, 229, 0.3);
}

.wlg-tracking-stage.wlg-step-completed .wlg-stage-icon svg {
    transform: scale(1.05);
}

.wlg-tracking-stage.wlg-step-active .wlg-stage-icon {
    background: #ffffff;
    color: #4f46e5;
    border-color: #4f46e5;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.15), 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.wlg-tracking-stage.wlg-step-active .wlg-stage-pulse {
    border-color: #4f46e5;
    opacity: 1;
    animation: wlgPulseGlow 2s infinite;
}

.wlg-tracking-stage.wlg-step-pending .wlg-stage-icon {
    background: #f9fafb;
    color: #d1d5db;
    border-color: #f3f4f6;
}

.wlg-stage-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.wlg-stage-title {
    font-size: 13px;
    font-weight: 700;
    color: #1e293b;
    transition: color 0.3s ease;
}

.wlg-tracking-stage.wlg-step-active .wlg-stage-title {
    color: #4f46e5;
}

.wlg-tracking-stage.wlg-step-pending .wlg-stage-title {
    color: #94a3b8;
}

.wlg-stage-desc {
    font-size: 11px;
    color: #64748b;
    font-weight: 500;
}

.wlg-tracking-stage.wlg-step-pending .wlg-stage-desc {
    color: #cbd5e1;
}

/* Returned alert */
.wlg-returned-alert {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #fef2f2;
    border: 1px solid #fee2e2;
    border-radius: 12px;
    padding: 16px 20px;
    margin-top: 16px;
    box-shadow: 0 4px 6px -1px rgba(239, 68, 68, 0.05);
}

.wlg-returned-alert-icon {
    color: #ef4444;
    flex-shrink: 0;
}

.wlg-returned-alert-icon svg {
    width: 24px;
    height: 24px;
}

.wlg-returned-alert-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.wlg-returned-alert-title {
    font-size: 14px;
    font-weight: 700;
    color: #991b1b;
}

.wlg-returned-alert-desc {
    font-size: 12px;
    color: #b91c1c;
    font-weight: 500;
    line-height: 1.4;
}

@keyframes wlgPulseGlow {
    0% {
        transform: scale(0.95);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.15);
        opacity: 0;
    }
    100% {
        transform: scale(0.95);
        opacity: 0;
    }
}

/* Mobile responsive layout */
@media (max-width: 767px) {
    .wlg-tracking-stepper-stages {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding-left: 20px;
    }
    
    .wlg-tracking-stage {
        flex-direction: row;
        align-items: center;
        text-align: left;
        gap: 16px;
        width: 100%;
        margin-bottom: 0;
        padding: 12px 0;
    }
    
    .wlg-stage-icon-wrap {
        margin-bottom: 0;
        flex-shrink: 0;
    }
    
    .wlg-tracking-connector {
        width: 3px;
        height: 24px;
        margin-left: 21px;
        margin-top: 0;
        margin-bottom: 0;
        flex: none;
    }
    
    .wlg-stage-info {
        gap: 2px;
    }
}

