:root {
  --bg: #f7f8fb;
  --text: #111827;
  --muted: #64748b;
  --border: #e5e7eb;
  --primary: #2563eb;
  --color-primary: var(--primary);
}
* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; background: var(--bg); color: var(--text); }


/* Lightweight 12-column grid for frontend templates.
   Bootstrap-compatible class names, without Bootstrap reset/components. */
.row {
  --bs-gutter-x: 1.5rem;
  --bs-gutter-y: 0;
  display: flex;
  flex-wrap: wrap;
  margin-top: calc(-1 * var(--bs-gutter-y));
  margin-right: calc(-.5 * var(--bs-gutter-x));
  margin-left: calc(-.5 * var(--bs-gutter-x));
}
.row > * {
  box-sizing: border-box;
  flex-shrink: 0;
  width: 100%;
  max-width: 100%;
  padding-right: calc(var(--bs-gutter-x) * .5);
  padding-left: calc(var(--bs-gutter-x) * .5);
  margin-top: var(--bs-gutter-y);
}
.col { flex: 1 0 0%; }
.col-auto { flex: 0 0 auto; width: auto; }
.col-1 { flex: 0 0 auto; width: 8.33333333%; }
.col-2 { flex: 0 0 auto; width: 16.66666667%; }
.col-3 { flex: 0 0 auto; width: 25%; }
.col-4 { flex: 0 0 auto; width: 33.33333333%; }
.col-5 { flex: 0 0 auto; width: 41.66666667%; }
.col-6 { flex: 0 0 auto; width: 50%; }
.col-7 { flex: 0 0 auto; width: 58.33333333%; }
.col-8 { flex: 0 0 auto; width: 66.66666667%; }
.col-9 { flex: 0 0 auto; width: 75%; }
.col-10 { flex: 0 0 auto; width: 83.33333333%; }
.col-11 { flex: 0 0 auto; width: 91.66666667%; }
.col-12 { flex: 0 0 auto; width: 100%; }
.row-cols-auto > * { flex: 0 0 auto; width: auto; }
.row-cols-1 > * { flex: 0 0 auto; width: 100%; }
.row-cols-2 > * { flex: 0 0 auto; width: 50%; }
.row-cols-3 > * { flex: 0 0 auto; width: 33.33333333%; }
.row-cols-4 > * { flex: 0 0 auto; width: 25%; }
.row-cols-5 > * { flex: 0 0 auto; width: 20%; }
.row-cols-6 > * { flex: 0 0 auto; width: 16.66666667%; }
.g-0, .gx-0 { --bs-gutter-x: 0; }
.g-0, .gy-0 { --bs-gutter-y: 0; }
.g-1, .gx-1 { --bs-gutter-x: .25rem; }
.g-1, .gy-1 { --bs-gutter-y: .25rem; }
.g-2, .gx-2 { --bs-gutter-x: .5rem; }
.g-2, .gy-2 { --bs-gutter-y: .5rem; }
.g-3, .gx-3 { --bs-gutter-x: 1rem; }
.g-3, .gy-3 { --bs-gutter-y: 1rem; }
.g-4, .gx-4 { --bs-gutter-x: 1.5rem; }
.g-4, .gy-4 { --bs-gutter-y: 1.5rem; }
.g-5, .gx-5 { --bs-gutter-x: 3rem; }
.g-5, .gy-5 { --bs-gutter-y: 3rem; }
@media (min-width: 576px) {
  .col-sm { flex: 1 0 0%; }
  .col-sm-auto { flex: 0 0 auto; width: auto; }
  .col-sm-1 { flex: 0 0 auto; width: 8.33333333%; }
  .col-sm-2 { flex: 0 0 auto; width: 16.66666667%; }
  .col-sm-3 { flex: 0 0 auto; width: 25%; }
  .col-sm-4 { flex: 0 0 auto; width: 33.33333333%; }
  .col-sm-5 { flex: 0 0 auto; width: 41.66666667%; }
  .col-sm-6 { flex: 0 0 auto; width: 50%; }
  .col-sm-7 { flex: 0 0 auto; width: 58.33333333%; }
  .col-sm-8 { flex: 0 0 auto; width: 66.66666667%; }
  .col-sm-9 { flex: 0 0 auto; width: 75%; }
  .col-sm-10 { flex: 0 0 auto; width: 83.33333333%; }
  .col-sm-11 { flex: 0 0 auto; width: 91.66666667%; }
  .col-sm-12 { flex: 0 0 auto; width: 100%; }
}
@media (min-width: 768px) {
  .col-md { flex: 1 0 0%; }
  .col-md-auto { flex: 0 0 auto; width: auto; }
  .col-md-1 { flex: 0 0 auto; width: 8.33333333%; }
  .col-md-2 { flex: 0 0 auto; width: 16.66666667%; }
  .col-md-3 { flex: 0 0 auto; width: 25%; }
  .col-md-4 { flex: 0 0 auto; width: 33.33333333%; }
  .col-md-5 { flex: 0 0 auto; width: 41.66666667%; }
  .col-md-6 { flex: 0 0 auto; width: 50%; }
  .col-md-7 { flex: 0 0 auto; width: 58.33333333%; }
  .col-md-8 { flex: 0 0 auto; width: 66.66666667%; }
  .col-md-9 { flex: 0 0 auto; width: 75%; }
  .col-md-10 { flex: 0 0 auto; width: 83.33333333%; }
  .col-md-11 { flex: 0 0 auto; width: 91.66666667%; }
  .col-md-12 { flex: 0 0 auto; width: 100%; }
}
@media (min-width: 992px) {
  .col-lg { flex: 1 0 0%; }
  .col-lg-auto { flex: 0 0 auto; width: auto; }
  .col-lg-1 { flex: 0 0 auto; width: 8.33333333%; }
  .col-lg-2 { flex: 0 0 auto; width: 16.66666667%; }
  .col-lg-3 { flex: 0 0 auto; width: 25%; }
  .col-lg-4 { flex: 0 0 auto; width: 33.33333333%; }
  .col-lg-5 { flex: 0 0 auto; width: 41.66666667%; }
  .col-lg-6 { flex: 0 0 auto; width: 50%; }
  .col-lg-7 { flex: 0 0 auto; width: 58.33333333%; }
  .col-lg-8 { flex: 0 0 auto; width: 66.66666667%; }
  .col-lg-9 { flex: 0 0 auto; width: 75%; }
  .col-lg-10 { flex: 0 0 auto; width: 83.33333333%; }
  .col-lg-11 { flex: 0 0 auto; width: 91.66666667%; }
  .col-lg-12 { flex: 0 0 auto; width: 100%; }
}
@media (min-width: 1200px) {
  .col-xl { flex: 1 0 0%; }
  .col-xl-auto { flex: 0 0 auto; width: auto; }
  .col-xl-1 { flex: 0 0 auto; width: 8.33333333%; }
  .col-xl-2 { flex: 0 0 auto; width: 16.66666667%; }
  .col-xl-3 { flex: 0 0 auto; width: 25%; }
  .col-xl-4 { flex: 0 0 auto; width: 33.33333333%; }
  .col-xl-5 { flex: 0 0 auto; width: 41.66666667%; }
  .col-xl-6 { flex: 0 0 auto; width: 50%; }
  .col-xl-7 { flex: 0 0 auto; width: 58.33333333%; }
  .col-xl-8 { flex: 0 0 auto; width: 66.66666667%; }
  .col-xl-9 { flex: 0 0 auto; width: 75%; }
  .col-xl-10 { flex: 0 0 auto; width: 83.33333333%; }
  .col-xl-11 { flex: 0 0 auto; width: 91.66666667%; }
  .col-xl-12 { flex: 0 0 auto; width: 100%; }
}

