.tire-wrapper {
    background: #f9fafb;
    border-radius: 14px;
    max-width: 940px;
    margin: 60px auto;
    overflow: hidden;
    font-family: 'IRANSans', sans-serif;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .05);
}

.tire-wrapper h2 {
    margin: 0;
    color: #fff;
    font-weight: 800;
    font-size: 22px;
    text-align: center;
    background: linear-gradient(135deg, #1a73e8 0%, #1669c1 100%);
    padding: 18px 0;
    box-shadow: 0 3px 10px rgba(26, 115, 232, 0.25);
}

/* --- Enhanced, conflict-safe field styles --- */
.tire-form-row .tire-form-col input,
.tire-form-row .tire-form-col input,
.tire-form-row .tire-form-col input,
.tire-form-row .tire-form-col input,
.tire-form-row .tire-form-col input,
.tire-form-row .tire-form-col input,
.tire-form-row .tire-form-col input,
.tire-form-row .tire-form-col textarea,
.tire-form-row .tire-form-col select {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    border: 1px solid #cfd8e3;
    border-radius: 10px;
    background-color: #fff;
    color: #111;
    font-size: 14px;
    font-weight: 500;
    transition: border-color .25s ease, box-shadow .25s ease;
    line-height: 22px;
    appearance: none;
}

/* Focus state */
.tire-form-row .tire-form-col input:focus,
.tire-form-row .tire-form-col textarea:focus,
.tire-form-row .tire-form-col select:focus {
    outline: none;
    border-color: #1a73e8;
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.15);
    background-color: #f9fbff;
}

/* Placeholder style */
.tire-form-row .tire-form-col input::placeholder,
.tire-form-row .tire-form-col textarea::placeholder {
    color: #9aa0aa;
    font-size: 13px;
    font-weight: 400;
}

/* Label improvement */
.tire-form-row .tire-form-col label {
    display: block;
    font-size: 13.5px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #0d1a33;
}

/* --- Modern submit button (non-breaking, override-safe) --- */
.tire-form-row .tire-form-btn {
    background: linear-gradient(135deg, #1a73e8 0%, #0f5edc 100%);
    color: #fff !important;
    border: none;
    padding: 13px 34px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: 1px;
    box-shadow: 0 4px 10px rgba(26, 115, 232, 0.2);
    transition: all 0.3s ease;
}

.tire-form-row .tire-form-btn:hover {
    background: linear-gradient(135deg, #0f5edc 0%, #0a4db8 100%);
    box-shadow: 0 6px 14px rgba(26, 115, 232, 0.25);
    transform: translateY(-2px);
    color: #fff !important;
}

.tire-form-row .tire-form-btn:active {
    transform: translateY(0);
    color: #fff !important;
}


.tire-inner {
    padding: 40px 48px 48px;
}

.tire-form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-end;
    background: #fff;
    border: 1px solid #e5e7ec;
    border-radius: 12px;
    padding: 28px 32px;
    margin-bottom: 40px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.tire-form-col {
    flex: 1 1 280px;
}

.tire-form-col label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 7px;
    color: #1a1a1a;
}

.tire-form-col input {
    width: 100%;
    padding: 11px 13px;
    border: 1px solid #cad0d8;
    border-radius: 6px;
    font-size: 14px;
    transition: all .25s ease;
    background: #fcfcfd;
}

.tire-form-col input:focus {
    outline: none;
    border-color: #1a73e8;
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.1);
}

.tire-form-btn {
    background: #1a73e8;
    color: #fff;
    border: none;
    padding: 12px 32px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.tire-form-btn:hover {
    background: #105ed1;
}

.order-card {
    background: #fff;
    border: 1px solid #e6ebf3;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.04);
    margin-bottom: 38px;
    overflow: hidden;
}

.order-header {
    background: #f1f4f8;
    padding: 15px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.order-header h4 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: #0b2042;
}

.order-status {
    font-size: 12px;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 5px;
}

.status-completed {
    background: #e5f7ee;
    color: #12733a;
}

.status-processing {
    background: #e8f1ff;
    color: #0f3da3;
}

.status-pending {
    background: #fff8d5;
    color: #7c6500;
}

.status-cancelled {
    background: #fde8e8;
    color: #9e1b1b;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    color: #0b2042;
    background: #f9fafc;
    border-top: 1px solid #e8ebf0;
    border-bottom: 1px solid #e3e7ec;
    padding: 11px 24px;
    margin: 0;
}

.section-header .icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    background: #eaf1fb;
    color: #1a73e8;
    font-size: 13px;
}

.order-section {
    padding: 22px 24px 24px;
}

.order-products {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.order-item {
    display: flex;
    gap: 12px;
    align-items: center;
    background: #fafbfc;
    border: 1px solid #edeff2;
    border-radius: 8px;
    padding: 10px 15px;
}

.order-item img {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    object-fit: cover;
    border: 1px solid #ddd;
}

.order-item-info {
    font-size: 13px;
}

.order-item-info strong {
    display: block;
    font-weight: 600;
    color: #111;
    padding: 5px;
}

.order-item-info span {
    color: #555;
    padding: 5px;
}

.order-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f9fafc;
    border: 1px solid #e6ebf3;
    border-radius: 8px;
    padding: 14px 18px;
    margin-bottom: 10px;
}

.detail-label {
    font-weight: 600;
    font-size: 13.5px;
    color: #1a1a1a;
}

.detail-value {
    font-size: 13.5px;
    color: #333;
}

