/* ===== Custom Order Tracking — tracking.css v1.0 ===== */

/* ── Fonts ── */
.cot-form-wrap h2, .cot-form-title,
.cot-result-wrap h2, .cot-result-wrap h3,
.cot-summary-title, .cot-submit-btn,
.cot-add-again-btn, .cot-item-name {
    font-family: 'Brice', 'Georgia', serif !important;
}
.cot-form-wrap, .cot-result-wrap,
.cot-form-wrap *, .cot-result-wrap * {
    font-family: 'Galano Grotesque', 'Galano', 'Nunito Sans', sans-serif !important;
    box-sizing: border-box;
}

/* ════════════════════════════
   SEARCH FORM
════════════════════════════ */
.cot-form-wrap {
    padding: 20px 0;
}

.cot-form-card { /* removed — no card wrapper on simple form */ }

.cot-form-title {
    font-size: 26px !important;
    font-weight: 800 !important;
    color: #1a1a2e !important;
    margin: 0 0 8px !important;
}

.cot-form-desc {
    font-size: 14px !important;
    color: #888 !important;
    margin: 0 0 24px !important;
}

.cot-error {
    background: #fff0f0;
    border: 1.5px solid #e24b4a;
    border-radius: 10px;
    padding: 12px 16px;
    color: #e24b4a;
    font-size: 14px;
    margin-bottom: 20px;
}

.cot-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 20px;
}

.cot-field label {
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #1a1a2e !important;
}

.cot-req { color: #e24b4a; margin-left: 2px; }

.cot-field input {
    border: none !important;
    border-radius: 10px !important;
    padding: 16px 18px !important;
    font-size: 14px !important;
    color: #333 !important;
    background: #f2f2f2 !important;
    outline: none !important;
    box-shadow: none !important;
    width: 100% !important;
    transition: background 0.15s;
}
.cot-field input:focus { background: #e8e8e8 !important; }
.cot-field input::placeholder { color: #aaa !important; }

.cot-submit-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px;
    background: #f26522 !important;
    border: none !important;
    color: #fff !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    border-radius: 50px !important;
    padding: 14px 48px !important;
    cursor: pointer;
    margin-top: 4px;
    transition: background 0.15s;
}
.cot-submit-btn:hover { background: #d9561a !important; }

/* ════════════════════════════
   RESULT WRAPPER
════════════════════════════ */
.cot-result-wrap {
    padding: 20px 0;
}

/* ════════════════════════════
   STEPPER
════════════════════════════ */
.cot-stepper {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    padding: 10px 0 28px 0;
    flex-wrap: nowrap;
    overflow-x: auto;
}

.cot-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 90px;
}

.cot-step-circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #e0e4ef;
    color: #aaa;
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2.5px solid #e0e4ef;
    transition: all 0.3s;
    flex-shrink: 0;
}

.cot-step.done .cot-step-circle {
    background: #1a3a8f;
    border-color: #1a3a8f;
    color: #fff;
}

.cot-step.active .cot-step-circle {
    background: #1a3a8f;
    border-color: #1a3a8f;
    color: #fff;
    box-shadow: 0 0 0 5px rgba(26,58,143,.15);
}

.cot-step-label {
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #aaa !important;
    text-align: center;
    white-space: nowrap;
}

.cot-step.done .cot-step-label,
.cot-step.active .cot-step-label {
    color: #1a1a2e !important;
}

.cot-step-date {
    font-size: 11px !important;
    color: #1a3a8f !important;
    font-weight: 700 !important;
    text-align: center;
    white-space: nowrap;
}

/* Connector line between steps */
.cot-step-line {
    flex: 1;
    height: 2.5px;
    background: #e0e4ef;
    margin-top: 18px;
    min-width: 30px;
    transition: background 0.3s;
}
.cot-step-line.done { background: #1a3a8f; }

@media (max-width: 600px) {
    .cot-stepper { padding-left: 0; justify-content: flex-start; }
    .cot-step { min-width: 70px; }
    .cot-step-label { font-size: 10px !important; }
    .cot-step-date  { font-size: 10px !important; }
    .cot-step-line  { min-width: 16px; }
}

/* ════════════════════════════
   META BAR
════════════════════════════ */
.cot-meta-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 0;
    padding: 12px 0;
}

.cot-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px !important;
    color: #1a1a2e !important;
    font-weight: 500 !important;
    padding: 0 16px;
}