.container { width: min(1160px, calc(100% - 32px)); margin: 0 auto; }
.hero { padding: 72px 0 48px; background: #fff; border-bottom: 1px solid var(--border); }
.hero h1 { margin: 0; font-size: clamp(36px, 5vw, 64px); letter-spacing: -0.04em; }
.lead { margin: 18px 0 0; font-size: 20px; line-height: 1.55; color: var(--muted); max-width: 760px; }
.content-section { padding: 40px 0; }
.blocks { padding: 48px 0; display: grid; gap: 20px; }
.block-card { background: #fff; border: 1px solid var(--border); border-radius: 20px; padding: 24px; display: grid; grid-template-columns: minmax(0, 280px) 1fr; gap: 24px; box-shadow: 0 12px 40px rgba(15,23,42,.06); }
.block-card img { width: 100%; border-radius: 16px; display: block; object-fit: cover; }
.block-card h2 { margin: 0 0 10px; font-size: 28px; }
.block-card p { margin: 0; color: var(--muted); line-height: 1.6; }
.debug-badge { display: inline-flex; margin-bottom: 18px; padding: 6px 10px; border-radius: 999px; background: #dbeafe; color: #1e40af; font-size: 13px; font-weight: 700; }
.debug-json { white-space: pre-wrap; background: #0f172a; color: #e2e8f0; border-radius: 16px; padding: 16px; overflow: auto; }
.muted { color: var(--muted); }
@media (max-width: 760px) { .block-card { grid-template-columns: 1fr; } }
.site-header { background: #fff; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 20; }
.header-inner { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-brand { color: var(--text); text-decoration: none; font-weight: 800; font-size: 18px; letter-spacing: -0.02em; display: inline-flex; align-items: center; gap: 10px; }
.site-brand img { max-height: 38px; max-width: 160px; display: block; }
.site-nav { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.site-nav a { color: var(--muted); text-decoration: none; font-weight: 600; }
.site-nav a:hover { color: var(--primary); }
.offers-grid { padding: 48px 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.offer-card { background: #fff; border: 1px solid var(--border); border-radius: 20px; padding: 22px; box-shadow: 0 12px 40px rgba(15,23,42,.06); display: flex; flex-direction: column; gap: 16px; }
.offer-card h2 { margin: 0; font-size: 24px; letter-spacing: -0.03em; }
.offer-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 28px; }
.offer-price { font-size: 20px; }
.pill { display: inline-flex; align-items: center; border-radius: 999px; background: #dcfce7; color: #166534; padding: 5px 10px; font-size: 13px; font-weight: 800; }
.site-btn { display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 12px; padding: 11px 16px; background: var(--primary); color: #fff; text-decoration: none; font-weight: 800; cursor: pointer; }
.site-btn:hover { filter: brightness(.95); }
.public-form { background: #fff; border: 1px solid var(--border); border-radius: 20px; padding: 24px; max-width: 520px; box-shadow: 0 12px 40px rgba(15,23,42,.06); }
.field-public { display: grid; gap: 6px; margin-bottom: 16px; }
.field-public label { font-weight: 700; }
.field-public input { width: 100%; border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; font: inherit; }
.back-link { display: inline-flex; margin-bottom: 18px; color: var(--primary); text-decoration: none; font-weight: 800; }
@media (max-width: 760px) {
  .header-inner { align-items: flex-start; flex-direction: column; padding: 14px 0; }
  .site-nav { gap: 10px; }
}

/* Client-side A/B tests. The server renders both variants, JS selects one via client session. */
.ab-test-shell .ab-test-variant { display: none; }
.ab-test-shell .ab-test-variant.is-active { display: block; }
.ab-test-shell:not([data-ab-ready="1"]) { min-height: 240px; }

/* Generated registration form */
.reg-field.is-hidden { display: none !important; }
.site-page-registration .hero { display: none; }
.site-page-registration .content-section { padding: 42px 0 64px; }
.site-page-registration .container.content-section { width: min(760px, calc(100% - 32px)); }
.registration-form-app { --reg-primary: #29c21a; --reg-primary-dark: #20a914; --reg-text: #182230; --reg-muted: #667085; --reg-border: #d6dce7; --reg-danger: #dc2626; --reg-soft: #f8fafc; font-size: 16px; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
.registration-form-app .public-form { max-width: 720px; min-height: 52vh; margin: 0 auto; background: #fff; border: 1px solid #e4e7ec; border-radius: 18px; padding: 34px 38px 32px; box-shadow: 0 22px 60px rgba(16, 24, 40, .12); color: var(--reg-text); }
.registration-form-app .public-form.reg-form-loading { display: flex; align-items: center; justify-content: center; min-height: 260px; padding: 44px; }
.reg-form-loader { width: 64px; height: 64px; border: 6px solid rgba(41, 194, 26, .16); border-top-color: var(--reg-primary); border-radius: 50%; animation: reg-form-loader .8s linear infinite; }
@keyframes reg-form-loader { to { transform: rotate(360deg); } }
.generated-registration-form { position: relative; }
.generated-registration-form.is-saving { cursor: wait; }
.generated-registration-form h2 { margin: 18px 0 18px; font-size: clamp(30px, 3vw, 40px); line-height: 1.12; letter-spacing: -0.035em; color: #101828; }
.generated-registration-form > .muted, .reg-step-description { color: var(--reg-muted); font-size: 17px; line-height: 1.6; margin: 0 0 26px; }
.reg-label-html a, .reg-step-description a, .reg-tip a { color: #155eef; text-decoration: underline; text-underline-offset: 2px; }
.reg-progress { margin: -8px -38px 30px; }
.reg-progress-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 38px 12px; font-size: 21px; line-height: 1.2; color: var(--reg-primary); font-weight: 900; }
.reg-progress-top strong { color: #475467; font-size: 18px; font-weight: 600; }
.reg-progress-bar { height: 7px; background: #eff4ef; overflow: hidden; }
.reg-progress-bar span { display: block; height: 100%; background: var(--reg-primary); transition: width .25s ease; }
.reg-field { display: grid; gap: 9px; margin: 0 0 18px; }
.reg-field label { font-size: 16px; line-height: 1.4; font-weight: 600; color: #344054; }
.reg-required { color: var(--reg-danger); margin-left: 2px; }
.reg-field input:not([type="checkbox"]):not([type="radio"]) { width: 100%; min-height: 54px; border: 1px solid var(--reg-border); border-radius: 10px; padding: 14px 18px; font: inherit; font-size: 17px; background: #fff; color: var(--reg-text); outline: none; transition: border-color .15s ease, box-shadow .15s ease; }
.reg-field input:not([type="checkbox"]):not([type="radio"]):focus { border-color: var(--reg-primary); box-shadow: 0 0 0 4px rgba(41, 194, 26, .12); }
.reg-field.has-error input:not([type="checkbox"]):not([type="radio"]), .reg-field.has-error .reg-select-control, .reg-field.has-error .reg-checkbox-group { border-color: var(--reg-danger); }
.reg-tip { color: var(--reg-muted); font-size: 15px; line-height: 1.5; }
.reg-error { color: var(--reg-danger); font-size: 15px; line-height: 1.4; }
.reg-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 24px; }
.site-page-registration .site-btn { width: 100%; min-height: 56px; border: 0; border-radius: 10px; background: var(--reg-primary); color: #fff; font-size: 17px; font-weight: 900; cursor: pointer; transition: background .15s ease, opacity .15s ease; display: inline-flex; align-items: center; justify-content: center; gap: 10px; position: relative; }
.site-page-registration .site-btn:hover { background: var(--reg-primary-dark); filter: none; }
.site-page-registration .site-btn.secondary { width: auto; min-width: 130px; background: #f2f4f7; color: #344054; }
.site-page-registration .site-btn[disabled] { opacity: .78; cursor: wait; pointer-events: none; }
.site-btn__label { display: inline-flex; align-items: center; justify-content: center; min-width: 0; }
.site-btn__spinner { display: none; width: 20px; height: 20px; border: 3px solid currentColor; border-right-color: transparent; border-bottom-color: transparent; border-radius: 50%; animation: button-loader .7s linear infinite; flex: 0 0 auto; }
.site-btn.is-loading .site-btn__spinner { display: inline-block; }
.site-btn.is-loading .site-btn__label { opacity: .92; }
@keyframes button-loader { to { transform: rotate(360deg); } }
.form-message { min-height: 20px; margin: 12px 0 0; color: var(--reg-muted); font-size: 15px; }

.registration-loader-modal[hidden] { display: none !important; }
.registration-loader-modal { --reg-primary: var(--color-primary, #29c21a); --reg-primary-dark: #20a914; --reg-text: #182230; --reg-muted: #667085; --reg-border: #e4e7ec; position: fixed; inset: 0; z-index: 10000; display: flex; align-items: center; justify-content: center; padding: 24px; font-family: inherit; }
.registration-loader-modal__backdrop { position: absolute; inset: 0; background: rgba(15, 23, 42, .42); backdrop-filter: blur(5px); }
.registration-loader-modal__dialog { position: relative; z-index: 1; width: min(390px, 100%); border: 1px solid var(--reg-border); border-radius: 16px; background: #fff; padding: 30px 34px 28px; text-align: center; box-shadow: 0 22px 60px rgba(16, 24, 40, .18); color: var(--reg-text); }
.registration-loader-modal__dialog h2 { margin: 14px 0 8px; font-size: 22px; line-height: 1.25; color: #101828; font-weight: 700; }
.registration-loader-modal__dialog p { margin: 0; color: var(--reg-muted); font-size: 15px; line-height: 1.5; }
#loader-preload {
  display: inline-block;
  height: 80px;
  position: relative;
  width: 80px
}
#loader-preload,
#loader-preload div {
  box-sizing: border-box;
}
#loader-preload div {
  box-sizing: border-box;
  color: var(--reg-primary, var(--color-primary, #29c21a));
  display:block;
  position:absolute;
  width:48px;
  height:48px;
  margin:30px;
  border: 8px solid var(--reg-primary, var(--color-primary, #29c21a));
  border-radius: 50%;
  animation: preloader 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
  border-color: currentColor transparent transparent transparent;
}
#loader-preload div:nth-child(1) {
  animation-delay: -0.45s;
}
#loader-preload div:nth-child(2) {
  animation-delay: -0.3s;
}
#loader-preload div:nth-child(3) {
  animation-delay: -0.15s;
}
@keyframes preloader {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}


.reg-select { position: relative; width: 100%; }
.reg-select-control { width: 100%; min-height: 54px; border: 1px solid var(--reg-border); border-radius: 10px; background: #fff; color: var(--reg-text); padding: 13px 16px 13px 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; text-align: left; cursor: pointer; outline: none; font-size: 17px; transition: border-color .15s ease, box-shadow .15s ease; }
.reg-select-control:hover, .reg-select-control[aria-expanded="true"], .reg-select-control:focus { border-color: var(--reg-primary); box-shadow: 0 0 0 4px rgba(41, 194, 26, .12); }
.reg-select-value { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.reg-select-value.is-placeholder { color: #98a2b3; }
.reg-select-arrow { color: #98a2b3; font-size: 22px; line-height: 1; transform: translateY(-1px); }
.reg-select-dropdown { position: absolute; z-index: 50; left: 0; right: 0; top: calc(100% + 6px); border: 1px solid var(--reg-border); border-radius: 12px; background: #fff; box-shadow: 0 18px 42px rgba(16, 24, 40, .18); padding: 10px; }
.reg-select-search { width: 100%; min-height: 46px; border: 1px solid var(--reg-border); border-radius: 9px; padding: 11px 14px; font: inherit; font-size: 16px; outline: none; background: #fff; }
.reg-select-search:focus { border-color: var(--reg-primary); box-shadow: 0 0 0 4px rgba(41, 194, 26, .12); }
.reg-select-options { max-height: 260px; overflow-y: auto; display: grid; gap: 3px; margin-top: 8px; }
.reg-select-option { border-radius: 9px; padding: 11px 12px; cursor: pointer; color: var(--reg-text); font-size: 16px; line-height: 1.35; }
.reg-select-option:hover { background: #f2f4f7; }
.reg-select-option.selected { background: rgba(41, 194, 26, .10); color: var(--reg-primary-dark); font-weight: 800; }
.reg-select-empty { color: var(--reg-muted); font-size: 15px; padding: 12px; }

.reg-radio-group { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.reg-radio-button { cursor: pointer; display: block; }
.reg-radio-button input { position: absolute; opacity: 0; pointer-events: none; }
.reg-radio-button span { display: flex; align-items: center; justify-content: center; gap: 9px; min-height: 54px; border: 1px solid var(--reg-border); border-radius: 10px; background: #fff; padding: 13px 16px; font-size: 16px; color: #344054; transition: border-color .15s ease, background .15s ease, box-shadow .15s ease; }
.reg-radio-button span svg { width: 18px; height: 18px; flex: 0 0 auto; }
.reg-radio-button input:checked + span { border-color: var(--reg-primary); background: rgba(41, 194, 26, .08); box-shadow: 0 0 0 3px rgba(41, 194, 26, .10); color: var(--reg-primary-dark); font-weight: 800; }

.reg-checkbox { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; color: #344054; font-size: 16px; line-height: 1.45; }
.reg-checkbox input { position: absolute; opacity: 0; pointer-events: none; }
.reg-checkbox-box { width: 24px; height: 24px; border: 1px solid #98a2b3; border-radius: 6px; background: #fff; flex: 0 0 auto; position: relative; }
.reg-checkbox input:focus + .reg-checkbox-box { box-shadow: 0 0 0 4px rgba(41, 194, 26, .12); }
.reg-checkbox input:checked + .reg-checkbox-box { background: var(--reg-primary); border-color: var(--reg-primary); }
.reg-checkbox input:checked + .reg-checkbox-box::after { content: ''; position: absolute; left: 8px; top: 3px; width: 6px; height: 12px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.reg-checkbox a { color: #155eef; }
.reg-checkbox-group { border: 1px solid var(--reg-border); border-radius: 12px; padding: 14px 16px; background: #fff; display: grid; gap: 12px; }
.reg-checkbox-group-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.reg-checkbox-main { font-weight: 800; }
.reg-checkbox-toggle { flex: 0 0 auto; border: 1px solid var(--reg-border); border-radius: 999px; background: #fff; color: var(--reg-primary-dark); padding: 7px 12px; font: inherit; font-size: 14px; font-weight: 800; cursor: pointer; }
.reg-checkbox-toggle:hover { background: rgba(41, 194, 26, .08); border-color: var(--reg-primary); }
.reg-checkbox-children { display: grid; gap: 11px; padding-left: 36px; }
.reg-checkbox-children.is-hidden { display: none; }

@media (max-width: 760px) {
  .site-page-registration .container.content-section { width: 100%; padding: 0 12px; }
  .registration-form-app .public-form { max-width: 100%; min-height: auto; border-radius: 14px; padding: 24px 22px 22px; }
  .reg-progress { margin-left: -22px; margin-right: -22px; }
  .reg-progress-top { padding-left: 22px; padding-right: 22px; }
  .generated-registration-form h2 { font-size: 30px; }
  .reg-radio-group { grid-template-columns: 1fr; }
}

.ads { margin: 24px auto; }
.floating-banner {
  position: fixed;
  left: 50%;
  width: 100%;
  background: #fff;
  box-shadow: 0 0 10px rgba(0,0,0,0.15);
  transition: transform 0.4s ease;
  z-index: 99;
  font-family: system-ui, sans-serif;
  overflow: visible;
  border-radius: 8px 8px 0 0;
  max-width: var(--grid-maxwidth);
  transform: translateX(-50%);
}

.floating-banner.bottom {
  bottom: 0;
  transform: translateY(100%) translateX(-50%);
}
.floating-banner.top {
  top: 0;
  transform: translateY(-100%) translateX(-50%);
  border-radius: 0 0 12px 12px;
}

.floating-banner.open {
  transform: translateY(0) translateX(-50%);
}

.banner-content {
  padding: 8px;
  text-align: center;
  line-height: 1;
}

.toggle-btn {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 28px;
  background: #fff;
  border: 1px solid #ccc;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: background 0.2s, transform 0.4s;
}

.floating-banner.bottom .toggle-btn {
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  top: -28px;
}
.floating-banner.top .toggle-btn {
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
  bottom: -28px;
}

.toggle-btn::before {
  content: "";
  display: block;
  width: 10px;
  height: 10px;
  border-left: 2px solid #666;
  border-bottom: 2px solid #666;
  transform: rotate(-225deg);
  transition: transform 0.3s ease;
  position: absolute;
  top: calc(50% - 5px);
  left: calc(50% - 5px);
}

.floating-banner.top .toggle-btn::before {
  transform: rotate(-45deg);
}

.floating-banner.open.bottom .toggle-btn::before {
  transform: rotate(-45deg);
}
.floating-banner.open.top .toggle-btn::before {
  transform: rotate(-225deg);
}

/* HTML content created with HtmlEditor. */
.wysiwyg-content { line-height: 1.7; color: var(--text); }
.wysiwyg-content > *:first-child { margin-top: 0; }
.wysiwyg-content > *:last-child { margin-bottom: 0; }
.wysiwyg-content img { max-width: 100%; height: auto; border-radius: 12px; }
.wysiwyg-content a { color: var(--primary); }
.wysiwyg-content ul, .wysiwyg-content ol { padding-left: 1.4em; }
