/*
Theme Name: BuildCost BD
Author: Raju Das Rudro
Description: BuildCost BD is a Bengali-first construction cost estimator, budget tracker and material-price application for Bangladesh.
Version: 1.7.2
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 8.0
Text Domain: buildcost-bd
Domain Path: /languages
Tags: custom-logo, custom-menu, featured-images, translation-ready, blog
*/

:root {
  --bc-teal-900: #075c5b;
  --bc-teal-800: #06706e;
  --bc-teal-700: #0a817e;
  --bc-teal-600: #15918d;
  --bc-teal-100: #eaf7f5;
  --bc-teal-50: #f4fbfa;
  --bc-ink: #172226;
  --bc-text: #48565a;
  --bc-muted: #718084;
  --bc-line: #dce5e6;
  --bc-soft-line: #edf1f2;
  --bc-bg: #ffffff;
  --bc-soft-bg: #fbfdfd;
  --bc-success: #208b47;
  --bc-danger: #c03a3a;
  --bc-radius-sm: 8px;
  --bc-radius: 12px;
  --bc-radius-lg: 16px;
  --bc-shadow-sm: 0 2px 12px rgba(21, 59, 61, .06);
  --bc-shadow: 0 10px 28px rgba(21, 59, 61, .09);
  --bc-container: 1320px;
  --bc-font-family: "Noto Sans Bengali", "Nirmala UI", "Vrinda", system-ui, sans-serif;
  --bc-font: var(--bc-font-family);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bc-bg);
  color: var(--bc-ink);
  font-family: var(--bc-font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }

