/**
 * File: frontend.css
 * Location: assets/css/frontend.css
 *
 * Frontend styles for ReturnFlow Pro.
 * Loaded on My Account pages and pages with our shortcodes.
 * Uses WooCommerce theme-compatible class names where possible.
 */

/* ================================================================
   CSS VARIABLES
   ================================================================ */
:root {
  --rfp-primary:       #2271b1;
  --rfp-primary-dark:  #1a5a99;
  --rfp-success:       #00a32a;
  --rfp-warning:       #dba617;
  --rfp-danger:        #d63638;
  --rfp-border:        #dcdcde;
  --rfp-bg:            #f6f7f7;
  --rfp-white:         #ffffff;
  --rfp-text:          #1d2327;
  --rfp-text-muted:    #50575e;
  --rfp-radius:        8px;
  --rfp-shadow:        0 2px 8px rgba(0,0,0,0.08);
  --rfp-transition:    0.18s ease;

  --rfp-blue-bg:    #e3f2fd; --rfp-blue-text:   #1565c0;
  --rfp-green-bg:   #e8f5e9; --rfp-green-text:  #2e7d32;
  --rfp-orange-bg:  #fff3e0; --rfp-orange-text: #e65100;
  --rfp-red-bg:     #ffebee; --rfp-red-text:    #c62828;
  --rfp-teal-bg:    #e0f2f1; --rfp-teal-text:   #00695c;
}

/* ================================================================
   MY RETURNS LIST
   ================================================================ */
.rfp-my-returns h2 { font-size: 20px; margin-bottom: 16px; }

.rfp-empty-notice {
  background: var(--rfp-bg);
  border: 1px dashed var(--rfp-border);
  border-radius: var(--rfp-radius);
  padding: 32px 20px;
  text-align: center;
  color: var(--rfp-text-muted);
}

/* Status pills on My Account list */
.rfp-status-pill {
  display: inline-flex; align-items: center;
  padding: 3px 10px; border-radius: 20px;
  font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.4px;
  white-space: nowrap;
}

.rfp-status-blue   { background: var(--rfp-blue-bg);   color: var(--rfp-blue-text); }
.rfp-status-green  { background: var(--rfp-green-bg);  color: var(--rfp-green-text); }
.rfp-status-orange { background: var(--rfp-orange-bg); color: var(--rfp-orange-text); }
.rfp-status-red    { background: var(--rfp-red-bg);    color: var(--rfp-red-text); }
.rfp-status-teal   { background: var(--rfp-teal-bg);   color: var(--rfp-teal-text); }
.rfp-status-grey   { background: #f5f5f5; color: #616161; }
.rfp-status-purple { background: #f3e5f5; color: #6a1b9a; }
.rfp-status-indigo { background: #e8eaf6; color: #283593; }

/* ================================================================
   MULTI-STEP RETURN FORM WRAPPER
   ================================================================ */
.rfp-return-form-wrapper {
  background: var(--rfp-white);
  border: 1px solid var(--rfp-border);
  border-radius: var(--rfp-radius);
  overflow: hidden;
  box-shadow: var(--rfp-shadow);
}
.rfp-exchange-product-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    transform: translateY(-1px);
    transition: box-shadow 0.15s, transform 0.15s;
}
 
/* ── Basket sidebar item row hover ───────────────────────────── */
#rfp-basket-items-list > div:hover {
    background: #fafafa;
}
 
/* ── Basket qty button ───────────────────────────────────────── */
.rfp-basket-qty-minus,
.rfp-basket-qty-plus {
    flex-shrink: 0;
    transition: background 0.1s;
}
 
.rfp-basket-qty-minus:hover,
.rfp-basket-qty-plus:hover {
    background: #f0f0f0 !important;
}
 
/* ── Variation select ────────────────────────────────────────── */
.rfp-variation-select {
    padding: 6px 8px;
    border: 1px solid var(--rfp-border);
    border-radius: 4px;
    font-size: 13px;
    color: var(--rfp-text);
    background: #fff;
    cursor: pointer;
}
 
.rfp-variation-select:focus {
    border-color: var(--rfp-primary);
    outline: none;
    box-shadow: 0 0 0 2px rgba(34,113,177,0.12);
}
 
/* ── Payment method label highlight on hover ─────────────────── */
.rfp-method-option:hover {
    border-color: var(--rfp-primary) !important;
    background: var(--rfp-blue-bg) !important;
}
 
/* ── Step 2 responsive: stack columns on mobile ──────────────── */
@media (max-width: 680px) {
    #rfp-exchange-step2-columns {
        flex-direction: column !important;
    }
    #rfp-exchange-basket-col {
        flex: 1 1 auto !important;
        width: 100% !important;
    }
    #rfp-exchange-products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}
 
