.bi-returns-page {
  --bi-green: #08a878;
  --bi-dark: #151515;
  --bi-muted: #6c6c6c;
  --bi-border: #e7e1da;
  --bi-bg: #faf7f2;
  font-size: 15px;
}
.bi-hero, .bi-success-card, .bi-summary-card, .bi-info-box, .bi-table-wrap {
  background: #fff;
  border: 1px solid var(--bi-border);
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(0,0,0,.05);
}
.bi-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 26px 30px;
  margin-bottom: 22px;
  background: linear-gradient(135deg, #fff 0%, var(--bi-bg) 100%);
}
.bi-hero h1, .bi-success-card h1 { margin: 0 0 6px; font-size: 34px; font-weight: 700; color: var(--bi-dark); }
.bi-hero p, .bi-success-card p { margin: 0; color: var(--bi-muted); }
.bi-table-wrap { overflow-x: auto; }
.bi-orders-table { margin: 0; }
.bi-orders-table th { background: #eeeae5; color: #161616; font-weight: 700; vertical-align: middle; }
.bi-orders-table td { vertical-align: middle; }
.bi-status-delivered {
  display: inline-block;
  padding: 8px 14px;
  background: var(--bi-green);
  color: #fff;
  border-radius: 999px;
  font-weight: 600;
}
.bi-actions { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.bi-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 0;
  font-weight: 700;
  text-decoration: none !important;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}
.bi-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(0,0,0,.12); }
.bi-btn-primary { background: var(--bi-dark); color: #fff !important; }
.bi-btn-secondary { background: #efefef; color: #777; cursor: not-allowed; }
.bi-btn-large { min-width: 220px; font-size: 16px; }
.bi-info-box { padding: 24px 28px; margin-bottom: 26px; line-height: 1.6; }
.bi-address { margin: 12px 0 18px; padding: 16px 18px; border-left: 4px solid var(--bi-green); background: #f7f7f7; font-weight: 700; }
.bi-return-form h2 { margin: 26px 0 16px; font-size: 24px; }
.bi-products-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.bi-product-card { background: #fff; border: 1px solid var(--bi-border); border-radius: 18px; padding: 16px; box-shadow: 0 8px 20px rgba(0,0,0,.04); }
.bi-checkline { display: flex; gap: 10px; align-items: center; font-weight: 700; margin-bottom: 14px; cursor: pointer; }
.bi-product-main { display: grid; grid-template-columns: 96px 1fr; gap: 16px; }
.bi-product-main img, .bi-summary-product img { width: 96px; height: 96px; object-fit: contain; border: 1px solid #eee; border-radius: 14px; background: #fff; }
.bi-no-image { width: 96px; height: 96px; border-radius: 14px; background: #f2f2f2; display: flex; align-items: center; justify-content: center; color: #999; font-size: 12px; }
.bi-product-card h3 { font-size: 16px; margin: 0 0 6px; line-height: 1.25; }
.bi-ref { color: var(--bi-muted); margin-bottom: 8px; }
.bi-qty-label { display: block; font-weight: 700; margin-top: 10px; }
.bi-return-qty { width: 95px; padding: 8px 10px; border: 1px solid var(--bi-border); border-radius: 10px; }
.bi-methods { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.bi-method-card { display: flex; gap: 12px; align-items: flex-start; padding: 18px; background: #fff; border: 1px solid var(--bi-border); border-radius: 18px; cursor: pointer; }
.bi-method-card strong, .bi-method-card small { display: block; }
.bi-method-card small { color: var(--bi-muted); margin-top: 5px; }
.bi-bottom-actions, .bi-confirm-form { margin-top: 26px; text-align: right; }
.bi-summary-card { padding: 24px; }
.bi-summary-products { display: grid; gap: 12px; margin-top: 18px; }
.bi-summary-product { display: flex; gap: 14px; align-items: center; padding: 12px; border: 1px solid var(--bi-border); border-radius: 14px; }
.bi-summary-product span { display: block; color: var(--bi-muted); margin-top: 3px; }
.bi-success-card { padding: 34px; text-align: center; }
.bi-success-card .bi-btn { margin-top: 18px; }
.bi-account-side-link { display: block; padding: 12px 0; color: inherit; }
.bi-account-side-link i { margin-right: 8px; vertical-align: middle; }
@media (max-width: 575px) {
  .bi-hero { padding: 20px; }
  .bi-hero h1 { font-size: 28px; }
  .bi-product-main { grid-template-columns: 80px 1fr; }
  .bi-product-main img, .bi-no-image { width: 80px; height: 80px; }
  .bi-bottom-actions, .bi-confirm-form { text-align: center; }
}

/* v1.1: menú y vista móvil */
.bi-account-side-link {
  display: flex !important;
  align-items: center;
  gap: 12px;
  padding: 14px 0 !important;
  color: inherit !important;
  text-decoration: none !important;
  border-bottom: 1px solid var(--bi-border, #e7e1da);
  font-style: normal !important;
}
.bi-account-side-link .fa { width: 20px; text-align: center; font-size: 18px; color: #000; }
.bi-account-side-link span { font-style: normal !important; }
.bi-orders-cards { display: grid; gap: 16px; }
.bi-order-card {
  background: #fff;
  border: 1px solid var(--bi-border);
  border-radius: 20px;
  padding: 18px;
  box-shadow: 0 10px 26px rgba(0,0,0,.05);
}
.bi-order-card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.bi-order-label, .bi-order-info-grid span { display: block; color: var(--bi-muted); font-size: 13px; margin-bottom: 3px; }
.bi-order-reference { display: block; font-size: 20px; color: var(--bi-dark); }
.bi-order-info-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 14px; border-radius: 16px; background: #faf7f2; }
.bi-order-info-grid strong { display: block; line-height: 1.3; }
.bi-actions-card { margin-top: 16px; justify-content: flex-end; }
.bi-muted-text { color: var(--bi-muted); margin-top: -8px; }
.bi-pickup-addresses { margin-top: 26px; }
.bi-address-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.bi-address-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--bi-border);
  border-radius: 18px;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0,0,0,.04);
}
.bi-address-card small { display: block; margin-top: 6px; color: var(--bi-muted); line-height: 1.45; }
.bi-summary-address { margin-top: 18px; padding: 16px; border-radius: 16px; background: #faf7f2; border: 1px solid var(--bi-border); }
.bi-summary-address h3 { margin-top: 0; }
@media (max-width: 575px) {
  .bi-orders-cards { gap: 14px; }
  .bi-order-card { padding: 16px; border-radius: 18px; }
  .bi-order-card-top { flex-direction: column; align-items: stretch; }
  .bi-status-delivered { align-self: flex-start; }
  .bi-order-info-grid { grid-template-columns: 1fr; }
  .bi-actions-card { display: grid; grid-template-columns: 1fr; }
  .bi-actions-card .bi-btn { width: 100%; }
  .bi-methods, .bi-address-grid { grid-template-columns: 1fr; }
}

/* v1.6: validaciones y avisos */
.bi-btn-secondary.bi-btn-enabled {
  background: #f2efe9;
  color: var(--bi-dark) !important;
  cursor: pointer;
  border: 1px solid var(--bi-border);
}
.bi-form-error {
  margin: 0 0 18px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid #f1b8b8;
  background: #fff3f3;
  color: #9b1c1c;
  font-weight: 700;
}
.bi-method-note,
.bi-change-warning {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid #f0dfac;
  background: #fff8e4;
  color: #4a3b0b;
  line-height: 1.45;
}
.bi-change-warning {
  margin: 0 0 18px;
}
.bi-address-note {
  margin-top: 14px;
}
.bi-product-card-attention {
  outline: 3px solid #f1b8b8;
  box-shadow: 0 0 0 6px rgba(241, 184, 184, .25);
}
