:root {
  --cfba-primary: #FCAF01;
  --cfba-primary-dark: #d99100;
  --cfba-dark: #333333;
  --cfba-text: #2f3541;
  --cfba-muted: #707782;
  --cfba-border: #e1e5eb;
  --cfba-surface: #ffffff;
  --cfba-page: #f5f7fa;
  --cfba-success: #16753a;
  --cfba-success-bg: #eaf8ef;
  --cfba-warning: #8a5b00;
  --cfba-warning-bg: #fff6df;
  --cfba-danger: #a5282d;
  --cfba-danger-bg: #fff0f1;
  --cfba-radius: 12px;
  --cfba-shadow: 0 14px 36px rgba(27, 36, 49, .08);
}

/* Advertisement delivery */
.cfba-placement {
  position: relative;
  box-sizing: border-box;
  max-width: 100%;
  margin-inline: auto;
  line-height: 1.4;
}
.cfba-placement *, .cfba-placement *::before, .cfba-placement *::after { box-sizing: border-box; }
.cfba-placement img, .cfba-placement video, .cfba-placement iframe { display: inline-block; max-width: 100%; height: auto; border: 0; vertical-align: middle; }
.cfba-click { display: inline-block; max-width: 100%; text-decoration: none; }
.cfba-label { display: block; margin: 0 0 4px; color: #757575; font: 500 10px/1.2 Arial, sans-serif; letter-spacing: .06em; text-transform: uppercase; }
.cfba-align-left { text-align: left; }
.cfba-align-center { text-align: center; }
.cfba-align-right { text-align: right; }
.cfba-placeholder { min-height: 1px; }
.cfba-load-failed { display: none !important; }
.cfba-video, .cfba-video video { width: 100%; }
.cfba-text-ad { padding: 16px; border: 1px solid var(--cfba-border); border-radius: 8px; background: var(--cfba-surface); }
.cfba-mode-sticky_top, .cfba-mode-sticky-bottom, .cfba-mode-sticky_bottom { position: fixed; z-index: 9998; right: 0; left: 0; width: min(100%, 1200px); padding: 8px; background: rgba(255,255,255,.96); box-shadow: 0 0 20px rgba(0,0,0,.15); }
.cfba-mode-sticky_top { top: 0; }
.cfba-mode-sticky-bottom, .cfba-mode-sticky_bottom { bottom: 0; }
.cfba-mode-floating_left, .cfba-mode-floating_right { position: fixed; z-index: 9997; top: 50%; transform: translateY(-50%); }
.cfba-mode-floating_left { left: 10px; }
.cfba-mode-floating_right { right: 10px; }
.cfba-mode-popup, .cfba-mode-interstitial { position: fixed; z-index: 10000; top: 50%; left: 50%; width: min(92vw, 720px); max-height: 92vh; padding: 18px; overflow: auto; transform: translate(-50%,-45%) scale(.98); border-radius: var(--cfba-radius); background: #fff; box-shadow: 0 26px 80px rgba(0,0,0,.35); opacity: 0; transition: opacity .2s ease, transform .2s ease; }
.cfba-mode-popup.is-open, .cfba-mode-interstitial.is-open { transform: translate(-50%,-50%) scale(1); opacity: 1; }
.cfba-mode-interstitial { width: min(94vw, 1100px); }
.cfba-close { position: absolute; z-index: 2; top: 8px; right: 8px; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; background: #fff; color: #222; box-shadow: 0 2px 12px rgba(0,0,0,.18); font: 700 22px/34px Arial, sans-serif; cursor: pointer; }
.cfba-mode-background { position: fixed; z-index: -1; inset: 0; overflow: hidden; }
.cfba-mode-background img { width: 100%; height: 100%; object-fit: cover; }
.cfba-mode-parallax { min-height: 260px; background-attachment: fixed; background-position: center; background-size: cover; }
.cfba-mode-slider { overflow: hidden; }
.cfba-mode-page_peel { position: fixed; z-index: 9996; top: 0; right: 0; width: 90px; overflow: hidden; transition: width .25s ease; }
.cfba-mode-page_peel:hover { width: min(420px, 75vw); }
.cfba-adblock-fallback { padding: 16px; border: 1px dashed var(--cfba-border); border-radius: var(--cfba-radius); background: var(--cfba-page); }

/* Shared UI */
.cfba-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border: 1px solid var(--cfba-primary);
  border-radius: 8px;
  background: var(--cfba-primary);
  color: #111 !important;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none !important;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.cfba-button:hover, .cfba-button:focus { background: #ffb817; color: #111 !important; box-shadow: 0 7px 18px rgba(252,175,1,.25); transform: translateY(-1px); }
.cfba-button-secondary, .cfba-button-ghost { border-color: var(--cfba-border); background: #fff; color: var(--cfba-dark) !important; }
.cfba-button-block { width: 100%; }
.cfba-link-button { padding: 0; border: 0; background: transparent; color: var(--cfba-dark); font: inherit; text-decoration: underline; cursor: pointer; }
.cfba-eyebrow { display: block; margin-bottom: 5px; color: #9a6a00; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.cfba-muted { color: var(--cfba-muted); }
.cfba-notice { margin: 0 0 18px; padding: 13px 15px; border: 1px solid var(--cfba-border); border-left: 4px solid #8a929d; border-radius: 8px; background: #fff; color: var(--cfba-text); }
.cfba-notice.is-success { border-left-color: var(--cfba-success); background: var(--cfba-success-bg); color: var(--cfba-success); }
.cfba-notice.is-warning { border-left-color: var(--cfba-primary-dark); background: var(--cfba-warning-bg); color: var(--cfba-warning); }
.cfba-notice.is-error { border-left-color: var(--cfba-danger); background: var(--cfba-danger-bg); color: var(--cfba-danger); }
.cfba-status-badge { display: inline-flex; width: max-content; align-items: center; padding: 5px 10px; border-radius: 999px; background: #edf0f4; color: #5d6570; font-size: 12px; font-weight: 800; white-space: nowrap; }
.cfba-status-badge.is-success, .cfba-status-badge.is-approved { background: var(--cfba-success-bg); color: var(--cfba-success); }
.cfba-status-badge.is-warning { background: var(--cfba-warning-bg); color: var(--cfba-warning); }
.cfba-status-badge.is-danger { background: var(--cfba-danger-bg); color: var(--cfba-danger); }
.cfba-status-badge.is-muted { background: #f0f2f5; color: #6d737c; }

/* Forms */
.cfba-account-form, .cfba-form { display: grid; gap: 18px; }
.cfba-form-grid { display: grid; gap: 18px; }
.cfba-form-grid.two-columns { grid-template-columns: repeat(2, minmax(0,1fr)); }
.cfba-form-grid.three-columns { grid-template-columns: repeat(3, minmax(0,1fr)); align-items: end; }
.cfba-field { display: grid; gap: 7px; min-width: 0; }
.cfba-field > span:first-child, .cfba-field > label { color: var(--cfba-text); font-weight: 700; }
.cfba-field input, .cfba-field select, .cfba-field textarea, .cfba-account-form input, .cfba-account-form select, .cfba-account-form textarea {
  box-sizing: border-box;
  width: 100%;
  min-height: 46px;
  padding: 11px 13px;
  border: 1px solid #d9dee6;
  border-radius: 7px;
  background: #fbfcfe;
  color: var(--cfba-text);
  font: inherit;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.cfba-field textarea, .cfba-account-form textarea { min-height: 110px; resize: vertical; }
.cfba-field input:focus, .cfba-field select:focus, .cfba-field textarea:focus, .cfba-account-form input:focus, .cfba-account-form select:focus, .cfba-account-form textarea:focus { border-color: var(--cfba-primary-dark); background: #fff; box-shadow: 0 0 0 3px rgba(252,175,1,.15); }
.cfba-field input:disabled, .cfba-field select:disabled { background: #f0f2f5; color: #666; cursor: not-allowed; }
.cfba-field small { color: var(--cfba-muted); line-height: 1.45; }
.cfba-password-field { position: relative; display: block; }
.cfba-password-field input { padding-right: 76px; }
.cfba-password-toggle { position: absolute; top: 50%; right: 8px; min-height: 32px; padding: 5px 9px; transform: translateY(-50%); border: 0; border-radius: 5px; background: transparent; color: #4f5864; font-size: 12px; font-weight: 700; cursor: pointer; }
.cfba-form-line { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.cfba-form-line label, .cfba-consent { display: flex; align-items: flex-start; gap: 9px; color: var(--cfba-text); line-height: 1.5; }
.cfba-form-line input, .cfba-consent input { width: auto; min-height: auto; margin-top: 4px; }
.cfba-consent a, .cfba-auth-card a, .cfba-portal-shell a:not(.cfba-button) { color: #9b6800; }
.cfba-dimension-requirement { display: flex; align-items: center; gap: 8px; margin-top: 8px; padding: 10px 12px; border-radius: 7px; background: var(--cfba-warning-bg); color: var(--cfba-warning); }
.cfba-field-error { padding: 10px 12px; border-radius: 7px; background: var(--cfba-danger-bg); color: var(--cfba-danger); font-weight: 600; }
.cfba-pending-note { color: var(--cfba-warning) !important; font-weight: 700; }

/* Pricing and checkout */
.cfba-pricing-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(270px,1fr)); gap: 22px; }
.cfba-price-card { position: relative; display: flex; min-width: 0; flex-direction: column; padding: 26px; border: 1px solid var(--cfba-border); border-radius: var(--cfba-radius); background: #fff; box-shadow: 0 8px 22px rgba(30,40,55,.05); }
.cfba-price-card.is-featured { border: 2px solid var(--cfba-primary); }
.cfba-price-card h3 { margin: 0 0 12px; color: var(--cfba-dark); font-size: 22px; }
.cfba-price { margin-bottom: 16px; color: var(--cfba-dark); }
.cfba-price strong { font-size: 34px; }
.cfba-price-card ul { min-height: 126px; margin: 0 0 22px; padding-left: 20px; }
.cfba-price-badge { position: absolute; top: 14px; right: 14px; padding: 5px 10px; border-radius: 999px; background: var(--cfba-primary); color: #111; font-size: 11px; font-weight: 800; }
.cfba-package-checkout-actions { display: grid; gap: 10px; margin-top: auto; }
.cfba-package-checkout-actions form { display: grid; gap: 6px; margin: 0; }
.cfba-package-checkout-actions .cfba-button { width: 100%; }
.cfba-package-checkout-actions small { color: var(--cfba-muted); }
.cfba-renew-choice { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; }
.cfba-renew-choice input { width: auto; min-height: auto; margin-top: 3px; }
.cfba-checkout, .cfba-manual-checkout { width: min(100%,900px); margin-inline: auto; padding: 26px; border: 1px solid var(--cfba-border); border-radius: var(--cfba-radius); background: #fff; box-shadow: var(--cfba-shadow); }
.cfba-payment-summary { display: grid; grid-template-columns: repeat(auto-fit,minmax(160px,1fr)); gap: 12px; margin: 18px 0; }
.cfba-payment-summary > div { padding: 15px; border: 1px solid var(--cfba-border); border-radius: 8px; background: var(--cfba-page); }
.cfba-payment-summary span { display: block; color: var(--cfba-muted); font-size: 12px; }
.cfba-payment-summary strong { display: block; margin-top: 4px; font-size: 17px; }
.cfba-manual-payment-instructions { margin: 20px 0; padding: 18px; border-radius: 9px; background: var(--cfba-warning-bg); }


/* Account architecture */
body.cfba-account-page .cf-site-main,
body.cfba-portal-page .cf-site-main { background: var(--cfba-page); }

.cfba-auth-layout {
  display: grid;
  width: min(calc(100% - 32px), 1180px);
  grid-template-columns: minmax(520px,1.15fr) minmax(420px,500px);
  gap: 28px;
  align-items: stretch;
  margin: 34px auto 52px;
}
.cfba-auth-brand-panel,
.cfba-auth-card {
  box-sizing: border-box;
  min-width: 0;
  border: 1px solid var(--cfba-border);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--cfba-shadow);
}
.cfba-auth-brand-panel {
  display: flex;
  min-height: 590px;
  flex-direction: column;
  justify-content: center;
  gap: 30px;
  padding: clamp(38px,5vw,64px);
  overflow: hidden;
  background:
    radial-gradient(circle at 92% 8%, rgba(252,175,1,.22), transparent 34%),
    linear-gradient(145deg,#fff 0%,#fffaf0 100%);
  color: var(--cfba-text);
}
.cfba-auth-brand-copy,
.cfba-auth-brand-panel h1,
.cfba-auth-brand-panel p { min-width: 0; max-width: 100%; }
.cfba-auth-brand-panel h1 {
  max-width: 680px;
  margin: 8px 0 18px;
  color: var(--cfba-dark);
  font-size: clamp(38px,4.2vw,58px);
  line-height: 1.07;
  letter-spacing: -.03em;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}
.cfba-auth-brand-panel p {
  max-width: 650px;
  margin: 0;
  color: var(--cfba-muted);
  font-size: 18px;
  line-height: 1.62;
  overflow-wrap: normal;
  word-break: normal;
}
.cfba-auth-brand-panel .cfba-eyebrow { color: #946300; }
.cfba-auth-role-summary,
.cfba-role-explanation {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 14px;
  margin: 0;
}
.cfba-auth-role-summary article,
.cfba-role-explanation article {
  display: grid;
  min-width: 0;
  padding: 18px;
  border: 1px solid #eadfca;
  border-radius: 12px;
  background: rgba(255,255,255,.92);
  color: var(--cfba-dark);
}
.cfba-auth-role-summary article { grid-template-columns: 38px minmax(0,1fr); gap: 12px; align-items: start; }
.cfba-auth-role-summary strong,
.cfba-auth-role-summary small,
.cfba-role-explanation h3,
.cfba-role-explanation p { display: block; min-width: 0; overflow-wrap: normal; word-break: normal; }
.cfba-auth-role-summary small { margin-top: 5px; color: var(--cfba-muted); font-size: 13px; line-height: 1.45; }
.cfba-auth-role-icon { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 9px; background: var(--cfba-primary); color: #111; font-weight: 900; }
.cfba-role-explanation h3 { margin: 0 0 7px; color: #946300; font-size: 19px; }
.cfba-role-explanation p { margin: 0; color: var(--cfba-muted); font-size: 14px; line-height: 1.5; }
.cfba-auth-security-note { display: grid; gap: 5px; padding: 16px 18px; border-left: 5px solid var(--cfba-primary); border-radius: 9px; background: #fff; }
.cfba-auth-security-note strong { color: var(--cfba-dark); }
.cfba-auth-security-note span { color: var(--cfba-muted); font-size: 14px; line-height: 1.5; }
.cfba-auth-card {
  align-self: center;
  width: 100%;
  padding: clamp(30px,4vw,48px);
}
.cfba-auth-card header { margin-bottom: 24px; }
.cfba-auth-card header h2,
.cfba-auth-card h2 { margin: 0 0 7px; color: var(--cfba-dark); font-size: 32px; line-height: 1.15; }
.cfba-auth-card header p,
.cfba-auth-card footer { color: var(--cfba-muted); }
.cfba-auth-card footer { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--cfba-border); text-align: center; }
.cfba-registration-layout {
  width: min(calc(100% - 32px), 1380px);
  grid-template-columns: minmax(440px,.78fr) minmax(620px,1.22fr);
}
.cfba-registration-card { align-self: stretch; }
.cfba-registration-intro { min-height: 760px; }
.cfba-account-type-selector { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin: 0; padding: 0; border: 0; }
.cfba-account-type-selector legend { grid-column: 1/-1; margin-bottom: 7px; color: var(--cfba-text); font-weight: 800; }
.cfba-account-type-selector label { position: relative; display: block; cursor: pointer; }
.cfba-account-type-selector input { position: absolute; opacity: 0; pointer-events: none; }
.cfba-account-type-selector label > span { display: block; height: 100%; padding: 16px; border: 2px solid var(--cfba-border); border-radius: 10px; background: #fff; }
.cfba-account-type-selector strong,
.cfba-account-type-selector small { display: block; }
.cfba-account-type-selector small { margin-top: 4px; color: var(--cfba-muted); line-height: 1.4; }
.cfba-account-type-selector input:checked + span { border-color: var(--cfba-primary); background: #fffaf0; box-shadow: 0 0 0 3px rgba(252,175,1,.14); }
.cfba-auth-single { display: grid; width: min(calc(100% - 32px),620px); min-height: 55vh; place-items: center; margin: 20px auto; }
.cfba-message-card { width: 100%; text-align: center; }
.cfba-message-card p { color: var(--cfba-muted); }
.cfba-resend-form { margin-top: 22px; text-align: left; }

/* Role-separated client portals */
body.cfba-portal-page .cf-page-hero,
body.cfba-portal-page .entry-title,
body.cfba-portal-page .wp-block-post-title { display: none !important; }
body.cfba-portal-page .cf-content-wrap,
body.cfba-portal-page .site-main > .container,
body.cfba-portal-page .entry-content { width: 100% !important; max-width: none !important; margin: 0 !important; padding: 0 !important; }
.cfba-portal-shell {
  display: grid;
  width: min(100%, 1600px);
  min-height: 780px;
  grid-template-columns: 270px minmax(0,1fr);
  margin: 18px auto 45px;
  border: 1px solid var(--cfba-border);
  border-radius: 16px;
  background: var(--cfba-page);
  box-shadow: 0 16px 45px rgba(22,31,45,.08);
  overflow: hidden;
}
.cfba-portal-sidebar { padding: 18px 0; border-right: 1px solid var(--cfba-border); background: #fff; }
.cfba-portal-user-card { display: grid; grid-template-columns: 60px minmax(0,1fr); gap: 13px; align-items: center; margin: 0 16px 20px; padding: 14px; border-radius: 11px; background: var(--cfba-page); }
.cfba-portal-user-card img { width: 60px; height: 60px; border: 3px solid #fff; border-radius: 50%; object-fit: cover; box-shadow: 0 2px 8px rgba(0,0,0,.1); }
.cfba-portal-user-card strong,
.cfba-portal-user-card span,
.cfba-portal-user-card small { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cfba-portal-user-card strong { color: var(--cfba-dark); }
.cfba-portal-user-card span { color: #946300; font-size: 12px; font-weight: 800; text-transform: uppercase; }
.cfba-portal-user-card small { color: #8a9099; font-size: 11px; }
.cfba-portal-navigation { display: grid; }
.cfba-portal-navigation a { display: grid; min-height: 48px; grid-template-columns: 28px minmax(0,1fr); gap: 10px; align-items: center; padding: 10px 18px; border-left: 4px solid transparent; color: #535b66 !important; text-decoration: none !important; transition: background .15s ease,color .15s ease; }
.cfba-portal-navigation a:hover { background: #f6f8fb; color: var(--cfba-dark) !important; }
.cfba-portal-navigation a.is-active { border-left-color: var(--cfba-primary); background: #fff7e4; color: #8d6000 !important; font-weight: 800; }
.cfba-portal-navigation a.is-primary { margin: 16px 14px 0; border: 0; border-radius: 8px; background: var(--cfba-primary); color: #111 !important; font-weight: 800; }
.cfba-portal-menu-icon { display: inline-grid; width: 24px; height: 24px; place-items: center; color: inherit; font-size: 17px; }
.cfba-portal-main { min-width: 0; padding: clamp(22px,3vw,42px); }
.cfba-portal-page-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.cfba-portal-page-header h1 { margin: 0; color: var(--cfba-dark); font-size: clamp(31px,3vw,44px); line-height: 1.12; }
.cfba-portal-content { min-width: 0; }
.cfba-portal-panel,
.cfba-form-section { min-width: 0; margin-bottom: 22px; padding: 25px; border: 1px solid var(--cfba-border); border-radius: var(--cfba-radius); background: #fff; box-shadow: 0 5px 16px rgba(25,35,48,.035); }
.cfba-panel-heading,
.cfba-form-section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.cfba-panel-heading h2,
.cfba-form-section-heading h3 { margin: 0 0 5px; color: var(--cfba-dark); font-size: 23px; }
.cfba-panel-heading p,
.cfba-form-section-heading p { margin: 0; color: var(--cfba-muted); }
.cfba-portal-grid { display: grid; gap: 22px; align-items: start; }
.cfba-portal-grid.two-columns { grid-template-columns: repeat(2,minmax(0,1fr)); }
.cfba-portal-grid.form-and-help { grid-template-columns: minmax(0,1.5fr) minmax(300px,.5fr); }
.cfba-portal-grid.form-and-list { grid-template-columns: minmax(340px,.48fr) minmax(0,1fr); }
.cfba-help-panel ol { margin: 0 0 18px; padding-left: 22px; }
.cfba-help-panel li { margin-bottom: 11px; }
.cfba-dashboard-note { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 22px; padding: 19px 21px; border-left: 5px solid var(--cfba-primary); border-radius: 10px; background: #fff9ec; }
.cfba-dashboard-note strong { display: block; color: var(--cfba-dark); font-size: 17px; }
.cfba-dashboard-note p { margin: 3px 0 0; color: var(--cfba-muted); }
.cfba-summary-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; margin-bottom: 22px; }
.cfba-summary-card { display: grid; min-width: 0; grid-template-columns: 54px minmax(0,1fr); gap: 14px; align-items: center; padding: 20px; border: 1px solid var(--cfba-border); border-radius: var(--cfba-radius); background: #fff; }
.cfba-summary-icon { display: grid; width: 52px; height: 52px; place-items: center; border-radius: 50%; background: #fff2d4; color: #9b6800; font-size: 23px; }
.cfba-summary-card strong,
.cfba-summary-card span { display: block; }
.cfba-summary-card strong { color: var(--cfba-dark); font-size: 27px; line-height: 1.1; }
.cfba-summary-card div > span { margin-top: 4px; color: var(--cfba-muted); }

/* Data tables */
.cfba-table-wrap { width: 100%; max-width: 100%; overflow-x: auto; border: 1px solid var(--cfba-border); border-radius: 10px; }
.cfba-table { width: 100%; min-width: 760px; border: 0; border-collapse: collapse; background: #fff; table-layout: auto; }
.cfba-table th,
.cfba-table td { padding: 14px 16px; border: 0; border-bottom: 1px solid var(--cfba-border); color: var(--cfba-text); text-align: left; vertical-align: top; overflow-wrap: normal; word-break: normal; }
.cfba-table th { background: #f7f8fa; color: #3f4650; font-size: 12px; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; }
.cfba-table tbody tr:last-child td { border-bottom: 0; }
.cfba-table td strong,
.cfba-table td small,
.cfba-table td span { display: block; }
.cfba-table td small { margin-top: 4px; color: var(--cfba-muted); line-height: 1.4; }
.cfba-advertiser-ads-table th:first-child,
.cfba-advertiser-ads-table td:first-child { width: 30%; min-width: 260px; }
.cfba-advertiser-ads-table th:nth-child(3),
.cfba-advertiser-ads-table td:nth-child(3) { width: 28%; min-width: 250px; }
.cfba-delivery-line { margin-top: 5px; font-weight: 800; }
.cfba-delivery-line.is-active { color: var(--cfba-success); }
.cfba-delivery-line.is-blocked { color: var(--cfba-danger); }
.cfba-embed-code { width: min(520px,100%); min-height: 92px; padding: 10px; border: 1px solid var(--cfba-border); border-radius: 7px; background: #f7f8fa; font: 12px/1.45 Consolas,monospace; }
.cfba-copy-button { margin-top: 6px; padding: 6px 10px; border: 1px solid var(--cfba-border); border-radius: 5px; background: #fff; color: var(--cfba-dark); cursor: pointer; }
.cfba-payout-balance { margin: 18px 0; padding: 20px; border-radius: 10px; background: var(--cfba-dark); color: #fff; }
.cfba-payout-balance span,
.cfba-payout-balance strong { display: block; }
.cfba-payout-balance span { color: rgba(255,255,255,.7); }
.cfba-payout-balance strong { margin-top: 5px; color: var(--cfba-primary); font-size: 34px; }

/* Dynamic Google geotargeting */
.cfba-geo-picker { display: grid; gap: 18px; min-width: 0; }
.cfba-geo-mode { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.cfba-geo-mode label { position: relative; cursor: pointer; }
.cfba-geo-mode input { position: absolute; opacity: 0; pointer-events: none; }
.cfba-geo-mode label > span { display: block; height: 100%; padding: 15px; border: 2px solid var(--cfba-border); border-radius: 10px; background: #fff; }
.cfba-geo-mode strong,
.cfba-geo-mode small { display: block; }
.cfba-geo-mode small { margin-top: 4px; color: var(--cfba-muted); line-height: 1.35; }
.cfba-geo-mode input:checked + span { border-color: var(--cfba-primary); background: #fffaf0; box-shadow: 0 0 0 3px rgba(252,175,1,.12); }
.cfba-geo-panel { display: grid; gap: 16px; }
.cfba-geo-search-row { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 10px; align-items: center; }
.cfba-geo-search { min-width: 0; }
.cfba-geo-search input,
.cfba-google-place-autocomplete { width: 100%; min-height: 48px; }
.cfba-geo-current-location { min-height: 46px; padding: 10px 15px; border: 1px solid var(--cfba-border); border-radius: 8px; background: #fff; color: var(--cfba-dark); font-weight: 700; cursor: pointer; }
.cfba-geo-map { position: relative; width: 100%; min-height: 360px; overflow: hidden; border: 1px solid var(--cfba-border); border-radius: 12px; background: #eef1f5; }
.cfba-geo-map-message { display: grid; min-height: 360px; place-items: center; padding: 24px; color: var(--cfba-muted); text-align: center; }
.cfba-geo-target-builder { display: grid; grid-template-columns: minmax(0,1fr) minmax(150px,220px) auto; gap: 12px; align-items: end; }
.cfba-geo-target-list { display: grid; gap: 9px; }
.cfba-geo-target-card { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 13px 14px; border: 1px solid var(--cfba-border); border-radius: 9px; background: #fff; }
.cfba-geo-target-card strong,
.cfba-geo-target-card small { display: block; }
.cfba-geo-target-card small { margin-top: 3px; color: var(--cfba-muted); }
.cfba-geo-target-card > div:last-child { display: flex; align-items: center; gap: 10px; }
.cfba-geo-target-card .button-link-delete { border: 0; background: transparent; color: var(--cfba-danger); cursor: pointer; }
.cfba-ad-location-section { margin-top: 8px; }

/* Profile */
.cfba-profile-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(300px,380px); gap: 22px; align-items: start; }
.cfba-profile-side { display: grid; gap: 0; }
.cfba-profile-avatar-row { display: flex; align-items: center; gap: 18px; margin-bottom: 22px; padding: 18px; border-radius: 10px; background: var(--cfba-page); }
.cfba-profile-avatar-row strong,
.cfba-profile-avatar-row span,
.cfba-profile-avatar-row small { display: block; }
.cfba-profile-avatar-row span,
.cfba-profile-avatar-row small { color: var(--cfba-muted); }
.cfba-profile-avatar { position: relative; flex: 0 0 auto; }
.cfba-profile-avatar > img { width: 92px; height: 92px; border: 4px solid #fff; border-radius: 50%; object-fit: cover; box-shadow: 0 4px 15px rgba(0,0,0,.12); }
.cfba-avatar-upload { position: absolute; right: -4px; bottom: -2px; display: grid; width: 34px; height: 34px; place-items: center; border: 2px solid #fff; border-radius: 50%; background: var(--cfba-primary); color: #111; cursor: pointer; }
.cfba-avatar-upload span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.cfba-avatar-upload::before { content: "+"; font-size: 21px; font-weight: 900; }
.cfba-avatar-upload input { display: none; }

@media (max-width: 1080px) {
  .cfba-auth-layout,
  .cfba-registration-layout { grid-template-columns: 1fr; width: min(calc(100% - 28px),780px); }
  .cfba-auth-brand-panel,
  .cfba-registration-intro { min-height: auto; padding: 38px; }
  .cfba-auth-card { align-self: stretch; }
}

@media (max-width: 1200px) {
  .cfba-auth-layout,
  .cfba-registration-layout { grid-template-columns: 1fr; }
  .cfba-auth-brand-panel { min-height: auto; padding: 38px; }
  .cfba-portal-shell { grid-template-columns: 225px minmax(0,1fr); }
  .cfba-summary-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .cfba-portal-grid.two-columns,
  .cfba-portal-grid.form-and-help,
  .cfba-portal-grid.form-and-list,
  .cfba-profile-grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .cfba-portal-shell { display: block; margin: 10px 0 30px; border-radius: 10px; }
  .cfba-portal-sidebar { border-right: 0; border-bottom: 1px solid var(--cfba-border); }
  .cfba-portal-user-card { max-width: 520px; }
  .cfba-portal-navigation { display: flex; padding: 0 12px 10px; overflow-x: auto; }
  .cfba-portal-navigation a { min-width: max-content; grid-template-columns: 22px auto; border: 0; border-bottom: 3px solid transparent; padding: 10px 12px; }
  .cfba-portal-navigation a.is-active { border-bottom-color: var(--cfba-primary); border-left: 0; }
  .cfba-portal-navigation a.is-primary { margin: 0; }
  .cfba-portal-main { padding: 20px 15px; }
  .cfba-portal-page-header,
  .cfba-panel-heading,
  .cfba-form-section-heading,
  .cfba-dashboard-note { align-items: flex-start; flex-direction: column; }
  .cfba-form-grid.three-columns,
  .cfba-geo-mode,
  .cfba-geo-target-builder { grid-template-columns: 1fr; }
  .cfba-geo-search-row { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .cfba-auth-layout { margin: 0 auto 25px; gap: 18px; }
  .cfba-auth-brand-panel,
  .cfba-auth-card { border-radius: 11px; }
  .cfba-auth-brand-panel { padding: 28px 22px; }
  .cfba-auth-brand-panel h1 { font-size: 36px; }
  .cfba-auth-role-summary,
  .cfba-role-explanation,
  .cfba-form-grid.two-columns,
  .cfba-account-type-selector,
  .cfba-summary-grid { grid-template-columns: 1fr; }
  .cfba-auth-card { padding: 24px 18px; }
  .cfba-form-line { align-items: flex-start; flex-direction: column; }
  .cfba-portal-panel,
  .cfba-form-section { padding: 18px 14px; }
  .cfba-portal-page-header h1 { font-size: 31px; }
  .cfba-summary-card { padding: 15px; }
  .cfba-profile-avatar-row,
  .cfba-geo-target-card { align-items: flex-start; flex-direction: column; }
  .cfba-geo-map,
  .cfba-geo-map-message { min-height: 300px; }
  .cfba-mode-floating_left,
  .cfba-mode-floating_right { display: none; }
}

/* Rebuilt dynamic country targeting */
.cfba-geo-country-builder {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 10px;
  align-items: center;
}
.cfba-geo-country-search,
.cfba-geo-country-search input,
.cfba-geo-country-input { width: 100%; min-width: 0; }
.cfba-geo-country-list { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; }
.cfba-geo-country-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px 8px 12px;
  border: 1px solid #ead49c;
  border-radius: 999px;
  background: #fff8e7;
  color: var(--cfba-dark);
  font-size: 13px;
  font-weight: 700;
}
.cfba-geo-country-chip button {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(51,51,51,.08);
  color: var(--cfba-dark);
  font: 700 17px/1 sans-serif;
  cursor: pointer;
}
.cfba-geo-country-chip button:hover,
.cfba-geo-country-chip button:focus { background: var(--cfba-dark); color: #fff; }

@media (max-width: 640px) {
  .cfba-geo-country-builder { grid-template-columns: 1fr; }
}

/* 0.6.0 unified interaction and workflow layouts */
.cfba-interaction-layout {
  display: grid;
  grid-template-columns: minmax(290px,.72fr) minmax(520px,1.28fr);
  gap: 24px;
  align-items: stretch;
  margin-bottom: 24px;
}
.cfba-interaction-layout-wide { grid-template-columns: minmax(320px,.62fr) minmax(620px,1.38fr); }
.cfba-interaction-layout-compact { width: min(100%,1080px); margin-inline: auto; }
.cfba-interaction-intro,
.cfba-interaction-card {
  box-sizing: border-box;
  min-width: 0;
  padding: clamp(24px,3vw,36px);
  border: 1px solid var(--cfba-border);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(25,35,48,.055);
}
.cfba-interaction-intro {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    radial-gradient(circle at 100% 0, rgba(252,175,1,.19), transparent 38%),
    linear-gradient(145deg,#fff 0%,#fffaf0 100%);
}
.cfba-interaction-intro h2,
.cfba-interaction-card h2 { margin: 0 0 12px; color: var(--cfba-dark); line-height: 1.18; }
.cfba-interaction-intro h2 { font-size: clamp(27px,2.5vw,38px); }
.cfba-interaction-card h2 { font-size: clamp(24px,2vw,31px); }
.cfba-interaction-intro > p,
.cfba-interaction-card > p { color: var(--cfba-muted); line-height: 1.65; }
.cfba-interaction-card-wide { width: 100%; }
.cfba-kpi-list { margin: 18px 0 0; padding-left: 22px; color: var(--cfba-text); }
.cfba-kpi-list li { margin: 0 0 12px; padding-left: 3px; line-height: 1.55; }
.cfba-local-notice { margin: 14px 0 0; }
.cfba-inline-form { display: inline-flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0; }
.cfba-button-small { min-height: 36px; padding: 8px 13px; border-radius: 7px; font-size: 13px; }
.cfba-form-grid.two { grid-template-columns: repeat(2,minmax(0,1fr)); }
.cfba-checkbox-line { display: flex; align-items: flex-start; gap: 9px; line-height: 1.5; }
.cfba-checkbox-line input { width: auto; min-height: auto; margin-top: 4px; }
.cfba-taxonomy-fieldset {
  min-width: 0;
  margin: 0;
  padding: 18px;
  border: 1px solid var(--cfba-border);
  border-radius: 10px;
  background: #fbfcfe;
}
.cfba-taxonomy-fieldset legend { padding: 0 7px; color: var(--cfba-dark); font-weight: 800; }
.cfba-taxonomy-fieldset > p { margin: 0 0 13px; color: var(--cfba-muted); font-size: 13px; }
.cfba-taxonomy-options { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px 14px; }
.cfba-taxonomy-options label { display: flex; align-items: flex-start; gap: 8px; min-width: 0; color: var(--cfba-text); line-height: 1.4; }
.cfba-taxonomy-options input { width: auto; min-height: auto; margin-top: 3px; }
.cfba-site-policy-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(330px,1fr)); gap: 18px; }
.cfba-site-policy-card { min-width: 0; padding: 22px; border: 1px solid var(--cfba-border); border-radius: 12px; background: #fff; }
.cfba-site-policy-card h3 { margin: 0 0 4px; color: var(--cfba-dark); }
.cfba-site-policy-card > p { margin: 0 0 18px; color: var(--cfba-muted); }
.cfba-placement-catalogue { display: grid; grid-template-columns: repeat(auto-fit,minmax(280px,1fr)); gap: 18px; }
.cfba-package-catalogue { display: block; }
.cfba-placement-card { min-width: 0; padding: 22px; border: 1px solid var(--cfba-border); border-radius: 12px; background: #fff; }
.cfba-placement-card h3 { margin: 0 0 7px; color: var(--cfba-dark); }
.cfba-placement-card p { color: var(--cfba-muted); }
.cfba-placement-card .cfba-status-badge { margin-top: 10px; }
.cfba-review-form { display: grid; min-width: 250px; gap: 8px; }
.cfba-review-form select,
.cfba-review-form textarea { width: 100%; }
.cfba-review-form textarea { min-height: 70px; }
.cfba-publisher-review-table { min-width: 1180px; }
.cfba-campaign-row td:first-child { min-width: 230px; }
.cfba-row-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 7px; }
.cfba-inline-summary { display: flex; flex-wrap: wrap; gap: 8px 14px; color: var(--cfba-muted); font-size: 13px; }
.cfba-kpi-list strong { color: var(--cfba-dark); }
.cfba-quick-links { display: grid; grid-template-columns: repeat(auto-fit,minmax(220px,1fr)); gap: 14px; }
.cfba-quick-links a { display: block; padding: 18px; border: 1px solid var(--cfba-border); border-radius: 10px; background: #fff; text-decoration: none !important; }
.cfba-quick-links strong,
.cfba-quick-links span { display: block; }
.cfba-quick-links span { margin-top: 5px; color: var(--cfba-muted); }

/* Keep the action response next to the interaction that produced it. */
.cfba-account-form > .cfba-notice:last-child,
.cfba-inline-form + .cfba-local-notice,
.cfba-review-form > .cfba-notice:last-child,
.cfba-payout-request-form + .cfba-notice { margin-top: 2px; }

@media (max-width: 1180px) {
  .cfba-interaction-layout,
  .cfba-interaction-layout-wide { grid-template-columns: 1fr; }
  .cfba-interaction-intro { min-height: auto; }
}

@media (max-width: 760px) {
  .cfba-form-grid.two,
  .cfba-taxonomy-options { grid-template-columns: 1fr; }
  .cfba-interaction-intro,
  .cfba-interaction-card { padding: 21px 17px; border-radius: 12px; }
  .cfba-site-policy-grid,
  .cfba-placement-catalogue { grid-template-columns: 1fr; }
}

.cfba-kpi-list > div { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--cfba-border); }
.cfba-kpi-list > div:last-child { border-bottom: 0; }
.cfba-kpi-list > div span { color: var(--cfba-muted); }
.cfba-kpi-list > div strong { color: var(--cfba-dark); font-size: 21px; text-align: right; }
.cfba-dashboard-note > a { display: inline-flex; min-height: 40px; align-items: center; justify-content: center; padding: 9px 15px; border-radius: 7px; background: var(--cfba-primary); color: #111 !important; font-weight: 800; text-decoration: none !important; white-space: nowrap; }
.cfba-site-policy-card > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.cfba-site-policy-card > header a { overflow-wrap: anywhere; }
