/* Annulment cost calculator — embeddable widget.
   Loaded ONLY by the pages that mount [data-vn-calc]; it is deliberately not part
   of styles.css, which every one of the ~15k pages downloads. All selectors are
   namespaced .vnc- so nothing here can reach the host page's own markup.
   The full tool at /tools/annulment-cost-calculator/ keeps its own page-scoped
   CSS (the build allows inline <style> under tools/ and nowhere else); this file
   is the compact form that rides inside commentaries and service pages. */

.vnc { margin: 1.8rem 0 2rem; }
.vnc *, .vnc *::before, .vnc *::after { box-sizing: border-box; }

.vnc-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 860px) { .vnc-grid { grid-template-columns: 1fr 1fr; align-items: start; } }

/* ---- input side ---- */
.vnc-panel { background: var(--white); border: 1px solid #E4DFD5; border-radius: var(--radius-lg); padding: 1.3rem 1.25rem; }
.vnc-panel .vnc-h { font-family: var(--serif); font-size: 19px; font-weight: 700; color: var(--teal); margin: 0 0 .3rem; }
.vnc-panel .vnc-sub { font-size: 12.5px; color: var(--gray-text); line-height: 1.6; margin: 0 0 1.1rem; }

.vnc-field { margin-bottom: 1.1rem; border: 0; padding: 0; margin-inline: 0; }
.vnc-field > legend, .vnc-field > .vnc-label { font-family: var(--sans); font-size: 13px; font-weight: 600; color: var(--gray-dark); display: block; padding: 0; margin-bottom: .1rem; }
.vnc-hint { font-size: 11.5px; color: var(--gray-text); margin: 2px 0 .6rem; line-height: 1.5; }

.vnc-select { width: 100%; font-family: var(--sans); font-size: 13.5px; color: var(--gray-dark); background: var(--off-white); border: 1px solid #DED8CC; border-radius: var(--radius-md); padding: 10px 12px; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235A6672' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; cursor: pointer; }
.vnc-select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201, 160, 50, .18); }

