:root {
  --b2b-ink: #07101c;
  --b2b-muted: #5b6b82;
  --b2b-line: #d7dfeb;
  --b2b-surface: #ffffff;
  --b2b-bg: #eef3f8;
  --b2b-accent: #0b7a5a;
  --b2b-accent-2: #163a5f;
  --b2b-warn: #b45309;
  --b2b-error: #b42318;
  font-family: "DM Sans", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
}
body.b2b-body {
  margin: 0;
  color: var(--b2b-ink);
  background:
    radial-gradient(1200px 500px at 10% -10%, #d7efe6 0%, transparent 55%),
    radial-gradient(900px 420px at 100% 0%, #d9e6f5 0%, transparent 50%),
    var(--b2b-bg);
  line-height: 1.5;
  overflow-x: clip;
  font-size: 15px;
}
a { color: #1959b8; text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; cursor: pointer; border: none; }
.hidden { display: none !important; }

.b2b-header {
  background: linear-gradient(90deg, #0a2540, #12365a);
  color: #fff;
  padding: 0 max(1rem, env(safe-area-inset-right)) 0 max(1rem, env(safe-area-inset-left));
}
.b2b-header .b2b-btn--ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
}
.b2b-header .b2b-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.2);
}
.b2b-header__inner {
  max-width: 1100px;
  margin: 0 auto;
  min-height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.b2b-header__nav {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.875rem;
}
.b2b-header__nav a { color: #e8eef6; }
.b2b-pill {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}
.b2b-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem max(1rem, env(safe-area-inset-right)) 2.5rem max(1rem, env(safe-area-inset-left));
  min-width: 0;
}
.b2b-section,
.b2b-card,
.b2b-grid-auth {
  min-width: 0;
}
.b2b-hero {
  margin-bottom: 1.25rem;
}
.b2b-hero__inner {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.15rem 1.35rem;
  border-radius: 16px;
  border: 1px solid rgba(18, 54, 95, 0.12);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 252, 250, 0.98) 55%, rgba(237, 246, 252, 0.98) 100%);
  box-shadow: 0 12px 40px rgba(10, 37, 64, 0.07);
}
.b2b-hero__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.55rem;
  min-width: 0;
  flex: 1 1 auto;
}
.b2b-hero__badge {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--b2b-accent);
  background: rgba(11, 122, 90, 0.1);
  border: 1px solid rgba(11, 122, 90, 0.18);
}
.b2b-hero h1 {
  margin: 0;
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--b2b-accent-2);
}
.b2b-hero__signin {
  flex: 1 1 36rem;
  width: 100%;
  max-width: 46rem;
  min-width: 0;
}
.b2b-hero-login {
  display: grid;
  gap: 0.45rem;
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  border: 1px solid rgba(18, 54, 95, 0.12);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 6px 18px rgba(10, 37, 64, 0.06);
}
.b2b-hero-login__title {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--b2b-ink);
}
.b2b-hero-login__row {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 0.45rem;
  width: 100%;
  min-width: 0;
}
.b2b-hero-login__field {
  display: block;
  min-width: 0;
  margin: 0;
}
.b2b-hero-login__field--email,
.b2b-hero-login__field--pass {
  flex: 1 1 0;
}
.b2b-hero-login__field input,
.b2b-hero-login__row .b2b-captcha__input {
  font: inherit;
  font-weight: 400;
  width: 100%;
  height: 2.35rem;
  padding: 0 0.65rem;
  border: 1px solid var(--b2b-line);
  border-radius: 8px;
  background: #f8fafc;
  box-sizing: border-box;
}
.b2b-hero-login__field input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
  background: #fff;
}
.b2b-captcha {
  flex: 1.15 1 0;
  min-width: 9.5rem;
  display: block;
}
.b2b-captcha__row {
  display: flex;
  align-items: stretch;
  width: 100%;
  height: 2.35rem;
  border: 1px solid var(--b2b-line);
  border-radius: 8px;
  background: #f8fafc;
  overflow: hidden;
  box-sizing: border-box;
}
.b2b-captcha__row:focus-within {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
  background: #fff;
}
.b2b-captcha__q {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-width: 3.75rem;
  padding: 0 0.45rem;
  border: 0;
  border-right: 1px solid var(--b2b-line);
  border-radius: 0;
  background: #eff6ff;
  color: #1d4ed8;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  user-select: none;
  white-space: nowrap;
}
.b2b-captcha__input,
.b2b-hero-login .b2b-captcha__input {
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
  height: auto !important;
  margin: 0;
  padding: 0 0.5rem !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  font: inherit;
  font-weight: 400;
}
.b2b-captcha__input:focus {
  outline: none;
}
.b2b-captcha__refresh {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 2.35rem;
  width: 2.35rem;
  height: auto;
  margin: 0;
  padding: 0;
  border: 0;
  border-left: 1px solid var(--b2b-line);
  border-radius: 0;
  background: #fff;
  color: #1d4ed8;
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
}
.b2b-captcha__refresh:hover {
  background: #eff6ff;
}
.b2b-hero-login__submit {
  flex: 0 0 auto;
  width: auto !important;
  min-width: 5.75rem;
  height: 2.35rem;
  margin: 0 !important;
  padding: 0 0.9rem;
  white-space: nowrap;
  align-self: stretch;
}
.b2b-hero-login .b2b-error {
  margin: 0;
  font-size: 0.8rem;
}
@media (max-width: 1100px) {
  .b2b-hero__inner {
    flex-direction: column;
    align-items: stretch;
  }
  .b2b-hero__signin {
    max-width: none;
    flex: 1 1 auto;
  }
}
@media (max-width: 760px) {
  .b2b-hero-login__row {
    flex-wrap: wrap;
  }
  .b2b-hero-login__field--email,
  .b2b-hero-login__field--pass,
  .b2b-captcha {
    flex: 1 1 calc(50% - 0.25rem);
  }
  .b2b-hero-login__submit {
    flex: 1 1 100%;
    width: 100% !important;
  }
}

.b2b-card {
  background: var(--b2b-surface);
  border: 1px solid var(--b2b-line);
  border-radius: 14px;
  padding: 1rem 1.05rem;
  box-shadow: 0 10px 30px rgba(10, 37, 64, 0.05);
  margin-bottom: 0.85rem;
}
.b2b-card h2 { margin: 0 0 0.55rem; font-size: 1.08rem; }
.b2b-card__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.b2b-card__head h2 { margin: 0; }
.b2b-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
.b2b-hint, .b2b-muted { color: var(--b2b-muted); font-size: 0.9rem; }
.b2b-hint code {
  word-break: break-word;
  font-size: 0.82em;
}
.b2b-error { color: var(--b2b-error); font-size: 0.9rem; }
.b2b-ok { color: var(--b2b-accent); font-size: 0.9rem; }

.b2b-grid-auth {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: start;
}
.b2b-grid-auth > .b2b-card:not(.b2b-register-card) {
  max-width: 28rem;
}
.b2b-register-card {
  grid-column: 1 / -1;
  max-width: none;
}
.b2b-reg-gate {
  max-width: 36rem;
}
.b2b-reg-gate__actions {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}
.b2b-reg-details__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-bottom: 1rem;
}
.b2b-reg-details__head h2 {
  margin: 0 0 0.35rem;
}
.b2b-reg-details__head .b2b-hint {
  margin: 0;
}
@media (max-width: 720px) {
  .b2b-grid-auth { grid-template-columns: 1fr; }
  .b2b-grid-auth > .b2b-card:not(.b2b-register-card) {
    max-width: none;
  }
}

.b2b-form { display: grid; gap: 0.7rem; }
.b2b-form label {
  display: grid;
  gap: 0.3rem;
  font-size: 0.85rem;
  font-weight: 600;
}
.b2b-form input, .b2b-form select, .b2b-form textarea {
  font: inherit;
  font-weight: 400;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--b2b-line);
  border-radius: 8px;
  background: #f8fafc;
  width: 100%;
  max-width: 100%;
}
.b2b-form--grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.b2b-form--grid .full { grid-column: 1 / -1; }
.b2b-form--row {
  grid-template-columns: 1fr auto;
  align-items: end;
}
@media (max-width: 720px) {
  .b2b-form--grid, .b2b-form--row { grid-template-columns: 1fr; }
}