.bc-container {
  width: min(calc(100% - 48px), var(--bc-container));
  margin-inline: auto;
}
.bc-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;
}
.bc-icon {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bc-btn {
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 10px 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  background: transparent;
  color: var(--bc-ink);
  font-weight: 700;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, border-color .18s ease;
}
.bc-btn:hover { transform: translateY(-1px); }
.bc-btn:focus-visible,
.bc-icon-btn:focus-visible,
.bc-menu-toggle:focus-visible,
.bc-faq__trigger:focus-visible,
.bc-card-action:focus-visible,
.bc-select-card:focus-visible {
  outline: 3px solid rgba(10, 129, 126, .22);
  outline-offset: 3px;
}
.bc-btn--primary {
  color: #fff;
  background: linear-gradient(135deg, var(--bc-teal-800), var(--bc-teal-600));
  box-shadow: 0 8px 18px rgba(6, 112, 110, .16);
}
.bc-btn--primary:hover { box-shadow: 0 11px 22px rgba(6, 112, 110, .22); }
.bc-btn--outline { color: var(--bc-teal-800); border-color: var(--bc-teal-700); background: #fff; }
.bc-btn--soft { color: var(--bc-teal-900); background: #fff; border-color: rgba(255,255,255,.65); }
.bc-btn--white-outline { color: #fff; border-color: rgba(255,255,255,.75); }

/* Header */
.bc-site-header {
  position: relative;
  z-index: 30;
  background: rgba(255,255,255,.98);
  border-bottom: 1px solid var(--bc-line);
}
.bc-header__inner {
  min-height: 92px;
  display: grid;
  grid-template-columns: 230px 1fr auto;
  align-items: center;
  gap: 28px;
}
.bc-brand { display: inline-flex; align-items: center; gap: 12px; min-width: 0; }
.bc-brand__mark { width: 52px; color: var(--bc-teal-800); display: grid; place-items: center; }
.bc-brand__mark .bc-icon { width: 52px; height: 52px; stroke-width: 1.6; }
.bc-brand__copy { min-width: 0; }
.bc-brand__name { display: block; font-size: 24px; line-height: 1.15; font-weight: 800; letter-spacing: -.02em; }
.bc-brand__tagline { display: block; margin-top: 3px; color: var(--bc-muted); font-size: 11px; white-space: nowrap; }
.bc-nav { justify-self: center; }
.bc-nav ul { display: flex; align-items: center; gap: 30px; padding: 0; margin: 0; list-style: none; }
.bc-nav a { position: relative; display: inline-flex; align-items: center; gap: 5px; font-size: 14px; font-weight: 700; color: #2e3b3f; padding: 34px 0; }
.bc-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 20px; height: 2px; border-radius: 2px; background: var(--bc-teal-700); transition: right .2s ease; }
.bc-nav a:hover, .bc-nav .current-menu-item > a { color: var(--bc-teal-800); }
.bc-nav a:hover::after, .bc-nav .current-menu-item > a::after { right: 0; }
.bc-menu__icon, .bc-menu__chevron { display: none; }
.bc-menu__label { min-width: 0; }
.bc-header__actions { display: flex; align-items: center; gap: 10px; }
.bc-icon-btn, .bc-menu-toggle {
  width: 44px;
  height: 44px;
  border: 1px solid var(--bc-line);
  border-radius: 9px;
  display: inline-grid;
  place-items: center;
  background: #fff;
  cursor: pointer;
  color: #263438;
}
.bc-icon-btn:hover, .bc-menu-toggle:hover { border-color: #bad1d2; background: var(--bc-teal-50); color: var(--bc-teal-800); }
.bc-login-link { min-height: 44px; padding: 9px 17px; border-radius: 9px; border: 1px solid var(--bc-line); color: var(--bc-teal-800); font-size: 14px; font-weight: 700; display: inline-flex; align-items: center; }
.bc-menu-toggle { display: none; }
.bc-header-search {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  padding: 12px 0 18px;
  background: #fff;
  border-bottom: 1px solid var(--bc-line);
  box-shadow: var(--bc-shadow-sm);
}
.bc-header-search.is-open { display: block; }
.bc-search-form { width: min(720px, 100%); margin-inline: auto; display: flex; gap: 10px; }
.bc-search-form input[type="search"] { flex: 1; min-width: 0; min-height: 46px; border: 1px solid #cfdadc; border-radius: 9px; padding: 10px 14px; outline: none; }
.bc-search-form input[type="search"]:focus { border-color: var(--bc-teal-700); box-shadow: 0 0 0 3px rgba(10,129,126,.12); }

/* Footer */
.bc-footer { background: #fff; border-top: 1px solid var(--bc-line); }
.bc-footer__grid { padding: 24px 0 20px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 50px; }
.bc-footer__title { margin: 0 0 8px; font-size: 14px; font-weight: 800; }
.bc-footer__links { list-style: none; padding: 0; margin: 0; }
.bc-footer__links li + li { margin-top: 2px; }
.bc-footer__links a { color: #59666a; font-size: 13px; }
.bc-footer__links a:hover { color: var(--bc-teal-800); }
.bc-footer-link-button { border: 0; padding: 0; background: transparent; color: #59666a; cursor: pointer; font-size: 13px; text-align: left; }
.bc-footer-link-button:hover { color: var(--bc-teal-800); }

.bc-footer__bottom { min-height: 56px; border-top: 1px solid var(--bc-soft-line); display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 30px; color: var(--bc-muted); font-size: 12px; }
.bc-footer__note { text-align: center; }
.bc-social { display: flex; gap: 8px; }
.bc-social button, .bc-social a { width: 30px; height: 30px; border: 0; border-radius: 6px; display: grid; place-items: center; background: #18282d; color: #fff; cursor: pointer; font-weight: 800; }

.bc-toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 100;
  width: min(380px, calc(100% - 48px));
  padding: 13px 16px;
  border-radius: 10px;
  background: #15272b;
  color: #fff;
  box-shadow: 0 16px 40px rgba(0,0,0,.18);
  font-size: 14px;
  transform: translateY(20px);
  opacity: 0;
  pointer-events: none;
  transition: .2s ease;
}
.bc-toast.is-visible { transform: translateY(0); opacity: 1; }

@media (max-width: 1180px) {
  .bc-header__inner { grid-template-columns: 200px 1fr auto; gap: 16px; }
  .bc-nav ul { gap: 18px; }
  .bc-nav a { font-size: 13px; }
  .bc-brand__name { font-size: 21px; }
}
@media (max-width: 980px) {
  .bc-container { width: min(calc(100% - 32px), var(--bc-container)); }
  .bc-header__inner { min-height: 76px; grid-template-columns: 1fr auto; }
  .bc-nav { display: none; grid-column: 1 / -1; width: 100%; justify-self: stretch; padding: 0 0 16px; }
  .bc-nav.is-open { display: block; }
  .bc-nav ul { display: grid; gap: 0; border: 1px solid var(--bc-line); border-radius: 10px; overflow: hidden; }
  .bc-nav li + li { border-top: 1px solid var(--bc-soft-line); }
  .bc-nav a { width: 100%; padding: 11px 14px; }
  .bc-nav a::after { display: none; }
  .bc-header__actions { justify-self: end; }
  .bc-menu-toggle { display: inline-grid; }
  .bc-footer__grid { grid-template-columns: repeat(2, 1fr); }
  .bc-footer__bottom { grid-template-columns: 1fr auto; }
  .bc-footer__note { grid-column: 1 / -1; grid-row: 2; text-align: left; }
}
@media (max-width: 560px) {
  .bc-container { width: min(calc(100% - 24px), var(--bc-container)); }
  .bc-brand__mark { width: 42px; }
  .bc-brand__mark .bc-icon { width: 42px; height: 42px; }
  .bc-brand__name { font-size: 18px; }
  .bc-brand__tagline { display: none; }
  .bc-header__actions { gap: 6px; }
  .bc-header__actions .bc-save-btn { display: none; }
  .bc-login-link { display: none; }
  .bc-icon-btn, .bc-menu-toggle { width: 40px; height: 40px; }
  .bc-search-form { padding: 0 12px; }
  .bc-footer__grid { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .bc-footer__bottom { grid-template-columns: 1fr; gap: 12px; padding: 16px 0; }
  .bc-footer__note { grid-column: auto; grid-row: auto; text-align: left; }
  .bc-social { justify-content: flex-start; }
}

/* Managed Testimonials (public shortcode page) */
.buildcost-testimonials{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin:24px 0}.buildcost-testimonial{border:1px solid var(--bc-line);border-radius:14px;padding:20px;background:#fff;box-shadow:var(--bc-shadow-sm)}.buildcost-testimonial h3{margin:0 0 8px}.buildcost-testimonial p{margin:7px 0}.buildcost-testimonial__rating{color:var(--bc-teal-800);font-weight:800}.buildcost-empty{padding:18px;border:1px dashed var(--bc-line);border-radius:12px;color:var(--bc-muted)}@media(max-width:900px){.buildcost-testimonials{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:560px){.buildcost-testimonials{grid-template-columns:1fr}}

/* BuildCost BD v1.2.1 — reusable account navigation + robust mobile drawer */
.bc-account,.bc-app-account,.bc-top-account{position:relative;display:inline-flex;align-items:center}.bc-account__toggle,.bc-app-account__toggle,.bc-top-account__toggle{border:0;background:transparent;color:inherit;font:inherit;display:inline-flex;align-items:center;gap:9px;min-height:42px;padding:4px 7px;border-radius:10px;cursor:pointer}.bc-account__toggle:hover,.bc-app-account__toggle:hover,.bc-top-account__toggle:hover,.bc-account__toggle:focus-visible,.bc-app-account__toggle:focus-visible,.bc-top-account__toggle:focus-visible{background:var(--bc-teal-50);outline:none}.bc-account__avatar,.bc-app-account__avatar,.bc-top-account__avatar{width:38px;height:38px;border-radius:50%;display:inline-grid;place-items:center;background:linear-gradient(135deg,var(--bc-teal-800),var(--bc-teal-600));color:#fff;font-size:12px;font-weight:800}.bc-account__name,.bc-app-account__name,.bc-top-account__name{max-width:130px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:700}.bc-account__dropdown,.bc-app-account__dropdown,.bc-top-account__dropdown{position:absolute;right:0;top:calc(100% + 8px);z-index:220;width:205px;padding:7px;background:#fff;border:1px solid var(--bc-line);border-radius:12px;box-shadow:0 18px 45px rgba(15,45,48,.14)}.bc-account__dropdown[hidden],.bc-app-account__dropdown[hidden],.bc-top-account__dropdown[hidden]{display:none!important}.bc-account__dropdown a,.bc-app-account__dropdown a,.bc-top-account__dropdown a{display:block;padding:10px 11px;border-radius:8px;color:#293b40;font-size:14px;font-weight:650}.bc-account__dropdown a:hover,.bc-app-account__dropdown a:hover,.bc-top-account__dropdown a:hover,.bc-account__dropdown a:focus-visible,.bc-app-account__dropdown a:focus-visible,.bc-top-account__dropdown a:focus-visible{background:#eef8f7;color:var(--bc-teal-800);outline:none}.bc-account__login,.bc-app-account__login,.bc-top-account__login{display:inline-flex;align-items:center;min-height:42px;padding:0 15px;border-radius:9px;border:1px solid #cdd8da;font-weight:750;color:#284045}.bc-mobile-nav__head,.bc-mobile-nav__account,.bc-menu-overlay{display:none}

@media(max-width:980px){
  body.bc-menu-open{overflow:hidden!important;touch-action:none}
  body.bc-menu-open .bc-site-header{z-index:1002}
  .bc-nav{display:block!important;position:fixed;z-index:1001;top:0;right:0;bottom:0;grid-column:auto;width:min(86vw,360px);max-width:360px;padding:0;background:#fff;box-shadow:-20px 0 50px rgba(13,39,42,.18);transform:translateX(105%);visibility:hidden;transition:transform .23s ease,visibility .23s ease;overflow-y:auto;overscroll-behavior:contain}
  .bc-nav.is-open{transform:translateX(0);visibility:visible}
  .bc-nav .bc-menu{display:grid;border:0;border-radius:0;padding:4px 14px 10px;overflow:visible}
  .bc-nav .bc-menu li+li{border-top:1px solid var(--bc-soft-line)}
  .bc-nav .bc-menu a{min-height:48px;padding:11px 9px;font-size:15px;display:flex;align-items:center;gap:10px;border-radius:9px}
  .bc-nav .bc-menu a:hover,.bc-nav .bc-menu a:focus-visible,.bc-nav .current-menu-item>a{background:#eef8f7;color:var(--bc-teal-800);outline:none}
  .bc-nav .bc-menu__icon{width:34px;height:34px;border-radius:9px;display:grid;place-items:center;background:#f4f8f8;color:#486166;flex:0 0 34px}
  .bc-nav .bc-menu__icon .bc-icon{width:20px;height:20px}
  .bc-nav .bc-menu__label{flex:1;overflow-wrap:anywhere}
  .bc-nav .bc-menu__chevron{display:grid;place-items:center;color:#829094;flex:0 0 auto}
  .bc-nav .bc-menu__chevron .bc-icon{width:16px;height:16px}
  .bc-nav .current-menu-item>a .bc-menu__icon{background:#dff3ef;color:var(--bc-teal-800)}
  .bc-mobile-nav__head{display:flex;align-items:center;justify-content:space-between;position:sticky;top:0;z-index:2;padding:16px 18px;border-bottom:1px solid var(--bc-line);background:#fff}
  .bc-mobile-nav__head strong{font-size:17px}.bc-mobile-nav__close{width:40px;height:40px;border:1px solid var(--bc-line);border-radius:10px;background:#fff;color:#26383c;font-size:28px;line-height:1;cursor:pointer}
  .bc-mobile-nav__account{display:grid;padding:12px 14px 24px;border-top:1px solid var(--bc-line);gap:2px}.bc-mobile-nav__account a{min-height:46px;padding:8px 9px;color:#31454a;font-weight:700;border-radius:9px;display:flex;align-items:center;gap:10px}.bc-mobile-nav__account a:hover,.bc-mobile-nav__account a:focus-visible{background:#f1f8f7;color:var(--bc-teal-800);outline:none}.bc-mobile-nav__account .bc-menu__icon{width:32px;height:32px;border-radius:8px;display:grid;place-items:center;background:#f4f8f8;color:#52696d;flex:0 0 32px}.bc-mobile-nav__account .bc-menu__icon .bc-icon{width:18px;height:18px}.bc-mobile-nav__account .bc-menu__label{flex:1}.bc-mobile-nav__account .bc-menu__chevron{display:grid;place-items:center;color:#8a979a}.bc-mobile-nav__account .bc-menu__chevron .bc-icon{width:15px;height:15px}
  .bc-menu-overlay{display:block;position:fixed;z-index:1000;inset:0;border:0;background:rgba(9,28,30,.16);opacity:0;visibility:hidden;pointer-events:none;transition:opacity .18s ease,visibility .18s ease}.bc-menu-overlay.is-open{opacity:1;visibility:visible;pointer-events:auto}.bc-menu-overlay[hidden]{display:none!important}
  .bc-account{display:none}
  body.admin-bar .bc-nav{top:32px}body.admin-bar .bc-menu-overlay{top:32px}
}
@media(max-width:782px){body.admin-bar .bc-nav{top:46px}body.admin-bar .bc-menu-overlay{top:46px}}
@media(max-width:560px){.bc-app-account__name,.bc-top-account__name{display:none}.bc-app-account__toggle,.bc-top-account__toggle{padding:2px}.bc-app-account__dropdown,.bc-top-account__dropdown{right:0;width:min(220px,calc(100vw - 28px))}}

/* v1.6.0 — authenticated Pro trusted-device security warning */
.bc-device-warning {
  position: relative;
  z-index: 90;
  border-bottom: 1px solid #e3a0a0;
  background: #fff3f3;
  color: #551e1e;
}
.bc-device-warning[hidden] { display: none !important; }
.bc-device-warning__inner {
  min-height: 68px;
  padding-top: 11px;
  padding-bottom: 11px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}
.bc-device-warning__icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e07b7b;
  background: #ffe5e5;
  color: #b42323;
  font-size: 18px;
}
.bc-device-warning__content strong { display: block; margin-bottom: 3px; color: #9f1f1f; font-size: 16px; }
.bc-device-warning__content p { margin: 0; line-height: 1.55; color: #683131; }
.bc-device-warning .bc-btn { white-space: nowrap; background: #fff; border-color: #c74848; color: #a32020; }
.bc-device-warning .bc-btn:hover { background: #fff7f7; }
@media (max-width: 720px) {
  .bc-device-warning__inner { grid-template-columns: auto 1fr; align-items: start; gap: 9px; padding-top: 9px; padding-bottom: 9px; }
  .bc-device-warning__icon { width: 32px; height: 32px; font-size: 16px; }
  .bc-device-warning__content strong { font-size: 14px; line-height: 1.35; }
  .bc-device-warning__content p { font-size: 12px; line-height: 1.5; }
  .bc-device-warning .bc-btn { grid-column: 1 / -1; width: 100%; min-height: 42px; justify-content: center; }
}

/* v1.5.0 shared calculation notices */
.bc-market-warning,.bc-estimate-disclaimer{display:flex;align-items:flex-start;gap:14px;margin:18px 0;padding:15px 17px;border-radius:12px;line-height:1.6;box-sizing:border-box}.bc-market-warning{background:#fff5f5;border:1px solid #e6a3a3;color:#572424}.bc-market-warning__icon{width:34px;height:34px;flex:0 0 34px;border:1px solid #d76262;border-radius:9px;display:grid;place-items:center;color:#ae2020;font-size:18px}.bc-market-warning strong{display:block;color:#a31c1c;font-size:16px;margin-bottom:3px}.bc-market-warning p,.bc-estimate-disclaimer p{margin:0}.bc-estimate-disclaimer{background:#f3f8ff;border:1px solid #b9d5f0;color:#294e70}.bc-estimate-disclaimer__icon{width:32px;height:32px;flex:0 0 32px;border-radius:50%;display:grid;place-items:center;background:#0b7594;color:#fff;font-weight:800}.bc-estimate-disclaimer strong{display:block;color:#145b79;font-size:16px;margin-bottom:3px}.bc-market-warning.is-compact,.bc-estimate-disclaimer.is-compact{padding:11px 13px;margin:12px 0;font-size:13px}.bc-market-warning.is-compact strong,.bc-estimate-disclaimer.is-compact strong{font-size:14px}.bc-market-warning.is-compact .bc-market-warning__icon,.bc-estimate-disclaimer.is-compact .bc-estimate-disclaimer__icon{width:28px;height:28px;flex-basis:28px}.bc-calculator-warnings{padding-bottom:28px}.bc-hero__warnings{grid-column:1/-1}.bc-market-range{color:#65767b;font-size:13px;margin:6px 0}
@media(max-width:520px){.bc-market-warning,.bc-estimate-disclaimer{gap:10px;padding:12px;font-size:13px}.bc-market-warning__icon,.bc-estimate-disclaimer__icon{width:28px;height:28px;flex-basis:28px}.bc-market-warning strong,.bc-estimate-disclaimer strong{font-size:14px}}

/* BuildCost BD v1.7.2 — permanent visible-brand fallback */

.buildcost-brand__text-fallback {
  display: none;
  align-items: center;
  min-height: 32px;
  color: #091d2f;
  font-size: 18px;
  font-weight: 850;
  letter-spacing: -.02em;
}
.buildcost-brand__text-fallback[hidden] { display: none !important; }
.buildcost-brand__text-fallback.is-visible { display: inline-flex; }
.bc-mobile-nav__brand {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 9px;
}
.bc-mobile-nav__brand a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: #153236;
  font-weight: 850;
}
.bc-mobile-nav__brand .buildcost-brand__logo {
  width: 30px;
  max-width: 30px;
  max-height: 30px;
}
.bc-mobile-nav__brand small {
  color: var(--bc-muted);
  font-size: 11px;
  font-weight: 700;
}

/* BuildCost BD approved site-wide brand identity */
.buildcost-brand {
  min-width: 0;
  text-decoration: none;
}
.buildcost-brand__picture {
  display: block;
  line-height: 0;
}
.buildcost-brand__logo {
  display: block;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
}
.buildcost-brand:focus-visible {
  outline: 3px solid rgba(4, 110, 103, .28);
  outline-offset: 5px;
  border-radius: 6px;
}
.buildcost-brand--header .buildcost-brand__logo {
  width: auto;
  max-width: 205px;
  max-height: 52px;
}
.bc-brand--app.buildcost-brand--header .buildcost-brand__logo {
  width: auto;
  max-width: 194px;
  max-height: 48px;
}
.buildcost-brand--footer .buildcost-brand__logo {
  width: auto;
  max-width: 146px;
  max-height: 34px;
}
.bc-footer__brandline {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.bc-footer__brandline > span {
  white-space: nowrap;
}

@media (max-width: 1180px) {
  .buildcost-brand--header .buildcost-brand__logo { width: auto; max-width: 178px; max-height: 46px; }
  .bc-brand--app.buildcost-brand--header .buildcost-brand__logo { width: auto; max-width: 174px; max-height: 44px; }
}
@media (max-width: 560px) {
  .buildcost-brand--header .buildcost-brand__logo,
  .bc-brand--app.buildcost-brand--header .buildcost-brand__logo {
    width: auto;
    max-width: 145px;
    max-height: 40px;
  }
  .bc-footer__brandline {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }
  .bc-footer__brandline > span { white-space: normal; }
  .buildcost-brand--footer .buildcost-brand__logo { width: auto; max-width: 138px; }
}
@media (max-width: 359px) {
  .buildcost-brand--header .buildcost-brand__logo,
  .bc-brand--app.buildcost-brand--header .buildcost-brand__logo {
    width: auto;
    max-width: 44px;
    height: auto;
    max-height: 40px;
  }
}

/* v1.7.2 - explicit trusted-device confirmation and secure-context state. */
.bc-device-confirm-overlay {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(9, 29, 47, .42);
}
.bc-device-confirm {
  width: min(520px, 100%);
  max-height: min(680px, calc(100vh - 40px));
  overflow: auto;
  padding: 26px;
  border: 1px solid rgba(4, 110, 103, .22);
  border-radius: 18px;
  background: #fff;
  color: #172e33;
  box-shadow: 0 24px 70px rgba(9, 29, 47, .22);
}
.bc-device-confirm__icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  border-radius: 14px;
  background: #edf8f7;
  font-size: 24px;
}
.bc-device-confirm h2 {
  margin: 0 0 10px;
  font-size: 24px;
  line-height: 1.35;
}
.bc-device-confirm p {
  margin: 0;
  color: #52686d;
  line-height: 1.7;
}
.bc-device-confirm__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.bc-device-dialog-open { overflow: hidden; }
@media (max-width: 480px) {
  .bc-device-confirm-overlay { padding: 12px; }
  .bc-device-confirm { padding: 20px; border-radius: 14px; }
  .bc-device-confirm h2 { font-size: 20px; }
  .bc-device-confirm__actions { display: grid; grid-template-columns: 1fr; }
  .bc-device-confirm__actions .bc-btn { width: 100%; min-height: 46px; }
}
