/* =============================================
   WOOCOFY — Frontend Order Tracking CSS
   ============================================= */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

.wcf-tracking-wrap {
    max-width: 700px;
    margin: 40px auto;
    padding: 0 20px;
    font-family: 'Inter', sans-serif;
}

.wcf-tracking-hero {
    text-align: center;
    margin-bottom: 32px;
}

.wcf-tracking-logo {
    font-size: 56px;
    display: block;
    margin-bottom: 16px;
    animation: wcfBounce 2s ease infinite;
}

@keyframes wcfBounce {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-8px); }
}

.wcf-tracking-hero h2 {
    font-size: 28px;
    font-weight: 800;
    color: #1a1a1a;
    margin: 0 0 8px;
}

.wcf-tracking-hero p {
    color: #6b7177;
    font-size: 15px;
    margin: 0;
}

/* Form card */
.wcf-tracking-form-card {
    background: #fff;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 4px 20px rgba(0,0,0,.08);
    border: 1px solid #e1e3e5;
    margin-bottom: 28px;
}

.wcf-track-form-group {
    margin-bottom: 18px;
}

.wcf-track-form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #4a4f54;
    margin-bottom: 6px;
}

.wcf-track-input {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #e1e3e5;
    border-radius: 10px;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: all .2s;
    box-sizing: border-box;
}

.wcf-track-input:focus {
    border-color: #008060;
    box-shadow: 0 0 0 3px rgba(0,128,96,.12);
}

.wcf-track-submit-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #008060, #00a076);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all .2s;
    box-shadow: 0 4px 12px rgba(0,128,96,.25);
}

.wcf-track-submit-btn:hover {
    background: linear-gradient(135deg, #006b50, #008060);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0,128,96,.3);
}

.wcf-track-submit-btn:active {
    transform: translateY(0);
}

.wcf-track-error {
    margin-top: 12px;
    padding: 12px 16px;
    background: #fdf0ee;
    border: 1px solid #d72c0d;
    border-radius: 8px;
    color: #d72c0d;
    font-size: 13px;
    font-weight: 500;
}

/* Result card */
.wcf-track-result {
    background: #fff;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 4px 20px rgba(0,0,0,.08);
    border: 1px solid #e1e3e5;
    animation: wcfFadeIn .4s ease;
}

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

.wcf-track-result-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.wcf-track-result-header h3 {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 4px;
    color: #1a1a1a;
}

.wcf-track-meta {
    font-size: 13px;
    color: #8c9196;
}

/* Status badge in result */
.wcf-result-status-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    background: #e3f5f0;
    color: #008060;
}

/* Delivery steps */
.wcf-track-steps {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 24px;
    position: relative;
}

.wcf-track-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 1;
    position: relative;
    z-index: 1;
}

.wcf-track-step-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    border: 2px solid #e1e3e5;
    transition: all .4s;
}

.wcf-track-step.wcf-step-done .wcf-track-step-icon {
    background: #e3f5f0;
    border-color: #008060;
}

.wcf-track-step.wcf-step-active .wcf-track-step-icon {
    background: #008060;
    border-color: #008060;
    box-shadow: 0 0 0 4px rgba(0,128,96,.2);
    animation: wcfPulse 2s ease infinite;
}

@keyframes wcfPulse {
    0%, 100% { box-shadow: 0 0 0 4px rgba(0,128,96,.2); }
    50%       { box-shadow: 0 0 0 8px rgba(0,128,96,.1); }
}

.wcf-track-step-label {
    font-size: 11px;
    font-weight: 600;
    color: #8c9196;
    text-align: center;
    line-height: 1.3;
    transition: color .3s;
}

.wcf-track-step.wcf-step-done .wcf-track-step-label,
.wcf-track-step.wcf-step-active .wcf-track-step-label {
    color: #008060;
}

.wcf-track-step-connector {
    position: absolute;
    top: 21px;
    left: 50%;
    width: 100%;
    height: 2px;
    background: #e1e3e5;
    z-index: -1;
}

.wcf-track-step:last-child .wcf-track-step-connector { display: none; }

.wcf-track-step.wcf-step-done .wcf-track-step-connector {
    background: #008060;
}

/* Truck animated bar */
.wcf-track-truck-bar {
    margin: 0 0 28px;
}

.wcf-track-road {
    position: relative;
    height: 10px;
    background: #e1e3e5;
    border-radius: 5px;
    overflow: visible;
}

.wcf-track-fill {
    height: 100%;
    background: linear-gradient(90deg, #008060, #00c896);
    border-radius: 5px;
    transition: width 1.2s cubic-bezier(.4,0,.2,1);
    width: 0%;
}

.wcf-truck-emoji {
    position: absolute;
    top: -12px;
    font-size: 24px;
    line-height: 1;
    transition: left 1.2s cubic-bezier(.4,0,.2,1);
    filter: drop-shadow(0 2px 4px rgba(0,0,0,.2));
    left: 0;
}

/* Order items */
.wcf-track-items, .wcf-track-address {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.wcf-track-items h4, .wcf-track-address h4 {
    font-size: 14px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 14px;
}

.wcf-track-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #f6f6f7;
}

.wcf-track-item:last-child { border-bottom: none; }

.wcf-track-item-img {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
    background: #f6f6f7;
    flex-shrink: 0;
}

.wcf-track-item-img-placeholder {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: #f6f6f7;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.wcf-track-item-name {
    flex: 1;
    font-size: 13px;
    font-weight: 500;
    color: #1a1a1a;
}

.wcf-track-item-qty {
    font-size: 12px;
    color: #8c9196;
}

.wcf-track-item-price {
    font-size: 13px;
    font-weight: 700;
    color: #008060;
}

.wcf-track-address p {
    font-size: 14px;
    color: #4a4f54;
    line-height: 1.7;
    margin: 0;
}

@media (max-width: 480px) {
    .wcf-track-steps { gap: 4px; }
    .wcf-track-step-label { font-size: 9px; }
    .wcf-track-step-icon { width: 36px; height: 36px; font-size: 16px; }
}