@media (max-width: 420px) {
    #rfp-exchange-products-grid {
        grid-template-columns: 1fr !important;
    }
}
 
/* ── Confirm step basket items list ──────────────────────────── */
#rfp-confirm-basket-items > div:last-child {
    border-bottom: none !important;
}

/* ================================================================
   PROGRESS BAR
   ================================================================ */
.rfp-progress-bar {
  display: flex;
  align-items: center;
  background: var(--rfp-bg);
  padding: 16px 24px;
  border-bottom: 1px solid var(--rfp-border);
}

.rfp-progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex: 1;
  position: relative;
}

.rfp-step-number {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--rfp-border);
  color: var(--rfp-text-muted);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700;
  transition: var(--rfp-transition);
}

.rfp-step-label {
  font-size: 11px;
  color: var(--rfp-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  white-space: nowrap;
  transition: var(--rfp-transition);
}

/* Active step */
.rfp-progress-step.rfp-step-active .rfp-step-number {
  background: var(--rfp-primary);
  color: #fff;
  box-shadow: 0 0 0 4px rgba(34, 113, 177, 0.2);
}

.rfp-progress-step.rfp-step-active .rfp-step-label { color: var(--rfp-primary); font-weight: 600; }

/* Completed step */
.rfp-progress-step.rfp-step-done .rfp-step-number {
  background: var(--rfp-success);
  color: #fff;
}

/* Connector lines between steps */
.rfp-progress-line {
  flex: 1;
  height: 2px;
  background: var(--rfp-border);
  margin-bottom: 16px;
  transition: background 0.3s;
}

.rfp-progress-line.rfp-line-done { background: var(--rfp-success); }

/* ================================================================
   ORDER SUMMARY BAR
   ================================================================ */
.rfp-order-summary-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 24px;
  background: #f8f9ff;
  border-bottom: 1px solid var(--rfp-border);
  font-size: 13px;
  color: var(--rfp-text-muted);
  flex-wrap: wrap; gap: 8px;
}

.rfp-order-summary-bar strong { color: var(--rfp-text); }

/* ================================================================
   FORM STEPS
   ================================================================ */
.rfp-form-step {
  padding: 28px 28px 8px;
}

.rfp-step-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--rfp-text);
  margin: 0 0 8px;
}

.rfp-step-description {
  color: var(--rfp-text-muted);
  font-size: 14px;
  margin: 0 0 24px;
  line-height: 1.6;
}

/* ================================================================
   STEP 1 — PARCEL CONDITION CARDS
   ================================================================ */
.rfp-condition-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}

.rfp-condition-card { cursor: pointer; }

.rfp-condition-radio { display: none; }

.rfp-card-inner {
  border: 2px solid var(--rfp-border);
  border-radius: var(--rfp-radius);
  padding: 20px 16px;
  text-align: center;
  transition: var(--rfp-transition);
  background: var(--rfp-white);
}

.rfp-condition-radio:checked + .rfp-card-inner,
.rfp-condition-card:hover .rfp-card-inner {
  border-color: var(--rfp-primary);
  background: var(--rfp-blue-bg);
}

.rfp-condition-radio:checked + .rfp-card-inner {
  box-shadow: 0 0 0 3px rgba(34,113,177,0.15);
}

