.wa-step-shipping-section .heller-native-pickup,
.wa-step-shipping-section .heller-native-post {
    display: none !important;
}

.wa-step-shipping-section .heller-delivery-tile {
    cursor: pointer;
}

.wa-step-shipping-section .heller-delivery-tile.is-loading {
    cursor: wait;
    opacity: 0.7;
}

.wa-step-shipping-section .heller-delivery-tile:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

.wa-step-shipping-section .heller-delivery-tile .wa-price {
    white-space: nowrap;
}

/* Checkout 2 still owns the selected variant and rate. Keep its controls in
   the DOM, but the dedicated CDEK/Ozon tiles make the duplicate row redundant. */
.wa-step-shipping-section.heller-pickup-mode-selected .wa-delivery-variants-section {
    display: none !important;
}

.heller-pickup-selected-summary {
    margin-top: 10px;
    padding: 12px 14px;
    border: 1px solid #dfe5eb;
    border-radius: 9px;
    background: #f8fafc;
    color: #29323b;
}

.heller-pickup-selected-summary[hidden],
.heller-pickup-summary-row[hidden] {
    display: none !important;
}

.heller-pickup-summary-row {
    margin: 4px 0;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.wa-step-shipping-section .heller-delivery-error {
    margin: 12px 0;
    color: #c00;
}

html.heller-ozon-autoselect #wa-shipping-pickup-dialog .wa-variant-wrapper[data-id$=".ozon_pickup"] {
    opacity: 0;
}

html.heller-ozon-autoselect #wa-shipping-pickup-dialog {
    visibility: hidden !important;
    pointer-events: none !important;
}

html.heller-ozon-selected .heller-ozon-address-fields {
    display: none !important;
}

.ozondelivery-control.heller-ozon-phone-synced > label,
.ozondelivery-control.heller-ozon-phone-synced > input[type="tel"] {
    display: none !important;
}

/* A previous point's final price remains in Checkout 2's DOM during AJAX.
   Keep it out of view until the current point has a confirmed calculation. */
html.heller-ozon-rate-unconfirmed #wa-step-details-section .wa-details-rates-section,
html.heller-ozon-rate-pending #wa-step-confirm-section .wa-item-shipping .wa-value,
html.heller-ozon-rate-pending #wa-step-confirm-section .wa-item-total .wa-value,
html.heller-ozon-rate-stale #wa-step-confirm-section .wa-item-shipping .wa-value,
html.heller-ozon-rate-stale #wa-step-confirm-section .wa-item-total .wa-value {
    display: none !important;
}

/* Delivery-card presentation only. Existing Checkout 2 controls, selected
   classes, aria state and event handlers remain authoritative. The marker
   exists only after the HELLER enhancement has installed its two PVZ tiles. */
#wa-order-form-wrapper .wa-step-shipping-section[data-heller-tiles="1"] .wa-delivery-types-section .wa-types-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    align-items: stretch;
    min-width: 0;
}

#wa-order-form-wrapper .wa-step-shipping-section[data-heller-tiles="1"] .wa-types-list > .wa-type-wrapper:not(.heller-native-pickup):not(.heller-native-post) {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    box-sizing: border-box;
    width: auto;
    min-width: 0;
    max-width: none;
    margin: 0 !important;
    padding: 18px 16px;
    border: 1px solid #d9dfe5;
    border-radius: 10px !important;
    background: #fff;
    color: #20252b;
    box-shadow: none;
    text-align: left;
    line-height: 1.4;
    overflow: visible;
    overflow-wrap: anywhere;
    cursor: pointer;
    transition: none;
    animation: none;
}

#wa-order-form-wrapper .wa-step-shipping-section[data-heller-tiles="1"] .wa-types-list:not(.wa-error) > .wa-type-wrapper:not(.heller-native-pickup):not(.heller-native-post):not(.is-active):not(.is-loading):hover {
    border-color: #8793a0 !important;
    background: #fafbfc;
}

