:root {
    color-scheme: light;
    --ink: #252525;
    --muted: #66615f;
    --line: #e3e0dd;
    --brand: #252525;
    --brand-dark: #111111;
    --yellow: #feb715;
    --yellow-hover: #e9a900;
    --paper: #fff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    font-size: 16px;
    font-synthesis: none;
    text-rendering: optimizeLegibility;
}
* { box-sizing: border-box; }
body { margin: 0; background: transparent; color: var(--ink); }
button, input, select { font: inherit; }
button, select, input { -webkit-tap-highlight-color: transparent; }
button, select { cursor: pointer; }
button:disabled, select:disabled { cursor: wait; }
button:focus-visible, a:focus-visible, select:focus-visible, input:focus-visible { outline: 3px solid var(--brand-dark); outline-offset: 3px; }
button { border: 0; }
button:disabled { opacity: .6; }
[hidden] { display: none !important; }
.calculator { width: min(1160px, 100%); padding: 0 40px; margin: 0 auto; }
.eyebrow { margin: 0; color: var(--brand); font-size: 11px; font-weight: 750; letter-spacing: .13em; text-transform: uppercase; }
.workspace { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 26px; align-items: start; padding-bottom: 42px; }
.shipment-form { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: 0 3px 14px #14354d03; }
.form-section { padding: 25px 28px; border-bottom: 1px solid #e9edef; }
.section-heading { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; }
.section-heading h2 { margin: 0; font-size: 15px; font-weight: 720; letter-spacing: -.1px; }
.step-number { display: inline-grid; place-content: center; width: 26px; height: 26px; border-radius: 50%; background: #fff0af; color: var(--brand); font-size: 10px; font-weight: 750; flex-shrink: 0; }
.section-caption { margin-left: auto; font-size: 11px; color: var(--muted); }
.traffic-fieldset { margin: 0 0 20px; padding: 0; border: 0; min-width: 0; }
.traffic-switch { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; background: #f0ede8; border-radius: 9px; gap: 4px; }
.traffic-switch label { position: relative; display: flex; min-width: 0; }
.traffic-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.traffic-switch span { display: flex; align-items: center; justify-content: center; text-align: center; padding: 12px 8px; width: 100%; border: 1px solid transparent; border-radius: 6px; font-size: 12px; line-height: 1.3; font-weight: 650; color: var(--muted); cursor: pointer; }
.traffic-switch input:checked + span { background: #fff2b3; border-color: #e5be20; color: var(--ink); box-shadow: 0 1px 3px #25252509; }
.traffic-switch input:focus-visible + span { outline: 3px solid var(--brand-dark); outline-offset: 2px; }
.fields-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 16px; }
.field { min-width: 0; }
.field.field-wide { grid-column: 1 / -1; }
.field > label { display: block; margin: 0 0 9px; font-size: 12px; font-weight: 650; }
.input-wrap { display: flex; align-items: stretch; position: relative; }
.field input, .field select { display: block; width: 100%; min-width: 0; min-height: 46px; border: 1px solid #d5cec8; border-radius: 7px; background: #fff; color: var(--ink); padding: 11px 13px; font-size: 14px; transition: border-color .15s, box-shadow .15s; }
.field input:hover, .field select:hover { border-color: #a89990; }
.field input:focus, .field select:focus { border-color: var(--brand); }
.field select { text-overflow: ellipsis; padding-right: 28px; }
.themed-select { position: relative; width: 100%; min-width: 0; }
.field select.themed-select-native {
    position: absolute; top: 0; left: 0; width: 1px; height: 1px; min-height: 0;
    padding: 0; border: 0; opacity: 0; overflow: hidden; clip: rect(0, 0, 0, 0);
    clip-path: inset(50%); white-space: nowrap; pointer-events: none;
}
.themed-select-button {
    display: flex; align-items: center; gap: 12px; width: 100%; min-width: 0;
    min-height: 46px; padding: 11px 13px; border: 1px solid #d5cec8; border-radius: 7px;
    background: #fff; color: var(--ink); text-align: left; font-size: 14px; line-height: normal;
    transition: border-color .15s, box-shadow .15s;
}
.themed-select-button:hover:not(:disabled) { border-color: #a89990; }
.themed-select-button:focus, .themed-select-button[aria-expanded="true"] { border-color: var(--brand); }
.themed-select-button[aria-invalid="true"] { border-color: #b44537; }
.themed-select-value { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.themed-select-arrow { width: 8px; height: 8px; margin: -4px 2px 0 0; border-right: 2px solid #756f6b; border-bottom: 2px solid #756f6b; transform: rotate(45deg); flex: 0 0 auto; }
.themed-select-button[aria-expanded="true"] .themed-select-arrow { transform: rotate(225deg); margin-top: 4px; }
.themed-select-menu {
    position: fixed; z-index: 1000; margin: 0; padding: 5px; overflow-y: auto; overscroll-behavior: contain;
    box-sizing: border-box; border: 1px solid #d5cec8; border-radius: 9px; background: #fff; color: var(--ink);
    box-shadow: 0 7px 24px #25252524; font: inherit; font-size: 14px; line-height: 1.4;
    scrollbar-color: #b7afa6 #f5f3ef; scrollbar-width: thin;
}
.themed-select-option { min-height: 40px; padding: 10px 12px; border-radius: 5px; cursor: pointer; overflow-wrap: anywhere; user-select: none; }
.themed-select-option[aria-selected="true"] { background: #fff1bc; font-weight: 650; }
.themed-select-option:not([aria-disabled="true"]):hover,
.themed-select-option[data-active="true"] { background: #fff2b3; color: var(--ink); box-shadow: inset 0 0 0 1px #e5be20; }
.themed-select-option[aria-disabled="true"] { color: var(--muted); background: #f5f3ef; cursor: not-allowed; }
@media (forced-colors: active) { .themed-select-option[data-active="true"] { outline: 2px solid Highlight; outline-offset: -2px; } }
.field input[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: #b44537; }
.field.has-unit input { padding-right: 48px; }
.input-unit { position: absolute; top: 0; right: 13px; height: 100%; display: flex; align-items: center; color: var(--muted); font-size: 12px; pointer-events: none; }
.field-hint { margin: 7px 0 0; font-size: 11px; line-height: 1.5; color: var(--muted); }
.field-error { margin: 7px 0 0; font-size: 12px; line-height: 1.45; color: #a83225; }
.flags-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.flag { display: flex; gap: 11px; align-items: start; font-size: 13px; line-height: 1.5; cursor: pointer; }
.flag input { width: 17px; height: 17px; margin: 1px 0 0; accent-color: var(--brand); flex-shrink: 0; }
.flag:has(input:disabled) { opacity: .55; cursor: default; }
.service-notice { padding: 12px; background: #fff8e7; border: 1px solid #f0dfb1; border-radius: 6px; color: #6c5526; font-size: 12px; line-height: 1.6; margin: 18px 0 0; }
.form-actions { padding: 23px 28px 17px; }
.calculate-button { display: flex; align-items: center; justify-content: space-between; gap: 20px; width: 100%; background: var(--yellow); color: var(--ink); padding: 16px 19px; min-height: 51px; border-radius: 8px; font-weight: 650; font-size: 14px; transition: background .15s, transform .15s; }
.calculate-button:hover:not(:disabled) { background: var(--yellow-hover); }
.calculate-button:active:not(:disabled) { transform: translateY(1px); }
.button-arrow { font-size: 22px; line-height: 1; color: var(--ink); font-weight: 400; }
.form-status { min-height: 15px; margin: 9px 0 0; font-size: 11px; color: var(--muted); text-align: center; line-height: 1.4; }
.result-panel { position: sticky; top: 0; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--yellow); border-radius: 12px; padding: 27px 25px 22px; min-width: 0; overflow: hidden; }
.result-topline { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.result-topline .eyebrow { font-size: 9px; letter-spacing: .11em; }
.currency-badge { border: 1px solid #dce4e9; padding: 4px 6px; color: var(--muted); border-radius: 4px; font-size: 10px; font-weight: 650; }
.result-panel h2 { margin: 11px 0 18px; font-size: 24px; font-weight: 700; letter-spacing: -.6px; }
.result-placeholder { text-align: center; padding: 24px 0 37px; color: var(--muted); }
.result-placeholder > p { font-size: 13px; line-height: 1.6; }
.result-placeholder .result-placeholder-hint { font-size: 12px; max-width: 235px; margin: 5px auto 0; color: #756f6b; }
.parcel-illustration { margin: 12px auto 27px; position: relative; width: 78px; height: 62px; border: 2px solid #cbd8e1; border-radius: 7px; background: #f3f6f8; transform: rotate(-6deg); }
.parcel-illustration::before { content: ""; position: absolute; width: 20px; height: 61px; background: #e1eaf0; border-left: 1px solid #cbd8e1; border-right: 1px solid #cbd8e1; top: -1px; left: 27px; }
.parcel-illustration::after { content: ""; position: absolute; width: 17px; height: 10px; background: var(--yellow); border-radius: 2px; left: 6px; bottom: 8px; }
.parcel-illustration span { position: absolute; right: -13px; top: -9px; width: 27px; height: 27px; background: var(--brand); border: 4px solid #fff; border-radius: 50%; }
.result-content { padding-top: 3px; font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.result-content > p { margin: 12px 0; }
.included-services { margin: 2px 0 15px; }
.included-services > p { color: var(--muted); font-size: 10px; margin: 0 0 8px; }
.service-chips { display: flex; flex-wrap: wrap; padding: 0; margin: 0; list-style: none; gap: 5px; }
.service-chips li { color: var(--brand); background: #fff1bc; border-radius: 4px; padding: 4px 7px; font-size: 10px; }
.result-table-wrap { overflow-x: auto; max-width: 100%; }
.result-table { width: 100%; border-collapse: collapse; margin: 5px 0 16px; font-size: 12px; font-variant-numeric: tabular-nums; }
.result-table td, .result-table th { padding: 11px 7px; border-bottom: 1px solid #e5eaed; vertical-align: top; text-align: left; font-weight: 400; }
.result-table th { color: var(--muted); font-size: inherit; text-transform: uppercase; font-weight: 750; letter-spacing: .03em; }
.result-table td:first-child, .result-table th:first-child { padding-left: 0; }
.result-table td:last-child, .result-table th:last-child { text-align: right; padding-right: 0; }
.result-table td:last-child:not(:first-child), .result-table th:last-child:not(:first-child), .result-summary { white-space: nowrap; overflow-wrap: normal; }
.result-table .total-row td, .result-table .total-row th { color: var(--brand); font-size: inherit; font-weight: 750; padding-top: 16px; padding-bottom: 16px; border-bottom: 0; }
.result-summary { color: var(--brand); font-size: 34px; font-weight: 750; letter-spacing: -1px; margin: 10px 0 22px; }
.result-summary small { font-size: 16px; margin-left: 5px; letter-spacing: 0; font-weight: 500; }
.mass-breakdown { margin: 0 0 18px; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 12px; }
.mass-breakdown h3 { margin: 0 0 9px; font-size: inherit; font-weight: 750; }
.mass-breakdown dl { margin: 0; }
.mass-breakdown dl > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; margin: 5px 0; }
.mass-breakdown dt, .mass-breakdown dd { margin: 0; }
.mass-breakdown dd, .mass-supplement span { white-space: nowrap; overflow-wrap: normal; font-variant-numeric: tabular-nums; }
.mass-selected { font-weight: 750; }
.mass-notice, .mass-supplement { margin: 9px 0 0; color: var(--muted); }
.result-note { margin: 21px 0 0; padding-top: 15px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); line-height: 1.6; }
.result-note h3 { margin: 0 0 6px; font-size: inherit; font-weight: 750; }
.result-note p { margin: 4px 0; }
.result-stale { padding: 11px 12px; margin: 15px 0 0; background: #fff7df; border: 1px solid #f0e1b8; border-radius: 6px; color: #6c5526; font-size: 12px; line-height: 1.5; }
.result-panel.is-stale .result-content { opacity: .55; }
.message { border-radius: 7px; font-size: 13px; line-height: 1.6; padding: 13px 15px; margin: 0 0 20px; overflow-wrap: anywhere; }
.message-error { color: #973b32; background: #fff2ef; border: 1px solid #efd2cc; }
.retry-button { color: inherit; background: transparent; border: 1px solid currentColor; border-radius: 4px; padding: 3px 8px; font-size: 12px; margin-top: 4px; }
.result-panel .message { margin: 15px 0 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media (min-width: 1100px) { .flags-grid { grid-template-columns: 1fr 1fr; gap: 14px; } }
@media (max-width: 790px) { .calculator { padding: 0 22px; } .workspace { grid-template-columns: minmax(0, 1fr); gap: 22px; } .result-panel { position: static; } .result-placeholder { padding-top: 7px; padding-bottom: 12px; } .result-panel h2 { font-size: 22px; } }
@media (max-width: 420px) { .calculator { padding: 0 15px; } .form-section { padding: 22px 18px; } .form-actions { padding: 22px 18px 15px; } .fields-grid { grid-template-columns: 1fr; gap: 17px; } .section-caption { font-size: 10px; } .section-heading h2 { font-size: 14px; } .result-panel { padding: 23px 19px 20px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }
