/* Mobile Recycler Frontend CSS */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

.mr-sell-form, .mr-my-orders {
    font-family:'Plus Jakarta Sans',sans-serif;
    max-width:760px;
    margin:0 auto;
    color:#1e293b;
}

/* Steps bar */
.mr-steps-bar { display:flex; align-items:center; margin-bottom:32px; }
.mr-step { display:flex; flex-direction:column; align-items:center; gap:4px; flex:0 0 auto; }
.mr-step-circle { width:36px; height:36px; border-radius:50%; background:#e5e7eb; color:#6b7280; display:flex; align-items:center; justify-content:center; font-weight:700; font-size:14px; transition:all .3s; }
.mr-step.active .mr-step-circle { background:#2563EB; color:#fff; box-shadow:0 0 0 4px #dbeafe; }
.mr-step.done .mr-step-circle { background:#059669; color:#fff; }
.mr-step-label { font-size:11px; font-weight:600; color:#9ca3af; text-transform:uppercase; letter-spacing:.04em; white-space:nowrap; }
.mr-step.active .mr-step-label, .mr-step.done .mr-step-label { color:#1e293b; }
.mr-step-line { flex:1; height:2px; background:#e5e7eb; margin:0 8px; position:relative; top:-12px; }
.mr-step-line.done { background:#059669; }

/* Step panels */
.mr-step-panel { display:none; }
.mr-step-panel.active { display:block; animation:mrFadeIn .3s ease; }
@keyframes mrFadeIn { from{opacity:0;transform:translateY(8px)} to{opacity:1;transform:translateY(0)} }
.mr-step-title { font-size:22px; font-weight:700; color:#0F172A; margin:0 0 24px; }

/* Search */
.mr-search-wrap { position:relative; margin-bottom:16px; }
.mr-search-input { width:100%; box-sizing:border-box; height:48px; border:2px solid #e5e7eb; border-radius:10px; padding:0 16px; font-size:15px; font-family:inherit; transition:border-color .2s; }
.mr-search-input:focus { outline:none; border-color:#2563EB; box-shadow:0 0 0 3px #dbeafe; }
.mr-search-results { position:absolute; width:100%; background:#fff; border:1px solid #e5e7eb; border-radius:10px; box-shadow:0 8px 24px rgba(0,0,0,.12); z-index:100; max-height:360px; overflow-y:auto; top:calc(100% + 6px); }
.mr-result-card { padding:14px 16px; cursor:pointer; border-bottom:1px solid #f1f5f9; display:flex; justify-content:space-between; align-items:center; transition:background .15s; }
.mr-result-card:hover { background:#f0f4ff; }
.mr-result-card:last-child { border-bottom:none; }
.mr-result-name { font-weight:600; font-size:14px; color:#0F172A; }
.mr-result-sub { font-size:12px; color:#6b7280; margin-top:2px; }
.mr-result-prices { display:flex; gap:8px; }
.mr-result-price { font-size:12px; padding:3px 8px; border-radius:20px; font-weight:600; }
.mr-price-new     { background:#d1fae5; color:#065f46; }
.mr-price-working { background:#fef3c7; color:#92400e; }
.mr-price-broken  { background:#fee2e2; color:#991b1b; }
.mr-selected-device { background:#eff6ff; border:2px solid #2563EB; border-radius:10px; padding:14px 16px; margin-bottom:20px; }
.mr-selected-inner { display:flex; justify-content:space-between; align-items:center; }
.mr-change-device { background:none; border:none; color:#2563EB; cursor:pointer; font-size:13px; text-decoration:underline; }

/* Grade cards */
.mr-grade-cards { display:grid; grid-template-columns:repeat(3,1fr); gap:14px; }
@media(max-width:540px){ .mr-grade-cards{grid-template-columns:1fr;} }
.mr-grade-card { border:2px solid #e5e7eb; border-radius:12px; padding:20px 16px; cursor:pointer; transition:all .2s; text-align:center; }
.mr-grade-card:hover { border-color:#2563EB; background:#f0f4ff; transform:translateY(-2px); }
.mr-grade-card.selected { border-color:#2563EB; background:#eff6ff; box-shadow:0 0 0 3px #dbeafe; }
.mr-grade-icon { font-size:28px; margin-bottom:8px; }
.mr-grade-name { font-weight:700; font-size:15px; color:#0F172A; }
.mr-grade-desc { font-size:12px; color:#6b7280; margin-top:4px; line-height:1.5; }
.mr-grade-price { font-size:18px; font-weight:800; color:#2563EB; margin-top:10px; }

/* Quote box */
.mr-quote-box { background:linear-gradient(135deg,#0F172A,#1e3a5f); border-radius:12px; padding:20px 24px; color:#fff; margin-top:20px; text-align:center; }
.mr-quote-device { font-size:14px; color:#93c5fd; font-weight:600; }
.mr-quote-label { font-size:12px; color:#94a3b8; margin-top:6px; }
.mr-quote-price { font-size:36px; font-weight:800; color:#34d399; margin:4px 0; }
.mr-quote-valid { font-size:12px; color:#64748b; }

/* Form */
.mr-form-grid { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
@media(max-width:540px){ .mr-form-grid{grid-template-columns:1fr;} }
.mr-full-width { grid-column:1/-1; }
.mr-form-field { display:flex; flex-direction:column; gap:5px; }
.mr-form-field label { font-size:13px; font-weight:600; color:#374151; }
.mr-form-field input, .mr-form-field select, .mr-select { height:44px; border:1.5px solid #d1d5db; border-radius:8px; padding:0 14px; font-size:14px; font-family:inherit; transition:border-color .2s; width:100%; box-sizing:border-box; }
.mr-form-field input:focus, .mr-form-field select:focus, .mr-select:focus { outline:none; border-color:#2563EB; box-shadow:0 0 0 3px #dbeafe; }
.mr-form-field input.error { border-color:#dc2626; }

/* Payment radios */
.mr-payment-radios { display:flex; gap:10px; flex-wrap:wrap; margin:16px 0; }
.mr-payment-option { display:flex; align-items:center; gap:8px; padding:10px 16px; border:2px solid #e5e7eb; border-radius:8px; cursor:pointer; font-weight:600; font-size:14px; transition:all .2s; }
.mr-payment-option:has(input:checked) { border-color:#2563EB; background:#eff6ff; color:#1d4ed8; }
.mr-conditional-fields { margin-top:14px; }

/* Postage cards */
.mr-postage-card { display:flex; margin-bottom:10px; cursor:pointer; }
.mr-postage-card input[type=radio] { display:none; }
.mr-postage-inner { display:flex; align-items:center; gap:16px; border:2px solid #e5e7eb; border-radius:10px; padding:16px; width:100%; transition:all .2s; }
.mr-postage-card:has(input:checked) .mr-postage-inner { border-color:#2563EB; background:#eff6ff; }
.mr-postage-icon { font-size:24px; flex-shrink:0; }
.mr-postage-name { font-weight:700; font-size:14px; color:#0F172A; }
.mr-postage-desc { font-size:12px; color:#6b7280; margin-top:2px; }

/* Order summary */
.mr-order-summary { background:#f8fafc; border:1px solid #e5e7eb; border-radius:10px; padding:18px; margin-top:12px; }
.mr-order-summary table { width:100%; font-size:13px; }
.mr-order-summary td { padding:6px 0; }
.mr-order-summary td:first-child { color:#6b7280; font-weight:600; width:40%; }
.mr-order-summary td:last-child { font-weight:600; color:#0F172A; }
.mr-order-summary .mr-summary-price { font-size:20px; color:#059669; }

/* Buttons */
.mr-btn-primary { display:inline-block; background:#2563EB; color:#fff; border:none; border-radius:8px; padding:13px 28px; font-size:15px; font-weight:700; cursor:pointer; font-family:inherit; transition:all .2s; text-align:center; }
.mr-btn-primary:hover:not(:disabled) { background:#1d4ed8; transform:translateY(-1px); box-shadow:0 4px 12px rgba(37,99,235,.35); }
.mr-btn-primary:disabled { opacity:.5; cursor:not-allowed; transform:none; }
.mr-btn-secondary { background:#fff; color:#374151; border:1.5px solid #d1d5db; border-radius:8px; padding:12px 20px; font-size:14px; font-weight:600; cursor:pointer; font-family:inherit; transition:all .2s; }
.mr-btn-secondary:hover { background:#f9fafb; border-color:#9ca3af; }
.mr-step-nav { display:flex; justify-content:space-between; align-items:center; margin-top:24px; }

/* Success screen */
.mr-success-screen { text-align:center; padding:40px 20px; }
.mr-success-icon { font-size:64px; margin-bottom:16px; }
.mr-success-screen h2 { font-size:26px; font-weight:800; color:#059669; margin:0 0 12px; }
.mr-success-screen p { color:#6b7280; font-size:15px; line-height:1.6; }

/* Error message */
.mr-error-msg { background:#fef2f2; border:1px solid #fecaca; color:#991b1b; padding:12px 16px; border-radius:8px; font-size:14px; margin-top:12px; }

/* My Orders */
.mr-my-orders { padding:0; }
.mr-my-orders h3 { font-size:20px; font-weight:700; color:#0F172A; margin:0 0 20px; }
.mr-empty { color:#9ca3af; font-style:italic; }
.mr-table { width:100%; border-collapse:collapse; font-size:14px; }
.mr-table thead tr { background:#0F172A; }
.mr-table thead th { color:#fff; padding:10px 14px; text-align:left; font-size:12px; text-transform:uppercase; }
.mr-table tbody td { padding:10px 14px; border-bottom:1px solid #f1f5f9; }
.mr-table tbody tr:hover { background:#f8fafc; }
.mr-badge { display:inline-flex; align-items:center; padding:3px 9px; border-radius:20px; font-size:11px; font-weight:600; white-space:nowrap; }
.mr-grade-new{background:#d1fae5;color:#065f46} .mr-grade-working{background:#fef3c7;color:#92400e} .mr-grade-broken{background:#fee2e2;color:#991b1b}
.mr-status-received{background:#dbeafe;color:#1e40af} .mr-status-processing{background:#fef3c7;color:#92400e} .mr-status-dispatched{background:#ede9fe;color:#5b21b6} .mr-status-graded{background:#cffafe;color:#155e75} .mr-status-paid{background:#d1fae5;color:#065f46} .mr-status-cancelled{background:#f3f4f6;color:#4b5563}

/* My order detail */
.mr-order-detail-front { display:flex; flex-direction:column; gap:16px; }
.mr-card-front { background:#fff; border:1px solid #e5e7eb; border-radius:10px; padding:20px; }
.mr-card-front h4 { font-size:14px; font-weight:700; color:#0F172A; margin:0 0 14px; padding-bottom:8px; border-bottom:1px solid #f1f5f9; }
.mr-device-hero { text-align:center; padding:10px 0; }
.mr-device-name { font-size:18px; font-weight:700; color:#0F172A; }
.mr-device-price { font-size:32px; font-weight:800; color:#059669; margin:6px 0; }

/* Status timeline */
.mr-status-timeline { display:flex; align-items:flex-start; flex-wrap:wrap; gap:0; }
.mr-timeline-step { display:flex; flex-direction:column; align-items:center; gap:4px; flex:0 0 auto; }
.mr-timeline-dot { width:32px; height:32px; border-radius:50%; background:#e5e7eb; color:#6b7280; display:flex; align-items:center; justify-content:center; font-size:12px; font-weight:700; }
.mr-timeline-step.done .mr-timeline-dot { background:#d1fae5; color:#059669; }
.mr-timeline-step.current .mr-timeline-dot { background:#2563EB; color:#fff; box-shadow:0 0 0 3px #dbeafe; }
.mr-timeline-label { font-size:10px; font-weight:600; color:#9ca3af; text-align:center; max-width:60px; line-height:1.2; }
.mr-timeline-step.done .mr-timeline-label, .mr-timeline-step.current .mr-timeline-label { color:#0F172A; }
.mr-timeline-line { flex:1; height:2px; background:#e5e7eb; min-width:20px; position:relative; top:16px; }
.mr-timeline-line.done { background:#059669; }

/* Note */
.mr-note { padding:10px; background:#f8fafc; border-radius:6px; margin-bottom:8px; border-left:3px solid #059669; }
.mr-note p { margin:0; font-size:13px; }
.mr-note small { color:#9ca3af; font-size:11px; }

@media(max-width:540px){
    .mr-steps-bar { gap:0; }
    .mr-step-label { display:none; }
    .mr-step-line { min-width:10px; }
    .mr-payment-option label { font-size:12px; }
}