.order-tracking {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Each tracking line */
.tracking-code {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(90deg, #f9fcff 0%, #eef5ff 100%);
    border: 1px solid #d7e4fc;
    border-left: 5px solid #1a73e8;
    border-radius: 10px;
    padding: 12px 18px;
    font-size: 14px;
    color: #1a1a1a;
    box-shadow: 0 4px 12px rgba(26, 115, 232, 0.08);
    transition: all 0.3s ease;
}

/* Hover animation */
.tracking-code:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(26, 115, 232, 0.12);
    background: linear-gradient(90deg, #f4f9ff 0%, #e8f3ff 100%);
}

/* Text containing the tracking number */
.tracking-code span {
    flex: 1;
    text-align: right;
    unicode-bidi: bidi-override;
    font-weight: 400;
}

/* Blue button */
.tracking-code a {
    background: #ffffff;
    color: #1a73e8;
    border: 1px solid #1a73e8;
    font-weight: 700;
    text-decoration: none;
    border-radius: 8px;
    padding: 5px 14px;
    font-size: 13px;
    transition: all 0.25s ease;
    box-shadow: inset 0 0 0 rgba(0, 0, 0, 0);
}

.tracking-code a:hover {
    background: #1a73e8;
    color: #fff;
    box-shadow: inset 0 0 0 rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

/* Responsive fix for mobile */
@media (max-width: 600px) {
    .tracking-code {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .tracking-code a {
        align-self: flex-end;
    }
}

.no-orders {
    background: #ffd6d6;
    color: #db0000;
    padding: 10px;
    border-radius: 10px;
}


/* ----------------- Final Clean Order Timeline ----------------- */
.order-status-timeline {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 40px 0 25px;
    padding: 0 30px;
}

.order-status-timeline::before {
    content: "";
    position: absolute;
    top: 25%;
    left: 70px;
    right: 70px;
    height: 3px;
    transform: translateY(-50%);
    background-color: #e2e6ec;
    z-index: 0;
}

.status-step {
    position: relative;
    text-align: center;
    /*flex: 1;*/
    z-index: 1;
}

.status-dot {
    width: 32px;
    height: 32px;
    line-height: 32px;
    border-radius: 50%;
    margin: 0 auto 10px;
    font-size: 15px;
    font-weight: 700;
    color: white;
    background-color: #cfd5df;
    border: 4px solid #fff;
    box-shadow: 0 0 0 3px #dce2eb;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .3s ease;
}

.status-label {
    font-size: 13px;
    color: #666;
    font-weight: 500;
}

.status-step.completed .status-dot {
    background-color: #00b747;
    /*  box-shadow: 0 0 0 5px #70fca1;*/
}

.status-step.completed .status-label {
    color: #00b747;
    font-weight: 600;
}

.status-step.completed .status-dot::before {
    content: "✓";
    font-size: 14px;
}

.status-step.active .status-dot {
    background-color: #1a73e8;
    box-shadow: 0 0 0 5px rgba(26, 115, 232, 0.25);
}

.status-step.active .status-label {
    color: #1a73e8;
    font-weight: 700;
}
.status-step.upcoming .status-dot {
    background-color: #e3e7ed;
    box-shadow: 0 0 0 3px #e5e8ef;
}

.status-step.upcoming .status-label {
    color: #aaa;
}

@media (max-width: 600px) {

    .order-status-timeline {
        flex-direction: column;
        align-items: flex-start;
        position: relative;
        padding: 0 20px;
        margin: 32px 0;
        direction: rtl; /* حفظ راست‌به‌چپ برای فارسی */
    }

    .order-status-timeline::before {
        content: "";
        position: absolute;
        top: 20px;
        bottom: 20px;
        right: 27px;
        width: 3px;
        background-color: #e2e6ec;
        z-index: 0;
        border-radius: 2px;
    }

    .status-step {
        display: flex;
        align-items: center;
        gap: 12px;
        position: relative;
        margin-bottom: 22px;
        z-index: 1;
    }

    .status-dot {
        width: 28px;
        height: 28px;
        border: 3px solid #fff;
        flex-shrink: 0;
        box-shadow: 0 0 0 2px #dce2eb;
        background-color: #cfd5df;
        color: #fff;
        display: flex;
        justify-content: center;
        align-items: center;
        font-weight: 700;
        font-size: 13px;
        z-index: 1;
    }

    .status-label {
        font-size: 13.5px;
        font-weight: 500;
        color: #444;
    }

    .status-step.completed .status-dot {
        background-color: #00b747;
        box-shadow: 0 0 0 3px rgba(0, 183, 71, 0.25);
    }

    .status-step.completed .status-label {
        color: #00b747;
        font-weight: 600;
    }

    .status-step.completed .status-dot::before {
        content: "✓";
        font-size: 13px;
    }

    .status-step.active .status-dot {
        background-color: #1a73e8;
        box-shadow: 0 0 0 3px rgba(26,115,232,0.25);
        transform: scale(1.08);
    }

    .status-step.active .status-label {
        color: #1a73e8;
        font-weight: 700;
    }

    .status-step.upcoming .status-dot {
        background-color: #e3e7ed;
    }

    .status-step.upcoming .status-label {
        color: #aaa;
    }

    .status-step:last-child {
        margin-bottom: 0;
    }

    .order-card {
        border-radius: 10px;
        margin-bottom: 26px;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
    }

    .order-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 8px 10px;
    }

    .order-item img {
        width: 50px;
        height: 50px;
    }

    .order-detail-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
        padding: 12px 14px;
    }

    .tracking-code {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
        font-size: 13px;
        padding: 10px 14px;
    }
}

.status-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.status-date {
    font-size: 12px;
    color: #777;
    margin-top: 2px;
    direction: ltr;
}