.rfp-card-icon { font-size: 28px; display: block; margin-bottom: 8px; }
.rfp-card-inner strong { display: block; font-size: 13px; color: var(--rfp-text); margin-bottom: 4px; }
.rfp-card-inner p { font-size: 12px; color: var(--rfp-text-muted); margin: 0; }

/* ================================================================
   PHOTO UPLOAD AREA
   ================================================================ */
.rfp-photo-upload-area { margin: 8px 0 20px; }

.rfp-upload-header h4 {
  font-size: 15px; margin: 0 0 4px;
}

.rfp-required-label {
  font-size: 12px;
  color: var(--rfp-danger);
  font-weight: 400;
}

.rfp-upload-hint {
  font-size: 13px; color: var(--rfp-text-muted); margin: 0 0 12px;
}

.rfp-upload-zone {
  border: 2px dashed var(--rfp-border);
  border-radius: var(--rfp-radius);
  padding: 28px 16px;
  text-align: center;
  cursor: pointer;
  transition: var(--rfp-transition);
  background: var(--rfp-bg);
}

.rfp-upload-zone:hover,
.rfp-upload-zone.rfp-drag-over {
  border-color: var(--rfp-primary);
  background: var(--rfp-blue-bg);
}

.rfp-upload-icon { font-size: 32px; display: block; margin-bottom: 8px; }
.rfp-upload-placeholder p { margin: 4px 0; color: var(--rfp-text-muted); font-size: 13px; }
.rfp-upload-hint-small { font-size: 11px !important; }

/* Image Previews */
.rfp-upload-previews {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.rfp-preview-item {
  position: relative;
  border-radius: var(--rfp-radius);
  overflow: hidden;
  border: 2px solid var(--rfp-border);
}

.rfp-preview-item img {
  width: 100%; height: 80px; object-fit: cover; display: block;
}

.rfp-preview-remove {
  position: absolute; top: 4px; right: 4px;
  background: rgba(0,0,0,0.6);
  color: #fff; border: none; cursor: pointer;
  width: 20px; height: 20px;
  border-radius: 50%;
  font-size: 12px;
  display: flex; align-items: center; justify-content: center;
}

.rfp-preview-loading {
  position: absolute; inset: 0;
  background: rgba(255,255,255,0.8);
  display: flex; align-items: center; justify-content: center;
}

.rfp-upload-count {
  font-size: 13px; color: var(--rfp-text-muted);
  margin-top: 8px;
}

#rfp-count-number { font-weight: 700; color: var(--rfp-text); }
.rfp-count-hint { font-size: 11px; }

.rfp-info-box {
  background: var(--rfp-blue-bg);
  border-left: 3px solid var(--rfp-primary);
  padding: 10px 14px;
  border-radius: 4px;
  font-size: 13px;
  color: var(--rfp-blue-text);
}

/* ================================================================
   STEP 2 — PRODUCTS TABLE
   ================================================================ */
.rfp-products-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.rfp-products-table th,
.rfp-products-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--rfp-border);
  text-align: left;
}

.rfp-products-table th {
  background: var(--rfp-bg);
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.rfp-product-thumb {
  width: 40px; height: 40px;
  border-radius: 4px;
  object-fit: cover;
  border: 1px solid var(--rfp-border);
}

.rfp-qty-input {
  width: 60px;
  padding: 5px 8px;
  border: 1px solid var(--rfp-border);
  border-radius: 4px;
  text-align: center;
  font-size: 13px;
}

.rfp-row-disabled td { opacity: 0.45; pointer-events: none; }
.rfp-already-returned-label {
  font-size: 11px; color: var(--rfp-text-muted); display: block;
}

.rfp-refund-total-row {
  display: flex; justify-content: flex-end; align-items: center;
  gap: 16px; padding: 12px 12px 0;
  font-size: 14px; color: var(--rfp-text-muted);
  border-top: 2px solid var(--rfp-border); margin-top: 4px;
}

.rfp-refund-total-row strong { font-size: 18px; color: var(--rfp-text); }

/* ================================================================
   LOADING SPINNER
   ================================================================ */
.rfp-spinner {
  display: inline-block;
  width: 14px; height: 14px;
  border: 2px solid rgba(34,113,177,0.3);
  border-top-color: var(--rfp-primary);
  border-radius: 50%;
  animation: rfp-spin 0.7s linear infinite;
  vertical-align: middle;
}

@keyframes rfp-spin { to { transform: rotate(360deg); } }

.rfp-loading-spinner {
  text-align: center;
  padding: 24px;
  color: var(--rfp-text-muted);
  font-size: 13px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}

/* ================================================================
   STEP 3 — REASON & NOTES
   ================================================================ */
.rfp-field-group { margin-bottom: 18px; }

.rfp-label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 6px;
  color: var(--rfp-text);
}

