/* Ecomarsel delivery controls: keep payment methods outside this scope. */
body.woocommerce-checkout .wc-block-components-shipping-rates-control,
body.woocommerce-cart .wc-block-components-shipping-rates-control {
    font-family: "sofia-pro-variable", sans-serif;
    font-size: 16px;
}

/* One fine frame for the whole list, rather than a heavy box around the label. */
body .wc-block-components-shipping-rates-control .wc-block-components-radio-control--highlight-checked {
    --wc-separator-color: #eceee8;
}

body .wc-block-components-shipping-rates-control .wc-block-components-radio-control--highlight-checked::after {
    border: 1px solid #eceee8;
    border-radius: 6px;
    top: 0;
    bottom: 0;
    margin: 0;
}

body .wc-block-components-shipping-rates-control .wc-block-components-radio-control__option--checked-option-highlighted,
body .wc-block-components-shipping-rates-control .wc-block-components-radio-control-accordion-option--checked-option-highlighted {
    box-shadow: none !important;
    border-radius: 0;
}

body .wc-block-components-shipping-rates-control .wc-block-components-radio-control__option {
    padding-top: 17px;
    padding-bottom: 17px;
    line-height: 1.5;
}

body .wc-block-components-shipping-rates-control .wc-block-components-radio-control__label,
body .wc-block-components-shipping-rates-control .wc-block-components-radio-control__secondary-label {
    font-family: "sofia-pro-variable", sans-serif;
    font-size: 17px;
    font-weight: 500;
    font-variation-settings: "wght" 500, "slnt" 0;
    line-height: 1.5;
}

body .wc-block-components-shipping-rates-control .wc-block-components-radio-control__secondary-label {
    white-space: nowrap;
}

body .wc-block-components-shipping-rates-control .wc-block-components-radio-control__description {
    font-family: inherit;
    font-size: 15px;
    line-height: 1.5;
}

body .wc-block-components-shipping-rates-control .inpost_icon {
    height: 25px !important;
    width: auto !important;
    margin-top: 5px;
}

body .wc-block-components-shipping-rates-control .wc-block-components-radio-control__option--checked,
body .wc-block-components-shipping-rates-control .wc-block-components-radio-control__option--checked-option-highlighted,
body .wc-block-components-shipping-rates-control .wc-block-components-radio-control__option:has(+ .eco-shipping-point-host),
body .wc-block-components-shipping-rates-control .eco-shipping-point-host {
    background-color: #fafbf7;
}

body .wc-block-components-shipping-rates-control .wc-block-components-radio-control__option:has(+ .eco-shipping-point-host) {
    padding-bottom: 5px;
}

.eco-shipping-point-host {
    box-sizing: border-box;
    padding: 12px 20px 22px 48px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    font-family: "sofia-pro-variable", sans-serif;
}

body.woocommerce-checkout #easypack_block_type_geowidget,
body.woocommerce-cart #easypack_block_type_geowidget {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-height: 42px;
    width: auto;
    max-width: 100%;
    margin: 0;
    padding: 9px 16px;
    border: 1px solid #dee4d3 !important;
    border-radius: 5px;
    background: #fff !important;
    box-shadow: none !important;
    color: #52671d !important;
    font-family: "sofia-pro-variable", sans-serif !important;
    font-size: 15px !important;
    font-weight: 500;
    font-variation-settings: "wght" 500, "slnt" 0;
    line-height: 1.4;
    text-align: center;
    cursor: pointer;
}

body.woocommerce-checkout #easypack_block_type_geowidget:hover,
body.woocommerce-cart #easypack_block_type_geowidget:hover {
    background: #f1f5e7 !important;
    border-color: #c2ccad !important;
}

body.woocommerce-checkout #easypack_block_type_geowidget:focus-visible,
body.woocommerce-cart #easypack_block_type_geowidget:focus-visible {
    outline: 2px solid #536700;
    outline-offset: 3px;
}

body #inpost_pl_selected_point_data_wrap {
    margin: 12px 0 0;
    font-family: "sofia-pro-variable", sans-serif;
    font-size: 15px;
    line-height: 1.6;
}

@media (max-width: 767px) {
    body .wc-block-components-shipping-rates-control .wc-block-components-radio-control__label,
    body .wc-block-components-shipping-rates-control .wc-block-components-radio-control__secondary-label {
        font-size: 16px;
    }

    .eco-shipping-point-host {
        padding-right: 14px;
        padding-left: 40px;
    }

    body.woocommerce-checkout #easypack_block_type_geowidget,
    body.woocommerce-cart #easypack_block_type_geowidget {
        padding: 9px 14px;
        font-size: 15px !important;
    }
}


body.woocommerce-cart .cart_totals .eco-cart-shipping-note {
    margin: 0 0 16px;
    font-family: "sofia-pro-variable", sans-serif;
    font-size: 14px;
    color: #62665b;
    font-weight: 400;
    font-variation-settings: "wght" 400, "slnt" 0;
    line-height: 1.6;
}


/* Quiet checkout frames; preserve contrast of radio buttons and input fields. */
body.woocommerce-checkout .wc-block-components-radio-control--highlight-checked {
    --wc-separator-color: #eceee8;
}

body.woocommerce-checkout .wc-block-components-radio-control--highlight-checked::after {
    border: 1px solid #eceee8;
}

body.woocommerce-checkout .wc-block-checkout__payment-method .wc-block-components-radio-control-accordion-option--checked-option-highlighted,
body.woocommerce-checkout #payment-method .wc-block-components-radio-control__option--checked-option-highlighted {
    box-shadow: inset 0 0 0 1px #d6deca;
}

body.woocommerce-checkout .wc-block-components-address-card {
    border-color: #eceee8;
}
