#checkout [hidden] {display: none !important;}
#checkout .cdek-field {border: 0; padding: 0; margin: 1.15rem 0 0; min-width: 0;}
#checkout .cdek-field legend,
#checkout .cdek-delivery > div > label,
#checkout #cdek-point-fields > label,
#checkout #postal-label {font: inherit; font-weight: 560; display: block; margin: .85rem 0 .35rem; padding: 0;}
#checkout .cdek-field legend {margin: 0 0 .4rem;}
.cdek-choices {display: flex; flex-wrap: wrap; gap: .45rem;}
.cdek-choices label {position: relative; flex: 1 1 8rem;}
.cdek-choices input {position: absolute; width: 1px; height: 1px; opacity: 0;}
.cdek-choices span {box-sizing: border-box; display: flex; min-height: 46px; height: 100%; align-items: center; justify-content: center; text-align: center; padding: .5rem .65rem; border: 1px solid #a1af9e; border-radius: 6px; color: var(--pine,#263d30); font-size: .96rem; cursor: pointer;}
.cdek-choices input:checked + span {background: var(--pine,#263d30); border-color: var(--pine,#263d30); color: #fffdf6;}
.cdek-choices input:focus-visible + span,
#checkout .cdek-suggestions [aria-selected="true"],
#checkout .cdek-map-view:focus-visible {outline: 2px solid #486544; outline-offset: 2px;}
.cdek-subfield {min-width: 0;}
#checkout .cdek-note {font: inherit; font-size: .93rem; line-height: 1.45; color: var(--body,#465145); margin: .5rem 0;}
#checkout .cdek-note:empty {display: none;}
.cdek-delivery {margin: 1rem 0; padding: .3rem .85rem .75rem; border: 1px solid var(--line,#bdc8b7); border-radius: 8px; min-width: 0;}
#checkout .cdek-delivery input:not([type="radio"]),#checkout .cdek-delivery select,#checkout #postal-label input {box-sizing: border-box; display: block; width: 100%; min-width: 0; min-height: 46px; color: var(--ink,#263d30); background: #fffef8; border: 1px solid #a9b5a3; border-radius: 4px; padding: .55rem .6rem; font: inherit; font-size: 1rem;}
#checkout #postal-label input {margin-top: .3rem;}
.cdek-suggestions {list-style: none; padding: .2rem; margin: .25rem 0; background: #fffcf6; border: 1px solid #a9b5a3; border-radius: 5px; max-height: 13rem; overflow: auto; overscroll-behavior: contain;}
.cdek-suggestions li {display: flex; align-items: center; cursor: pointer; min-height: 44px; padding: .5rem .6rem; border-radius: 3px; line-height: 1.35;}
.cdek-suggestions li:hover,.cdek-suggestions [aria-selected="true"] {background: #e8eee1;}
.cdek-delivery .text-btn,.cdek-subfield .text-btn {min-height: 44px;}
#cdek-point-detail {display: grid; gap: .1rem;}
.cdek-rate {display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: .6rem; align-items: center; min-height: 46px; padding: .55rem 0; border-top: 1px solid var(--line,#bdc8b7); cursor: pointer;}
.cdek-rate input {width: 18px; height: 18px; accent-color: var(--pine,#263d30);}
.cdek-rate span {display: grid; gap: .15rem; overflow-wrap: anywhere;}
.cdek-rate small {font-size: .87rem;}
.cdek-rate b {font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums;}
.cdek-summary {padding: .75rem 0; margin: .8rem 0; border-block: 1px solid var(--line,#bdc8b7);}
.cdek-summary div {display: flex; align-items: baseline; justify-content: space-between; gap: .8rem; margin: .35rem 0;}
.cdek-summary strong {min-width: 0; text-align: right; font-weight: 520; font-variant-numeric: tabular-nums;}
.cdek-summary div:last-child {font-weight: 650; color: var(--pine,#263d30);}
.cdek-summary div:last-child strong {font-weight: 650;}
#cdek-map {position: relative; margin: .4rem 0;}
.cdek-map-view {position: relative; width: 100%; height: clamp(200px,35dvh,320px); overflow: hidden; border: 1px solid #a9b5a3; background: #ebede5; border-radius: 5px; isolation: isolate; touch-action: none; cursor: grab;}
.cdek-map-view:active {cursor: grabbing;}
.cdek-tiles,.cdek-pins {position: absolute; inset: 0; pointer-events: none;}
.cdek-tiles img {position: absolute; left: 0; top: 0; display: block; width: 256px; height: 256px; max-width: none; max-height: none; user-select: none;}
#checkout .cdek-map-tools {position: absolute; top: 5px; left: 5px; display: grid; gap: 2px;}
.cdek-map-tools button,.cdek-map-tied button {min-width: 44px; min-height: 44px; border: 1px solid #8e9b86; color: #263d30; background: #fffdf7; border-radius: 4px; font: inherit; cursor: pointer;}
.cdek-map-tools button {font-size: 1.3rem; line-height: 1;}
.cdek-map-tools button:disabled {color: #6d716a;}
#checkout .cdek-pin {box-sizing: border-box; position: absolute; transform: translate(-50%,-50%); pointer-events: auto; width: 44px; height: 44px; border: 6px solid transparent; background: #334e3c; background-clip: padding-box; border-radius: 50%; color: #fff; font: 600 14px/1 system-ui,sans-serif; text-shadow: 0 1px 2px #1d3122; cursor: pointer; padding: 0;}
#checkout .cdek-pin.is-selected {background-color: #9c491e;}
#checkout .cdek-map-credit {display: inline-flex; min-height: 44px; align-items: center; color: #334e3c; font-size: .85rem; text-decoration: underline;}
.cdek-map-tied {display: grid; gap: .2rem;}
.cdek-map-tied button {padding: .3rem .55rem; text-align: left;}
@media (max-width: 390px) {
  .cdek-delivery {padding-inline: .55rem;}
  .cdek-choices {gap: .3rem;}
  .cdek-choices label {flex-basis: 7rem;}
  .cdek-rate {gap: .35rem;}
}