/* Registration form (company / profile / password) */
.b2b-reg-form {
  display: grid;
  gap: 1.35rem;
  margin-top: 0.85rem;
}
.b2b-reg-section {
  border-top: 1px solid var(--b2b-line);
  padding-top: 1.1rem;
}
.b2b-reg-section:first-of-type {
  border-top: none;
  padding-top: 0.25rem;
}
.b2b-reg-section__title {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 0.85rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: #1f2937;
}
.b2b-reg-section__icon {
  display: inline-flex;
  width: 1.55rem;
  height: 1.55rem;
  color: #2563eb;
  flex-shrink: 0;
}
.b2b-reg-section__icon svg {
  width: 100%;
  height: 100%;
}
.b2b-reg-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem 1rem;
}
.b2b-reg-grid .full {
  grid-column: 1 / -1;
}
.b2b-field__hint {
  font-size: 0.78rem;
  font-weight: 500;
  color: #6b7280;
  line-height: 1.4;
}
.b2b-field__control--file input[type="file"] {
  width: 100%;
  padding: 0.55rem 0.65rem;
  border: 1px dashed #c5cdd8;
  border-radius: 8px;
  background: #f8fafc;
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
}
.b2b-field__control--file input[type="file"]:hover {
  border-color: #0b7a5a;
  background: #f0fdf8;
}
.b2b-field {
  display: grid;
  gap: 0.35rem;
  min-width: 0;
}
.b2b-field__label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #374151;
}
.b2b-field__label em {
  color: #2563eb;
  font-style: normal;
  font-weight: 700;
}
.b2b-field__control {
  position: relative;
  display: block;
  min-width: 0;
}
.b2b-field__control input,
.b2b-field__control select,
.b2b-field__code select {
  font: inherit;
  font-weight: 400;
  width: 100%;
  max-width: 100%;
  padding: 0.7rem 2.5rem 0.7rem 0.85rem;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  background: #fff;
  color: #111827;
  appearance: none;
  -webkit-appearance: none;
}
.b2b-field__control select {
  background-image: none;
}
.b2b-field__control input:focus,
.b2b-field__control select:focus,
.b2b-field__code select:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
.b2b-field__icon {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.15rem;
  height: 1.15rem;
  color: #2563eb;
  pointer-events: none;
  display: inline-flex;
}
.b2b-field__icon svg {
  width: 100%;
  height: 100%;
}
.b2b-field--split .b2b-field__split {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  gap: 0.5rem;
  align-items: stretch;
}
.b2b-field__code {
  display: block;
  min-width: 0;
}
.b2b-field__code select {
  padding-right: 0.65rem;
  text-align: center;
  font-weight: 600;
}
.b2b-field__control--grow {
  position: relative;
  display: block;
  min-width: 0;
}
.b2b-reg-actions {
  display: flex;
  justify-content: flex-end;
  padding-top: 0.25rem;
}
.b2b-reg-actions .b2b-btn {
  min-width: 12rem;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (max-width: 720px) {
  .b2b-reg-grid {
    grid-template-columns: 1fr;
  }
  .b2b-field--split .b2b-field__split {
    grid-template-columns: 4.75rem minmax(0, 1fr);
  }
  .b2b-reg-actions {
    justify-content: stretch;
  }
  .b2b-reg-actions .b2b-btn {
    width: 100%;
  }
}

.b2b-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.48rem 0.82rem;
  border-radius: 8px;
  font-weight: 600;
  min-height: 2.25rem;
}
.b2b-btn--primary { background: var(--b2b-accent); color: #fff; }
.b2b-btn--primary:hover { filter: brightness(0.95); }
.b2b-btn--ghost {
  background: #e8eef6;
  color: var(--b2b-accent-2);
}
.b2b-btn--danger { background: #fee4e2; color: #b42318; }
.b2b-btn--sm { padding: 0.35rem 0.65rem; font-size: 0.82rem; }

.b2b-benefits {
  background: linear-gradient(160deg, #f8fcfa 0%, #f4f8fc 100%);
}
.b2b-benefits ul, .b2b-benefits-list {
  margin: 0;
  padding-left: 1.1rem;
}
.b2b-benefits li, .b2b-benefits-list li { margin: 0.4rem 0; }

.b2b-userbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.b2b-credit-chip {
  background: #12365a;
  color: #fff;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
}
.b2b-frozen-banner {
  margin: -0.35rem 0 1rem;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  border: 1px solid #fcd34d;
  background: #fffbeb;
  color: #92400e;
  font-size: 0.88rem;
  line-height: 1.45;
}

.b2b-nav {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.35rem;
  margin-bottom: 1rem;
  padding: 0.35rem;
  background: rgba(255,255,255,.85);
  border: 1px solid var(--b2b-line);
  border-radius: 14px;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.b2b-nav::-webkit-scrollbar {
  height: 4px;
}
.b2b-nav::-webkit-scrollbar-thumb {
  background: #c5d0de;
  border-radius: 999px;
}
.b2b-nav-btn {
  background: transparent;
  color: var(--b2b-muted);
  font-weight: 600;
  padding: 0.42rem 0.78rem;
  border-radius: 10px;
  flex-shrink: 0;
  white-space: nowrap;
  font-size: 0.84rem;
}
.b2b-nav-btn.is-active {
  background: var(--b2b-accent-2);
  color: #fff;
}
.b2b-cart-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.15rem;
  height: 1.15rem;
  margin-left: 0.25rem;
  padding: 0 0.3rem;
  border-radius: 999px;
  background: #e11d48;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1;
}
.b2b-nav-btn.is-active .b2b-cart-badge {
  background: #fff;
  color: var(--b2b-accent-2);
}
.b2b-cart-panel .b2b-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.b2b-cart-panel .b2b-card__head h2 {
  margin: 0;
}
.b2b-cart-checkout {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--b2b-line);
}
.b2b-cart-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.75rem;
  margin-bottom: 0.85rem;
}
.b2b-cart-summary__label {
  color: var(--b2b-muted);
  font-size: 0.85rem;
}
.b2b-cart-summary__value {
  font-size: 1.35rem;
  color: var(--b2b-accent-2);
}
.b2b-cart-summary__count {
  color: var(--b2b-muted);
  font-size: 0.82rem;
}
.b2b-cart-actions {
  display: grid;
  gap: 0.85rem;
}
.b2b-cart-pickup input {
  width: 100%;
  border: 1px solid #d7dfeb;
  border-radius: 10px;
  padding: 0.55rem 0.65rem;
  font: inherit;
  font-size: 0.9rem;
}
.b2b-cart-actions__btns {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.55rem;
}
.b2b-checkout-card {
  max-width: 42rem;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 1.35rem 1.5rem 1.5rem;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}
.b2b-checkout-step {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  margin-bottom: 1.25rem;
}
.b2b-checkout-step__num {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: #111827;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
}
.b2b-checkout-step__head h2 {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
}
.b2b-checkout-step__lead {
  margin: 0;
  color: var(--b2b-muted);
  font-size: 0.88rem;
  line-height: 1.45;
}
.b2b-guest-form {
  display: grid;
  gap: 0.85rem;
}
.b2b-guest-form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--b2b-ink);
}
.b2b-guest-form .req {
  color: #dc2626;
}
.b2b-guest-form input[type="text"],
.b2b-guest-form input[type="email"],
.b2b-guest-form input[type="tel"],
.b2b-guest-form select {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  padding: 0.6rem 0.7rem;
  font: inherit;
  font-size: 0.92rem;
  background: #fff;
}
.b2b-guest-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
.b2b-phone-row {
  display: grid;
  grid-template-columns: minmax(8.5rem, 10rem) 1fr;
  gap: 0.5rem;
}
.b2b-check-label {
  display: flex !important;
  align-items: flex-start;
  gap: 0.5rem;
  font-weight: 500 !important;
  color: #374151 !important;
}
.b2b-check-label input {
  width: auto;
  margin-top: 0.15rem;
}
.b2b-api-scopes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr));
  gap: 0.45rem 1rem;
}
.b2b-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.b2b-payment-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
}
.b2b-payment-summary__label {
  display: block;
  font-size: 0.78rem;
  color: var(--b2b-muted);
  margin-bottom: 0.15rem;
}
.b2b-payment-summary__total {
  font-size: 1.35rem;
  color: #111827;
}
.b2b-payment-summary__credit {
  margin: 0;
  font-size: 0.85rem;
  color: var(--b2b-muted);
}
.b2b-payment-summary__credit.is-warn {
  color: #b45309;
  font-weight: 600;
}
.b2b-field-hint {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--b2b-muted);
}
.b2b-payment-options {
  border: none;
  margin: 0 0 1rem;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}
.b2b-payment-option {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.b2b-payment-option:has(input:checked) {
  border-color: #111827;
  background: #f9fafb;
}
.b2b-payment-option input {
  margin-top: 0.2rem;
  flex-shrink: 0;
}
.b2b-payment-option__body {
  display: grid;
  gap: 0.15rem;
}
.b2b-payment-option__title {
  font-weight: 600;
  color: #111827;
}
.b2b-payment-option__hint {
  font-size: 0.82rem;
  color: var(--b2b-muted);
}
.b2b-payment-option.is-disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.b2b-payment-stripe {
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
}
.b2b-payment-stripe__loading {
  font-size: 0.88rem;
  color: var(--b2b-muted);
}
.b2b-stripe-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
  font-size: 0.78rem;
  color: var(--b2b-muted);
}
.b2b-stripe-badge strong {
  color: #635bff;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}
.b2b-stripe-setup {
  padding: 0.85rem 1rem;
  margin-bottom: 0.75rem;
  border: 1px solid #fcd34d;
  border-radius: 10px;
  background: #fffbeb;
  color: #78350f;
  font-size: 0.86rem;
  line-height: 1.45;
}
.b2b-stripe-setup p {
  margin: 0.45rem 0 0;
}
.b2b-stripe-setup__code {
  margin: 0.6rem 0 0;
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #fde68a;
  font-size: 0.78rem;
  overflow-x: auto;
  white-space: pre-wrap;
}
.b2b-stripe-setup__hint a {
  color: #1d4ed8;
}
.b2b-checkout-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
  padding-top: 0.5rem;
}
.b2b-btn--pill {
  border-radius: 999px;
  padding-left: 1.35rem;
  padding-right: 1.35rem;
  min-width: 6.5rem;
}
@media (max-width: 640px) {
  .b2b-guest-form__row {
    grid-template-columns: 1fr;
  }
  .b2b-phone-row {
    grid-template-columns: 1fr;
  }
  .b2b-cart-actions__btns {
    flex-direction: column;
  }
  .b2b-cart-actions__btns .b2b-btn {
    width: 100%;
  }
  .b2b-checkout-actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }
  .b2b-checkout-actions .b2b-btn {
    width: 100%;
  }
}
.b2b-cart-table .b2b-cart-remove {
  white-space: nowrap;
}
.b2b-package-expand__cart-ok {
  margin: 0;
  padding: 0.45rem 0.85rem;
  font-size: 0.82rem;
  border-top: 1px solid #e8edf3;
  background: #ecfdf5;
  color: #047857;
}

