/* MWP Board Foot Calculator v1.0.3 — scoped to .mwp-bfc-* */
.mwp-bfc-stage {
  --mwp-bfc-navy: #2B3245;
  --mwp-bfc-navy-deep: #1B2434;
  --mwp-bfc-gold: #C9A961;
  --mwp-bfc-gold-hover: #B08D3E;
  --mwp-bfc-sand: #F4F2ED;
  --mwp-bfc-text: #3C4043;
  box-sizing: border-box;
  font-family: Carlito, "Century Gothic", sans-serif;
  color: var(--mwp-bfc-text);
  background-color: #2a241c;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  position: relative;
  z-index: 20;
  isolation: isolate;
  overflow: hidden;
  transform: translateZ(0);
}

.mwp-bfc-stage *,
.mwp-bfc-stage *::before,
.mwp-bfc-stage *::after {
  box-sizing: border-box;
}

.mwp-bfc-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-color: #2a241c;
  background-size: cover;
  background-position: 82% center;
  background-repeat: no-repeat;
}

.mwp-bfc-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(27, 36, 52, 0.12), rgba(244, 242, 237, 0.08));
}


.mwp-bfc-card {
  position: relative;
  z-index: 2;
  width: min(640px, 100%);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(27, 36, 52, 0.45);
  background: rgba(244, 242, 237, 0.92);
}

.mwp-bfc-stage .mwp-bfc-header {
  background: var(--mwp-bfc-navy) !important;
  color: #ffffff !important;
  padding: 1.1rem 1.5rem;
}

.mwp-bfc-stage .mwp-bfc-title,
.mwp-bfc-stage h2.mwp-bfc-title {
  margin: 0 !important;
  font-size: 1.55rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em;
  text-align: center;
  color: #ffffff !important;
  font-family: inherit !important;
  line-height: 1.2;
}

.mwp-bfc-rule {
  width: 48px;
  height: 2px;
  background: var(--mwp-bfc-gold);
  margin: 0.45rem auto 0.4rem;
}

.mwp-bfc-stage .mwp-bfc-by,
.mwp-bfc-stage p.mwp-bfc-by {
  margin: 0 !important;
  text-align: center;
  font-size: 0.72rem !important;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.95;
  color: #ffffff !important;
  font-family: Carlito, "Century Gothic", sans-serif !important;
  font-weight: 400 !important;
}
.mwp-bfc-stage .mwp-bfc-by-script {
  font-family: "Great Vibes", cursive !important;
  font-size: 1.35rem !important;
  font-weight: 400 !important;
  letter-spacing: 0.02em !important;
  text-transform: none !important;
  color: #ffffff !important;
  margin-right: 0.35em;
  vertical-align: baseline;
  line-height: 1;
  display: inline-block;
}

.mwp-bfc-body {
  padding: 1.25rem 1.5rem 1rem;
}

.mwp-bfc-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  margin-bottom: 1.15rem;
}

.mwp-bfc-tab {
  border: 1.5px solid var(--mwp-bfc-navy);
  background: #fff;
  color: var(--mwp-bfc-navy);
  border-radius: 999px;
  padding: 0.65rem 0.75rem;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  line-height: 1.25;
}

.mwp-bfc-tab:hover,
.mwp-bfc-tab:focus-visible {
  outline: 2px solid var(--mwp-bfc-gold);
  outline-offset: 2px;
}

.mwp-bfc-tab.is-active {
  background: var(--mwp-bfc-gold);
  border-color: var(--mwp-bfc-gold);
  color: var(--mwp-bfc-navy-deep);
}

.mwp-bfc-stage .mwp-bfc-label {
  display: block !important;
  font-size: 0.85rem !important;
  font-weight: 700 !important;
  color: var(--mwp-bfc-navy) !important;
  margin: 0.85rem 0 0.35rem !important;
  text-align: left !important;
}

.mwp-bfc-input-row {
  display: flex;
  align-items: center;
  background: #fff;
  border: 1.5px solid #c8c5bd;
  border-radius: 10px;
  padding: 0.55rem 0.75rem;
}

.mwp-bfc-custom-wrap {
  margin-top: 0.5rem;
}

