/* Move-in cost calculator (/tools/move-in-cost-calculator): styles not covered by site.css. */

/* One person: colour dot / name / rent share % / remove. The share column shows in "Custom %" mode only. */
.mc-person { display: grid; grid-template-columns: 12px minmax(0, 1fr) 84px 36px; gap: 8px; align-items: center; }
[data-movein]:not([data-shares="pct"]) .mc-person { grid-template-columns: 12px minmax(0, 1fr) 36px; }
[data-movein]:not([data-shares="pct"]) .mc-share { display: none; }
.mc-dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; vertical-align: middle; }

/* With one person there is nothing to split: hide split controls, the shares switch and the per-person table. */
[data-movein][data-solo] .mc-split, [data-movein][data-solo] .mc-solo-hide { display: none; }

/* One upfront cost: toggle + amount on the first line, options (refundable, who pays) below when ticked. */
.mc-item { display: flex; flex-direction: column; gap: 10px; padding: 14px 0; border-bottom: 1px dashed #e5ddd2; }
.mc-item:first-child { padding-top: 0; }
[data-items] .mc-item:last-child { border-bottom: 0; }
[data-custom-list]:not(:empty) { border-top: 1px dashed #e5ddd2; padding-top: 14px; }
[data-custom-list] .mc-item:first-child { padding-top: 0; }
[data-custom-list] .mc-item:last-child { border-bottom: 0; padding-bottom: 0; }
.mc-head { display: grid; grid-template-columns: minmax(0, 1fr) clamp(92px, 34%, 140px); gap: 10px; align-items: center; }
.mc-opts { display: flex; flex-direction: column; gap: 10px; padding-left: 34px; }
.mc-item:not(.is-on) .mc-opts { display: none; }
.mc-item:not(.is-on) .mc-head .nk-input, .mc-item:not(.is-on) .mc-amt { opacity: 0.45; }
[data-custom] .mc-opts { padding-left: 0; }

/* Item name with a checkbox and a one-line hint. */
.mc-toggle { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; min-width: 0; }
.mc-toggle input, .mc-check input { flex: none; width: 22px; height: 22px; margin: 0; accent-color: #8b5e3c; cursor: pointer; }
.mc-toggle input:focus-visible, .mc-check input:focus-visible, .mc-select:focus-visible { outline: 2px solid #8b5e3c; outline-offset: 2px; }
.mc-toggle span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mc-toggle strong { font-size: 16px; font-weight: 600; color: #2e2018; line-height: 1.35; }
.mc-toggle small { font-size: 13px; line-height: 1.45; color: #7a6a5c; }

/* Amount worked out from the rent (first / last month). */
.mc-amt { display: block; text-align: right; font-size: 17px; font-weight: 700; color: #2e2018; font-variant-numeric: tabular-nums; padding-right: 14px; overflow-wrap: anywhere; }

.mc-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.mc-check { display: inline-flex; gap: 10px; align-items: center; cursor: pointer; font-size: 14px; color: #3b302b; }
.mc-note { margin: 0; font-size: 13px; line-height: 1.5; color: #7a6a5c; font-variant-numeric: tabular-nums; }
.mc-note[hidden], .mc-days[hidden] { display: none; }

/* "Who pays" select. */
.mc-split { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: #7a6a5c; min-width: 0; }
.mc-select { min-width: 0; max-width: 200px; height: 38px; padding: 0 30px 0 12px; border: 1.5px solid #ddd5c8; border-radius: 999px; background: #fffdf9 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%238b5e3c' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 12px center; appearance: none; -webkit-appearance: none; font-family: inherit; font-size: 14px; font-weight: 500; color: #2e2018; cursor: pointer; text-overflow: ellipsis; }

/* "Pay for [16] of [30] days" */
.mc-days { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; color: #3b302b; }
.mc-num { width: 64px; height: 40px; text-align: center; padding: 0 6px; font-size: 16px; }

/* Smaller segmented control: months of rent / amount. */
.mc-seg-sm { align-self: flex-start; }
.mc-seg-sm span { min-height: 30px; padding: 0 12px; font-size: 13px; }

/* Result tiles: refundable / not refundable. */
.mc-tile { background: #f7f1e8; border-radius: 18px; padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.mc-tile p { margin: 0; }
.mc-tile-label { font-size: 14px; color: #7a6a5c; }
.mc-tile-num { font-weight: 800; letter-spacing: -0.03em; color: #2e2018; font-size: clamp(24px, 3.4vw, 32px); line-height: 1.1; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.mc-tile-note { font-size: 13px; color: #7a6a5c; }

/* Breakdown tables: item name with its split underneath. */
.mc-break td:first-child { min-width: 150px; }
.mc-break td small { display: block; font-size: 12px; color: #9a8570; }
.mc-tag { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: #e5e6dc; color: #5f7a56; font-size: 11px; font-weight: 600; letter-spacing: 0.04em; vertical-align: 1px; }

@media (max-width: 480px) {
    .mc-opts { padding-left: 0; }
    .mc-person .nk-input { padding: 0 10px; font-size: 16px; }
}