.cot-meta-item svg { flex-shrink: 0; color: #555; }

.cot-meta-payment img {
    max-width: 36px !important;
    height: 22px !important;
    object-fit: contain;
    vertical-align: middle;
}

.cot-meta-sep {
    width: 1px;
    height: 28px;
    background: #e0e0e8;
    flex-shrink: 0;
}

.cot-meta-divider {
    height: 2px;
    background: #f0f0f5;
    margin: 6px 0 20px;
    border-radius: 2px;
}

@media (max-width: 700px) {
    .cot-meta-bar { gap: 8px; }
    .cot-meta-item { padding: 0 8px; font-size: 12px !important; }
    .cot-meta-sep  { display: none; }
}

/* ════════════════════════════
   BODY LAYOUT
════════════════════════════ */
.cot-body {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 24px;
    align-items: start;
}

@media (max-width: 960px) {
    .cot-body {
        grid-template-columns: 1fr;
    }
    .cot-summary-col { order: -1; }
}

/* ════════════════════════════
   PRODUCT ITEMS (left)
════════════════════════════ */
.cot-items-col {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.cot-item-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #fff;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
    transition: transform 0.15s, box-shadow 0.15s;
}
.cot-item-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,.09);
}

.cot-item-img {
    width: 100px;
    height: 85px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f5ede0;
}
.cot-item-img img.cot-thumb,
.cot-item-img img {
    width: 100px;
    height: 85px;
    object-fit: cover;
    display: block;
}

@media (max-width: 500px) {
    .cot-item-img { width: 72px; height: 62px; }
    .cot-item-img img { width: 72px; height: 62px; }
}

.cot-item-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cot-item-top { display: flex; justify-content: space-between; align-items: flex-start; }

.cot-item-order-id { font-size: 12px !important; color: #888 !important; }

.cot-item-brand {
    font-size: 12px !important;
    color: #aaa !important;
}

.cot-item-name {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #1a1a2e !important;
    line-height: 1.3;
    word-break: break-word;
}

.cot-item-qty-badge {
    display: inline-block;
    background: #f0f4ff;
    color: #1a3a8f;
    font-size: 12px !important;
    font-weight: 600 !important;
    padding: 4px 14px !important;
    border-radius: 20px !important;
    width: fit-content;
}

.cot-item-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 4px;
    gap: 8px;
    flex-wrap: wrap;
}

.cot-item-prices { display: flex; align-items: baseline; gap: 8px; }

.cot-price-old {
    font-size: 12px !important;
    color: #bbb !important;
    text-decoration: line-through !important;
}

.cot-price-cur {
    font-size: 16px !important;
    font-weight: 800 !important;
    color: #1a3a8f !important;
}

/* Add Again */
.cot-add-again-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 7px;
    background: #e85d1a !important;
    border: 2px solid #e85d1a !important;
    color: #fff !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    border-radius: 8px !important;
    padding: 9px 14px !important;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s;
    flex-shrink: 0;
    text-decoration: none !important;
}
.cot-add-again-btn:hover    { background: #c94b10 !important; border-color: #c94b10 !important; }
.cot-add-again-btn:disabled { background: #f0a070 !important; border-color: #f0a070 !important; cursor: not-allowed; }
.cot-add-again-btn.added    { background: #1abf6f !important; border-color: #1abf6f !important; }

/* ════════════════════════════
   SUMMARY (right)
════════════════════════════ */
.cot-summary-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: sticky;
    top: 20px;
}
@media (max-width: 960px) {
    .cot-summary-col { position: static; }
}

.cot-summary-card {
    background: #fff;
    border-radius: 16px;
    padding: 22px;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
}

.cot-summary-title {
    font-size: 16px !important;
    font-weight: 800 !important;
    color: #1a3a8f !important;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 16px !important;
    padding: 0 !important;
    border: none !important;
}

/* Coupon row */
.cot-coupon-row {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f8f8fb;
    border-radius: 10px;
    padding: 10px 12px;
    margin-bottom: 14px;
}
.cot-coupon-input {
    flex: 1;
    border: none !important;
    background: transparent !important;
    font-size: 14px !important;
    color: #1a3a8f !important;
    font-weight: 600 !important;
    outline: none !important;
}
.cot-coupon-sep { color: #ccc; }
.cot-coupon-applied {
    color: #1a9e5a !important;
    font-weight: 700 !important;
    font-size: 14px !important;
}

/* Summary rows */
.cot-sum-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 14px;
    color: #444;
    border-bottom: 1px solid #f5f5f5;
}
.cot-sum-row:last-of-type { border-bottom: none; }
.cot-sum-row strong { color: #1a1a2e; font-weight: 700; }
.cot-sum-total {
    font-size: 15px !important;
    border-top: 2px solid #f0f0f0 !important;
    border-bottom: none !important;
    padding-top: 12px !important;
    margin-top: 4px;
}
.cot-save { color: #e24b4a !important; font-weight: 700 !important; }

/* Info block */
.cot-info-block { width: 100%; }
.cot-info-block > .elementor:first-child { margin-top: 0 !important; padding-top: 0 !important; }
