.sf-bp-modal {
  --bs-modal-zindex: 1090;
  z-index: 1090;
  display: none;
}

.sf-bp-modal.show {
  display: block;
  position: fixed;
  inset: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 1rem;
}

.sf-bp-modal.show .modal-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 28rem);
  margin: 1.5rem auto;
}

.sf-bp-modal__dialog {
  background: #fff;
  border-radius: 0.75rem;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.18);
}

.sf-bp-modal .modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1.15rem 1.25rem 0.5rem;
}

.sf-bp-modal .modal-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: #0f172a;
}

.sf-bp-modal .modal-body {
  padding: 0.5rem 1.25rem 1.25rem;
}

.sf-bp-modal__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 999px;
  background: #f1f5f9;
  color: #334155;
  cursor: pointer;
}

.sf-bp-modal__close:hover,
.sf-bp-modal__close:focus-visible {
  background: #e2e8f0;
  outline: none;
}

.sf-bp-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1085;
  background: rgba(15, 23, 42, 0.45);
}

body.sf-bp-modal-open {
  overflow: hidden;
}

.sf-bp-price-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: #15803d !important;
}

.sf-bp-price-badge span,
.sf-bp-price-badge .bi-shield-check {
  color: #15803d !important;
}

.ab-price-box .sf-bp-price-badge,
.ab-price-box .sf-bp-price-badge span,
.ab-price-box .sf-bp-price-badge .bi-shield-check {
  color: #15803d !important;
}

.sf-bp-price-badge__info {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.15rem;
  height: 1.15rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: #64748b;
  cursor: pointer;
  line-height: 1;
}

.sf-bp-price-badge__info:hover,
.sf-bp-price-badge__info:focus {
  color: #15803d;
}

.sf-bp-modal__rows {
  display: grid;
  gap: 0.65rem;
}

.sf-bp-modal__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.sf-bp-modal__row dt {
  margin: 0;
  font-weight: 500;
  color: #475569;
}

.sf-bp-modal__row dd {
  margin: 0;
  font-weight: 700;
  color: #0f172a;
}

.sf-bp-modal__formula {
  display: block;
  font-size: 0.78rem;
  font-weight: 500;
  color: #94a3b8;
}

.sf-bp-modal__total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid #e2e8f0;
  font-size: 1.05rem;
}

.sf-bp-modal__total strong {
  font-size: 1.2rem;
  color: #0f172a;
}

.sf-bp-modal__info {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  border: 1px solid #86efac;
  background: #ecfdf5;
  color: #14532d;
}

.sf-bp-modal__info-icon {
  flex: 0 0 auto;
  font-size: 1.35rem;
  color: #15803d;
  line-height: 1;
}

.sf-bp-modal__info strong {
  display: block;
  margin-bottom: 0.2rem;
}

.sf-bp-modal__info p {
  font-size: 0.84rem;
  line-height: 1.45;
}

.sf-bp-safe-shop {
  border: 1px solid #bbf7d0;
  background: linear-gradient(180deg, #f0fdf4 0%, #ffffff 100%);
}

.sf-bp-safe-shop__title {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 1rem;
  color: #166534;
  margin-bottom: 0.75rem;
}

.sf-bp-safe-shop__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.sf-bp-safe-shop__list li {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.88rem;
  color: #15803d;
}

.sf-bp-safe-shop__list .bi-check-circle-fill {
  color: #22c55e;
  flex-shrink: 0;
}

.sf-bp-sidebar-card {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  width: 100%;
  margin-top: 1rem;
  padding: 0.95rem 1rem;
  border-radius: 12px;
  border: 1px solid #86efac;
  background: #ecfdf5;
  color: #14532d;
  text-align: left;
}

.sf-bp-sidebar-card--clickable {
  cursor: pointer;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.sf-bp-sidebar-card--clickable:hover {
  box-shadow: 0 8px 20px rgba(22, 101, 52, 0.12);
  transform: translateY(-1px);
}

.sf-bp-sidebar-card__icon {
  flex: 0 0 auto;
  font-size: 1.35rem;
  color: #15803d;
}

.sf-bp-sidebar-card__copy {
  flex: 1 1 auto;
  min-width: 0;
}

.sf-bp-sidebar-card__copy strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}

.sf-bp-sidebar-card__copy span {
  display: block;
  font-size: 0.84rem;
  line-height: 1.45;
}

.sf-bp-sidebar-card__chevron {
  flex: 0 0 auto;
  color: #15803d;
  margin-top: 0.15rem;
}

.ab-price-protection {
  display: none;
}

.lux-mkt-expose__price-protection {
  margin-top: 0.35rem;
}

.lux-mkt-expose__cta .sf-bp-sidebar-card {
  margin-top: 0.85rem;
}

html[data-bs-theme="dark"] .sf-bp-price-badge,
html[data-ui-mode="dark"] .sf-bp-price-badge,
html[data-bs-theme="dark"] .sf-bp-price-badge span,
html[data-ui-mode="dark"] .sf-bp-price-badge span,
html[data-bs-theme="dark"] .sf-bp-price-badge .bi-shield-check,
html[data-ui-mode="dark"] .sf-bp-price-badge .bi-shield-check,
html[data-bs-theme="dark"] .ab-price-box .sf-bp-price-badge,
html[data-ui-mode="dark"] .ab-price-box .sf-bp-price-badge {
  color: #4ade80 !important;
}

html[data-bs-theme="dark"] .sf-bp-modal__dialog,
html[data-ui-mode="dark"] .sf-bp-modal__dialog {
  background: #1e293b;
}

html[data-bs-theme="dark"] .sf-bp-modal__row dt,
html[data-ui-mode="dark"] .sf-bp-modal__row dt {
  color: #94a3b8;
}

html[data-bs-theme="dark"] .sf-bp-modal__row dd,
html[data-ui-mode="dark"] .sf-bp-modal__row dd,
html[data-bs-theme="dark"] .sf-bp-modal__total strong,
html[data-ui-mode="dark"] .sf-bp-modal__total strong {
  color: #f1f5f9;
}

html[data-bs-theme="dark"] .sf-bp-modal__info,
html[data-ui-mode="dark"] .sf-bp-modal__info,
html[data-bs-theme="dark"] .sf-bp-sidebar-card,
html[data-ui-mode="dark"] .sf-bp-sidebar-card,
html[data-bs-theme="dark"] .sf-bp-safe-shop,
html[data-ui-mode="dark"] .sf-bp-safe-shop {
  border-color: #166534;
  background: rgba(22, 101, 52, 0.18);
  color: #bbf7d0;
}