.mwp-bfc-custom-wrap[hidden] {
  display: none !important;
}

.mwp-bfc-stage .mwp-bfc-input {
  border: 0 !important;
  outline: 0 !important;
  flex: 1;
  font-family: inherit !important;
  font-size: 1.45rem !important;
  font-weight: 400 !important;
  color: var(--mwp-bfc-navy) !important;
  background: transparent !important;
  width: 100%;
  min-width: 0;
  box-shadow: none !important;
  margin: 0 !important;
  padding: 0.1rem 0 !important;
  line-height: 1.2 !important;
  appearance: textfield;
  -moz-appearance: textfield;
}

.mwp-bfc-input::-webkit-outer-spin-button,
.mwp-bfc-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.mwp-bfc-input:focus {
  outline: none;
}

.mwp-bfc-unit {
  color: #8a8680;
  font-size: 0.9rem;
  margin-left: 0.5rem;
  flex-shrink: 0;
}

.mwp-bfc-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.mwp-bfc-chip {
  border: 1.5px solid #c8c5bd;
  background: #fff;
  color: var(--mwp-bfc-navy);
  border-radius: 999px;
  padding: 0.4rem 0.62rem;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  line-height: 1.2;
}

.mwp-bfc-chip:hover,
.mwp-bfc-chip:focus-visible {
  outline: 2px solid var(--mwp-bfc-gold);
  outline-offset: 1px;
}

.mwp-bfc-chip.is-active {
  background: var(--mwp-bfc-gold);
  border-color: var(--mwp-bfc-gold);
}

.mwp-bfc-result {
  margin-top: 1.15rem;
  border: 1.5px solid var(--mwp-bfc-gold);
  border-radius: 12px;
  background: rgba(201, 169, 97, 0.12);
  padding: 0.9rem 1rem;
  display: flex;
  gap: 0.9rem;
  align-items: center;
}

.mwp-bfc-stage .mwp-bfc-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
  padding: 0 !important;
  mix-blend-mode: multiply;
}

.mwp-bfc-stage .mwp-bfc-bf-out {
  display: block !important;
  font-size: 1.45rem !important;
  color: var(--mwp-bfc-navy) !important;
  font-weight: 700 !important;
  line-height: 1.2;
}

.mwp-bfc-math {
  margin-top: 0.15rem;
  font-size: 0.82rem;
  color: #5c5954;
}

.mwp-bfc-note {
  margin: 0.75rem 0 0;
  font-size: 0.78rem;
  font-style: italic;
  color: #5c5954;
  line-height: 1.35;
}

.mwp-bfc-stage .mwp-bfc-footer {
  background: var(--mwp-bfc-navy-deep) !important;
  color: #ffffff !important;
  padding: 1.1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.mwp-bfc-stage .mwp-bfc-cta-copy,
.mwp-bfc-stage p.mwp-bfc-cta-copy {
  margin: 0 !important;
  font-size: 0.88rem !important;
  line-height: 1.35;
  max-width: 58%;
  opacity: 1;
  color: #ffffff !important;
}

.mwp-bfc-cta {
  background: var(--mwp-bfc-gold);
  color: var(--mwp-bfc-navy-deep) !important;
  text-decoration: none !important;
  font-weight: 700;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  font-size: 0.9rem;
  white-space: nowrap;
  flex-shrink: 0;
  display: inline-block;
  transition: background 0.15s ease;
}

.mwp-bfc-cta:hover,
.mwp-bfc-cta:focus-visible {
  background: var(--mwp-bfc-gold-hover);
  color: var(--mwp-bfc-navy-deep) !important;
}

.mwp-bfc-panel {
  display: none;
}

.mwp-bfc-panel.is-on {
  display: block;
}

.mwp-bfc-panel[hidden] {
  display: none !important;
}

.mwp-bfc-stage .screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

@media (max-width: 480px) {
  .mwp-bfc-stage {
    padding: 1rem 0.5rem;
  }

  .mwp-bfc-tabs {
    grid-template-columns: 1fr;
  }

  .mwp-bfc-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .mwp-bfc-cta-copy {
    max-width: 100%;
  }
}
