/* Intentionally minimal: typography, colors and outer layout inherit from Impreza. */
.brig-market-widget[hidden] { display: none !important; }
/* Designer-owned CSS is scoped to shortcodes, never native Impreza rows. */
.brig-market-shortcode {
  box-sizing:border-box; padding:var(--brig-widget-padding,28px);
  border-radius:var(--brig-widget-radius,12px); text-align:var(--brig-widget-align,left);
}
/* Dark and custom use saved variables; omitted variables leave the theme in control. */
.brig-market-shortcode.brig-market-preset-dark,
.brig-market-shortcode.brig-market-preset-custom {
  background:var(--brig-widget-bg,transparent); color:var(--brig-widget-text,inherit);
  border:1px solid var(--brig-widget-border,transparent);
}
.brig-market-shortcode.brig-market-preset-native {
  background:transparent; color:inherit; border:0;
  font-family:inherit;
}
.brig-market-shortcode:not(.brig-market-preset-native) .brig-market-kicker {
  color:var(--brig-widget-accent,inherit); font-size:.75rem;
  font-weight:700; letter-spacing:.085em; margin:0 0 1em; line-height:1.5;
}
.brig-market-shortcode:not(.brig-market-preset-native) .brig-market-title {
  color:inherit; font-size:clamp(1.45rem,2.25vw,2.25rem);
  font-weight:700; line-height:1.18; margin:0 0 .65em;
}
.brig-market-shortcode:not(.brig-market-preset-native) .brig-market-description {
  color:inherit; line-height:1.6; margin:0 0 1.45em; opacity:.92;
}
.brig-market-shortcode.brig-market-preset-native .brig-market-title { color:inherit; }
.brig-market-shortcode.brig-market-preset-native .brig-market-kicker,
.brig-market-shortcode.brig-market-preset-native .brig-market-description { color:inherit; }
.brig-market-shortcode:not(.brig-market-preset-native) .brig-market-button {
  display:inline-block; border:0; background:var(--brig-widget-accent,transparent);
  color:var(--brig-widget-button-text,inherit); padding:.9em 1.5em;
  border-radius:4px; font-size:.95rem; font-weight:700; line-height:1.35;
  text-decoration:none; transition:opacity .18s;
}
.brig-market-shortcode:not(.brig-market-preset-native) .brig-market-button:hover {
  color:var(--brig-widget-button-text,inherit); opacity:.86;
}
.brig-market-shortcode .brig-market-inline-flag {
  display:inline-block!important; width:var(--brig-widget-flag-size,28px);
  height:auto; max-width:none; vertical-align:middle; margin:0 .3em;
  border-radius:2px; object-fit:contain;
}
.brig-market-shortcode .brig-market-select-label {
  display:block; margin-top:1.4em; font-size:.8rem; color:inherit; opacity:.9;
}
.brig-market-shortcode .brig-market-select {
  display:block; width:min(100%,330px); margin-top:.35em;
  color:#17232e; background:#fff;
}
.brig-market-shortcode .brig-market-kicker[hidden],
.brig-market-shortcode .brig-market-select-label[hidden] { display:none!important; }
@media (max-width:600px) { .brig-market-shortcode { padding:min(var(--brig-widget-padding,28px),24px); } }
.brig-market-button[aria-disabled="true"] { pointer-events:none; opacity:.5; }

/* Administrator-only diagnostic overlay. Never included in public visitor UI. */
.brig-market-debug { position: fixed; z-index: 999999; right: 18px; bottom: 18px; width: min(380px, calc(100vw - 36px)); color: #182334; background: #fff; border: 1px solid #aab3c0; box-shadow: 0 12px 35px rgba(0,0,0,.25); padding: 16px; border-radius: 8px; font: 13px/1.45 system-ui,sans-serif; }
.brig-market-debug[hidden],.brig-market-debug-launch[hidden] { display: none!important; }
.brig-market-debug-header { font-weight: 800; letter-spacing: .06em; margin-bottom: 12px; }
.brig-market-debug-controls { display:flex; gap:8px; align-items:center; margin-bottom:12px; }
.brig-market-debug-controls input { width:64px; text-transform:uppercase; color:#182334; background:#fff; padding:7px; border:1px solid #aaa; }
.brig-market-debug-controls button,.brig-market-debug-launch { cursor:pointer; background:#1b2838; color:white; border:0; border-radius:4px; padding:8px 10px; }
.brig-market-debug-status { overflow-wrap:anywhere; }
.brig-market-debug-launch { position:fixed; z-index:999999; bottom:18px; right:18px; font:13px system-ui,sans-serif; }

.brig-market-debug-refresh { cursor:pointer; margin-top:10px; background:#eff2f6; color:#182334; border:1px solid #b5becc; padding:7px 10px; border-radius:4px; }
.brig-market-debug-status { white-space:pre-line; margin-bottom:10px; }

/* v0.4: only the state-specific native Impreza rows are controlled by BMC.
   The contents remain fully styled by the theme. */
.brig-market-only-distributor:not(.brig-market-force-show),
.brig-market-only-no-distributor:not(.brig-market-force-show),
.brig-market-only-unknown:not(.brig-market-force-show) { }
.brig-market-only-distributor[hidden],
.brig-market-only-no-distributor[hidden],
.brig-market-only-unknown[hidden] { display: none !important; }
/* Prevent an incorrect market-specific row appearing before the REST response. */
body:not(.wp-admin) .brig-market-only-distributor:not([data-brig-resolved]),
body:not(.wp-admin) .brig-market-only-no-distributor:not([data-brig-resolved]),
body:not(.wp-admin) .brig-market-only-unknown:not([data-brig-resolved]) { display: none !important; }

/* v0.5.3: Both fallback CTAs share the same button appearance.
   In Native Impreza mode both links use identical w-btn/us-btn-style_1 classes;
   in BRIG Dark/Custom mode both use the same scoped button CSS. */
.brig-market-shortcode:not(.brig-market-preset-native) .brig-market-secondary-button {
  display:inline-block; border:0; background:var(--brig-widget-accent,transparent);
  color:var(--brig-widget-button-text,inherit); padding:.9em 1.5em;
  border-radius:4px; font-size:.95rem; font-weight:700; line-height:1.35;
  text-decoration:none; transition:opacity .18s;
}
.brig-market-shortcode:not(.brig-market-preset-native) .brig-market-secondary-button:hover {
  color:var(--brig-widget-button-text,inherit); opacity:.86;
}
.brig-market-shortcode .brig-market-secondary-button { margin-left:12px; vertical-align:middle; }
.brig-market-shortcode .brig-market-secondary-button[hidden] { display:none!important; }
.brig-market-shortcode .brig-market-secondary-button[aria-disabled="true"] { pointer-events:none; opacity:.5; }
@media (max-width:600px) { .brig-market-shortcode .brig-market-secondary-button { margin:10px 0 0; } }
