.bfw-checkout-card,
.bfw-account-card {
  position: relative;
  overflow: hidden;
  margin-top: 18px;
  padding: 22px;
  border: 1px solid #d9e4ec;
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(15, 118, 110, 0.12), transparent 30%),
    linear-gradient(145deg, #ffffff 0%, #f4f8fb 100%);
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.08);
}

.bfw-checkout-card::before,
.bfw-account-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #0f766e 0%, #14b8a6 50%, #f59e0b 100%);
}

.bfw-checkout-card__header {
  margin-bottom: 14px;
}

.bfw-checkout-card__title {
  margin: 0;
  color: #102a43;
  font-size: 1.25rem;
  line-height: 1.2;
}

.bfw-checkout-card__notice,
.bfw-checkout-card__summary,
.bfw-account-empty,
.bfw-muted-note {
  margin: 0;
  color: #486581;
  line-height: 1.6;
}

.bfw-checkout-card__notice {
  margin-bottom: 12px;
  font-weight: 600;
}

.bfw-checkout-card__options {
  margin-bottom: 14px;
}

#bfw-checkout-mode .woocommerce-input-wrapper {
  display: grid;
  gap: 10px;
}

#bfw-checkout-mode .woocommerce-input-wrapper > label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid #d9e4ec;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

#bfw-checkout-mode .woocommerce-input-wrapper > label:hover {
  border-color: #14b8a6;
  box-shadow: 0 10px 24px rgba(20, 184, 166, 0.12);
  transform: translateY(-1px);
}

#bfw-checkout-mode input[type="radio"] {
  accent-color: #0f766e;
}

.bfw-checkout-card__summary {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 16px;
  background: #0f172a;
  color: #f8fafc;
  font-weight: 600;
}

.bfw-account-shell {
  margin-top: 14px;
}

.bfw-account-table {
  margin: 0;
  border-collapse: separate;
  border-spacing: 0 12px;
}

.bfw-account-table thead th {
  border: 0;
  color: #486581;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.bfw-account-table tbody td {
  border-top: 1px solid #e6edf3;
  border-bottom: 1px solid #e6edf3;
  background: rgba(255, 255, 255, 0.96);
  vertical-align: middle;
}

.bfw-account-table tbody td:first-child {
  border-left: 1px solid #e6edf3;
  border-radius: 16px 0 0 16px;
}

.bfw-account-table tbody td:last-child {
  border-right: 1px solid #e6edf3;
  border-radius: 0 16px 16px 0;
}

.bfw-status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 108px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.bfw-status-badge--pending {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1d4ed8;
}

.bfw-status-badge--waiting {
  background: #fff7ed;
  border-color: #fed7aa;
  color: #c2410c;
}

.bfw-status-badge--overdue {
  background: #fef2f2;
  border-color: #fecaca;
  color: #b91c1c;
}

.bfw-status-badge--paid {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #047857;
}

.bfw-status-badge--cancelled {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #475569;
}

.bfw-pay-button.button {
  border-color: #0f766e;
  background: #0f766e;
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(15, 118, 110, 0.18);
}

.bfw-pay-button.button:hover,
.bfw-pay-button.button:focus {
  border-color: #115e59;
  background: #115e59;
  color: #ffffff;
}

@media (max-width: 782px) {
  .bfw-checkout-card,
  .bfw-account-card {
    padding: 18px;
    border-radius: 20px;
  }

  .bfw-account-table {
    border-spacing: 0;
  }

  .bfw-account-table tbody td,
  .bfw-account-table tbody td:first-child,
  .bfw-account-table tbody td:last-child {
    border-radius: 0;
    border-left: 1px solid #e6edf3;
    border-right: 1px solid #e6edf3;
  }

  .bfw-status-badge {
    min-width: 0;
  }
}
