/* my-orders.css — page-specific styles for my-orders.html */

/* Override: wide page */
.page-header { margin-bottom: 20px; }

/* Put header-user into normal flow, aligned right */
.main { padding-top: 24px; }
.header-user {
    position: static;
    justify-content: flex-end;
    margin-bottom: 16px;
}

/* New order button */
.btn-new-order {
    padding: 10px 20px; background: #FF8C00; color: #fff; border: none; border-radius: 8px;
    font-size: 14px; font-weight: 600; cursor: pointer; font-family: inherit; transition: all 0.2s;
}
.btn-new-order:hover { background: #E07B00; }
.btn-new-order.btn-back { background: #fff; color: #374151; border: 1px solid #d1d5db; }
.btn-new-order.btn-back:hover { background: #f9fafb; border-color: #9ca3af; }

/* Tab content */
.tab-content { display: none; }
.tab-content.active { display: block; }


/* Stat cards — styles moved to common.css */

/* ===== Column header row ===== */
.order-list-header {
    display: flex;
    align-items: center;
    padding: 8px 20px;
    gap: 20px;
    font-size: 11px;
    font-weight: 600;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.olh-date { width: 100px; flex-shrink: 0; }
.olh-track { width: 120px; flex-shrink: 0; }
.olh-sender { flex: 1; min-width: 0; }
.olh-recipient { flex: 1; min-width: 0; }
.olh-contact { flex: 1; min-width: 0; }
.olh-urgency { width: 100px; flex-shrink: 0; }
.olh-courier { width: 100px; flex-shrink: 0; }
.olh-status { width: 120px; flex-shrink: 0; }
.olh-price { width: 80px; flex-shrink: 0; text-align: right; }
.olh-actions { width: 100px; flex-shrink: 0; text-align: right; }

/* ===== Order cards grid ===== */
.order-cards-grid {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.order-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    display: flex;
    align-items: center;
    padding: 14px 20px;
    gap: 20px;
    transition: box-shadow 0.2s, background 0.15s;
    cursor: pointer;
}
.order-card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    background: #fafbfc;
}
.order-card.deleted {
    opacity: 0.5;
}

/* Order card columns */
.oc-date {
    width: 100px; flex-shrink: 0;
    font-size: 13px; color: #6b7280;
}
.oc-track {
    width: 120px; flex-shrink: 0;
    font-size: 13px; font-weight: 700; color: #111827;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.oc-sender {
    flex: 1; min-width: 0;
    font-size: 13px; font-weight: 600; color: #374151;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.oc-recipient {
    flex: 1; min-width: 0;
    font-size: 13px; font-weight: 600; color: #374151;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.oc-contact {
    flex: 1; min-width: 0;
    font-size: 13px; color: #6b7280;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.oc-urgency {
    width: 100px; flex-shrink: 0;
    font-size: 12px; font-weight: 600;
}
.oc-courier {
    width: 100px; flex-shrink: 0;
    font-size: 13px; color: #6b7280;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.oc-status {
    width: 120px; flex-shrink: 0;
}
.oc-price {
    width: 80px; flex-shrink: 0;
    font-size: 13px; font-weight: 600; color: #111827;
    text-align: right;
}
.oc-actions {
    width: 100px; flex-shrink: 0;
    text-align: right;
    display: flex; align-items: center; justify-content: flex-end; gap: 6px;
}
.btn-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 34px; height: 34px; border-radius: 8px;
    border: 1px solid #e5e7eb; background: #f9fafb; color: #6b7280;
    cursor: pointer; transition: all 0.15s;
}
.btn-icon:hover { background: #f3f4f6; color: #374151; border-color: #d1d5db; }
.btn-icon--danger:hover { background: #fef2f2; color: #ef4444; border-color: #fecaca; }

/* Status badges override: pill style with inline-flex */
.status-badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 20px; font-size: 12px; font-weight: 600; }

/* Pending status with animated pulse dot */
.status-pending { background: linear-gradient(135deg, #fef3c7, #fde68a); color: #b45309; }
.status-pending::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #f59e0b; animation: statusPulse 1.5s ease-in-out infinite; }
@keyframes statusPulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.4; transform: scale(0.7); } }

/* Order detail inline view */
.order-detail-view { display: none; }
.order-detail-view.visible { display: block; }
.order-list-view.hidden { display: none; }

.detail-back-btn {
    display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px;
    background: #fff; border: 1px solid #d1d5db; border-radius: 8px; cursor: pointer;
    font-size: 13px; font-weight: 500; font-family: inherit; color: #374151;
    margin-bottom: 16px; transition: all 0.2s;
}
.detail-back-btn:hover { border-color: #9ca3af; background: #f9fafb; }

.detail-card {
    background: #fff; border-radius: 12px; padding: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.detail-card-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid #f3f4f6;
}
.detail-card-header h2 { font-size: 18px; font-weight: 600; }

/* Override: detail label color */
.detail-label { color: #FF8C00; }

/* Info blocks layout */
.info-blocks-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.info-block { background: #fafafa; border: 1px solid #f0f0f0; border-radius: 10px; padding: 18px; }
.info-block-title { font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid #e5e7eb; color: #1f2937; display: flex; align-items: center; gap: 10px; }
.info-block-chevron { display: none; }
.info-block-icon {
    width: 36px; height: 36px; border-radius: 10px; display: flex;
    align-items: center; justify-content: center; flex-shrink: 0;
}
.info-block-icon svg { width: 18px; height: 18px; fill: none; }
.info-block-icon--orange { background: #FFF7ED; }
.info-block-icon--orange svg { stroke: #FF8C00; }
.info-block-icon--green { background: #f0fdf4; }
.info-block-icon--green svg { stroke: #16a34a; }
.info-block-icon--red { background: #fef2f2; }
.info-block-icon--red svg { stroke: #dc2626; }
.info-block-full { grid-column: 1 / -1; }
.info-block .detail-grid { margin-bottom: 0; }
@media (max-width: 640px) { .info-blocks-row { grid-template-columns: 1fr; } }

/* Action buttons — consistent with address book btn-primary */
.btn-return {
    display: inline-flex; align-items: center; gap: 6px; padding: 10px 18px;
    background: #fff; color: #dc2626; border: 1px solid #fecaca; border-radius: 8px;
    font-size: 13px; font-weight: 600; cursor: pointer; font-family: inherit;
    margin-top: 16px; transition: all 0.2s;
}
.btn-return:hover { background: #fef2f2; border-color: #dc2626; }

.btn-delete-order {
    display: inline-flex; align-items: center; gap: 6px; padding: 10px 18px;
    background: #fff; color: #dc2626; border: 1px solid #fecaca; border-radius: 8px;
    font-size: 13px; font-weight: 600; cursor: pointer; font-family: inherit;
    margin-top: 16px; margin-right: 8px; transition: all 0.2s;
}
.btn-delete-order:hover { background: #dc2626; color: #fff; }

.btn-ticket-link {
    display: inline-flex; align-items: center; gap: 6px; padding: 10px 18px;
    background: #16a34a; color: #fff; border: none; border-radius: 8px;
    font-size: 13px; font-weight: 600; cursor: pointer; font-family: inherit;
    transition: background 0.2s; text-decoration: none;
}
.btn-ticket-link:hover { background: #15803d; }

/* Ticket modal from order detail */
.ticket-order-modal { max-width: 540px; padding: 0; }
.ticket-order-header { padding: 16px 20px; border-bottom: 1px solid #e5e7eb; display: flex; align-items: center; justify-content: space-between; }
.ticket-order-header h3 { margin: 0; font-size: 16px; }
.ticket-order-close { background: none; border: none; font-size: 20px; color: #9ca3af; cursor: pointer; padding: 4px; }
.ticket-order-close:hover { color: #374151; }
.ticket-order-body { padding: 20px; }
.ticket-order-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.ticket-order-group { margin-bottom: 16px; }
.ticket-order-group label { display: block; font-size: 13px; font-weight: 500; color: #374151; margin-bottom: 6px; }
.ticket-order-group input,
.ticket-order-group select,
.ticket-order-group textarea { width: 100%; padding: 8px 12px; border: 1px solid #d1d5db; border-radius: 6px; font-size: 13px; font-family: inherit; outline: none; }
.ticket-order-group input:focus,
.ticket-order-group select:focus,
.ticket-order-group textarea:focus { border-color: #FF8C00; box-shadow: 0 0 0 3px rgba(255,140,0,0.15); }
.ticket-order-group textarea { resize: vertical; }
.ticket-order-footer { padding: 16px 20px; border-top: 1px solid #e5e7eb; display: flex; justify-content: flex-end; gap: 10px; }

/* Map route button — consistent with btn-primary */
.btn-map-route {
    display: inline-flex; align-items: center; gap: 6px; padding: 10px 18px;
    background: #FF8C00; color: #fff; border: none; border-radius: 8px;
    font-size: 13px; font-weight: 600; cursor: pointer; font-family: inherit;
    transition: background 0.2s; text-decoration: none;
}
.btn-map-route:hover { background: #E07B00; }

/* Tab bar (orders/history/new order tabs) */
.tab-bar { display: flex; gap: 6px; margin-bottom: 20px; background: #f3f4f6; border-radius: 10px; padding: 4px; }
.tab-bar.tab-bar--narrow { max-width: 860px; }
.tab-bar-btn {
    padding: 10px 18px; border: 1.5px solid #d1d5db; border-radius: 8px; font-size: 13px; font-weight: 600;
    font-family: inherit; cursor: pointer; background: transparent; color: #6b7280; transition: color 0.2s, background 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.tab-bar-btn:hover { color: #374151; }
.tab-bar-btn.active { background: #fff; color: #FF8C00; border-color: #FF8C00; box-shadow: 0 1px 3px rgba(0,0,0,0.08); }
.tab-bar-actions { display: flex; gap: 8px; align-items: center; margin-left: auto; }
.tab-new-order { white-space: nowrap; background: #22c55e; color: #fff; border-color: #22c55e; }
.tab-new-order.active { background: #fff; color: #22c55e; border-color: #22c55e; box-shadow: 0 1px 3px rgba(0,0,0,0.08); }

/* History filters (inside my-orders) */
.history-filters {
    display: flex; gap: 8px; margin-bottom: 20px; align-items: center; flex-wrap: nowrap;
}
.hf-left {
    display: flex; align-items: center; gap: 8px;
}
.hf-left input[type="text"] {
    padding: 8px 10px; border: 1px solid #d1d5db; border-radius: 6px;
    font-size: 13px; font-family: inherit; outline: none; background: #fff;
    box-sizing: border-box; height: 36px; transition: border-color 0.2s;
    width: 200px;
}
.hf-left input[type="text"]:focus {
    border-color: #FF8C00; box-shadow: 0 0 0 2px rgba(255,140,0,0.15);
}
.hf-left .btn-reset,
.hf-left .btn-filter {
    height: 36px; flex-shrink: 0; white-space: nowrap; padding: 0 14px;
}
.hf-right {
    display: flex; align-items: center; gap: 8px; flex-shrink: 0; margin-left: auto;
}
.hf-right .date-range-sep { font-size: 12px; color: #9ca3af; flex-shrink: 0; }
.hf-right input[type="date"],
.hf-right select {
    padding: 8px 10px; border: 1px solid #d1d5db; border-radius: 6px;
    font-size: 13px; font-family: inherit; outline: none; background: #fff;
    box-sizing: border-box; height: 36px; transition: border-color 0.2s;
}
.hf-right input[type="date"] { width: 130px; flex-shrink: 0; color: #374151; font-weight: 500; }
.hf-right select { width: 125px; flex-shrink: 0; }
.hf-dates {
    display: flex; align-items: center; gap: 8px; flex-shrink: 0; margin-left: auto;
}
.hf-dates .date-range-sep { font-size: 12px; color: #9ca3af; flex-shrink: 0; }
.hf-dates input[type="date"] {
    padding: 10px 10px; border: 1px solid #d1d5db; border-radius: 6px;
    font-size: 13px; font-family: inherit; outline: none; background: #fff;
    box-sizing: border-box; height: 36px; transition: border-color 0.2s;
    width: 130px; flex-shrink: 0; color: #374151; font-weight: 500;
}
.hf-selects {
    display: flex; align-items: center; gap: 8px; flex-shrink: 0;
}
.hf-selects select {
    padding: 10px 10px; border: 1px solid #d1d5db; border-radius: 6px;
    font-size: 13px; font-family: inherit; outline: none; background: #fff;
    box-sizing: border-box; height: 36px; transition: border-color 0.2s;
    width: 125px; flex-shrink: 0;
}
.hf-right input:focus, .hf-right select:focus {
    border-color: #FF8C00; box-shadow: 0 0 0 2px rgba(255,140,0,0.15);
}

/* History modal (inside my-orders) */
.history-modal-overlay { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.4); z-index: 1000; align-items: center; justify-content: center; }
.history-modal-overlay.open { display: flex; }
.history-modal { background: #fff; border-radius: 12px; padding: 28px; width: 100%; max-width: 600px; box-shadow: 0 20px 60px rgba(0,0,0,0.15); max-height: 90vh; overflow-y: auto; }
.history-modal h3 { font-size: 18px; font-weight: 600; margin-bottom: 20px; display: flex; align-items: center; justify-content: space-between; }
.history-modal-close { background: none; border: none; font-size: 20px; cursor: pointer; color: #9ca3af; padding: 4px 8px; }

/* Confirm dialog (delete confirmation) */
.confirm-overlay {
    display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.45); z-index: 10000; align-items: center; justify-content: center;
}
.confirm-overlay.open { display: flex; }
.confirm-dialog {
    background: #fff; border-radius: 14px; padding: 28px; width: 100%; max-width: 400px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2); text-align: center;
    animation: confirmFadeIn 0.2s ease;
}
@keyframes confirmFadeIn { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }
.confirm-dialog-icon {
    width: 52px; height: 52px; border-radius: 50%; background: #fef2f2;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 16px; font-size: 24px;
}
.confirm-dialog h4 { font-size: 17px; font-weight: 600; margin-bottom: 8px; color: #1a1a1a; }
.confirm-dialog p { font-size: 13px; color: #6b7280; margin-bottom: 24px; line-height: 1.5; }
.confirm-dialog-actions { display: flex; gap: 10px; justify-content: center; }
.confirm-dialog-actions button {
    padding: 9px 24px; border-radius: 8px; font-size: 13px; font-weight: 600;
    cursor: pointer; font-family: inherit; border: none; transition: all 0.2s;
}
.btn-confirm-cancel { background: #f3f4f6; color: #374151; }
.btn-confirm-cancel:hover { background: #e5e7eb; }
.btn-confirm-delete { background: #ef4444; color: #fff; }
.btn-confirm-delete:hover { background: #dc2626; }

/* Notes text */
.notes-text { font-size: 13px; color: #6b7280; }

/* New order wrapper */
.new-order-wrap { max-width: 860px; }

.page-subtitle { font-size: 14px; color: #6b7280; margin-bottom: 20px; }

/* Form sections (reused from orders.css within new-order tab) */
.form-section {
    background: #fff; border-radius: 12px; box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    padding: 24px; margin-bottom: 16px;
}
.form-section h3 { font-size: 15px; font-weight: 600; color: #111827; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; cursor: pointer; -webkit-user-select: none; user-select: none; }
.section-chevron { margin-left: auto; transition: transform 0.3s; color: #9ca3af; flex-shrink: 0; }
.form-section.collapsed .section-chevron { transform: rotate(-90deg); }
.form-section-body { overflow: hidden; transition: max-height 0.3s ease, opacity 0.3s ease; }
.form-section.collapsed .form-section-body { max-height: 0 !important; opacity: 0; margin: 0; padding: 0; }
.form-section.collapsed h3 { margin-bottom: 0; }
.section-num { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; background: #FF8C00; color: #fff; font-size: 12px; font-weight: 700; }
/* Compact selects (analytics style) */
#shipment_type, #delivery_speed {
    padding: 9px 12px; border-radius: 6px; font-size: 13px; font-weight: 500;
    border: 1px solid #d1d5db; background: #fff; color: #374151;
    font-family: inherit; transition: all 0.15s; outline: none;
}
#insurance { padding: 9px 12px; }
#shipment_type:focus, #delivery_speed:focus {
    border-color: #FF8C00; box-shadow: 0 0 0 2px rgba(255, 140, 0, 0.15);
}

.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.form-row-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.form-row-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }

/* Disabled form fields */
.form-group input:disabled, .form-group select:disabled {
    background: #f3f4f6; color: #9ca3af; cursor: not-allowed; opacity: 0.6;
}

/* Address dropdown */
.addr-select-wrap { position: relative; }
.addr-dropdown {
    position: absolute; top: 100%; left: 0; right: 0; background: #fff; border: 1px solid #d1d5db;
    border-radius: 8px; max-height: 200px; overflow-y: auto; z-index: 10001; display: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.addr-dropdown.open { display: block; }
.addr-option { padding: 8px 12px; cursor: pointer; font-size: 13px; border-bottom: 1px solid #f3f4f6; }
.addr-option:hover { background: #f9fafb; }
.addr-option small { color: #6b7280; }

.checkbox-wrap { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.checkbox-wrap input[type="checkbox"] { width: auto; }
.checkbox-wrap label { margin-bottom: 0; font-size: 13px; }

/* Sender tabs */
.sender-tabs { display: flex; gap: 6px; margin-bottom: 14px; }
.sender-tab {
    padding: 8px 16px; border-radius: 6px; font-size: 13px; font-weight: 500;
    border: 1px solid #d1d5db; background: #fff; color: #6b7280;
    cursor: pointer; font-family: inherit; transition: all 0.2s;
}
.sender-tab.active { background: #FF8C00; color: #fff; border-color: #FF8C00; }
.sender-tab:hover:not(.active) { background: #f9fafb; color: #374151; }
.sender-default-info {
    padding: 14px 16px; background: #FFF7ED; border: 1px solid #FFEDD5;
    border-radius: 8px; font-size: 13px; color: #9a3412; margin-bottom: 14px;
}
.sender-default-header { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.sender-default-header .sender-label { font-weight: 600; font-size: 14px; }
.sender-change-btn {
    margin-left: auto; font-size: 12px; color: #FF8C00; background: none;
    border: none; cursor: pointer; font-family: inherit; font-weight: 500; text-decoration: underline;
}
.sender-details-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 16px; }
.sender-detail-item { display: flex; gap: 6px; }
.sender-detail-label { color: #b45309; font-weight: 500; white-space: nowrap; }
.sender-detail-value { color: #92400e; }

/* Compare section */
.compare-section {
    background: #fff; border-radius: 12px; box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    padding: 24px; margin-bottom: 16px; text-align: center;
}
.compare-section h3 { font-size: 15px; font-weight: 600; margin-bottom: 16px; }
.btn-compare {
    padding: 10px 24px; background: #f0f0f5; color: #374151; border: 1px solid #d1d5db;
    border-radius: 8px; font-size: 13px; font-weight: 600; cursor: pointer; font-family: inherit;
    transition: all 0.2s;
}
.btn-compare:hover { background: #e5e7eb; }
.btn-compare:disabled { opacity: 0.6; cursor: not-allowed; }
.compare-results { margin-top: 16px; text-align: left; }
.compare-table { width: 100%; border-collapse: collapse; table-layout: auto; }
.compare-table th { padding: 10px 14px; text-align: center; font-size: 12px; font-weight: 600; color: #6b7280; text-transform: uppercase; letter-spacing: 0.5px; border-bottom: 1px solid #e5e7eb; background: #f9fafb; }
.compare-table th:first-child { text-align: left; }
.compare-table td { padding: 10px 14px; font-size: 13px; border-bottom: 1px solid #f3f4f6; text-align: center; }
.compare-table td:first-child { text-align: left; }
.compare-table tr:hover { background: #f9fafb; }
.compare-table tr.selected { background: #FFF7ED; }
.badge-best { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 11px; font-weight: 600; background: #d1fae5; color: #059669; }
.btn-select-courier {
    padding: 6px 14px; background: #FF8C00; color: #fff; border: none; border-radius: 6px;
    font-size: 12px; font-weight: 600; cursor: pointer; font-family: inherit; transition: background 0.2s;
}
.btn-select-courier:hover { background: #E07B00; }
.rating-star { color: #F59E0B; font-size: 13px; vertical-align: middle; }
.submit-section { margin-top: 8px; display: flex; justify-content: center; gap: 12px; }

/* Confirmation modal details */
.confirm-section-title { font-size: 13px; font-weight: 600; color: #FF8C00; text-transform: uppercase; letter-spacing: 0.5px; margin-top: 16px; margin-bottom: 8px; padding-bottom: 4px; border-bottom: 2px solid #FFF7ED; }
.confirm-section-title:first-child { margin-top: 0; }
.confirm-row { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid #f3f4f6; font-size: 13px; }
.confirm-label { color: #6b7280; }
.confirm-val { font-weight: 500; text-align: right; max-width: 60%; }
.confirm-total { display: flex; justify-content: space-between; padding: 12px 0; font-size: 16px; font-weight: 700; margin-top: 8px; border-top: 2px solid #e5e7eb; }
.confirm-total .confirm-val { color: #FF8C00; }

/* Payment step */
.payment-step { display: none; }
.payment-step.active { display: block; }
.confirm-step { }
.confirm-step.hidden { display: none; }
.payment-methods { display: flex; flex-direction: column; gap: 10px; margin: 16px 0; }
.payment-method {
    display: flex; align-items: center; gap: 12px; padding: 14px 16px;
    border: 2px solid #e5e7eb; border-radius: 10px; cursor: pointer;
    transition: all 0.2s; font-size: 14px;
}
.payment-method:hover { border-color: #FFB84D; background: #FFFBF5; }
.payment-method.selected { border-color: #FF8C00; background: #FFF7ED; }
.payment-method input[type="radio"] { display: none; }
.payment-radio { width: 20px; height: 20px; border: 2px solid #d1d5db; border-radius: 50%; position: relative; flex-shrink: 0; }
.payment-method.selected .payment-radio { border-color: #FF8C00; }
.payment-method.selected .payment-radio::after { content: ''; position: absolute; top: 4px; left: 4px; width: 8px; height: 8px; background: #FF8C00; border-radius: 50%; }
.payment-icon { font-size: 24px; }
.payment-info { flex: 1; }
.payment-name { font-weight: 600; color: #111827; }
.payment-desc { font-size: 12px; color: #6b7280; margin-top: 2px; }
.payment-amount { text-align: center; padding: 16px; background: #f9fafb; border-radius: 10px; margin-bottom: 16px; }
.payment-amount-label { font-size: 13px; color: #6b7280; }
.payment-amount-value { font-size: 28px; font-weight: 700; color: #FF8C00; margin-top: 4px; }
.payment-processing { text-align: center; padding: 32px 16px; }
.payment-spinner { width: 40px; height: 40px; border: 3px solid #e5e7eb; border-top-color: #FF8C00; border-radius: 50%; animation: spin 0.8s linear infinite; margin: 0 auto 16px; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading-text { color: #6b7280; font-size: 13px; padding: 16px 0; text-align: center; }

/* Action button (used in my-orders for history tab) */
.btn-action {
    padding: 6px 16px; background: #fff; color: #374151; border: 1px solid #d1d5db; border-radius: 8px;
    font-size: 13px; font-weight: 500; cursor: pointer; font-family: inherit; transition: all 0.2s; white-space: nowrap;
}
.btn-action:hover { border-color: #9ca3af; background: #f9fafb; }

/* Input with map button */
.input-with-map-btn { display: flex; gap: 8px; align-items: center; }
.input-with-map-btn input { flex: 1; }

/* ===== Mobile: card layout (matching Address Book pattern) ===== */
.order-card-mobile-details { display: none; }

@media (max-width: 640px) {
    .order-list-header { display: none; }
    .order-cards-grid { gap: 10px; }

    .order-card {
        flex-wrap: wrap;
        padding: 0;
        gap: 0;
        border-radius: 12px;
        overflow: hidden;
    }

    /* ── Header row: track + status ── */
    .oc-track {
        width: auto; flex: 1; min-width: 0;
        padding: 16px 0 2px 16px;
        font-size: 14px;
    }
    .oc-status {
        width: auto; flex-shrink: 0;
        padding: 14px 16px 2px 8px;
        align-self: flex-start;
    }
    .oc-status .status-badge { font-size: 11px; padding: 4px 10px; }

    /* ── Date: below track, full width ── */
    .oc-date {
        width: 100%; flex-shrink: 0;
        padding: 0 16px 12px 16px;
        font-size: 12px; color: #9ca3af;
        order: 3;
    }

    /* ── Hide desktop-only columns ── */
    .oc-sender,
    .oc-recipient,
    .oc-contact,
    .oc-urgency,
    .oc-courier,
    .oc-price,
    .oc-actions { display: none; }

    /* ── Mobile detail rows ── */
    .order-card-mobile-details {
        display: flex;
        flex-direction: row;
        align-items: center;
        width: 100%;
        padding: 14px 20px 14px;
        gap: 8px;
        border-top: 1px solid #f3f4f6;
        order: 10;
    }
    .order-card-mobile-details--secondary {
        display: grid;
        grid-template-columns: 1fr 1fr;
        background: #f9fafb;
        border-top: 1px solid #e5e7eb;
        padding: 12px 16px 14px;
        gap: 10px 12px;
        order: 11;
    }
    .order-card-mobile-details--secondary .mobile-detail-cell {
        display: flex;
        flex-direction: column;
        gap: 2px;
    }
    .order-card-mobile-details--secondary .mobile-detail-label {
        font-size: 10px;
        font-weight: 600;
        color: #9ca3af;
        text-transform: uppercase;
        letter-spacing: 0.3px;
    }
    .order-card-mobile-details--secondary .mobile-detail-val {
        font-size: 13px;
        font-weight: 500;
        color: #374151;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .order-card-mobile-details .mobile-route-arrow {
        flex: 0 0 14px;
        width: 14px; height: 14px;
        stroke: #9ca3af;
    }
    .order-card-mobile-details .mobile-detail-row {
        flex: 1;
        min-width: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        font-size: 13px;
        color: #374151;
    }
    .order-card-mobile-details .mobile-detail-row span {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}