.rfp-required { color: var(--rfp-danger); margin-left: 2px; }
.rfp-optional-label { font-weight: 400; color: var(--rfp-text-muted); font-size: 12px; }

.rfp-select,
.rfp-input,
.rfp-textarea {
  width: 100%;
  border: 1px solid var(--rfp-border);
  border-radius: var(--rfp-radius);
  padding: 10px 12px;
  font-size: 14px;
  color: var(--rfp-text);
  background: var(--rfp-white);
  transition: border-color var(--rfp-transition);
  box-sizing: border-box;
}

.rfp-select:focus,
.rfp-input:focus,
.rfp-textarea:focus {
  border-color: var(--rfp-primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(34,113,177,0.1);
}

.rfp-textarea { resize: vertical; min-height: 100px; line-height: 1.5; }
.rfp-field-hint { font-size: 11px; color: var(--rfp-text-muted); margin: 4px 0 0; }

/* ================================================================
   STEP 4 — REFUND METHOD CARDS
   ================================================================ */
.rfp-refund-methods { display: flex; flex-direction: column; gap: 12px; }

.rfp-method-card { cursor: pointer; }
.rfp-method-radio { display: none; }

.rfp-method-inner {
  border: 2px solid var(--rfp-border);
  border-radius: var(--rfp-radius);
  padding: 16px;
  transition: var(--rfp-transition);
  background: var(--rfp-white);
}

.rfp-method-radio:checked + .rfp-method-inner,
.rfp-method-card:hover .rfp-method-inner {
  border-color: var(--rfp-primary);
  background: var(--rfp-blue-bg);
}

.rfp-method-radio:checked + .rfp-method-inner {
  box-shadow: 0 0 0 3px rgba(34,113,177,0.15);
}

.rfp-method-header {
  display: flex; align-items: flex-start; gap: 12px;
  margin-bottom: 8px;
}

.rfp-method-icon { font-size: 22px; }
.rfp-method-name { font-size: 15px; font-weight: 600; color: var(--rfp-text); display: block; }

.rfp-method-badge {
  font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.4px;
  padding: 2px 6px; border-radius: 10px;
  margin-left: 8px; vertical-align: middle;
}

.rfp-badge-recommended {
  background: #e8f5e9; color: #2e7d32;
}

.rfp-method-description {
  font-size: 13px; color: var(--rfp-text-muted); margin: 0;
}

.rfp-method-pros {
  list-style: none; margin: 8px 0 0; padding: 0;
}

.rfp-method-pros li {
  font-size: 12px; color: #2e7d32;
  padding: 2px 0;
}

.rfp-security-note {
  font-size: 11px; color: #00695c;
  background: #e0f2f1; padding: 6px 10px;
  border-radius: 4px; margin-top: 8px;
}

/* Method Details (bank/cheque fields) */
.rfp-method-details { margin-top: -4px; }

.rfp-method-details-inner {
  background: var(--rfp-bg);
  border: 1px solid var(--rfp-border);
  border-top: none;
  border-radius: 0 0 var(--rfp-radius) var(--rfp-radius);
  padding: 16px;
}

.rfp-fields-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.rfp-input-sort-code { letter-spacing: 2px; }

.rfp-privacy-note {
  font-size: 12px; color: var(--rfp-text-muted);
  margin-top: 16px; padding: 10px;
  background: var(--rfp-bg);
  border-radius: 4px;
}

/* ================================================================
   SUMMARY SCREEN
   ================================================================ */
.rfp-summary-box {
  background: var(--rfp-bg);
  border: 1px solid var(--rfp-border);
  border-radius: var(--rfp-radius);
  padding: 20px;
  margin-bottom: 24px;
}

.rfp-summary-row {
  display: flex; justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--rfp-border);
  font-size: 13px;
}