.b2b-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}
@media (max-width: 860px) {
  .b2b-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.b2b-stat {
  background: var(--b2b-surface);
  border: 1px solid var(--b2b-line);
  border-radius: 12px;
  padding: 0.75rem 0.85rem;
}
.b2b-stat__num {
  display: block;
  font-size: 1.2rem;
  font-weight: 700;
}
.b2b-stat__label {
  color: var(--b2b-muted);
  font-size: 0.78rem;
}
.b2b-stat--loading .b2b-stat__num {
  opacity: 0.45;
}

.b2b-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
}
.b2b-invoice-table th.num,
.b2b-invoice-table td.num {
  text-align: right;
  white-space: nowrap;
}
.b2b-invoice-table {
  font-size: 0.84rem;
}
.b2b-invoice-table th,
.b2b-invoice-table td {
  padding: 0.5rem 0.55rem;
  vertical-align: middle;
}
.b2b-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.b2b-table th, .b2b-table td {
  text-align: left;
  padding: 0.55rem 0.4rem;
  border-bottom: 1px solid #e8edf3;
  vertical-align: top;
}
.b2b-table th { color: var(--b2b-muted); font-size: 0.78rem; text-transform: uppercase; letter-spacing: .03em; }
.b2b-status {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  background: #e8f7f1;
  color: #0a6b45;
}
.b2b-status--cancelled { background: #fee4e2; color: #b42318; }
.b2b-status--amended { background: #fff4e5; color: #9a6700; }
.b2b-status--pending,
.b2b-status--pending-supplier {
  background: #eef2ff;
  color: #3538cd;
}

.b2b-catalog {
  display: grid;
  gap: 0.85rem;
  margin-top: 0.75rem;
  max-height: none;
  overflow: visible;
  padding-right: 0;
}
.b2b-catalog-toolbar {
  grid-template-columns: 1fr 10rem auto;
}
@media (max-width: 720px) {
  .b2b-catalog-toolbar { grid-template-columns: 1fr; }
}
.b2b-package-wrap {
  border: 1px solid #dfe5ee;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
  max-width: 100%;
}
.b2b-package-wrap.is-selected {
  border-color: #0b7a5a;
  box-shadow: 0 0 0 2px rgba(11, 122, 90, 0.12);
}
.b2b-package-expand {
  border-top: 1px solid #e8edf3;
  background: #f8fafc;
}
.b2b-package-expand__lead {
  padding: 0.75rem 0.85rem 0.85rem;
  border-top: 1px dashed #dce3ec;
  background: #fff;
}
.b2b-package-card {
  display: grid;
  grid-template-columns: 11rem minmax(0, 1fr) 8.5rem;
  gap: 0;
  border: none;
  border-radius: 0;
  background: #fff;
  overflow: hidden;
  max-width: 100%;
}
[data-pick].is-active {
  filter: brightness(0.95);
  box-shadow: inset 0 0 0 2px rgba(11, 122, 90, 0.35);
}
.b2b-package-card__media {
  background: #eaf1f8;
}
.b2b-package-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 7.5rem;
  max-height: 8.5rem;
  object-fit: cover;
}
.b2b-package-card__content {
  padding: 0.5rem 0.65rem;
  min-width: 0;
  border-left: 1px solid #e8edf3;
  border-right: 1px solid #e8edf3;
}
.b2b-package-card__title {
  margin: 0 0 0.2rem;
  font-size: 0.92rem;
  line-height: 1.25;
}
.b2b-package-card__meta {
  margin: 0 0 0.35rem;
  color: var(--b2b-muted);
  font-size: 0.76rem;
}
.b2b-package-card__bullets {
  list-style: none;
  margin: 0 0 0.4rem;
  padding: 0;
  display: grid;
  gap: 0.1rem;
}
.b2b-package-card__bullets li {
  position: relative;
  padding-left: 0.85rem;
  font-size: 0.72rem;
  color: #3c4a5e;
}
.b2b-package-card__bullets li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0;
  color: #0b7a5a;
  font-weight: 700;
}
.b2b-package-card__content .b2b-cat-item__tags {
  margin-bottom: 0.25rem;
  gap: 0.25rem;
}
.b2b-package-card__content .b2b-tag {
  font-size: 0.64rem;
  padding: 0.1rem 0.35rem;
}
.b2b-package-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}
.b2b-package-link {
  border: 1px solid #d7dfeb;
  background: #f8fafc;
  color: #3c4a5e;
  border-radius: 6px;
  padding: 0.2rem 0.4rem;
  font-size: 0.7rem;
  font-weight: 600;
}
.b2b-package-link:hover {
  background: #eef3f9;
}
.b2b-package-card__price {
  padding: 0.5rem 0.55rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.2rem;
}
.b2b-package-card__from {
  font-size: 0.72rem;
  color: var(--b2b-muted);
  text-transform: lowercase;
}
.b2b-package-card__value {
  font-size: 1.35rem;
  line-height: 1;
  font-weight: 700;
  color: var(--b2b-accent-2);
}
.b2b-package-card__retail {
  font-size: 0.68rem;
  color: var(--b2b-muted);
}
.b2b-package-card__price .b2b-btn {
  width: 100%;
  padding: 0.35rem 0.5rem;
  font-size: 0.78rem;
}

.bk-selected-bar {
  background: #fff;
  overflow: hidden;
  overflow-anchor: none;
}
.bk-selected-bar__table {
  width: 100%;
  min-width: 0;
}
.bk-selected-bar__head,
.bk-selected-bar__row {
  display: grid;
  grid-template-columns: minmax(11rem, 1.6fr) minmax(9rem, 1.1fr) minmax(8rem, 0.9fr) 4.2rem 4.2rem 4.2rem minmax(7rem, 0.8fr);
  gap: 0.45rem;
  align-items: center;
}
.bk-selected-bar__head {
  background: #f3f5f8;
  color: #4f5d70;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.45rem 0.65rem;
  border-bottom: 1px solid #e5eaf0;
}
.bk-selected-bar__row {
  padding: 0.65rem;
}
.bk-selected-bar__total-head,
.bk-opt-cell--total {
  text-align: right;
}
.bk-opt-cell--tour,
.bk-opt-cell--addon,
.bk-opt-cell--pickup {
  min-width: 0;
}
.bk-selected-bar__head .bk-opt-cell--addon,
.bk-selected-bar__head .bk-opt-cell--pickup {
  color: var(--b2b-accent-2, #1a5fb4);
}
.bk-opt-cell--pickup input[type="time"] {
  min-width: 0;
}
.bk-opt-check {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--b2b-ink);
}
.bk-opt-check input {
  margin-top: 0.15rem;
}
.bk-opt-note {
  display: block;
  margin-top: 0.2rem;
  margin-left: 1.35rem;
  color: #b42318;
  font-size: 0.72rem;
  font-weight: 600;
}
.bk-opt-select,
.bk-opt-input {
  width: 100%;
  min-width: 0;
  border: 1px solid #d7dfeb;
  border-radius: 7px;
  background: #fff;
  padding: 0.38rem 0.45rem;
  font: inherit;
  font-size: 0.82rem;
}
.bk-bar-date-btn {
  text-align: left;
  cursor: pointer;
  color: #10233f;
  font-weight: 600;
}
.bk-bar-date-btn:hover {
  border-color: #94a3b8;
  background: #f8fafc;
}
.bk-opt-cell--date {
  min-width: 8.5rem;
}
.bk-opt-cell--addon .bk-addon-price-hint {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.68rem;
  font-weight: 600;
  color: #64748b;
  text-transform: none;
  letter-spacing: 0;
}
.bk-opt-cell--total strong {
  font-size: 0.95rem;
  color: var(--b2b-accent-2);
  white-space: nowrap;
}
.bk-selected-bar__actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  padding: 0.55rem 0.85rem 0.7rem;
  border-top: 1px solid #e8edf3;
  background: #fff;
}
.bk-addons-panel {
  margin: 0;
  padding: 0.75rem 1rem 0.9rem;
  border-top: 1px solid #e8edf3;
  background: #f8fafc;
}
.bk-addons-panel.is-empty {
  display: none;
}
.bk-addons-selected {
  margin-bottom: 0.55rem;
}
.bk-addons-selected:empty {
  display: none;
  margin: 0;
}
.bk-addons-selected-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.bk-addon-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  align-items: center;
  gap: 0.65rem 0.75rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid #dbe3ee;
  border-radius: 0.65rem;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.bk-addon-line__info {
  min-width: 0;
}
.bk-addon-line__name,
.bk-addon-line__meta,
.bk-addon-line__total {
  margin: 0;
}
.bk-addon-line__name {
  font-size: 0.88rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bk-addon-line__meta {
  margin-top: 0.12rem;
  font-size: 0.74rem;
  color: #64748b;
}
.bk-addon-stepper__controls {
  display: inline-grid;
  grid-template-columns: 2rem 2.25rem 2rem;
  align-items: stretch;
  border: 1px solid #cbd5e1;
  border-radius: 0.55rem;
  overflow: hidden;
  background: #fff;
}
.bk-addon-stepper__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  border: 0;
  background: #f8fafc;
  color: #0f172a;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1;
  min-height: 2rem;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.bk-addon-stepper__btn:hover:not(:disabled) {
  background: #e2e8f0;
}
.bk-addon-stepper__btn:disabled {
  color: #94a3b8;
  cursor: not-allowed;
  background: #f1f5f9;
}
.bk-addon-stepper__value {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-left: 1px solid #e2e8f0;
  border-right: 1px solid #e2e8f0;
  font-size: 0.88rem;
  font-weight: 700;
  color: #0f172a;
  background: #fff;
}
.bk-addon-stepper__value--solo {
  border: 1px solid #e2e8f0;
  border-radius: 0.45rem;
  min-width: 2.25rem;
  min-height: 2rem;
}
.bk-addon-line__total {
  font-size: 0.84rem;
  color: #334155;
  white-space: nowrap;
  text-align: right;
}
.bk-addon-line__total strong {
  color: var(--b2b-accent-2, #0f766e);
  font-weight: 800;
}
.bk-addon-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  margin: 0;
  padding: 0;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #fff;
  color: #64748b;
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.bk-addon-remove:hover {
  background: #fef2f2;
  border-color: #fecaca;
  color: #b91c1c;
}
.bk-addon-add-more {
  white-space: nowrap;
}
.bk-addons-total {
  margin: 0.55rem 0 0;
  font-size: 0.86rem;
  color: #334155;
}
.bk-addons-total strong {
  color: var(--b2b-accent-2);
}
.bk-opt-cell--addon .bk-addon-picker-select {
  width: 100%;
  min-width: 0;
}
@media (max-width: 720px) {
  .bk-addon-line {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "info remove"
      "stepper total";
  }
  .bk-addon-line__info {
    grid-area: info;
  }
  .bk-addon-stepper__controls,
  .bk-addon-stepper__value--solo {
    grid-area: stepper;
  }
  .bk-addon-line__total {
    grid-area: total;
  }
  .bk-addon-remove {
    grid-area: remove;
    justify-self: end;
  }
}
.b2b-booking-compact {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid #e8edf3;
}
.b2b-booking-lead {
  margin-top: 0.75rem;
}
@media (max-width: 1024px) {
  .bk-selected-bar__head {
    display: none;
  }
  .bk-selected-bar__row {
    grid-template-columns: 1fr 1fr;
  }
  .bk-opt-cell--tour {
    grid-column: 1 / -1;
  }
  .bk-opt-cell--total {
    grid-column: 1 / -1;
    text-align: left;
    padding-top: 0.25rem;
    border-top: 1px dashed #e5eaf0;
  }
  .bk-selected-bar__actions {
    flex-direction: column;
  }
  .bk-selected-bar__actions .b2b-btn {
    width: 100%;
  }
}
@media (max-width: 480px) {
  .bk-selected-bar__row {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 1024px) {
  .b2b-package-card {
    grid-template-columns: 10rem minmax(0, 1fr) 7.5rem;
  }
}
@media (max-width: 768px) {
  .b2b-package-card {
    grid-template-columns: 1fr;
  }
  .b2b-package-card__media img {
    min-height: 7rem;
    max-height: 8rem;
  }
  .b2b-package-card__content {
    border-left: none;
    border-right: none;
    border-top: 1px solid #e8edf3;
    border-bottom: 1px solid #e8edf3;
  }
  .b2b-package-card__price {
    align-items: stretch;
    text-align: center;
  }
  .b2b-package-card__actions {
    display: grid;
    grid-template-columns: 1fr;
  }
}
.b2b-cat-item {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  padding: 0.9rem 1rem;
  border: 1px solid var(--b2b-line);
  border-radius: 12px;
  background: #f8fafc;
}
@media (max-width: 640px) {
  .b2b-cat-item {
    flex-direction: column;
    align-items: stretch;
  }
  .b2b-cat-item .b2b-btn {
    width: 100%;
  }
}
.b2b-cat-item__main { min-width: 0; flex: 1; }
.b2b-cat-item__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.4rem;
}
.b2b-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: #e8eef6;
  color: #12365a;
}
.b2b-tag--tour { background: #e0f2fe; color: #075985; }
.b2b-tag--activity { background: #fef3c7; color: #92400e; }
.b2b-tag--supplier { background: #e8f7f1; color: #0a6b45; }
.b2b-cat-item__meta {
  margin: 0.2rem 0 0.55rem;
  color: var(--b2b-muted);
  font-size: 0.88rem;
}
.b2b-cat-item__prices {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  font-size: 0.9rem;
}
.b2b-price-retail {
  color: var(--b2b-muted);
  text-decoration: line-through;
}
.b2b-price-agent {
  font-weight: 700;
  color: #0b7a5a;
}
.b2b-price-save {
  color: #b45309;
  font-size: 0.82rem;
}

.b2b-quote-box {
  background: linear-gradient(135deg, #12365a, #0b7a5a);
  color: #fff;
  border-radius: 12px;
  padding: 0.9rem 1rem;
  font-size: 0.95rem;
}
.form-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.b2b-modal {
  position: fixed;
  inset: 0;
  background: rgba(7, 16, 28, 0.55);
  display: grid;
  place-items: center;
  padding: 1rem;
  z-index: 50;
}
.b2b-modal__panel {
  background: #fff;
  width: min(720px, 100%);
  max-height: 90vh;
  overflow: auto;
  border-radius: 14px;
  padding: 1.25rem;
  position: relative;
}
.b2b-modal__close {
  position: absolute;
  top: 0.5rem;
  right: 0.75rem;
  background: transparent;
  font-size: 1.5rem;
  color: var(--b2b-muted);
}
.b2b-actions { display: flex; flex-wrap: wrap; gap: 0.35rem; }

.b2b-users-table .b2b-actions {
  flex-wrap: nowrap;
  white-space: nowrap;
  min-width: 7.5rem;
}
.b2b-users-table .users-action-select,
.users-action-select {
  width: 7.25rem;
  min-width: 7.25rem;
  max-width: 7.25rem;
  height: 1.85rem;
  flex: 0 0 auto;
  border: 1px solid #d3dae5;
  border-radius: 6px;
  background-color: #f6f8fb;
  color: var(--b2b-accent-2, #1e3a5f);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.15rem 1.45rem 0.15rem 0.5rem;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #6b7280 50%), linear-gradient(135deg, #6b7280 50%, transparent 50%);
  background-position: calc(100% - 11px) calc(50% - 2px), calc(100% - 7px) calc(50% - 2px);
  background-size: 4px 4px, 4px 4px;
  background-repeat: no-repeat;
  line-height: 1.2;
  cursor: pointer;
}
.b2b-users-table .users-action-select:focus,
.users-action-select:focus {
  outline: 2px solid rgba(11, 122, 90, 0.2);
  border-color: var(--b2b-accent, #0b7a5a);
}
.b2b-users-table .users-action-select option,
.users-action-select option {
  color: #1a1f2c;
  font-weight: 500;
}

.b2b-markup-rules-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin: 0.5rem 0;
}
.b2b-select-wide {
  flex: 1 1 220px;
  min-width: 160px;
}
.b2b-markup-rules {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.35rem;
}
.b2b-markup-rule {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(110px, 0.7fr) minmax(90px, 0.55fr) auto;
  gap: 0.45rem;
  align-items: center;
  padding: 0.55rem 0.65rem;
  background: #fff;
  border: 1px solid var(--b2b-line);
  border-radius: 10px;
}
.b2b-markup-rule__title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--b2b-ink);
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.b2b-markup-rule select,
.b2b-markup-rule input {
  font: inherit;
  font-size: 0.82rem;
  padding: 0.4rem 0.5rem;
  border: 1px solid var(--b2b-line);
  border-radius: 8px;
  background: #f8fafc;
  width: 100%;
}

.b2b-modal__panel--markup {
  width: min(720px, 100%);
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(22, 58, 95, 0.08);
  box-shadow: 0 24px 60px rgba(7, 16, 28, 0.22);
}
.b2b-modal__panel--markup .b2b-modal__close {
  top: 0.85rem;
  right: 0.9rem;
  z-index: 2;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  line-height: 1;
}
.b2b-modal__panel--markup #b2b-modal-body {
  max-height: 90vh;
  overflow: auto;
}

.sub-edit {
  display: grid;
  gap: 0;
}
.sub-edit__header {
  padding: 1.35rem 1.5rem 1.15rem;
  background:
    linear-gradient(180deg, rgba(11, 122, 90, 0.08), rgba(11, 122, 90, 0) 70%),
    linear-gradient(135deg, #f7fafc 0%, #eef5f8 100%);
  border-bottom: 1px solid var(--b2b-line);
}
.sub-edit__eyebrow {
  margin: 0 0 0.25rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--b2b-accent);
}
.sub-edit__title {
  margin: 0 0 0.85rem;
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--b2b-ink);
  letter-spacing: -0.02em;
}
.sub-edit__identity {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.sub-edit__avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--b2b-accent-2);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  flex: 0 0 auto;
}
.sub-edit__who {
  display: grid;
  gap: 0.1rem;
  min-width: 0;
}
.sub-edit__who strong {
  color: var(--b2b-ink);
  font-size: 0.98rem;
}
.sub-edit__who span {
  color: var(--b2b-muted);
  font-size: 0.86rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sub-edit__section {
  padding: 1.15rem 1.5rem;
  border-bottom: 1px solid var(--b2b-line);
}
.sub-edit__section--ride {
  background: linear-gradient(180deg, rgba(22, 58, 95, 0.03), transparent);
}
.sub-edit__section-head {
  margin-bottom: 0.85rem;
}
.sub-edit__section-head h3 {
  margin: 0 0 0.2rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--b2b-accent-2);
}
.sub-edit__section-head p {
  margin: 0;
  color: var(--b2b-muted);
  font-size: 0.86rem;
  line-height: 1.4;
  max-width: 38rem;
}

.sub-edit__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 1rem;
  row-gap: 0.35rem;
  align-items: start;
}
.sub-edit__grid--single {
  grid-template-columns: minmax(0, 280px);
}
.sub-edit__field {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0.35rem;
  min-width: 0;
  margin: 0;
  align-self: start;
}
.sub-edit__label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--b2b-ink);
  line-height: 1.25;
  min-height: 1.25em;
}
.sub-edit__hint {
  font-size: 0.78rem;
  color: var(--b2b-muted);
  line-height: 1.35;
  min-height: 1.35em;
}
.sub-edit__hint--spacer {
  visibility: hidden;
  user-select: none;
}
.sub-edit__field input,
.sub-edit__field select,
.sub-edit .b2b-select-wide {
  font: inherit;
  font-weight: 500;
  height: 2.7rem;
  padding: 0 0.75rem;
  border: 1px solid var(--b2b-line);
  border-radius: 10px;
  background: #fff;
  width: 100%;
  color: var(--b2b-ink);
  box-sizing: border-box;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
@supports (grid-template-rows: subgrid) {
  .sub-edit__grid:not(.sub-edit__grid--single) {
    grid-template-rows: auto auto auto;
  }
  .sub-edit__grid:not(.sub-edit__grid--single) > .sub-edit__field {
    display: grid;
    grid-template-rows: subgrid;
    grid-row: span 3;
    gap: 0;
    row-gap: 0.35rem;
  }
}
.sub-edit__field input:focus,
.sub-edit__field select:focus,
.sub-edit .b2b-select-wide:focus {
  outline: none;
  border-color: var(--b2b-accent);
  box-shadow: 0 0 0 3px rgba(11, 122, 90, 0.15);
}
.sub-edit__input-affix {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: stretch;
}
.sub-edit__input-affix:has(.sub-edit__affix--lead) {
  grid-template-columns: auto 1fr;
}
.sub-edit__input-affix input {
  border-radius: 10px 0 0 10px;
}
.sub-edit__input-affix:has(.sub-edit__affix--lead) input {
  border-radius: 0 10px 10px 0;
  border-left: 0;
}
.sub-edit__affix {
  display: grid;
  place-items: center;
  min-width: 2.6rem;
  padding: 0 0.7rem;
  background: #eef3f8;
  border: 1px solid var(--b2b-line);
  border-left: 0;
  border-radius: 0 10px 10px 0;
  color: var(--b2b-accent-2);
  font-size: 0.82rem;
  font-weight: 700;
}
.sub-edit__affix--lead {
  border-left: 1px solid var(--b2b-line);
  border-right: 0;
  border-radius: 10px 0 0 10px;
}

.sub-edit__individual {
  margin-top: 1rem;
  padding: 0.9rem;
  border-radius: 12px;
  background: #f4f7fb;
  border: 1px dashed #c5d0e0;
}
.sub-edit__individual-head {
  display: grid;
  gap: 0.15rem;
  margin-bottom: 0.55rem;
}
.sub-edit__individual-head strong {
  color: var(--b2b-ink);
  font-size: 0.9rem;
}
.sub-edit__individual-head span {
  color: var(--b2b-muted);
  font-size: 0.8rem;
}

.sub-edit__footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
  padding: 1rem 1.5rem 1.25rem;
  background: #f8fafc;
  border-top: 1px solid var(--b2b-line);
  position: sticky;
  bottom: 0;
}
.sub-edit #edit-sub-err {
  margin: 0.75rem 1.5rem 0;
}

@media (max-width: 640px) {
  .b2b-markup-rule {
    grid-template-columns: 1fr 1fr;
  }
  .b2b-markup-rule__title {
    grid-column: 1 / -1;
    white-space: normal;
  }
  .sub-edit__grid,
  .sub-edit__grid--single {
    grid-template-columns: 1fr;
  }
  .sub-edit__header,
  .sub-edit__section,
  .sub-edit__footer {
    padding-left: 1.1rem;
    padding-right: 1.1rem;
  }
  .sub-edit__footer {
    flex-direction: column-reverse;
  }
  .sub-edit__footer .b2b-btn {
    width: 100%;
    justify-content: center;
  }
}

.inv-share-list {
  display: grid;
  gap: 0.5rem;
  max-height: 280px;
  overflow: auto;
  margin: 0.75rem 0;
}
.inv-share-item {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--b2b-line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}
.inv-share-item input {
  margin-top: 0.2rem;
}
.inv-share-item strong {
  font-size: 0.92rem;
}
.inv-share-item small {
  color: var(--b2b-muted);
}
.cr-txn {
  display: inline-block;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  background: #eef3f8;
  color: var(--b2b-accent-2);
  white-space: nowrap;
}
.cr-txn-hint {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.68rem;
  font-weight: 600;
  color: #92400e;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.cr-txn--credit_used,
.cr-txn--charge { background: #fee2e2; color: #991b1b; }
.cr-txn--credit_released,
.cr-txn--release { background: #dcfce7; color: #166534; }
.cr-txn--payment_received,
.cr-txn--payment { background: #dbeafe; color: #1e40af; }
.cr-txn--credit_allocated,
.cr-txn--limit_increase { background: #fff7ed; color: #9a3412; border: 1px solid #fdba74; }
.cr-txn--credit_adjustment,
.cr-txn--adjustment_up,
.cr-txn--adjustment_down { background: #f3e8ff; color: #6b21a8; }

.b2b-ledger-table .cr-row--limit {
  background: linear-gradient(90deg, #fffbeb 0%, #fff 55%);
}
.b2b-ledger-table .cr-row--limit td {
  border-bottom-color: #fde68a;
}
.b2b-ledger-table .cr-row--spend td:nth-child(5) {
  font-weight: 600;
  color: #991b1b;
}
.cr-amt--limit {
  font-weight: 700;
  color: #9a3412;
  white-space: nowrap;
}
.cr-amt--spend {
  font-weight: 600;
  color: #991b1b;
}
.cr-amt--payment,
.cr-amt--release {
  font-weight: 600;
  color: #166534;
}
.cr-balance-na {
  display: inline-block;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  background: #ffedd5;
  color: #9a3412;
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
}

.b2b-users-intro {
  margin: 0 0 0.85rem;
}
.b2b-users-panel-card {
  padding: 0.85rem 1rem;
}
.b2b-panel-toggle,
[data-ov-panel-toggle] {
  font-weight: 600;
  width: 100%;
  text-align: left;
  justify-content: flex-start;
}
.b2b-panel-toggle.is-active {
  background: #e8eef6;
  color: var(--b2b-accent-2);
}
.b2b-panel-content {
  padding-top: 0.75rem;
}
.b2b-panel-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}
.b2b-panel-toolbar .b2b-hint {
  margin: 0;
}
.b2b-credit-panel-card {
  padding: 0.75rem 0.85rem;
}
.b2b-credit-panel-card .b2b-panel-toggle {
  min-height: 2.3rem;
}
.b2b-credit-panel-card .bookings-filters {
  margin-bottom: 0.7rem;
}
.b2b-credit-panel-card .bookings-filters__row {
  gap: 0.45rem;
}
.b2b-credit-panel-card .bk-field--date input {
  min-width: 10rem;
}
.b2b-credit-panel-card .bk-clear {
  white-space: nowrap;
}
.b2b-payment-footer-card {
  margin-top: 1.25rem;
}
.b2b-payment-footer-card .b2b-panel-toggle {
  min-height: 2.3rem;
}
.b2b-payment-footer-card__actions {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 0.65rem;
}
.bk-field--agent {
  min-width: 15.5rem;
  flex: 0 1 auto;
  background: #fff;
}
.bk-field--agent .bk-field__prefix {
  background: #eef1f5;
  border-right: 1px solid #d6dbe3;
  padding: 0 0.7rem;
  color: #4b5563;
  font-weight: 600;
  font-size: 0.86rem;
  white-space: nowrap;
}
.bk-field--agent select {
  flex: 1;
  min-width: 10rem;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23111827' d='M3 4.5 6 7.5 9 4.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.65rem center;
  padding: 0.45rem 1.75rem 0.45rem 0.65rem;
  cursor: pointer;
  font-size: 0.88rem;
  color: #111827;
  -webkit-appearance: none;
  appearance: none;
}
.bk-field--agent select:focus {
  outline: none;
}
.bk-field--agent:focus-within {
  border-color: #0b7a5a;
  box-shadow: 0 0 0 2px rgba(11, 122, 90, 0.12);
}
.b2b-payment-footer-card .bk-field--agent select {
  min-width: 10rem;
  border: none;
  border-radius: 0;
}

.b2b-bookings-title {
  margin: 0;
  font-size: 1.65rem;
  font-weight: 700;
}

/* Bookings tab &mdash; compact polished layout */
.b2b-bookings-panel {
  padding: 0.9rem 1rem 1rem;
}
.b2b-bookings-panel .b2b-card__head {
  margin-bottom: 0.55rem;
  gap: 0.5rem;
}
.b2b-bookings-panel .b2b-bookings-title {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.b2b-bookings-panel .b2b-card__actions {
  gap: 0.35rem;
}
.b2b-bookings-panel .bookings-filters {
  gap: 0.45rem;
  margin-bottom: 0.65rem;
  padding: 0.55rem 0.65rem;
  background: linear-gradient(180deg, #fafbfc 0%, #f4f6f9 100%);
  border: 1px solid #e2e8f0;
  border-radius: 10px;
}
.b2b-bookings-panel .bookings-filters__row {
  gap: 0.4rem;
}
@media (min-width: 769px) {
  .b2b-bookings-panel .bookings-filters > .bookings-filters__row:not(.bookings-filters__row--quick) {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: thin;
  }
}
.b2b-bookings-panel .bookings-filters__row--quick {
  padding-top: 0.15rem;
  gap: 0.5rem;
  align-items: center;
}
.b2b-bookings-panel .bookings-filters__row--quick .bk-quick {
  margin-right: auto;
}
.b2b-bookings-panel .bookings-filters__row--quick .bk-field--status {
  min-width: 10.6rem;
  flex: 0 0 10.6rem;
}
.b2b-bookings-panel .bookings-filters__row--quick .bk-field--status select {
  max-width: none;
}
.b2b-bookings-panel .bookings-filters__row--quick .bk-field--sort {
  min-width: 10.2rem;
  flex: 0 0 10.2rem;
}
.b2b-bookings-panel .bk-field {
  min-height: 2rem;
  border-radius: 7px;
  background: #fff;
}
.b2b-bookings-panel .bk-field input,
.b2b-bookings-panel .bk-field select {
  padding: 0.32rem 0.55rem;
  font-size: 0.82rem;
}
.b2b-bookings-panel .bk-field__prefix {
  padding-left: 0.55rem;
  font-size: 0.8rem;
}
.b2b-bookings-panel .bk-field--ref {
  min-width: 9rem;
  flex: 0 1 9.5rem;
}
.b2b-bookings-panel .bk-field--date input {
  min-width: 7.8rem;
  max-width: 8.5rem;
}
.b2b-bookings-panel .bk-field__sep {
  font-size: 0.78rem;
  color: var(--b2b-muted);
}
.b2b-bookings-panel .bk-field--status {
  background: var(--b2b-accent);
  border-color: var(--b2b-accent);
  flex: 0 1 auto;
}
.b2b-bookings-panel .bk-field--status select {
  font-size: 0.8rem;
  padding: 0.32rem 1.6rem 0.32rem 0.55rem;
  max-width: 11.5rem;
}
.b2b-bookings-panel .bk-field--traveler {
  min-width: 8.5rem;
  flex: 0 0 8.5rem;
  max-width: 8.5rem;
}
.b2b-bookings-panel .bk-field--product {
  min-width: 11rem;
  flex: 1 1 11rem;
}
.b2b-bookings-panel .bk-field--sort {
  min-width: 10.5rem;
  flex: 0 0 10.5rem;
}
.b2b-bookings-panel .bk-quick {
  font-size: 0.8rem;
  gap: 0.3rem;
}
.b2b-bookings-panel .bk-clear {
  font-size: 0.8rem;
  white-space: nowrap;
}
.b2b-bookings-panel .bk-filter-summary {
  margin: 0 0 0.65rem;
  padding: 0.5rem 0.7rem;
  border-radius: 8px;
}
.b2b-bookings-panel .bk-filter-summary__inner {
  gap: 0.65rem 1.25rem;
}
.b2b-bookings-panel .bk-filter-summary__item {
  font-size: 0.82rem;
  gap: 0.35rem;
}
.b2b-bookings-panel .bk-filter-summary__label {
  font-size: 0.68rem;
}
.b2b-bookings-panel .bk-filter-summary__item strong {
  font-size: 0.92rem;
}
.b2b-bookings-panel .b2b-table-wrap {
  border: 1px solid #e8edf3;
  border-radius: 10px;
  background: #fff;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
}
.b2b-bookings-panel .bookings-table {
  font-size: 0.82rem;
  margin: 0;
  width: 100%;
  min-width: 1180px;
  table-layout: auto;
  border-collapse: separate;
  border-spacing: 0;
}
.b2b-bookings-panel .bookings-table th {
  font-size: 0.66rem;
  padding: 0.42rem 0.45rem;
  background: #f6f8fb;
  border-bottom: 1px solid #e4e9ef;
  white-space: nowrap;
}
.b2b-bookings-panel .bookings-table td {
  padding: 0.45rem 0.45rem;
  vertical-align: middle;
  border-bottom: 1px solid #eef1f5;
  position: relative;
  z-index: 0;
  background: #fff;
}
.b2b-bookings-panel .bookings-table tbody tr:hover td {
  background: #fafbfd;
}
.b2b-bookings-panel .bookings-table th:nth-child(2),
.b2b-bookings-panel .bookings-table td:nth-child(2) {
  max-width: 11rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.b2b-bookings-panel .bookings-table th:nth-child(3),
.b2b-bookings-panel .bookings-table td:nth-child(3) {
  max-width: 7.5rem;
}
.b2b-bookings-panel .bookings-table th:nth-child(7),
.b2b-bookings-panel .bookings-table td:nth-child(7),
.b2b-bookings-panel .bookings-table th:nth-child(8),
.b2b-bookings-panel .bookings-table td:nth-child(8),
.b2b-bookings-panel .bookings-table th:nth-child(9),
.b2b-bookings-panel .bookings-table td:nth-child(9) {
  white-space: nowrap;
}
.b2b-bookings-panel .bookings-table th:nth-child(10),
.b2b-bookings-panel .bookings-table td:nth-child(10),
.b2b-bookings-panel .bookings-table th:last-child,
.b2b-bookings-panel .bookings-table td:last-child {
  width: 13rem;
  min-width: 13rem;
  white-space: nowrap;
  vertical-align: middle;
  position: sticky;
  right: 0;
  z-index: 2;
  background: #fff;
  box-shadow: -6px 0 8px -8px rgba(15, 23, 42, 0.18);
}
.b2b-bookings-panel .bookings-table th:nth-child(10),
.b2b-bookings-panel .bookings-table th:last-child {
  background: #f6f8fb;
  z-index: 3;
}
.b2b-bookings-panel .bookings-table tbody tr:hover td:nth-child(10),
.b2b-bookings-panel .bookings-table tbody tr:hover td:last-child {
  background: #fafbfd;
}
.b2b-bookings-panel .bookings-table code {
  font-size: 0.78rem;
  padding: 0.1rem 0.32rem;
}
.b2b-bookings-panel .bk-seller strong {
  font-size: 0.82rem;
}
.b2b-bookings-panel .bk-seller__role {
  font-size: 0.68rem;
}
.b2b-bookings-panel .bk-status {
  display: inline-block;
  font-size: 0.72rem;
  padding: 0.12rem 0.45rem;
  white-space: nowrap;
}
.b2b-bookings-panel .b2b-actions {
  display: inline-flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.4rem;
  width: max-content;
  max-width: 100%;
  white-space: nowrap;
}
.b2b-bookings-panel .bk-action-select {
  width: 6.1rem;
  min-width: 6.1rem;
  max-width: 6.1rem;
  height: 1.75rem;
  flex: 0 0 auto;
  border: 1px solid #d3dae5;
  border-radius: 6px;
  background-color: #f6f8fb;
  color: var(--b2b-accent-2);
  font: inherit;
  font-size: 0.74rem;
  font-weight: 600;
  padding: 0.15rem 1.4rem 0.15rem 0.45rem;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #6b7280 50%), linear-gradient(135deg, #6b7280 50%, transparent 50%);
  background-position: calc(100% - 11px) calc(50% - 2px), calc(100% - 7px) calc(50% - 2px);
  background-size: 4px 4px, 4px 4px;
  background-repeat: no-repeat;
  line-height: 1.2;
}
.b2b-bookings-panel .bk-action-select:focus {
  outline: 2px solid rgba(11, 122, 90, 0.2);
  border-color: var(--b2b-accent);
}
.b2b-bookings-panel .bk-complaint-btn,
.bk-complaint-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  height: 1.75rem;
  border-radius: 6px;
  border: 1px solid #f0e2a8;
  background: #fef9c3;
  color: #854d0e;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0 0.55rem;
  cursor: pointer;
  white-space: nowrap;
  line-height: 1;
}
.b2b-bookings-panel .bk-complaint-btn:hover,
.bk-complaint-btn:hover {
  background: #fef08a;
  border-color: #eab308;
}
.b2b-bookings-panel .bk-action-select option {
  color: #1a1f2c;
}
.b2b-bookings-panel #bk-count {
  margin: 0.45rem 0 0;
  font-size: 0.8rem;
}
.b2b-bookings-panel #bk-empty {
  font-size: 0.84rem;
  margin-bottom: 0.5rem;
}

.bookings-filters {
  display: grid;
  gap: 0.6rem;
  margin-bottom: 0.9rem;
}
.bookings-filters__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
}
.bookings-filters__row--quick {
  justify-content: space-between;
  gap: 0.75rem;
}
.bk-field {
  display: inline-flex;
  align-items: stretch;
  margin: 0;
  background: #eef1f5;
  border: 1px solid #d6dbe3;
  border-radius: 8px;
  overflow: hidden;
  min-height: 2.3rem;
}
.bk-field input,
.bk-field select {
  border: none;
  background: transparent;
  padding: 0.45rem 0.62rem;
  font: inherit;
  color: inherit;
  min-width: 0;
  outline: none;
}
.bk-field--ref { min-width: 11rem; }
.ov-sales-toolbar {
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid var(--b2b-line);
  border-radius: 12px;
  padding: 1rem 1.1rem;
  margin-bottom: 1.1rem;
}
.ov-sales-toolbar__grid {
  display: grid;
  grid-template-columns: minmax(14rem, 1.4fr) minmax(16rem, 1.2fr) auto;
  gap: 1rem 1.25rem;
  align-items: end;
}
.ov-sales-field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-width: 0;
}
.ov-sales-field__label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--b2b-muted);
}
.ov-sales-field__label--spacer {
  visibility: hidden;
}
.ov-type-toggle {
  display: inline-flex;
  align-self: flex-start;
  padding: 0.2rem;
  background: #e8edf3;
  border: 1px solid #d6dbe3;
  border-radius: 999px;
  gap: 0.15rem;
}
.ov-type-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin: 0;
  cursor: pointer;
}
.ov-type-pill input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  margin: 0;
}
.ov-type-pill span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.15rem;
  padding: 0.35rem 1rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--b2b-muted);
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
  white-space: nowrap;
}
.ov-type-pill input:checked + span {
  background: #fff;
  color: var(--b2b-accent-2);
  box-shadow: 0 2px 8px rgba(10, 37, 64, 0.12);
}
.ov-type-pill input:focus-visible + span {
  outline: 2px solid var(--b2b-accent);
  outline-offset: 2px;
}
.ov-team-user-wrap {
  margin: 0;
  display: block;
}
.ov-team-user-wrap.hidden {
  display: none;
}
.ov-team-user-wrap select {
  width: 100%;
  max-width: 22rem;
  border: 1px solid #d6dbe3;
  background: #fff;
  border-radius: 10px;
  padding: 0.55rem 0.75rem;
  font: inherit;
  color: var(--b2b-ink);
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.ov-team-user-wrap select:focus {
  border-color: var(--b2b-accent);
  box-shadow: 0 0 0 3px rgba(11, 122, 90, 0.12);
}
.ov-date-range {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.ov-date-range input {
  flex: 1;
  min-width: 9.5rem;
  border: 1px solid #d6dbe3;
  background: #fff;
  border-radius: 10px;
  padding: 0.55rem 0.75rem;
  font: inherit;
  color: var(--b2b-ink);
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.ov-date-range input:focus {
  border-color: var(--b2b-accent);
  box-shadow: 0 0 0 3px rgba(11, 122, 90, 0.12);
}
.ov-date-range__sep {
  color: var(--b2b-muted);
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: lowercase;
}
.ov-sales-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
@media (max-width: 860px) {
  .ov-sales-toolbar__grid {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
  .ov-sales-field--actions .ov-sales-field__label--spacer {
    display: none;
  }
  .ov-sales-actions {
    width: 100%;
  }
  .ov-sales-actions .b2b-btn {
    flex: 1;
  }
}
.bk-field__prefix {
  display: inline-flex;
  align-items: center;
  padding: 0 0 0 0.75rem;
  color: #6b7280;
  font-weight: 600;
  font-size: 0.9rem;
}
.bk-field--ref input {
  padding-left: 0.35rem;
  flex: 1;
}
.bk-field--date input { min-width: 9.5rem; }
.bk-field__sep {
  color: #6b7280;
  font-size: 0.9rem;
}
.bk-field--status {
  background: #00a680;
  border-color: #00a680;
}
.bk-field--status select {
  color: #fff;
  font-weight: 600;
  padding-right: 1.75rem;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23fff' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
}
.bk-field--status select option {
  color: #1a1f2c;
  background: #fff;
}
.bk-field--traveler {
  min-width: 11rem;
  flex: 1;
}
.bk-field--product {
  flex: 1;
  min-width: 14rem;
}
.bk-field--sort { min-width: 13rem; }
.bk-quick {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  color: #4b5563;
  font-size: 0.92rem;
}
.bk-quick__label {
  font-weight: 600;
  margin-right: 0.15rem;
}
.bk-quick__link {
  border: none;
  background: none;
  padding: 0;
  color: #0d5cab;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.bk-quick__link:hover { color: #08427a; }
.bk-quick__pipe { color: #9ca3af; }
.bk-clear {
  border: none;
  background: none;
  color: #6b7280;
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
  padding: 0.25rem 0;
}
.bk-clear:hover { color: #1a1f2c; }
.bk-filter-summary {
  margin: 0 0 1rem;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  border: 1px solid #c8e6d8;
  background: linear-gradient(90deg, #edf9f3 0%, #f4f8fc 100%);
}
.bk-filter-summary__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.75rem;
  align-items: center;
}
.bk-filter-summary__item {
  display: inline-flex;
  align-items: baseline;
  gap: 0.45rem;
  font-size: 0.92rem;
  color: var(--b2b-ink);
}
.bk-filter-summary__label {
  color: var(--b2b-muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.bk-filter-summary__item strong {
  font-size: 1.05rem;
  color: var(--b2b-accent-2);
}
.bk-seller {
  display: inline-flex;
  flex-direction: column;
  gap: 0.1rem;
  line-height: 1.25;
}
.bk-seller strong {
  font-weight: 600;
  color: var(--b2b-ink);
}
.bk-seller__role {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--b2b-muted);
  text-transform: capitalize;
}
.bookings-table code {
  font-size: 0.85rem;
  background: #eef1f6;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
}
.bk-status {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: #e8f7f1;
  color: #0a6b45;
}
/* Pending approval &mdash; light orange */
.bk-status--pending_quote,
.bk-status--pending,
.bk-status--pending_supplier,
.bk-status--pending-supplier {
  background: #fff4e5;
  color: #c2410c;
}
/* Confirmed / approved &mdash; green */
.bk-status--confirmed,
.bk-status--approved,
.bk-status--amended,
.bk-status--active {
  background: #e8f7f1;
  color: #0a6b45;
}
/* Declined / cancelled &mdash; red */
.bk-status--cancelled,
.bk-status--rejected,
.bk-status--declined {
  background: #fde8e8;
  color: #b42318;
}
.bk-status--frozen {
  background: #eef2ff;
  color: #3538cd;
}
.b2b-divider {
  border: none;
  border-top: 1px solid #e4e9ef;
  margin: 1.75rem 0;
}
.b2b-subhead {
  margin-top: 0.25rem;
}
@media (max-width: 720px) {
  .b2b-bookings-panel .bookings-filters > .bookings-filters__row:not(.bookings-filters__row--quick) {
    flex-wrap: wrap;
    overflow-x: visible;
  }
  .b2b-bookings-panel .bookings-filters__row--quick .bk-quick {
    margin-right: 0;
  }
  .b2b-bookings-panel .bookings-filters__row--quick .bk-field--status,
  .b2b-bookings-panel .bookings-filters__row--quick .bk-field--sort {
    width: 100%;
    min-width: 0;
    flex: 1 1 100%;
  }
  .b2b-bookings-panel .bookings-filters__row--quick {
    flex-direction: column;
    align-items: stretch;
  }
  .b2b-bookings-panel .bk-field--ref,
  .b2b-bookings-panel .bk-field--traveler,
  .b2b-bookings-panel .bk-field--product,
  .b2b-bookings-panel .bk-field--sort,
  .b2b-bookings-panel .bk-field--status {
    width: 100%;
    min-width: 0;
    max-width: none;
    flex: 1 1 100%;
  }
  .b2b-bookings-panel .bk-field--date input {
    min-width: 0;
    max-width: none;
    width: 100%;
  }
  .bookings-filters__row--quick {
    flex-direction: column;
    align-items: flex-start;
  }
  .bk-field--traveler,
  .bk-field--product {
    width: 100%;
  }
  .b2b-catalog {
    max-height: none;
  }
}

/* ── Responsive: tablets & mobile ── */
@media (max-width: 1024px) {
  .b2b-main {
    padding: 1rem max(0.85rem, env(safe-area-inset-right)) 2.5rem max(0.85rem, env(safe-area-inset-left));
  }
  .b2b-card {
    padding: 1rem;
  }
  .b2b-card__head {
    flex-wrap: wrap;
    align-items: flex-start;
  }
  .b2b-card__actions {
    width: 100%;
    justify-content: flex-start;
  }
  .b2b-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  #credit-summary.b2b-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .b2b-bookings-panel {
    padding: 0.85rem 0.75rem 0.9rem;
  }
  .b2b-invoice-table {
    font-size: 0.78rem;
    min-width: 680px;
  }
  .bookings-table {
    min-width: 720px;
  }
}

@media (max-width: 768px) {
  .b2b-header__inner {
    min-height: auto;
    padding: 0.65rem 0;
    flex-wrap: wrap;
    gap: 0.65rem;
  }
  .b2b-header__nav {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  .b2b-header__nav a {
    margin-left: auto;
  }
  .b2b-hero__inner {
    padding: 1.1rem 1.15rem;
    border-radius: 14px;
  }
  .b2b-userbar {
    flex-direction: column;
    align-items: flex-start;
  }
  .b2b-credit-chip {
    align-self: flex-start;
    max-width: 100%;
    word-break: break-word;
  }
  .b2b-nav {
    border-radius: 12px;
    padding: 0.3rem;
  }
  .b2b-nav-btn {
    padding: 0.55rem 0.85rem;
    font-size: 0.84rem;
    min-height: 2.5rem;
  }
  .b2b-panel-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }
  .b2b-panel-toolbar .b2b-btn {
    align-self: stretch;
    width: 100%;
  }
  .bookings-filters__row {
    flex-direction: column;
    align-items: stretch;
  }
  .b2b-credit-panel-card .bookings-filters__row {
    flex-direction: column;
    align-items: stretch;
  }
  .b2b-credit-panel-card .bk-field,
  .b2b-credit-panel-card .bk-field--ref,
  .b2b-credit-panel-card .bk-field--date,
  .b2b-credit-panel-card .b2b-btn,
  .b2b-credit-panel-card .bk-clear {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    text-align: center;
  }
  .b2b-credit-panel-card .bk-field--date input {
    min-width: 0;
    width: 100%;
  }
  .b2b-credit-panel-card .bk-field__sep {
    align-self: center;
    padding: 0.1rem 0;
  }
  .b2b-credit-panel-card .b2b-panel-content {
    padding-top: 0.55rem;
  }
  .b2b-credit-panel-card .b2b-hint {
    font-size: 0.84rem;
  }
  .bk-field,
  .bk-field--ref,
  .bk-field--date,
  .bk-field--traveler,
  .bk-field--product,
  .bk-field--sort,
  .bk-field--status {
    width: 100%;
    min-width: 0;
    flex: 1 1 100%;
  }
  .bk-field--date input {
    min-width: 0;
    max-width: none;
    width: 100%;
  }
  .bk-field__sep {
    align-self: center;
  }
  .bookings-filters__row .b2b-btn,
  .bookings-filters__row .bk-clear {
    width: 100%;
    text-align: center;
  }
  .bk-filter-summary__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  .b2b-form input,
  .b2b-form select,
  .b2b-form textarea,
  .bk-field input,
  .bk-field select,
  .ov-team-user-wrap select,
  .ov-date-range input {
    font-size: 16px;
  }
  .b2b-table {
    font-size: 0.82rem;
  }
  .b2b-table th,
  .b2b-table td {
    padding: 0.45rem 0.35rem;
  }
  .b2b-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .b2b-bookings-panel .b2b-actions {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
  }
  .b2b-actions .b2b-btn,
  .b2b-actions .bk-action-select {
    width: 100%;
  }
  .b2b-bookings-panel .b2b-actions .bk-action-select {
    width: 6.1rem;
    min-width: 6.1rem;
    max-width: 6.1rem;
  }
  .b2b-bookings-panel .b2b-actions .bk-complaint-btn {
    width: auto;
  }
  .form-actions .b2b-btn {
    flex: 1 1 auto;
    min-width: calc(50% - 0.25rem);
  }
  .b2b-quote-box {
    font-size: 0.88rem;
  }
  .b2b-benefits ul {
    columns: 1;
  }
  .b2b-card h3,
  .b2b-subhead {
    font-size: 1rem;
  }
  .b2b-users-intro {
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .b2b-main {
    padding: 0.75rem max(0.65rem, env(safe-area-inset-right)) 2rem max(0.65rem, env(safe-area-inset-left));
  }
  .b2b-stats,
  #credit-summary.b2b-stats {
    grid-template-columns: 1fr;
  }
  .b2b-stat__num {
    font-size: 1.2rem;
  }
  .b2b-card h2 {
    font-size: 1.05rem;
  }
  .b2b-credit-panel-card {
    padding: 0.65rem 0.7rem;
  }
  .b2b-credit-panel-card .b2b-panel-toggle {
    font-size: 0.82rem;
  }
  .b2b-credit-panel-card .bk-clear {
    font-size: 0.82rem;
  }
  .b2b-bookings-panel .b2b-bookings-title {
    font-size: 1.05rem;
  }
  .b2b-card__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }
  .b2b-card__actions .b2b-btn {
    width: 100%;
    min-width: 0;
  }
  .form-actions {
    flex-direction: column;
  }
  .form-actions .b2b-btn {
    width: 100%;
    min-width: 0;
  }
  .ov-type-toggle {
    width: 100%;
    justify-content: stretch;
  }
  .ov-type-pill {
    flex: 1;
  }
  .ov-type-pill span {
    width: 100%;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    font-size: 0.82rem;
  }
  .ov-team-user-wrap select {
    max-width: none;
  }
  .ov-sales-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }
  .ov-sales-actions .b2b-btn {
    width: 100%;
  }
  .b2b-modal {
    padding: 0.5rem;
    align-items: flex-end;
  }
  .b2b-modal__panel {
    border-radius: 14px 14px 0 0;
    max-height: 92vh;
    width: 100%;
    padding-bottom: max(1.25rem, env(safe-area-inset-bottom));
  }
  .b2b-pill {
    font-size: 0.7rem;
  }
  .b2b-header__nav a {
    font-size: 0.82rem;
  }
  .brand-logo__img {
    height: 1.9rem;
  }
  .brand-logo__holidays {
    font-size: 0.92rem;
  }
  .bk-quick {
    width: 100%;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .b2b-benefits ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.25rem 1.5rem;
    padding-left: 1.1rem;
  }
}

.b2b-catalog-toolbar {
  margin-bottom: 1rem;
}
.b2b-search {
  width: 100%;
  max-width: 320px;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--b2b-line);
  border-radius: 8px;
}
.b2b-ride-grid,
.b2b-bp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem 1rem;
  margin-bottom: 1rem;
}
.b2b-ride-grid label,
.b2b-bp-grid label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #3d4f66;
}
.b2b-ride-grid input,
.b2b-ride-grid select,
.b2b-bp-grid input,
.b2b-bp-grid select {
  font-weight: 400;
  padding: 0.45rem 0.55rem;
  border: 1px solid var(--b2b-line);
  border-radius: 8px;
}
.b2b-ride-comments {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin: 0 0 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #3d4f66;
}
.b2b-ride-comments .b2b-optional {
  font-weight: 500;
  color: #7a8aa0;
}
.b2b-ride-comments textarea {
  font: inherit;
  font-weight: 400;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--b2b-line);
  border-radius: 8px;
  resize: vertical;
  min-height: 4.5rem;
  line-height: 1.45;
  color: #1a2b49;
  background: #fff;
}
.b2b-ride-comments textarea:focus {
  outline: none;
  border-color: #2f6fed;
  box-shadow: 0 0 0 3px rgba(47, 111, 237, 0.12);
}
.b2b-ride-quote,
.b2b-bp-summary {
  margin: 1rem 0;
  padding: 0.85rem 1rem;
  background: #f4f7fb;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
}
.b2b-quote-box strong {
  display: block;
  margin-bottom: 0.35rem;
}
.b2b-ride-actions,
.b2b-bp-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.b2b-pkg-card {
  border: 1px solid var(--b2b-line);
  border-radius: 12px;
  padding: 1rem 1.1rem;
  margin-bottom: 0.85rem;
  background: #fff;
}
.b2b-pkg-card__price {
  font-weight: 700;
  color: #12365a;
  margin: 0.5rem 0;
}
.b2b-pkg-card__book {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: flex-end;
  margin-top: 0.75rem;
}
.b2b-pkg-card__book label {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: 0.82rem;
  font-weight: 600;
}
.b2b-bp-fieldset {
  margin: 1rem 0;
  padding: 0.75rem 1rem;
  border: 1px solid var(--b2b-line);
  border-radius: 10px;
}
.b2b-bp-check {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-right: 1rem;
  font-weight: 600;
}
.b2b-bp-row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.5rem;
}
.b2b-bp-row select {
  flex: 1;
  min-width: 0;
  padding: 0.45rem 0.55rem;
  border: 1px solid var(--b2b-line);
  border-radius: 8px;
}
.b2b-bp-lines {
  margin: 0 0 0.5rem;
  padding-left: 1.1rem;
}
.b2b-bp-total {
  font-weight: 700;
  margin: 0;
}

/* White-label / iframe embed mode */
html.b2b-embed,
body.b2b-embed {
  background: #fff;
}
body.b2b-embed .b2b-header {
  padding: 0.45rem 0;
  box-shadow: none;
  border-bottom: 1px solid var(--b2b-line, #e2e8f0);
}
body.b2b-embed .b2b-pill {
  font-size: 0.75rem;
}
body.b2b-embed .b2b-hero {
  display: none !important;
}
body.b2b-embed #b2b-auth {
  display: none !important;
}
body.b2b-embed .b2b-main {
  padding-top: 0.5rem;
}
body.b2b-embed #b2b-logout {
  display: none !important;
}
