body.bt-refund-open { overflow: hidden; }
.bt-refund-fab {
  position: fixed; right: 18px; bottom: 18px; z-index: 1200;
  border: 0; border-radius: 999px; padding: 12px 18px;
  background: #151515; color: #fff; font-weight: 800; cursor: pointer;
  box-shadow: 0 12px 34px rgba(0,0,0,.28);
}
.bt-refund-fab:hover { transform: translateY(-1px); }
.bt-refund-overlay {
  position: fixed; inset: 0; z-index: 1400; display: grid; place-items: center;
  padding: 18px; background: rgba(0,0,0,.58); backdrop-filter: blur(4px);
}
.bt-refund-overlay[hidden] { display: none !important; }
.bt-refund-modal {
  width: min(940px, 100%); max-height: min(88vh, 900px); overflow: hidden;
  display: flex; flex-direction: column; background: #fff; color: #161616;
  border-radius: 18px; box-shadow: 0 25px 90px rgba(0,0,0,.38);
}
.bt-refund-header { display: flex; justify-content: space-between; gap: 16px; padding: 20px 22px 12px; }
.bt-refund-header h2 { margin: 0 0 5px; font-size: 1.28rem; }
.bt-refund-header p { margin: 0; color: #555; line-height: 1.4; }
.bt-refund-close { width: 38px; height: 38px; border: 0; border-radius: 10px; font-size: 25px; cursor: pointer; }
.bt-refund-warning { margin: 0 22px 12px; padding: 11px 13px; border: 1px solid #f1c36b; background: #fff7df; border-radius: 11px; font-weight: 700; }
.bt-refund-toolbar { display: flex; gap: 10px; padding: 0 22px 12px; }
.bt-refund-search { flex: 1; min-width: 0; border: 1px solid #ccc; border-radius: 10px; padding: 11px 12px; font: inherit; }
.bt-refund-refresh { border: 0; border-radius: 10px; padding: 0 16px; font-weight: 800; cursor: pointer; }
.bt-refund-summary { padding: 0 22px 12px; color: #555; font-size: .9rem; }
.bt-refund-list { overflow: auto; padding: 0 22px 22px; display: grid; gap: 12px; }
.bt-refund-card { border: 1px solid #ddd; border-radius: 14px; padding: 14px; background: #fff; }
.bt-refund-card.needs-review { border-color: #e3a521; box-shadow: inset 4px 0 #e3a521; }
.bt-refund-card.is-refunded { border-color: #55a56c; background: #f5fff8; }
.bt-refund-card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.bt-refund-card-top strong, .bt-refund-card-top span { display: block; }
.bt-refund-card-top > div > span { margin-top: 4px; color: #555; }
.bt-refund-status { flex: 0 0 auto; padding: 5px 8px; border-radius: 999px; background: #eee; font-size: .72rem; font-weight: 900; }
.bt-refund-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 10px; margin-top: 13px; }
.bt-refund-grid div { min-width: 0; padding: 9px; border-radius: 9px; background: #f5f5f5; }
.bt-refund-grid small, .bt-refund-grid span { display: block; }
.bt-refund-grid small { color: #666; margin-bottom: 3px; }
.bt-refund-grid span { overflow-wrap: anywhere; font-weight: 700; }
.bt-refund-action { width: 100%; margin-top: 13px; border: 0; border-radius: 10px; padding: 11px; background: #b40712; color: #fff; font-weight: 900; cursor: pointer; }
.bt-refund-result { margin: 12px 0 0; color: #3f6049; font-weight: 700; }
.bt-refund-empty { padding: 30px; text-align: center; color: #666; }
@media (max-width: 700px) {
  .bt-refund-overlay { padding: 8px; }
  .bt-refund-modal { max-height: 94vh; border-radius: 14px; }
  .bt-refund-header { padding: 16px 15px 10px; }
  .bt-refund-warning { margin-inline: 15px; }
  .bt-refund-toolbar, .bt-refund-summary { padding-inline: 15px; }
  .bt-refund-list { padding-inline: 15px; }
  .bt-refund-grid { grid-template-columns: 1fr 1fr; }
  .bt-refund-card-top { flex-direction: column; }
}
.bt-refund-toolbar { flex-wrap: wrap; }
.bt-refund-reconcile, .bt-refund-report, .bt-refund-csv {
  border: 0; border-radius: 10px; padding: 10px 13px; font-weight: 850; cursor: pointer;
}
.bt-refund-reconcile { background: #b40712; color: #fff; }
.bt-refund-report { background: #151515; color: #fff; }
.bt-refund-csv { background: #e9e9e9; color: #171717; }
.bt-refund-reconcile:disabled, .bt-refund-csv:disabled { opacity: .55; cursor: not-allowed; }
.bt-refund-run-summary {
  margin: 0 22px 12px; padding: 11px 13px; border-radius: 11px;
  background: #eef6ff; border: 1px solid #b8d8f5; color: #173650; font-weight: 750; line-height: 1.45;
}
.bt-refund-check-error {
  margin: 10px 0 0; padding: 9px 10px; border-radius: 9px;
  background: #fff4f4; color: #8a111a; font-size: .82rem; overflow-wrap: anywhere;
}
@media (max-width: 700px) {
  .bt-refund-toolbar > button { flex: 1 1 46%; min-height: 42px; }
  .bt-refund-search { flex-basis: 100%; }
  .bt-refund-run-summary { margin-inline: 15px; }
}
