/* K-BRIDGE Safe Rate V6: focused interaction, readability and mobile improvements.
   No edits to site widths, common header/footer, or calculation logic. */
body.page-safe-rate.kb-reference-ui #calculator .kfr-criteria > .kfr-condition {margin-top:0!important;align-self:start;min-width:0}
body.page-safe-rate.kb-reference-ui #calculator .kfr-criteria > .kfr-condition .label{min-height:23px;margin-bottom:8px!important;display:flex;align-items:center;gap:5px;font-size:13px!important}
body.page-safe-rate.kb-reference-ui #calculator .kfr-criteria .kfr-condition-state{font-size:11px!important;line-height:1.4;color:#256da8!important;white-space:nowrap;letter-spacing:0}
body.page-safe-rate.kb-reference-ui #calculator .kfr-criteria .kfr-mandatory{color:#c54f61!important}
body.page-safe-rate.kb-reference-ui #calculator .kfr-criteria .kfr-mandatory.ok{color:#09816d!important}
body.page-safe-rate.kb-reference-ui #calculator .kfr-required-star{color:#d45f71;font-weight:900;font-size:15px}
body.page-safe-rate.kb-reference-ui #calculator .kfr-field-help{font-size:11px!important;line-height:1.55;color:#a04a59;display:block;padding:5px 1px 0}
body.page-safe-rate.kb-reference-ui #calculator #portSelect[aria-invalid=true]{border-color:#dd6f7d!important;box-shadow:0 0 0 3px rgba(221,111,125,.13)!important}
/* Reconcile the old generic 42px input style with purpose-specific small controls. */
body.page-safe-rate.kb-reference-ui #calculator .kbr-reference-surcharge .kbr-info{display:inline-flex!important;align-items:center!important;justify-content:center!important;width:16px!important;height:16px!important;min-width:16px!important;min-height:16px!important;border:1px solid #bac8d6!important;border-radius:50%!important;font-size:10px!important;line-height:1!important;padding:0!important;color:#53677b!important;background:#fff!important}
body.page-safe-rate.kb-reference-ui #calculator .kbr-combine-head{gap:10px!important;padding-bottom:12px!important}
body.page-safe-rate.kb-reference-ui #calculator .kbr-combine-copy{gap:7px!important;font-size:14px!important;flex-wrap:wrap!important;line-height:1.45}
body.page-safe-rate.kb-reference-ui #calculator .kbr-switch{display:inline-flex!important;flex:0 0 auto}
body.page-safe-rate.kb-reference-ui #calculator .kbr-switch span{width:37px!important;height:21px!important;min-width:37px!important;min-height:21px!important;border-radius:50px!important}
body.page-safe-rate.kb-reference-ui #calculator .kbr-switch span:after{width:15px!important;height:15px!important;top:3px!important;left:3px!important}
body.page-safe-rate.kb-reference-ui #calculator .kbr-switch input:checked+span:after{transform:translateX(16px)!important}
body.page-safe-rate.kb-reference-ui #calculator .kbr-switch input:focus-visible+span{outline:2px solid #2178cf;outline-offset:3px}
body.page-safe-rate.kb-reference-ui #calculator .kbr-reference-surcharge .kbr-check-item input[type=checkbox],body.page-safe-rate.kb-reference-ui #calculator .kbr-reference-surcharge .kbr-percent-item input[type=checkbox],body.page-safe-rate.kb-reference-ui #calculator .kbr-reference-surcharge .kbr-other-fees input[type=checkbox]{width:15px!important;height:15px!important;min-width:15px!important;min-height:15px!important;padding:0!important;margin:2px 0 0!important;flex-shrink:0!important;accent-color:#277ee3!important}
body.page-safe-rate.kb-reference-ui #calculator .kbr-reference-surcharge .kbr-flexi-radio input[type=radio]{width:15px!important;height:15px!important;min-height:15px!important;min-width:15px!important;padding:0!important;margin:0!important;accent-color:#277ee3!important;border-radius:50%!important}
body.page-safe-rate.kb-reference-ui #calculator .kbr-reference-surcharge .kbr-flexi-radio label{font-size:12px!important;line-height:1.4;gap:6px!important;white-space:normal}
body.page-safe-rate.kb-reference-ui #calculator .kbr-reference-surcharge .kbr-flexi-radio{margin-left:23px!important;gap:11px!important;flex-wrap:wrap!important}
body.page-safe-rate.kb-reference-ui #calculator .kbr-reference-surcharge .kbr-check-item{font-size:12.5px!important;line-height:1.55!important;gap:8px!important;min-height:30px}
body.page-safe-rate.kb-reference-ui #calculator .kbr-reference-surcharge .kbr-check-item small{font-size:11.5px!important}
body.page-safe-rate.kb-reference-ui #calculator .kbr-reference-surcharge .kbr-three-columns h3,body.page-safe-rate.kb-reference-ui #calculator .kbr-reference-surcharge .kbr-other-fees h3{font-size:13px!important;color:#5e7893!important}
body.page-safe-rate.kb-reference-ui #calculator .kbr-reference-surcharge .kbr-percent-item>label{font-size:12px!important;white-space:normal!important;line-height:1.35}
body.page-safe-rate.kb-reference-ui #calculator .kbr-reference-surcharge .kbr-percent-control input[type=number]{width:47px!important;min-width:47px!important;height:34px!important;min-height:34px!important;font-size:12.5px!important}
body.page-safe-rate.kb-reference-ui #calculator .kbr-reference-surcharge .kbr-apply{height:34px!important;min-height:34px!important;font-size:11.5px!important}
body.page-safe-rate.kb-reference-ui #calculator .kbr-reference-surcharge .kbr-percent-control>span{font-size:12px!important}
body.page-safe-rate.kb-reference-ui #calculator .kbr-reference-surcharge .kbr-cargo-col select{font-size:12.5px!important;height:42px!important;min-height:42px!important}
body.page-safe-rate.kb-reference-ui #calculator .kbr-reference-surcharge .kbr-other-grid label{font-size:12.5px!important;line-height:1.45!important}
body.page-safe-rate.kb-reference-ui #calculator .kbr-reference-surcharge .kbr-surcharge-caption{font-size:11.5px!important;line-height:1.65!important}
body.page-safe-rate.kb-reference-ui #calculator .kbr-reference-surcharge .kbr-combine-note{font-size:11.5px!important;line-height:1.65!important}
body.page-safe-rate.kb-reference-ui #calculator .kbr-reference-surcharge .kbr-section-subtitle{font-size:15px!important}
body.page-safe-rate.kb-reference-ui #calculator .kbr-reference-surcharge .kbr-section-subtitle span{font-size:11px!important}
body.page-safe-rate.kb-reference-ui #calculator .kb-section-title p,body.page-safe-rate.kb-reference-ui #calculator .kfr-address-card .muted{font-size:12.5px!important}
body.page-safe-rate.kb-reference-ui #calculator .kfr-method-header{font-size:13px!important}
body.page-safe-rate.kb-reference-ui #calculator .kfr-condition select,body.page-safe-rate.kb-reference-ui #calculator .kfr-address-card select{font-size:13px!important}
body.page-safe-rate.kb-reference-ui #calculator .kfr-step-note{font-size:11.5px!important}
body.page-safe-rate.kb-reference-ui #calculator .kfr-btn{font-size:13px!important}
body.page-safe-rate.kb-reference-ui #calculator .kfr-btn-reference{text-decoration:none!important;color:#376485!important;background:#f1f8ff!important;border-color:#cfe3f6!important}
body.page-safe-rate.kb-reference-ui #calculator .kfr-btn-reference:hover{background:#e3f2ff!important}
body.page-safe-rate.kb-reference-ui #calculator .kfr-rate-table th{font-size:12.5px!important}
body.page-safe-rate.kb-reference-ui #calculator .kfr-rate-table td{font-size:13px!important}
body.page-safe-rate.kb-reference-ui #calculator .kfr-rate-table .kfr-price-cell .v{font-size:18px!important}
body.page-safe-rate.kb-reference-ui #calculator .kfr-guide .guideList li{font-size:12.5px!important}
@media(min-width:851px){body.page-safe-rate.kb-reference-ui #calculator .kbr-reference-surcharge .kbr-three-columns{column-gap:12px!important}body.page-safe-rate.kb-reference-ui #calculator .kbr-reference-surcharge .kbr-surcharge-col:not(:first-child),body.page-safe-rate.kb-reference-ui #calculator .kbr-reference-surcharge .kbr-drive-col{padding-left:12px!important}body.page-safe-rate.kb-reference-ui #calculator .kbr-reference-surcharge .kbr-percent-item{flex-wrap:wrap;row-gap:5px}}
@media(max-width:850px){body.page-safe-rate.kb-reference-ui #calculator .kbr-reference-surcharge .kbr-three-columns .kbr-surcharge-col:not(:first-child),body.page-safe-rate.kb-reference-ui #calculator .kbr-reference-surcharge .kbr-three-columns .kbr-drive-col{border-top:1px solid #e3eaf2!important}body.page-safe-rate.kb-reference-ui #calculator .kbr-reference-surcharge .kbr-percent-item{flex-wrap:wrap;row-gap:6px}body.page-safe-rate.kb-reference-ui #calculator .kbr-reference-surcharge .kbr-percent-control{margin-left:22px}}
@media(max-width:600px){body.page-safe-rate.kb-reference-ui #calculator > .kb-safe-form-card{padding:16px 13px!important}body.page-safe-rate.kb-reference-ui #calculator .kfr-criteria{gap:12px!important}body.page-safe-rate.kb-reference-ui #calculator .kfr-criteria .kfr-condition{margin:0!important}body.page-safe-rate.kb-reference-ui #calculator .kfr-criteria .kfr-condition .label{font-size:14px!important}body.page-safe-rate.kb-reference-ui #calculator .kfr-condition select{height:46px!important;min-height:46px!important;font-size:14px!important}body.page-safe-rate.kb-reference-ui #calculator .kfr-address-method{padding:12px!important}body.page-safe-rate.kb-reference-ui #calculator .kfr-address-method .md\:grid-cols-3{grid-template-columns:1fr!important}body.page-safe-rate.kb-reference-ui #calculator .kfr-address-method .md\:grid-cols-3>div:first-child{grid-column:auto!important}body.page-safe-rate.kb-reference-ui #calculator .kfr-actions{flex-direction:column;align-items:stretch!important}body.page-safe-rate.kb-reference-ui #calculator .kfr-actions .kfr-btn{width:100%;min-width:0!important;min-height:46px!important;font-size:14px!important}body.page-safe-rate.kb-reference-ui #calculator .kfr-actions #kfrLookup{order:-1}body.page-safe-rate.kb-reference-ui #calculator .kfr-result-area{padding:15px 12px!important}body.page-safe-rate.kb-reference-ui #calculator .kfr-reference-surcharge .kbr-other-grid{grid-template-columns:1fr!important}body.page-safe-rate.kb-reference-ui #calculator .kbr-reference-surcharge{padding:15px 12px!important}body.page-safe-rate.kb-reference-ui #calculator .kbr-percent-item>label{min-width:0}body.page-safe-rate.kb-reference-ui #calculator .kbr-percent-control{margin-left:0!important}body.page-safe-rate.kb-reference-ui #calculator .kbr-combine-copy{font-size:13px!important}body.page-safe-rate.kb-reference-ui #calculator .kfr-section-label{flex-wrap:wrap}}

/* Keep small selection glyphs independent of legacy native-input transforms. */
body.page-safe-rate.kb-reference-ui #calculator .kbr-reference-surcharge input.surcharge-check[type=checkbox],body.page-safe-rate.kb-reference-ui #calculator .kbr-reference-surcharge .kbr-flexi-radio input[type=radio]{transform:none!important;box-shadow:none!important}
@media(max-width:600px){body.page-safe-rate.kb-reference-ui #calculator .kbr-reference-surcharge .kbr-check-item,body.page-safe-rate.kb-reference-ui #calculator .kbr-reference-surcharge .kbr-percent-item>label,body.page-safe-rate.kb-reference-ui #calculator .kbr-reference-surcharge .kbr-other-grid label{font-size:13.5px!important;line-height:1.55!important}body.page-safe-rate.kb-reference-ui #calculator .kbr-reference-surcharge .kbr-percent-control input[type=number]{font-size:13.5px!important}body.page-safe-rate.kb-reference-ui #calculator .kbr-reference-surcharge .kbr-cargo-col select{font-size:13.5px!important}body.page-safe-rate.kb-reference-ui #calculator .kfr-result-area .rhead{font-size:14px!important}}


/* V7 refinements: result unit visibility, cleaner downloads area, improved mobile */
body.page-safe-rate.kb-reference-ui #calculator .kfr-result-area .rhead{gap:12px!important;align-items:center!important;flex-wrap:wrap!important}
body.page-safe-rate.kb-reference-ui #calculator .kfr-result-unit{display:inline-flex!important;align-items:center!important;justify-content:center!important;min-width:104px!important;padding:6px 12px!important;border-radius:999px!important;background:#eef4ff!important;border:1px solid #cfe0ff!important;color:#3d628d!important;font-size:11.5px!important;font-weight:800!important;white-space:nowrap!important;line-height:1.2!important;flex:0 0 auto!important}
body.page-safe-rate.kb-reference-ui #calculator .kfr-downloads{padding:18px!important}
body.page-safe-rate.kb-reference-ui #calculator .kfr-downloads-head strong{display:block;font-size:16px;line-height:1.4;color:#213a5a}
body.page-safe-rate.kb-reference-ui #calculator .kfr-downloads-head p{margin:6px 0 0;color:#6f8198;font-size:12.5px;line-height:1.7}
body.page-safe-rate.kb-reference-ui #calculator .kfr-download-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:14px}
body.page-safe-rate.kb-reference-ui #calculator .kfr-download-card-item{border:1px solid #dce7f3;background:#fff;border-radius:14px;padding:16px 15px}
body.page-safe-rate.kb-reference-ui #calculator .kfr-download-card-item--alt{background:#f8fbff}
body.page-safe-rate.kb-reference-ui #calculator .kfr-download-card-title{font-size:14px;font-weight:850;color:#1c3554}
body.page-safe-rate.kb-reference-ui #calculator .kfr-download-card-item p{margin:6px 0 0;color:#718399;font-size:12px;line-height:1.65}
body.page-safe-rate.kb-reference-ui #calculator .kfr-download-links{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
body.page-safe-rate.kb-reference-ui #calculator .kfr-download-links .btn{display:inline-flex;align-items:center;justify-content:center;min-height:40px!important;padding:0 14px!important;font-size:12px!important;font-weight:800!important}
@media(max-width:680px){body.page-safe-rate.kb-reference-ui #calculator .kfr-result-unit{min-width:auto!important;font-size:11px!important;padding:5px 10px!important}body.page-safe-rate.kb-reference-ui #calculator .kfr-download-grid{grid-template-columns:1fr!important}body.page-safe-rate.kb-reference-ui #calculator .kfr-download-card-item{padding:14px 13px}body.page-safe-rate.kb-reference-ui #calculator .kfr-download-links{display:grid;grid-template-columns:1fr;gap:8px}body.page-safe-rate.kb-reference-ui #calculator .kfr-download-links .btn{width:100%}}
