﻿.bfp-root {
  --bfp-panel-width: min(420px, calc(100vw - 24px));
  color-scheme: light;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.bfp-root[hidden] {
  display: none !important;
}

.bfp-floating-button {
  position: fixed;
  z-index: var(--bfp-z-index);
  width: 64px;
  height: 64px;
  border: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, var(--bfp-primary), #1732cb);
  box-shadow: 0 18px 42px rgba(19, 43, 160, 0.32), 0 3px 10px rgba(0, 0, 0, 0.18);
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.bfp-floating-button:hover {
  transform: translateY(-2px) scale(1.02);
}

.bfp-floating-button:focus-visible,
.bfp-icon-button:focus-visible,
.bfp-card-button:focus-visible,
.bfp-secondary-button:focus-visible,
.bfp-privacy-link:focus-visible {
  outline: 4px solid #ffbf47;
  outline-offset: 4px;
}

.bfp-position-right-middle .bfp-floating-button {
  right: max(18px, env(safe-area-inset-right));
  top: 50%;
  transform: translateY(-50%);
}

.bfp-position-left-middle .bfp-floating-button {
  left: max(18px, env(safe-area-inset-left));
  top: 50%;
  transform: translateY(-50%);
}

.bfp-position-right-bottom .bfp-floating-button {
  right: max(18px, env(safe-area-inset-right));
  bottom: max(88px, env(safe-area-inset-bottom));
}

.bfp-position-left-bottom .bfp-floating-button {
  left: max(18px, env(safe-area-inset-left));
  bottom: max(88px, env(safe-area-inset-bottom));
}

.bfp-backdrop {
  position: fixed;
  inset: 0;
  z-index: calc(var(--bfp-z-index) + 1);
  background: rgba(8, 14, 34, 0.34);
  backdrop-filter: blur(4px);
}

.bfp-panel {
  position: fixed;
  z-index: calc(var(--bfp-z-index) + 2);
  top: 16px;
  right: 16px;
  bottom: 16px;
  width: var(--bfp-panel-width);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-radius: 28px;
  background: #f6f8ff;
  box-shadow: 0 24px 80px rgba(11, 22, 72, 0.34);
  border: 1px solid rgba(41, 72, 255, 0.14);
}

.bfp-panel[hidden],
.bfp-backdrop[hidden] {
  display: none !important;
}

.bfp-panel-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  padding: 24px;
  color: #fff;
  background: linear-gradient(135deg, var(--bfp-primary), #132cba);
}

.bfp-panel-header h2,
.bfp-panel-header p {
  margin: 0;
}

.bfp-panel-header h2 {
  font-size: 1.55rem;
  line-height: 1.2;
  letter-spacing: 0;
}

.bfp-kicker {
  font-size: 0.78rem;
  line-height: 1.4;
  font-weight: 700;
  text-transform: uppercase;
  opacity: 0.82;
}

.bfp-icon-button {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  color: #1430c2;
  background: rgba(255, 255, 255, 0.94);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.bfp-panel-body {
  overflow-y: auto;
  padding: 22px;
  scrollbar-width: thin;
}

.bfp-section {
  margin: 0 0 24px;
}

.bfp-section h3 {
  margin: 0 0 12px;
  color: #13204a;
  font-size: 1rem;
  line-height: 1.35;
  letter-spacing: 0;
}

.bfp-control-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.bfp-card-button {
  min-height: 76px;
  border: 2px solid transparent;
  border-radius: 20px;
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  gap: 12px;
  padding: 12px;
  color: #17213f;
  background: #fff;
  box-shadow: 0 10px 24px rgba(23, 33, 63, 0.08);
  text-align: left;
  font: inherit;
  font-weight: 700;
  line-height: 1.25;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.bfp-stepper-card {
  min-height: 96px;
  grid-column: 1 / -1;
  border: 2px solid rgba(41, 72, 255, 0.18);
  border-radius: 20px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 14px;
  color: #17213f;
  background: #fff;
  box-shadow: 0 10px 24px rgba(23, 33, 63, 0.08);
}

.bfp-stepper-label {
  font-weight: 800;
  line-height: 1.25;
}

.bfp-stepper {
  display: grid;
  grid-template-columns: 44px minmax(64px, auto) 44px;
  align-items: center;
  gap: 8px;
}

.bfp-stepper-button {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: var(--bfp-primary);
  font: inherit;
  font-size: 1.3rem;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}

.bfp-stepper-button:disabled {
  color: #667085;
  background: #e6eaf5;
  cursor: not-allowed;
}

.bfp-stepper-button:focus-visible {
  outline: 4px solid #ffbf47;
  outline-offset: 4px;
}

.bfp-stepper-value {
  min-width: 64px;
  color: #13204a;
  font-weight: 900;
  text-align: center;
}

.bfp-card-button:hover {
  transform: translateY(-1px);
}

.bfp-card-button[aria-pressed="true"] {
  border-color: var(--bfp-primary);
  background: #eef3ff;
  color: #0c258f;
}

.bfp-card-icon {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--bfp-primary);
  background: #eef3ff;
}

.bfp-card-button[aria-pressed="true"] .bfp-card-icon {
  color: #fff;
  background: var(--bfp-primary);
}

.bfp-help {
  padding: 16px;
  border-radius: 20px;
  color: #1d2b55;
  background: #fff;
  box-shadow: 0 8px 22px rgba(23, 33, 63, 0.07);
}

.bfp-help p {
  margin: 0 0 10px;
  line-height: 1.55;
}

.bfp-help p:last-child {
  margin-bottom: 0;
}

.bfp-privacy-link {
  color: #1536d3;
  font-weight: 700;
  text-decoration-thickness: 0.12em;
  text-underline-offset: 0.18em;
}

.bfp-panel-footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 18px 22px 22px;
  background: rgba(246, 248, 255, 0.94);
  border-top: 1px solid rgba(19, 32, 74, 0.08);
}

.bfp-secondary-button {
  min-height: 48px;
  border: 1px solid rgba(19, 32, 74, 0.16);
  border-radius: 16px;
  color: #13204a;
  background: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.bfp-skip-link {
  position: fixed;
  left: 18px;
  top: 18px;
  z-index: calc(var(--bfp-z-index) + 3);
  padding: 12px 16px;
  border-radius: 12px;
  color: #fff;
  background: #111827;
  transform: translateY(-140%);
  transition: transform 160ms ease;
}

.bfp-show-skip-link .bfp-skip-link,
.bfp-skip-link:focus {
  transform: translateY(0);
}

body.bfp-font-scale-active {
  font-size: var(--bfp-font-scale-percent, 100%) !important;
}

body.bfp-font-scale-active :where(p, li, dt, dd, blockquote, figcaption, label, input, select, textarea, button, th, td, h1, h2, h3, h4, h5, h6):not(.bfp-root, .bfp-root *) {
  font-size: calc(1em * var(--bfp-font-scale-factor, 1)) !important;
}

.bfp-line-height-lg *:not(.bfp-root, .bfp-root *) {
  line-height: 1.75 !important;
}

.bfp-readable-font *:not(.bfp-root, .bfp-root *) {
  font-family: Arial, Verdana, Tahoma, sans-serif !important;
}

.bfp-letter-spacing *:not(.bfp-root, .bfp-root *) {
  letter-spacing: 0.06em !important;
}

.bfp-word-spacing *:not(.bfp-root, .bfp-root *) {
  word-spacing: 0.16em !important;
}

.bfp-align-left *:not(.bfp-root, .bfp-root *) {
  text-align: left !important;
}

.bfp-align-center *:not(.bfp-root, .bfp-root *) {
  text-align: center !important;
}

.bfp-align-right *:not(.bfp-root, .bfp-root *) {
  text-align: right !important;
}

.bfp-high-contrast *:not(.bfp-root, .bfp-root *) {
  color: #000 !important;
  background-color: #fff !important;
  border-color: #000 !important;
}

.bfp-dark-mode *:not(.bfp-root, .bfp-root *) {
  color: #f8fafc !important;
  background-color: #0b1020 !important;
  border-color: #94a3b8 !important;
}

.bfp-light-mode *:not(.bfp-root, .bfp-root *) {
  color: #111827 !important;
  background-color: #ffffff !important;
}

.bfp-grayscale {
  filter: grayscale(1) !important;
}

.bfp-invert {
  filter: invert(1) hue-rotate(180deg) !important;
}

.bfp-reduce-saturation {
  filter: saturate(0.45) !important;
}

.bfp-hide-images img:not(.bfp-root img),
.bfp-hide-images picture:not(.bfp-root picture),
.bfp-hide-images video:not(.bfp-root video),
.bfp-hide-images iframe:not(.bfp-root iframe) {
  visibility: hidden !important;
}

.bfp-pause-animations *,
.bfp-pause-animations *::before,
.bfp-pause-animations *::after {
  animation-play-state: paused !important;
  transition-duration: 0.001ms !important;
  scroll-behavior: auto !important;
}

.bfp-highlight-links a:not(.bfp-root a) {
  outline: 3px solid var(--bfp-accent) !important;
  outline-offset: 3px !important;
  text-decoration: underline !important;
  text-decoration-thickness: 0.16em !important;
}

.bfp-highlight-headings h1:not(.bfp-root h1),
.bfp-highlight-headings h2:not(.bfp-root h2),
.bfp-highlight-headings h3:not(.bfp-root h3),
.bfp-highlight-headings h4:not(.bfp-root h4),
.bfp-highlight-headings h5:not(.bfp-root h5),
.bfp-highlight-headings h6:not(.bfp-root h6) {
  outline: 3px solid var(--bfp-primary) !important;
  outline-offset: 5px !important;
  background-image: linear-gradient(transparent 62%, rgba(0, 194, 255, 0.28) 62%) !important;
}

.bfp-show-structure main:not(.bfp-root main),
.bfp-show-structure nav:not(.bfp-root nav),
.bfp-show-structure header:not(.bfp-root header),
.bfp-show-structure footer:not(.bfp-root footer),
.bfp-show-structure aside:not(.bfp-root aside),
.bfp-show-structure section:not(.bfp-root section),
.bfp-show-structure article:not(.bfp-root article) {
  outline: 2px dashed rgba(41, 72, 255, 0.75) !important;
  outline-offset: 4px !important;
}

.bfp-outline-focus :where(a, button, input, select, textarea, summary, [tabindex]) {
  outline: 2px solid rgba(41, 72, 255, 0.62) !important;
  outline-offset: 3px !important;
}

.bfp-outline-focus .bfp-root :where(a, button, input, select, textarea, summary, [tabindex]) {
  outline: revert;
  outline-offset: revert;
}

.bfp-focus-strong :where(a, button, input, select, textarea, summary, [tabindex]):focus,
.bfp-focus-strong :where(a, button, input, select, textarea, summary, [tabindex]):focus-visible,
.bfp-outline-focus :where(a, button, input, select, textarea, summary, [tabindex]):focus,
.bfp-outline-focus :where(a, button, input, select, textarea, summary, [tabindex]):focus-visible,
.bfp-keyboard-nav :where(a, button, input, select, textarea, summary, [tabindex]):focus,
.bfp-keyboard-nav :where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 5px solid #ffbf47 !important;
  outline-offset: 5px !important;
  box-shadow: 0 0 0 9px rgba(0, 0, 0, 0.24) !important;
}

.bfp-focus-strong .bfp-root :where(a, button, input, select, textarea, summary, [tabindex]):focus,
.bfp-focus-strong .bfp-root :where(a, button, input, select, textarea, summary, [tabindex]):focus-visible,
.bfp-outline-focus .bfp-root :where(a, button, input, select, textarea, summary, [tabindex]):focus,
.bfp-outline-focus .bfp-root :where(a, button, input, select, textarea, summary, [tabindex]):focus-visible,
.bfp-keyboard-nav .bfp-root :where(a, button, input, select, textarea, summary, [tabindex]):focus,
.bfp-keyboard-nav .bfp-root :where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  box-shadow: none !important;
}

.bfp-large-targets a:not(.bfp-root a),
.bfp-large-targets button:not(.bfp-root button),
.bfp-large-targets input:not(.bfp-root input),
.bfp-large-targets select:not(.bfp-root select),
.bfp-large-targets textarea:not(.bfp-root textarea) {
  min-width: 44px;
  min-height: 44px;
}

.bfp-form-highlight input:not(.bfp-root input),
.bfp-form-highlight select:not(.bfp-root select),
.bfp-form-highlight textarea:not(.bfp-root textarea) {
  border: 3px solid var(--bfp-primary) !important;
  background: #fffef2 !important;
}

.bfp-reading-mask::before,
.bfp-reading-mask::after {
  content: "";
  position: fixed;
  left: 0;
  right: 0;
  z-index: calc(var(--bfp-z-index) - 1);
  height: 33vh;
  pointer-events: none;
  background: rgba(0, 0, 0, 0.48);
}

.bfp-reading-mask::before {
  top: 0;
}

.bfp-reading-mask::after {
  bottom: 0;
}

.bfp-reading-ruler-line {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  z-index: calc(var(--bfp-z-index) - 1);
  height: 36px;
  display: none;
  pointer-events: none;
  background: rgba(255, 243, 128, 0.38);
  border-top: 2px solid rgba(41, 72, 255, 0.65);
  border-bottom: 2px solid rgba(41, 72, 255, 0.65);
}

.bfp-reading-ruler .bfp-reading-ruler-line {
  display: block;
}

.bfp-large-cursor,
.bfp-large-cursor * {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'%3E%3Cpath fill='white' stroke='black' stroke-width='3' d='M8 4v34l9.2-8.7 5.7 13.2 7.4-3.2-5.8-12.9H38L8 4Z'/%3E%3C/svg%3E") 8 4, auto !important;
}

@media (max-width: 640px) {
  .bfp-panel {
    inset: auto 0 0;
    width: auto;
    max-height: 92vh;
    border-radius: 28px 28px 0 0;
  }

  .bfp-control-grid,
  .bfp-panel-footer {
    grid-template-columns: 1fr;
  }

  .bfp-stepper-card {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .bfp-stepper {
    grid-column: 1 / -1;
    grid-template-columns: 44px minmax(70px, 1fr) 44px;
  }

  .bfp-floating-button {
    width: 58px;
    height: 58px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bfp-root *,
  .bfp-root *::before,
  .bfp-root *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
