/* HWI Current Market v1.1.0 — the original calculator layout stays theme-owned.
   These styles only support the accuracy dialog and source disclosure shown after interaction. */
.hwi-market-modal[hidden]{display:none!important}
.hwi-market-modal{position:fixed;inset:0;z-index:99999;background:rgba(48,52,58,.48);display:grid;place-items:center;padding:20px}
.hwi-market-modal__card{width:min(560px,100%);max-height:calc(100vh - 40px);overflow:auto;background:#fff9f5;border:1px solid rgba(142,49,83,.18);border-radius:22px;padding:26px;box-shadow:0 24px 70px rgba(48,52,58,.22)}
.hwi-market-modal__eyebrow{margin:0 0 7px;font-size:12px;font-weight:800;letter-spacing:.14em;text-transform:uppercase;color:#8e3153}
.hwi-market-modal__card h3{margin:0 0 8px;color:#30343a;font-size:clamp(24px,4vw,34px);line-height:1.08}
.hwi-market-modal__card>p{margin:0 0 20px;color:#62666c;line-height:1.6}
.hwi-market-modal__field{margin:0 0 15px}
.hwi-market-modal__field label{display:block;margin:0 0 7px;font-weight:700;color:#30343a}
.hwi-market-modal__field input{width:100%;min-height:48px;border:1px solid #d9c8c4;border-radius:12px;background:#fff;padding:10px 13px;font:inherit;color:#30343a;box-sizing:border-box}
.hwi-market-modal__field input:focus{outline:2px solid rgba(142,49,83,.24);outline-offset:1px;border-color:#8e3153}
.hwi-market-modal__error{margin:8px 0 0!important;color:#9b2c2c!important;font-size:14px}
.hwi-market-modal__actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:20px}
.hwi-market-modal__actions .hwi-budget-button{margin:0}
.hwi-current-unavailable{font-weight:700;color:#6f7378}
.hwi-current-range{display:inline-block;margin-top:4px;font-size:.92em;color:#6c6f74}
.hwi-current-confidence{display:inline-block;margin-left:7px;padding:2px 7px;border-radius:999px;background:#f3e9e8;color:#8e3153;font-size:.72em;font-weight:800;text-transform:uppercase;letter-spacing:.05em}
.hwi-market-sources-inline{margin:18px 0 0;padding:14px 16px;border:1px solid rgba(120,150,173,.26);border-radius:14px;background:#fff}
.hwi-market-sources-inline summary{cursor:pointer;font-weight:800;color:#30343a}
.hwi-market-sources-inline p{margin:10px 0 6px;color:#666;line-height:1.5}
.hwi-market-sources-inline ul{margin:8px 0 0;padding-left:20px}
.hwi-market-sources-inline li{margin:6px 0}
.hwi-market-sources-inline a{overflow-wrap:anywhere}
@media(max-width:600px){.hwi-market-modal{padding:12px}.hwi-market-modal__card{padding:20px;border-radius:18px}.hwi-market-modal__actions{display:grid}.hwi-market-modal__actions .hwi-budget-button{width:100%}}


/* v1.2.0 — mobile choice-card containment fix.
   Loaded after the theme stylesheet so these rules win without changing the theme. */
.hwi-budget-calculator .hwi-budget-choice > span:last-child{
  min-width:0;
  max-width:100%;
  overflow:hidden;
}
.hwi-budget-calculator .hwi-budget-choice strong,
.hwi-budget-calculator .hwi-budget-choice small{
  max-width:100%;
  white-space:normal;
  word-break:normal;
  overflow-wrap:break-word;
}

@media (max-width:700px){
  .hwi-budget-calculator .hwi-budget-style-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:12px!important;
  }
  .hwi-budget-calculator .hwi-budget-choice{
    display:grid!important;
    grid-template-columns:30px minmax(0,1fr)!important;
    column-gap:8px!important;
    align-content:start!important;
    min-width:0!important;
    min-height:190px!important;
    padding:16px 12px!important;
    overflow:hidden!important;
  }
  .hwi-budget-calculator .hwi-budget-choice input{
    right:11px!important;
    top:11px!important;
    width:18px!important;
    height:18px!important;
  }
  .hwi-budget-calculator .hwi-budget-choice-mark{
    width:30px!important;
    min-width:30px!important;
    flex:0 0 30px!important;
    font-size:28px!important;
    line-height:1!important;
    margin-top:2px!important;
  }
  .hwi-budget-calculator .hwi-budget-choice > span:last-child{
    display:block!important;
    width:100%!important;
    min-width:0!important;
    padding-right:15px!important;
  }
  .hwi-budget-calculator .hwi-budget-choice strong{
    margin-top:34px!important;
    font-size:clamp(18px,5.2vw,23px)!important;
    line-height:1.08!important;
    letter-spacing:0!important;
    overflow-wrap:break-word!important;
  }
  .hwi-budget-calculator .hwi-budget-choice small{
    margin-top:8px!important;
    font-size:13px!important;
    line-height:1.45!important;
  }
  .hwi-budget-calculator .hwi-budget-form-error{
    overflow-wrap:anywhere;
  }
}

@media (max-width:390px){
  .hwi-budget-calculator .hwi-budget-choice{
    min-height:182px!important;
    padding:14px 10px!important;
    grid-template-columns:26px minmax(0,1fr)!important;
    column-gap:6px!important;
  }
  .hwi-budget-calculator .hwi-budget-choice-mark{
    width:26px!important;
    min-width:26px!important;
    font-size:24px!important;
  }
  .hwi-budget-calculator .hwi-budget-choice strong{
    font-size:18px!important;
  }
  .hwi-budget-calculator .hwi-budget-choice small{
    font-size:12px!important;
  }
}