#wa-order-form-wrapper .wa-step-shipping-section[data-heller-tiles="1"] .wa-types-list > .wa-type-wrapper.is-active:not(.heller-native-pickup):not(.heller-native-post) {
    border-color: #1971c2 !important;
    background: #f1f7fd;
    box-shadow: inset 0 0 0 1px #1971c2;
}

/* Preserve Checkout 2 validation even when the theme forces hover borders. */
#wa-order-form-wrapper .wa-step-shipping-section[data-heller-tiles="1"] .wa-types-list.wa-error > .wa-type-wrapper:not(.heller-native-pickup):not(.heller-native-post) {
    border-color: #c00 !important;
    box-shadow: none;
}

/* Replace the theme's full-card ::after colour overlay with a small visible
   check. It cannot catch a click; screen-reader state still comes from HTML. */
#wa-order-form-wrapper .wa-step-shipping-section[data-heller-tiles="1"] .wa-types-list > .wa-type-wrapper:not(.heller-native-pickup):not(.heller-native-post)::after {
    content: none;
}

#wa-order-form-wrapper .wa-step-shipping-section[data-heller-tiles="1"] .wa-types-list > .wa-type-wrapper.is-active:not(.heller-native-pickup):not(.heller-native-post)::after {
    content: "\2713";
    position: absolute;
    display: block;
    top: 18px;
    right: 16px;
    bottom: auto;
    left: auto;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #1971c2;
    color: #fff;
    font: 700 14px/22px Arial, sans-serif;
    text-align: center;
    opacity: 1;
    z-index: 1;
    pointer-events: none;
    transform: none;
    transition: none;
    animation: none;
}

#wa-order-form-wrapper .wa-step-shipping-section[data-heller-tiles="1"] .wa-types-list > .wa-type-wrapper .wa-name {
    margin: 0;
    padding-right: 30px;
    color: #20252b;
    font-size: 1.05em;
    font-weight: 600;
    line-height: 1.4;
    white-space: normal;
    overflow-wrap: anywhere;
}

#wa-order-form-wrapper .wa-step-shipping-section[data-heller-tiles="1"] .wa-types-list > .wa-type-wrapper .wa-name a {
    color: inherit;
    font-size: inherit !important;
    line-height: inherit;
    text-decoration: none;
}

#wa-order-form-wrapper .wa-step-shipping-section[data-heller-tiles="1"] .wa-types-list > .wa-type-wrapper .wa-price,
#wa-order-form-wrapper .wa-step-shipping-section[data-heller-tiles="1"] .wa-types-list > .wa-type-wrapper .wa-date {
    display: block;
    margin: 0;
    padding: 0;
    line-height: 1.4;
    white-space: normal;
    overflow-wrap: anywhere;
}

#wa-order-form-wrapper .wa-step-shipping-section[data-heller-tiles="1"] .wa-types-list > .wa-type-wrapper .wa-price {
    color: #20252b;
    font-size: 1em;
}

#wa-order-form-wrapper .wa-step-shipping-section[data-heller-tiles="1"] .wa-types-list > .wa-type-wrapper .wa-date {
    color: #606c79;
    font-size: 0.9em;
}

#wa-order-form-wrapper .wa-step-shipping-section[data-heller-tiles="1"] .wa-types-list > .wa-type-wrapper.heller-delivery-tile.is-loading:not(.heller-native-pickup):not(.heller-native-post) {
    cursor: wait;
    opacity: 0.7;
}

#wa-order-form-wrapper .wa-step-shipping-section[data-heller-tiles="1"] .wa-types-list > .wa-type-wrapper:focus-visible,
#wa-order-form-wrapper .wa-step-shipping-section[data-heller-tiles="1"] .wa-types-list > .wa-type-wrapper:focus-within {
    outline: 2px solid #20252b;
    outline-offset: 3px;
}

@media (max-width: 640px) {
    #wa-order-form-wrapper .wa-step-shipping-section[data-heller-tiles="1"] .wa-delivery-types-section .wa-types-list {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
    }
}