.rfp-summary-row:last-child { border-bottom: none; }
.rfp-summary-row .rfp-summary-label { color: var(--rfp-text-muted); }
.rfp-summary-row .rfp-summary-value { font-weight: 600; color: var(--rfp-text); }

/* ================================================================
   SUCCESS SCREEN
   ================================================================ */
.rfp-success-box {
  text-align: center;
  padding: 40px 28px;
}

.rfp-success-icon { font-size: 52px; display: block; margin-bottom: 12px; }
.rfp-success-box h3 { font-size: 22px; color: var(--rfp-text); margin: 0 0 12px; }
.rfp-success-box p { color: var(--rfp-text-muted); font-size: 14px; margin: 8px 0; }

.rfp-request-number-display {
  font-size: 18px;
  font-weight: 700;
  color: var(--rfp-primary);
  background: var(--rfp-blue-bg);
  padding: 4px 14px;
  border-radius: 4px;
  letter-spacing: 1px;
}

/* ================================================================
   STEP ERRORS
   ================================================================ */
.rfp-step-error {
  background: var(--rfp-red-bg);
  color: var(--rfp-red-text);
  border: 1px solid #f5c6cb;
  border-radius: 4px;
  padding: 10px 14px;
  font-size: 13px;
  margin: 8px 0 16px;
}

/* ================================================================
   NAVIGATION BUTTONS
   ================================================================ */
.rfp-form-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 28px 28px;
  border-top: 1px solid var(--rfp-border);
  background: var(--rfp-bg);
  gap: 12px;
}

.rfp-btn-submit .rfp-btn-loading { display: none; }
.rfp-btn-submit.rfp-loading .rfp-btn-text { display: none; }
.rfp-btn-submit.rfp-loading .rfp-btn-loading { display: inline-flex; align-items: center; gap: 6px; }

/* ================================================================
   TRACKING PAGE
   ================================================================ */
.rfp-tracking-wrapper {
  max-width: 100%;
}

.rfp-breadcrumb { margin-bottom: 16px; }
.rfp-breadcrumb a { color: var(--rfp-primary); text-decoration: none; font-size: 14px; }

.rfp-tracking-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
  flex-wrap: wrap; gap: 12px;
}

.rfp-tracking-title h2 { margin: 0 0 4px; font-size: 22px; }
.rfp-tracking-title p { margin: 0; color: var(--rfp-text-muted); font-size: 13px; }

.rfp-badge-large { font-size: 13px; padding: 5px 14px; }

/* Progress Pipeline */
.rfp-progress-pipeline {
  display: flex;
  align-items: center;
  background: var(--rfp-bg);
  border: 1px solid var(--rfp-border);
  border-radius: var(--rfp-radius);
  padding: 16px 20px;
  margin-bottom: 24px;
  overflow-x: auto;
}

.rfp-pipeline-step {
  display: flex; flex-direction: column;
  align-items: center; gap: 5px;
  opacity: 0.4;
  transition: var(--rfp-transition);
  flex-shrink: 0;
}

.rfp-pipeline-step.rfp-step-current { opacity: 1; }
.rfp-pipeline-step.rfp-step-done    { opacity: 0.8; }

.rfp-pipeline-icon { font-size: 20px; }
.rfp-pipeline-label { font-size: 11px; color: var(--rfp-text-muted); text-transform: uppercase; letter-spacing: 0.3px; }
.rfp-pipeline-step.rfp-step-current .rfp-pipeline-label { color: var(--rfp-primary); font-weight: 700; }

