/* =========================================
   PALETTE:  #95684B | #111 | #fff
   ========================================= */

/* ── Outer wrapper: flex row on desktop ── */
.ifast-app-theme {
    font-family: inherit;
    font-size: 14px;
    color: #111;
    max-width: 980px;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    gap: 40px;
    align-items: flex-start;
}

/* ── Left column (form) ── */
.ifast-left-col {
    flex: 1;
    min-width: 0;
}

/* ─────────────────────────────────────────
   SEARCH BOX
───────────────────────────────────────── */
.ifast-search-box {
    background: #fff;
    padding: 28px 24px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.06);
}
.ifast-form {
    border-bottom: 1.5px solid #e8ddd7;
    padding-bottom: 6px;
    margin-bottom: 14px;
}
.ifast-input-group {
    display: flex;
    align-items: center;
    gap: 8px;
}
.ifast-icon-wrapper {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
.ifast-input-group input[type="text"] {
    flex-grow: 1;
    border: none !important;
    outline: none !important;
    padding: 9px 6px;
    font-size: 14px;
    background: transparent;
    color: #111;
    box-shadow: none !important;
    min-width: 0;
}
.ifast-input-group input::placeholder { color: #bbb; }
.ifast-btn-track {
    background: #95684B;
    color: #fff;
    border: none;
    border-radius: 22px;
    padding: 9px 22px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.25s;
    white-space: nowrap;
    flex-shrink: 0;
}
.ifast-btn-track:hover { background: #7a5238; }

.ifast-help-links p {
    margin: 5px 0;
    font-size: 12px;
    color: #999;
    line-height: 1.6;
}
.ifast-help-links a { color: #95684B; text-decoration: none; }
.ifast-help-links a:hover { text-decoration: underline; }

/* Loader */
.ifast-tracking-loader {
    text-align: center;
    padding: 30px;
}
.ifast-spinner {
    width: 32px; height: 32px;
    border: 3px solid #f0e8e0;
    border-radius: 50%;
    border-top: 3px solid #95684B;
    animation: ifastSpin 0.9s linear infinite;
    margin: 0 auto;
}
@keyframes ifastSpin {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.ifast-tracking-error {
    color: #95684B;
    background: #fdf2ec;
    border: 1px solid #e8c9b5;
    padding: 10px 14px;
    border-radius: 8px;
    text-align: center;
    margin-top: 12px;
    font-size: 13px;
}

/* ─────────────────────────────────────────
   PHONE FRAME  (right column)
───────────────────────────────────────── */
.ifast-phone-frame {
    flex: 0 0 370px;
    width: 370px;
    background: #1a1a1a;
    border-radius: 44px;
    padding: 14px 10px 20px;
    box-shadow:
        0 0 0 2px #3a3a3a,
        0 0 0 6px #1a1a1a,
        0 24px 70px rgba(0,0,0,0.45),
        inset 0 0 0 1px rgba(255,255,255,0.04);
    position: relative;
}

/* Notch */
.ifast-phone-notch {
    width: 100px;
    height: 20px;
    background: #1a1a1a;
    border-radius: 0 0 16px 16px;
    margin: 0 auto 8px;
    position: relative;
    z-index: 10;
}
.ifast-phone-notch::before {
    content: '';
    width: 8px; height: 8px;
    background: #2a2a2a;
    border-radius: 50%;
    border: 2px solid #3a3a3a;
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
}

/* Inner screen */
.ifast-phone-screen {
    background: #f5f5f5;
    border-radius: 30px;
    overflow: hidden;
    position: relative;
}

/* ─────────────────────────────────────────
   RESULT CARD
───────────────────────────────────────── */
.ifast-result-card {
    background: #fff;
    overflow: hidden;
}

/* Brand header */
.ifast-brand-header {
    background: #95684B;
    color: #fff;
    padding: 16px 18px;
}
.ifast-brand-carrier {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

/* Card header row */
.ifast-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px dashed #ede5df;
    background: #fff;
}
.ifast-trk-info {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 14px;
    gap: 6px;
    color: #111;
}
.ifast-sm-icon {
    width: 17px; height: 17px;
    fill: #95684B;
}

/* Status chip */
.ifast-status-chip {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    background: #f5ede6;
    color: #95684B;
    border: 1.5px solid #d4a882;
    white-space: nowrap;
}
.ifast-status-chip.status-delivered {
    background: #e8f5eb;
    color: #2e7d46;
    border-color: #a5d6b0;
}
.ifast-status-chip svg {
    width: 13px; height: 13px;
    fill: currentColor;
}

/* ─────────────────────────────────────────
   PROGRESS TRACKER
───────────────────────────────────────── */
.ifast-progress-tracker {
    padding: 28px 45px 44px;
    background: #fff;
    position: relative;
}

/* Container holds the grey rail + all dynamic elements */
#ifast-steps-container {
    position: relative;
    height: 2px;
    background: #ddd;
}

/* Filled progress */
.ifast-path-line {
    position: absolute;
    top: 0;
    height: 2px;
    background: #95684B;
    z-index: 1;
    transition: width 0.5s ease;
}

/* Step dots */
.ifast-path-point {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}
[dir="rtl"] .ifast-path-point {
    transform: translate(50%, -50%);
}
.ifast-dot {
    width: 16px; height: 16px;
    background: #fff;
    border-radius: 50%;
    border: 2.5px solid #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ifast-path-point.completed .ifast-dot,
.ifast-path-point.active .ifast-dot {
    border-color: #95684B;
}
.ifast-path-point.completed .ifast-dot svg {
    width: 10px; height: 10px;
    fill: #95684B;
}
.ifast-step-label {
    position: absolute;
    top: 18px;
    font-size: 10px;
    color: #bbb;
    white-space: nowrap;
    font-weight: 500;
}
.ifast-path-point.completed .ifast-step-label,
.ifast-path-point.active .ifast-step-label {
    color: #95684B;
    font-weight: 700;
}

/* Truck – injected by JS, positioned inside #ifast-steps-container */
.ifast-truck-icon {
    background: #fff;
    padding: 3px 6px;
    border-radius: 10px;
    border: 1.5px solid #e0cfc3;
    box-shadow: 0 2px 8px rgba(149,104,75,0.18);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.ifast-truck-icon svg {
    width: 18px; height: 18px;
    fill: #95684B;
    display: block;
}
[dir="rtl"] .ifast-truck-icon svg { transform: scaleX(-1); }

/* ─────────────────────────────────────────
   INFO BANNER
───────────────────────────────────────── */
.ifast-info-banner {
    padding: 11px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fdf9f6;
    border-top: 1px solid #f0e8e0;
}
.ifast-payment-btn {
    display: inline-block;
    padding: 5px 13px;
    background: #95684B;
    color: #fff;
    border-radius: 14px;
    font-size: 12px;
    font-weight: 700;
}
.ifast-meta-weight {
    font-size: 11px;
    font-weight: 600;
    color: #555;
    margin-bottom: 1px;
}
.ifast-meta-delivery { font-size: 10px; color: #999; }
[dir="ltr"] .ifast-meta-info { text-align: right; }
[dir="rtl"] .ifast-meta-info { text-align: left; }

/* ─────────────────────────────────────────
   CUSTOMER & ITEMS
───────────────────────────────────────── */
.ifast-customer-items-box {
    padding: 12px 16px;
    border-top: 1px solid #f0e8e0;
    background: #fff;
}
.ifast-cust-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    background: #fdf9f6;
    padding: 9px 12px;
    border-radius: 8px;
}
.ifast-cust-header svg {
    width: 34px; height: 34px;
    fill: #95684B;
    background: #f5ede6;
    border-radius: 50%;
    padding: 6px;
    flex-shrink: 0;
}

/* ─────────────────────────────────────────
   MAP
───────────────────────────────────────── */
.ifast-map-container {
    border-top: 1px solid #e0d5cc;
    overflow: hidden;
}
.ifast-map-wrap {
    width: 100%;
    position: relative;
}
.ifast-map-plane {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
    background: rgba(255,255,255,0.92);
    border-radius: 50%;
    width: 42px; height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(149,104,75,0.3);
    border: 2px solid #95684B;
    pointer-events: none;
}
.ifast-map-plane svg { width: 22px; height: 22px; }

/* ─────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────── */
/* Tablet: keep row but tighten gap */
@media (max-width: 860px) {
    .ifast-app-theme {
        gap: 24px;
    }
    .ifast-phone-frame {
        flex: 0 0 320px;
        width: 320px;
    }
}

/* Mobile / small tablet: stack as single column */
@media (max-width: 640px) {
    .ifast-app-theme {
        flex-direction: column;
        gap: 28px;
        max-width: 420px;
    }
    .ifast-left-col {
        width: 100%;
    }
    .ifast-phone-frame {
        flex: none;
        width: 100%;
        max-width: 380px;
        margin: 0 auto;
        border-radius: 36px;
    }
}

/* ─────────────────────────────────────────
   ACCORDION & EXTRA DETAILS
───────────────────────────────────────── */
.ifast-accordion-btn {
    background-color: #fdf9f6;
    color: #95684B;
    cursor: pointer;
    padding: 12px;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    font-size: 13px;
    font-weight: bold;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: 0.3s;
}

[dir="rtl"] .ifast-accordion-btn {
    text-align: right;
}

.ifast-accordion-btn svg {
    fill: #95684B;
    transition: transform 0.3s ease;
}

.ifast-accordion-btn.active svg {
    transform: rotate(180deg);
}

.ifast-accordion-content {
    padding: 0 12px;
    background-color: white;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease-out;
}

.ifast-detail-row {
    font-size: 12px;
    padding: 8px 0;
    border-bottom: 1px dashed #efebe8;
    color: #555;
    line-height:1.5;
}

.ifast-detail-row:last-child {
    border-bottom: none;
}

.ifast-detail-row strong {
    color: #111;
    display: block;
    margin-bottom: 2px;
}

.ifast-detail-row a {
    color: #95684B;
    text-decoration: none;
}

