/* The other calculators share the leaflet shell and component dimensions. */
body.calculator-page .hero-gradient { min-height:0; padding-top:64px; padding-bottom:40px; }
#calculatorContent.calculator-unified { padding-top:40px; padding-bottom:40px; }
#calculatorContent .calculator-advanced-toolbar { display:flex; justify-content:flex-end; margin-bottom:24px; }
#calculatorContent .calculator-advanced-toolbar button { padding:10px 20px; border:1px solid rgba(255,255,255,.1); border-radius:999px; color:#c4b5fd; background:rgba(255,255,255,.05); font-size:14px; }
#calculatorContent .calculator-advanced-toolbar button:hover { background:rgba(255,255,255,.1); }
#calculatorContent .calculator-advanced-hidden, #calculatorContent [hidden] { display:none!important; }
#calculatorContent .category-params, #calculatorContent .category-params .space-y-6 { min-width:0; }
#calculatorContent :is(.calculator-paper-grid,.leaflet-paper-grid,#bookletPaperChoices) { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }
#calculatorContent :is(.calculator-paper-choice,.leaflet-paper-choice,[data-booklet-density]) { min-width:0; min-height:62px; padding:12px; border:1px solid rgba(255,255,255,.13); border-radius:13px; background:rgba(255,255,255,.035); color:#e5e7eb; text-align:center; cursor:pointer; font-size:13px; }
#calculatorContent :is(.calculator-paper-choice,.leaflet-paper-choice,[data-booklet-density]) strong { display:block; font-size:19px; font-weight:750; }
#calculatorContent :is(.calculator-paper-choice,.leaflet-paper-choice,[data-booklet-density]) strong span { font-size:12px; font-weight:500; }
#calculatorContent :is(.calculator-paper-choice,.leaflet-paper-choice,[data-booklet-density]) small { display:block; margin-top:4px; color:#9ca3af; font-size:11px; font-weight:400; }
#calculatorContent :is(.calculator-paper-choice,.leaflet-paper-choice,[data-booklet-density]):hover { border-color:rgba(196,181,253,.6); background:rgba(139,92,246,.075); }
#calculatorContent :is(.calculator-paper-choice,.leaflet-paper-choice,[data-booklet-density])[aria-pressed=true] { border-color:#a78bfa; background:rgba(139,92,246,.16); color:white; box-shadow:inset 0 0 0 1px #a78bfa; }
#calculatorContent :is(.calculator-paper-choice,.leaflet-paper-choice,[data-booklet-density]):disabled { border-color:rgba(156,163,175,.22); background:rgba(255,255,255,.025); color:#85858f; cursor:not-allowed; opacity:1; box-shadow:none; }
#calculatorContent :is(.calculator-paper-choice,.leaflet-paper-choice,[data-booklet-density]):disabled small { color:#85858f; }
#calculatorContent :is(.calculator-paper-surfaces,#bookletSurface) { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; margin-top:15px; }
#calculatorContent :is(.calculator-paper-surfaces,#bookletSurface) button { min-height:46px; font-size:13px; font-weight:600; text-align:center; }
#calculatorContent :is(.calculator-paper-current,.booklet-ux-note,.leaflet-paper-note) { margin-top:10px; color:#9ca3af; font-size:12px; line-height:1.65; }
#calculatorContent .calculator-paper-current { color:#d1d5db; }
#calculatorContent .calculator-parameter-guide { padding:0; margin-top:14px; border:0; border-radius:0; background:none; }
#calculatorContent .calculator-parameter-guide :is(p,.calculator-parameter-hint) { margin-top:10px; color:#9ca3af; font-size:12px; line-height:1.65; }
#calculatorContent .calculator-quantity-card { display:block; width:100%; padding:24px; border:1px solid rgba(255,255,255,.1); border-radius:16px; background:linear-gradient(to bottom right,rgba(255,255,255,.05),transparent); font-size:14px; font-weight:600; }
#calculatorContent .calculator-quantity-label { margin-top:0; font-size:14px; font-weight:600; }
#calculatorContent .calculator-quantity-card input { margin-top:12px; font-size:18px; font-weight:600; }
#calculatorContent .calculator-processing-details > summary { padding:0; font-size:14px; font-weight:600; cursor:pointer; color:#fff; }
#calculatorContent .calculator-processing-body { display:grid; gap:20px; margin-top:20px; }
#calculatorContent .calculator-processing-field { margin:0; padding:0; border:0; border-radius:0; background:none; box-shadow:none; }
#calculatorContent .calculator-processing-field > label:first-child { font-size:14px; font-weight:600; color:#fff; }
#calculatorContent :is(.calculator-speed-ux,.brochure-speed-panel,#bookletSpeedDetails) { padding:0; margin-top:24px; border:1px solid rgba(255,255,255,.1); border-radius:16px; background:rgba(255,255,255,.05); }
#calculatorContent :is(.calculator-speed-ux,.brochure-speed-panel,#bookletSpeedDetails) > summary { padding:16px; color:#fff; font-size:16px; font-weight:600; cursor:pointer; }
#calculatorContent :is(.calculator-speed-body,.brochure-speed-options,#bookletSpeedOptions) { padding:0 16px 16px; }
#calculatorContent [id$=FamilySpeed] { display:block; width:100%; min-height:58px; padding:16px; margin-top:24px; border:1px solid rgba(255,255,255,.1); border-radius:16px; background:rgba(255,255,255,.05); color:#fff; font-size:16px; font-weight:600; text-align:left; }
#calculatorContent [id$=FamilySpeed]::before { content:'▸'; display:inline-block; margin-right:8px; }
#calculatorContent :is(.calculator-shared-details,#booklets-params details:not(#bookletSpeedDetails):not(.calculator-processing-details)) { margin-top:14px; border:1px solid rgba(255,255,255,.1); border-radius:13px; background:rgba(255,255,255,.025); }
#calculatorContent :is(.calculator-shared-details,#booklets-params details:not(#bookletSpeedDetails):not(.calculator-processing-details)) > summary { padding:13px 14px; color:#c4b5fd; font-size:13px; font-weight:600; }
#calculatorContent .calculator-shared-details > label, #calculatorContent .calculator-shared-details > p { margin:12px 14px; }
#calculatorContent :is(.booklet-ux-offer,.calendar-offer-card) { display:block; width:100%; padding:16px; border:1px solid rgba(255,255,255,.1); border-radius:12px; background:rgba(255,255,255,.05); color:white; text-align:left; }
#calculatorContent :is(.offer,.booklet-ux-offer,.calendar-offer-card)[aria-pressed=true], #calculatorContent .offer.selected { border:2px solid #8b5cf6; background:rgba(139,92,246,.1); }
#calculatorContent .offer.near { border-color:rgba(245,158,11,.34); border-style:dashed; background:rgba(245,158,11,.045); }
#calculatorContent :is(.booklet-ux-badge,.calendar-offer-card .calculator-offer-badge,.brochure-offer-badge) { display:inline-block; margin-bottom:10px; padding:4px 10px; border:1px solid rgba(255,255,255,.18); border-radius:999px; background:none; color:#d1d5db; font-size:12px; font-weight:650; }
#calculatorContent .offer-badge-recommended, #calculatorContent .calculator-offer-badge.recommended { border-color:rgba(167,139,250,.4); background:rgba(139,92,246,.16); color:#ddd6fe; }
#calculatorContent .brochure-print-offers { padding:0; border:0; background:none; }
#calculatorContent :is(.brochure-print-offers,.offers) > h3, #calculatorContent #calendarOfferComparison > h4 { margin-bottom:14px; font-size:24px; font-weight:700; }
#calculatorContent .offer .secondary, #calculatorContent .offer .primary { margin-top:12px; }
#calculatorContent :is(.calculator-request,.brochure-request-button,.calendar-request-button,#bookletRequestCalculation) { width:100%; padding:16px 24px; border:1px solid #a78bfa; border-radius:999px; background:none; color:#ddd6fe; font-size:14px; text-align:center; }
#calculatorContent button:focus-visible, #calculatorContent summary:focus-visible { outline:3px solid #c4b5fd; outline-offset:3px; }
#calculatorContent .secondary, #calculatorContent .booklet-ux-row button { min-height:42px; padding:9px 15px; border:1px solid rgba(139,92,246,.6); border-radius:999px; background:rgba(139,92,246,.08); color:#ddd6fe; font-size:13px; font-weight:600; }
#calculatorContent .calculator-ux-actions, #calculatorContent .booklet-ux-row { gap:10px; margin-top:14px; }
#calculatorContent .text-button { padding:9px 0; background:none; color:#c4b5fd; font-size:13px; }
body.calculator-page :is(.calculator-dialog,.calculator-near-dialog,#bookletNearDialog) { position:fixed; inset:0; width:min(560px,calc(100vw - 28px)); max-width:560px; max-height:90vh; margin:auto; padding:0; overflow:auto; border:1px solid rgba(255,255,255,.13); border-radius:22px; background:#16161b; color:white; box-shadow:0 35px 110px rgba(0,0,0,.65); }
body.calculator-page :is(.calculator-dialog,.calculator-near-dialog,#bookletNearDialog)::backdrop { background:rgba(3,3,5,.78); backdrop-filter:blur(8px); }
body.calculator-page :is(.calculator-dialog,.calculator-near-dialog,#bookletNearDialog) .dialog-body { padding:27px; }
body.calculator-page :is(.calculator-dialog,.calculator-near-dialog,#bookletNearDialog) h2 { margin:0 0 18px; font-size:24px; font-weight:700; }
body.calculator-page :is(.calculator-dialog,.calculator-near-dialog,#bookletNearDialog) .diff { display:grid; grid-template-columns:1fr auto 1fr; gap:12px; align-items:center; margin:20px 0; }
body.calculator-page :is(.calculator-dialog,.calculator-near-dialog,#bookletNearDialog) .diff-box { min-width:0; padding:14px; border-radius:12px; background:rgba(255,255,255,.045); overflow-wrap:anywhere; }
body.calculator-page :is(.calculator-dialog,.calculator-near-dialog,#bookletNearDialog) small { display:block; color:#9ca3af; margin-bottom:4px; }
body.calculator-page :is(.calculator-dialog,.calculator-near-dialog,#bookletNearDialog) .dialog-actions { display:flex; justify-content:flex-end; gap:10px; margin-top:22px; }
body.calculator-page :is(.calculator-dialog,.calculator-near-dialog,#bookletNearDialog) :is(.primary,.secondary,.ghost) { min-height:46px; padding:11px 16px; border-radius:999px; border:1px solid rgba(255,255,255,.15); background:rgba(255,255,255,.05); color:#ddd6fe; font-weight:600; }
body.calculator-page :is(.calculator-dialog,.calculator-near-dialog,#bookletNearDialog) .primary { border-color:transparent; background:linear-gradient(100deg,#8b5cf6,#ec4899); color:white; }
@media(max-width:640px) {
 body.calculator-page .hero-gradient { padding-top:40px; padding-bottom:28px; }
 #calculatorContent .offer-top { flex-direction:column; }
 #calculatorContent .category-params { width:100%; }
 body.calculator-page :is(.calculator-dialog,.calculator-near-dialog,#bookletNearDialog) .dialog-actions { flex-direction:column-reverse; }
 body.calculator-page :is(.calculator-dialog,.calculator-near-dialog,#bookletNearDialog) .dialog-actions button { width:100%; }
}
@media(max-width:420px) {
 #calculatorContent :is(.calculator-paper-grid,.leaflet-paper-grid,#bookletPaperChoices) { grid-template-columns:repeat(2,minmax(0,1fr)); }
 body.calculator-page :is(.calculator-dialog,.calculator-near-dialog,#bookletNearDialog) .diff { grid-template-columns:1fr; }
 body.calculator-page :is(.calculator-dialog,.calculator-near-dialog,#bookletNearDialog) .dialog-body { padding:22px; }
 #calculatorContent .leaflet-guide-actions button { flex:1 1 100%; }
}
#calculatorContent .offer-title { font-size:17px; font-weight:700; line-height:1.4; }
#calculatorContent :is(span.offer-meta,span.offer-note) { display:block; }
#calculatorContent #bookletSurface { display:block; margin-top:15px; }
#calculatorContent #bookletSurface > .leaflet-surface-options { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
#calculatorContent .leaflet-paper-surface { margin-top:15px; }
#calculatorContent .leaflet-paper-surface .calculator-paper-surfaces { margin-top:0; }
#calculatorContent .calculator-request { margin-top:24px; }
#calculatorContent .calculator-results { margin-top:24px; }
#calculatorContent .calculator-results > .result-head { margin-bottom:16px; }
#calculatorContent .calculator-results:has(> .hidden) > .result-head { display:none; }
#calculatorContent :is(.brochure-print-offers,#calendarOfferComparison) > :is(h3,h4) { display:none; }
body.calculator-page :is(.calculator-dialog,.calculator-near-dialog,#bookletNearDialog) .offer-top { display:flex; justify-content:space-between; align-items:start; gap:12px; }
body.calculator-page :is(.calculator-dialog,.calculator-near-dialog,#bookletNearDialog) .offer-title { font-size:17px; font-weight:700; }
body.calculator-page :is(.calculator-dialog,.calculator-near-dialog,#bookletNearDialog) .offer-price { font-size:20px; font-weight:800; white-space:nowrap; }
body.calculator-page :is(.calculator-dialog,.calculator-near-dialog,#bookletNearDialog) .offer-meta { margin-top:6px; color:#9ca3af; font-size:13px; }
body.calculator-page :is(.calculator-dialog,.calculator-near-dialog,#bookletNearDialog) .offer-difference { margin-top:10px; color:#c4b5fd; font-size:13px; }
@media(max-width:640px) { body.calculator-page :is(.calculator-dialog,.calculator-near-dialog,#bookletNearDialog) .offer-top { flex-direction:column; } }
#calculatorContent #calendars-params > .space-y-6 > .grid { grid-template-columns:minmax(0,1fr); gap:24px; }
#calculatorContent #calendars-params .p-5.rounded-2xl { padding:24px; border-radius:16px; background:linear-gradient(to bottom right,rgba(255,255,255,.05),transparent); }
#calculatorContent .calculator-print-choices { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
#calculatorContent .calculator-print-choice { min-width:0; min-height:58px; padding:16px; border:2px solid rgba(255,255,255,.1); border-radius:12px; background:rgba(255,255,255,.05); color:white; text-align:center; font-size:14px; font-weight:600; line-height:1.4; }
#calculatorContent .calculator-print-choice[aria-pressed=true] { border-color:#8b5cf6; background:rgba(139,92,246,.1); }
#calculatorContent .calculator-print-choice:disabled { color:#85858f; border-color:rgba(156,163,175,.22); cursor:not-allowed; }
#calculatorContent :is(#brochurePrintOffers,#brochureRingOffer) { padding:0; border:0; background:none; }