.rfp-pipeline-connector {
  flex: 1; height: 2px;
  background: var(--rfp-border);
  margin: 0 4px 16px;
  min-width: 20px;
}

.rfp-pipeline-connector.rfp-connector-done { background: var(--rfp-success); }

/* Rejected Banner */
.rfp-rejected-banner {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--rfp-red-bg);
  border: 1px solid #f5c6cb;
  border-radius: var(--rfp-radius);
  padding: 16px;
  margin-bottom: 24px;
}

.rfp-rejected-icon { font-size: 24px; }

/* Status Action Boxes */
.rfp-action-box {
  display: flex;
  gap: 16px;
  padding: 20px;
  border-radius: var(--rfp-radius);
  margin-bottom: 24px;
  border: 1px solid transparent;
}

.rfp-box-blue   { background: var(--rfp-blue-bg);   border-color: #90caf9; }
.rfp-box-orange { background: var(--rfp-orange-bg); border-color: #ffcc80; }
.rfp-box-green  { background: var(--rfp-green-bg);  border-color: #a5d6a7; }
.rfp-box-teal   { background: var(--rfp-teal-bg);   border-color: #80cbc4; }

.rfp-box-icon { font-size: 28px; flex-shrink: 0; }
.rfp-box-content h4 { margin: 0 0 8px; font-size: 16px; color: var(--rfp-text); }
.rfp-box-content p  { margin: 4px 0; color: var(--rfp-text-muted); font-size: 13px; }

/* Return Address Box */
.rfp-return-address-box {
  background: var(--rfp-white);
  border: 2px solid var(--rfp-primary);
  border-radius: var(--rfp-radius);
  padding: 16px;
  margin: 12px 0;
}

.rfp-return-address-box h5 { margin: 0 0 8px; font-size: 13px; color: var(--rfp-primary); }

.rfp-address-block {
  font-style: normal;
  line-height: 1.8;
  font-size: 14px;
  color: var(--rfp-text);
}

.rfp-instructions-box {
  background: #fff8e1;
  border-left: 3px solid var(--rfp-warning);
  padding: 12px 14px;
  border-radius: 0 4px 4px 0;
  margin-top: 12px;
}

.rfp-instructions-box h5 { margin: 0 0 8px; font-size: 13px; }
.rfp-instructions-box ul { margin: 0; padding-left: 20px; }
.rfp-instructions-box li { font-size: 13px; padding: 3px 0; }

/* Tracking Sections */
.rfp-tracking-sections { display: flex; flex-direction: column; gap: 20px; }

.rfp-tracking-section {
  background: var(--rfp-white);
  border: 1px solid var(--rfp-border);
  border-radius: var(--rfp-radius);
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.rfp-tracking-section-title {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--rfp-text);
  padding: 11px 16px;
  margin: 0;
  background: var(--rfp-bg);
  border-bottom: 1px solid var(--rfp-border);
}

/* Info table in tracking */
.rfp-info-table { width: 100%; border-collapse: collapse; }
.rfp-info-table th, .rfp-info-table td {
  padding: 9px 16px; font-size: 13px;
  border-bottom: 1px solid var(--rfp-border); vertical-align: top;
}
.rfp-info-table th { width: 40%; font-weight: 600; background: var(--rfp-bg); }
.rfp-info-table tr:last-child th,
.rfp-info-table tr:last-child td { border-bottom: none; }

/* Items table in tracking */
.rfp-items-table { width: 100%; border-collapse: collapse; }
.rfp-items-table th, .rfp-items-table td {
  padding: 10px 16px; font-size: 13px;
  border-bottom: 1px solid var(--rfp-border); text-align: left;
}
.rfp-items-table th { background: var(--rfp-bg); font-weight: 600; font-size: 11px; text-transform: uppercase; }
.rfp-total-row td { background: var(--rfp-bg); font-size: 14px; }

/* Timeline in tracking */
.rfp-timeline { list-style: none; margin: 0; padding: 14px 16px; }
.rfp-timeline-item { display: flex; gap: 10px; padding-bottom: 14px; position: relative; }
.rfp-timeline-item:not(:last-child)::before {
  content: ''; position: absolute;
  left: 5px; top: 16px; bottom: 0;
  width: 1px; background: var(--rfp-border);
}
.rfp-timeline-dot {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--rfp-primary); flex-shrink: 0; margin-top: 3px;
  border: 2px solid var(--rfp-white);
  box-shadow: 0 0 0 1px var(--rfp-primary);
}
.rfp-timeline-content { flex: 1; }
.rfp-timeline-content strong { font-size: 13px; }
.rfp-timeline-notes { font-size: 12px; color: var(--rfp-text-muted); margin: 3px 0 0; }
.rfp-timeline-time { font-size: 11px; color: var(--rfp-text-muted); display: block; margin-top: 2px; }

/* ================================================================
   GUEST FORM
   ================================================================ */
.rfp-guest-form-wrapper {
  background: var(--rfp-white);
  border: 1px solid var(--rfp-border);
  border-radius: var(--rfp-radius);
  padding: 28px;
  max-width: 480px;
  box-shadow: var(--rfp-shadow);
}

.rfp-guest-form-header h3 { font-size: 20px; margin: 0 0 6px; }
.rfp-guest-form-header p { color: var(--rfp-text-muted); font-size: 14px; margin: 0 0 24px; }

.rfp-guest-error { margin-bottom: 0 !important; }
.rfp-guest-login-nudge { margin-top: 16px; text-align: center; font-size: 13px; color: var(--rfp-text-muted); }

.rfp-order-confirm-box {
  background: var(--rfp-green-bg);
  border: 1px solid #a5d6a7;
  border-radius: var(--rfp-radius);
  padding: 20px;
}

.rfp-order-confirm-box h4 { color: var(--rfp-success); margin: 0 0 14px; }
.rfp-confirm-table { width: 100%; margin-bottom: 14px; }
.rfp-confirm-table th, .rfp-confirm-table td { padding: 6px 0; font-size: 13px; }
.rfp-confirm-table th { width: 40%; color: var(--rfp-text-muted); }
.rfp-confirm-question { font-size: 14px; font-weight: 600; margin-bottom: 14px; }

.rfp-confirm-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ================================================================
   RETURN BUTTON IN MY ACCOUNT ORDERS
   ================================================================ */
.rfp-return-btn {
  background-color: #fff;
  color: var(--rfp-primary);
  border-color: var(--rfp-primary);
}

.rfp-return-btn:hover {
  background-color: var(--rfp-primary);
  color: #fff;
}

/* ================================================================
   EXCHANGE WIDGET (Pro)
   ================================================================ */
.rfp-exchange-widget {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: var(--rfp-radius);
  padding: 16px;
  color: #fff;
  margin-bottom: 20px;
}

.rfp-widget-badge {
  font-size: 14px; font-weight: 700; margin-bottom: 6px;
}

.rfp-exchange-widget p { font-size: 13px; opacity: 0.9; margin: 0 0 12px; }

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 768px) {
  .rfp-condition-cards { grid-template-columns: 1fr; }
  .rfp-fields-row { grid-template-columns: 1fr; }
  .rfp-form-step { padding: 20px 16px 8px; }
  .rfp-form-navigation { padding: 16px; }
  .rfp-tracking-header { flex-direction: column; }
  .rfp-progress-pipeline { padding: 12px; }
  .rfp-pipeline-label { display: none; }
  .rfp-action-box { flex-direction: column; gap: 10px; }
}

@media (max-width: 480px) {
  .rfp-progress-bar { padding: 12px 10px; }
  .rfp-step-label { font-size: 10px; }
  .rfp-progress-line { display: none; }
}

/* ================================================================
   WALLET — MY ACCOUNT TAB
   ================================================================ */

/* Balance Card */
.rfp-wallet-balance-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: linear-gradient(135deg, #2271b1 0%, #135e96 100%);
    border-radius: 12px;
    padding: 28px 24px;
    margin-bottom: 20px;
    color: #fff;
    flex-wrap: wrap;
}

.rfp-wallet-balance-icon { font-size: 40px; }

.rfp-wallet-balance-content { flex: 1; }

.rfp-wallet-label {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    opacity: 0.85;
    margin: 0 0 4px;
}

.rfp-wallet-amount {
    font-size: 36px;
    font-weight: 700;
    line-height: 1;
    color: #fff;
}

.rfp-wallet-amount .woocommerce-Price-currencySymbol { font-size: 20px; }

.rfp-wallet-shop-btn {
    background: rgba(255,255,255,0.2) !important;
    color: #fff !important;
    border: 2px solid rgba(255,255,255,0.5) !important;
    border-radius: 6px !important;
    padding: 10px 20px !important;
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap;
    transition: background 0.2s;
}

.rfp-wallet-shop-btn:hover {
    background: rgba(255,255,255,0.35) !important;
    color: #fff !important;
}

/* Notice boxes */
.rfp-wallet-notice {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

.rfp-wallet-notice-info {
    background: #e3f2fd;
    border-left: 4px solid #2271b1;
    color: #1565c0;
}

.rfp-wallet-notice-empty {
    background: #f6f7f7;
    border-left: 4px solid #dcdcde;
    color: #50575e;
}

.rfp-wallet-notice p { margin: 0; line-height: 1.6; }
.rfp-wallet-notice a { color: var(--rfp-primary); }

/* Section Title */
.rfp-wallet-section-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--rfp-text);
    margin: 0 0 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--rfp-border);
    display: flex;
    align-items: center;
    gap: 8px;
}