.vnc-pills { display: flex; flex-wrap: wrap; gap: 7px; }
.vnc-pill { position: relative; }
.vnc-pill input { position: absolute; opacity: 0; pointer-events: none; }
.vnc-pill label { display: inline-flex; align-items: center; font-size: 12.5px; color: var(--gray-dark); background: var(--off-white); border: 1px solid #DED8CC; border-radius: 999px; padding: 7px 14px; cursor: pointer; transition: border-color .15s, background .15s, color .15s; }
.vnc-pill label:hover { border-color: rgba(201, 160, 50, .6); }
.vnc-pill input:checked + label { background: var(--teal); border-color: var(--teal); color: #fff; }
.vnc-pill input:focus-visible + label { box-shadow: 0 0 0 3px rgba(201, 160, 50, .28); }

.vnc-check { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; background: var(--off-white); border: 1px solid #DED8CC; border-radius: var(--radius-md); margin-bottom: 8px; cursor: pointer; }
.vnc-check:hover { border-color: rgba(201, 160, 50, .6); }
.vnc-check input { margin-top: 2px; width: 16px; height: 16px; accent-color: var(--gold); cursor: pointer; flex-shrink: 0; }
.vnc-check span { font-size: 13px; color: var(--gray-dark); line-height: 1.45; }

/* ---- result side ---- */
.vnc-result { background: var(--teal); border-radius: var(--radius-lg); padding: 1.3rem 1.25rem; color: #fff; }
.vnc-eyebrow { font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-light); margin: 0 0 .5rem; }
.vnc-total-label { font-size: 12.5px; color: rgba(255, 255, 255, .75); margin: 0 0 .25rem; }
.vnc-total { font-family: var(--serif); font-size: clamp(25px, 4.4vw, 33px); font-weight: 700; color: #fff; line-height: 1.12; margin: 0; }
.vnc-total .vnc-dash { color: var(--gold-light); font-weight: 600; padding: 0 .18em; }
.vnc-note { font-size: 12px; color: rgba(255, 255, 255, .7); margin: .5rem 0 0; line-height: 1.5; }

.vnc-remedy { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); border-radius: var(--radius-md); padding: .85rem .95rem; margin: 1.1rem 0; }
.vnc-remedy .vnc-tag { font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-light); margin: 0 0 .3rem; }
.vnc-remedy h4 { font-family: var(--serif); font-size: 16.5px; font-weight: 700; color: #fff; margin: 0 0 .35rem; line-height: 1.3; }
.vnc-remedy p { font-size: 12.5px; color: rgba(255, 255, 255, .82); line-height: 1.6; margin: 0; }
.vnc-remedy a { color: var(--gold-light); text-decoration: underline; text-underline-offset: 2px; }

.vnc-break { list-style: none; margin: 1rem 0 0; padding: 0; border-top: 1px solid rgba(255, 255, 255, .14); }
.vnc-break li { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; padding: 9px 0; border-bottom: 1px solid rgba(255, 255, 255, .1); font-size: 12.5px; }
.vnc-break li .vnc-item { color: rgba(255, 255, 255, .9); }
.vnc-break li .vnc-item small { display: block; font-size: 11px; color: rgba(255, 255, 255, .55); margin-top: 1px; }
.vnc-break li .vnc-amt { color: #fff; white-space: nowrap; font-variant-numeric: tabular-nums; }
.vnc-break li.vnc-sum { border-bottom: 0; padding-top: 12px; font-weight: 600; }
.vnc-break li.vnc-sum .vnc-item, .vnc-break li.vnc-sum .vnc-amt { color: var(--gold-light); font-size: 13.5px; }

.vnc-meta { display: flex; gap: 9px; margin-top: 1rem; }
.vnc-meta > div { flex: 1; background: rgba(255, 255, 255, .07); border-radius: var(--radius-md); padding: .7rem .8rem; }
.vnc-meta .vnc-k { font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .6); margin-bottom: 3px; }
.vnc-meta .vnc-v { font-size: 13px; color: #fff; font-weight: 500; }

.vnc-flags { margin-top: 1rem; display: grid; gap: 7px; }
.vnc-flag { display: flex; gap: 8px; align-items: flex-start; font-size: 12px; line-height: 1.55; background: rgba(201, 160, 50, .14); border: 1px solid rgba(201, 160, 50, .3); border-radius: var(--radius-md); padding: .65rem .75rem; color: rgba(255, 255, 255, .9); }
.vnc-flag i { color: var(--gold-light); font-size: 15px; flex-shrink: 0; margin-top: 1px; }

.vnc-cta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 1.2rem; }
.vnc-cta a { flex: 1; min-width: 128px; text-align: center; font-size: 12.5px; font-weight: 500; padding: 10px 13px; border-radius: var(--radius-sm); text-decoration: none; }
.vnc-cta .vnc-primary { background: var(--gold); color: var(--navy); }
.vnc-cta .vnc-primary:hover { background: var(--gold-light); }
.vnc-cta .vnc-ghost { background: rgba(255, 255, 255, .1); color: #fff; border: 1px solid rgba(255, 255, 255, .25); }
.vnc-cta .vnc-ghost:hover { background: rgba(255, 255, 255, .16); }

.vnc-foot { font-size: 11.5px; color: var(--gray-text); line-height: 1.6; margin: .9rem 0 0; }
.vnc-foot a { color: var(--teal); font-weight: 500; }

/* Before the script runs (or if it never does) the mount point shows the fallback
   link its markup already carries, so a no-JS reader is never left with a hole. */
.vnc[data-vn-calc] > .vnc-fallback { font-size: 13.5px; color: var(--gray-text); line-height: 1.7; }
.vnc.vnc-ready > .vnc-fallback { display: none; }
