/* Only presentation: preserve the carriers' fields, rates and event handlers. */
.woocommerce-checkout #shipping_method,
.woocommerce-cart #shipping_method {
    margin: 0;
    padding: 0;
    text-align: left;
    list-style: none;
}
.woocommerce-checkout #shipping_method li,
.woocommerce-cart #shipping_method li {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 8px;
    align-items: start;
    padding: 14px 0;
    margin: 0;
    border-bottom: 1px solid #e6e8e5;
}
.woocommerce-checkout #shipping_method li:last-child,
.woocommerce-cart #shipping_method li:last-child { border-bottom: 0; }
.woocommerce-checkout #shipping_method input.shipping_method,
.woocommerce-cart #shipping_method input.shipping_method {
    appearance: auto;
    -webkit-appearance: radio;
    display: block !important;
    position: static !important;
    opacity: 1 !important;
    clip: auto !important;
    clip-path: none !important;
    width: 18px !important;
    height: 18px !important;
    margin: 4px 0 0 !important;
    accent-color: #315e48;
}
.woocommerce-checkout #shipping_method input[type="hidden"],
.woocommerce-cart #shipping_method input[type="hidden"] { display: none !important; }
.woocommerce-checkout #shipping_method li label,
.woocommerce-cart #shipping_method li label {
    grid-column: 2;
    display: block;
    padding: 0 !important;
    margin: 0 !important;
    text-align: left !important;
    font-size: 14px;
    line-height: 1.6;
    overflow-wrap: anywhere;
    white-space: normal;
    cursor: pointer;
}
.woocommerce-checkout #shipping_method label::before,
.woocommerce-checkout #shipping_method label::after,
.woocommerce-cart #shipping_method label::before,
.woocommerce-cart #shipping_method label::after { display: none !important; }
.woocommerce-checkout #shipping_method li > p,
.woocommerce-cart #shipping_method li > p { grid-column: 2; margin: 4px 0 0; text-align: left; }
.woocommerce-checkout #shipping_method .amount,
.woocommerce-cart #shipping_method .amount { display: inline-block; white-space: nowrap; }
.woocommerce-checkout .js-bpost-shipping-options-modal,
.woocommerce-cart .js-bpost-shipping-options-modal {
    width: 100%;
    max-width: 100%;
    min-height: 44px;
    height: auto;
    padding: 12px 16px;
    white-space: normal;
    text-transform: none;
    font-size: 14px;
    line-height: 1.5;
}
@media (max-width: 767px) {
    /* Carrier descriptions must not determine the product/price column widths. */
    .woocommerce-checkout table.woocommerce-checkout-review-order-table,
    .woocommerce-checkout table.woocommerce-checkout-review-order-table thead,
    .woocommerce-checkout table.woocommerce-checkout-review-order-table tbody,
    .woocommerce-checkout table.woocommerce-checkout-review-order-table tfoot {
        display: block;
        width: 100% !important;
    }
    .woocommerce-checkout table.woocommerce-checkout-review-order-table tr {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(72px, max-content);
        gap: 16px;
        width: 100%;
        padding: 14px 0;
        border-bottom: 1px solid #e6e8e5;
    }
    .woocommerce-checkout table.woocommerce-checkout-review-order-table th,
    .woocommerce-checkout table.woocommerce-checkout-review-order-table td {
        display: block;
        width: auto !important;
        padding: 0 !important;
        border: 0;
        text-align: left;
        min-width: 0;
        overflow-wrap: anywhere;
        word-break: normal;
    }
    .woocommerce-checkout table.woocommerce-checkout-review-order-table tr > :last-child { text-align: right; }
    .woocommerce-checkout table.woocommerce-checkout-review-order-table .amount { white-space: nowrap; }
    .woocommerce-checkout table.woocommerce-checkout-review-order-table tr.woocommerce-shipping-totals {
        display: block;
    }
    .woocommerce-checkout table.woocommerce-checkout-review-order-table tr.mrwp { display: block; }
    .woocommerce-checkout table.woocommerce-checkout-review-order-table tr.mrwp > td { margin-top: 12px; text-align: left; }
    .woocommerce-checkout tr.mrwp .modaal_link { display: inline-block; width: 100%; white-space: normal; text-align: center; }
    .woocommerce-checkout table.woocommerce-checkout-review-order-table tr.woocommerce-shipping-totals > th {
        margin-bottom: 8px;
        font-weight: 700;
    }
    .woocommerce-checkout table.woocommerce-checkout-review-order-table tr.woocommerce-shipping-totals > td { text-align: left; }
    .woocommerce-checkout [id^="shm-overlay"],
    .woocommerce-cart [id^="shm-overlay"] { z-index: 99990 !important; }
    .woocommerce-checkout [id^="shm-popup"],
    .woocommerce-cart [id^="shm-popup"] {
        box-sizing: border-box;
        top: max(12px, env(safe-area-inset-top)) !important;
        left: 12px !important;
        width: calc(100vw - 24px) !important;
        max-width: calc(100vw - 24px) !important;
        height: calc(100vh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom)) !important;
        height: calc(100dvh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom)) !important;
        z-index: 99991 !important;
        overflow: hidden;
        border-radius: 10px;
    }
    .woocommerce-checkout [id^="shm-popup"] .simplemodal-wrap,
    .woocommerce-checkout [id^="shm-container"],
    .woocommerce-cart [id^="shm-popup"] .simplemodal-wrap,
    .woocommerce-cart [id^="shm-container"] {
        width: 100% !important;
        height: 100% !important;
        overflow: auto !important;
    }
    .woocommerce-checkout iframe[id^="shm-iframe"],
    .woocommerce-cart iframe[id^="shm-iframe"] { display: block; width: 100% !important; height: 100% !important; }
    .woocommerce-checkout .modaal-outer-wrapper,
    .woocommerce-cart .modaal-outer-wrapper { width: 100%; }
    .woocommerce-checkout .modaal-inner-wrapper,
    .woocommerce-cart .modaal-inner-wrapper { padding: 60px 12px 20px; width: 100%; }
    .woocommerce-checkout .modaal-container,
    .woocommerce-cart .modaal-container { width: 100%; max-width: 100%; }
    .woocommerce-checkout .modaal-content-container,
    .woocommerce-cart .modaal-content-container { padding: 16px; }
    .woocommerce-checkout .MRW-RList,
    .woocommerce-cart .MRW-RList { float: none !important; width: 100% !important; }
    .woocommerce-checkout .PR-List-Item,
    .woocommerce-cart .PR-List-Item { padding: 12px 8px; font-size: 13px; line-height: 1.5; }
    .woocommerce-checkout .MRW-Search button,
    .woocommerce-cart .MRW-Search button { min-height: 44px; font-size: 13px; text-transform: none; }
    .woocommerce-checkout .MRW-Search input[type="text"],
    .woocommerce-cart .MRW-Search input[type="text"] { min-height: 44px; font-size: 16px; }
    .woocommerce-checkout .MRW-Search .Arg2,
    .woocommerce-cart .MRW-Search .Arg2 { width: 70px !important; }
}