.rfp-wallet-limit-note {
    font-size: 12px;
    font-weight: 400;
    color: var(--rfp-text-muted);
}

/* Transaction Table */
.rfp-wallet-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.rfp-wallet-table th,
.rfp-wallet-table td {
    padding: 11px 14px;
    border-bottom: 1px solid var(--rfp-border);
    text-align: left;
    vertical-align: middle;
}

.rfp-wallet-table th {
    background: var(--rfp-bg);
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: var(--rfp-text-muted);
}

.rfp-wallet-table tr:last-child td { border-bottom: none; }
.rfp-wallet-table tr:hover td { background: #fafafa; }

/* Transaction amount colours */
.rfp-tx-credit {
    color: #00a32a;
    font-weight: 700;
}

.rfp-tx-debit {
    color: #d63638;
    font-weight: 700;
}

.rfp-tx-ref {
    background: #f0f0f0;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-family: monospace;
    color: var(--rfp-text);
}

/* Empty state */
.rfp-wallet-empty-transactions {
    text-align: center;
    padding: 32px 20px;
    color: var(--rfp-text-muted);
    background: var(--rfp-bg);
    border-radius: 8px;
    border: 1px dashed var(--rfp-border);
}

/* ================================================================
   WALLET — CHECKOUT PAGE
   ================================================================ */

.rfp-checkout-wallet {
    background: #f0f7ff;
    border: 2px solid #2271b1;
    border-radius: 8px;
    padding: 18px 20px;
    margin-bottom: 20px;
}

.rfp-wallet-checkout-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.rfp-wallet-checkout-header .rfp-wallet-icon { font-size: 24px; }

.rfp-wallet-checkout-info strong {
    display: block;
    font-size: 15px;
    color: var(--rfp-text);
}

.rfp-wallet-balance-available {
    font-size: 13px;
    color: #2271b1;
    font-weight: 600;
}

.rfp-wallet-apply-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: var(--rfp-text);
}

.rfp-wallet-apply-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #2271b1;
    flex-shrink: 0;
}

.rfp-wallet-applying {
    font-size: 13px;
    color: var(--rfp-text-muted);
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 600px) {
    .rfp-wallet-balance-card { flex-direction: column; text-align: center; }
    .rfp-wallet-amount { font-size: 28px; }
    .rfp-wallet-table th:nth-child(3),
    .rfp-wallet-table td:nth-child(3) { display: none; }
}