.dhlpwc-shipping-method-delivery-options {
    box-sizing: border-box;
    width: 100%;
    margin: 12px 0 20px;
    padding: 22px 24px;
    border: 1px solid #dce7df;
    border-radius: 16px;
    background: #fff;
    color: #202925;
    line-height: 1.5;
}

.emuk-dhl-point-benefit {
    display: block;
    margin-top: 5px;
    color: #496456;
    font-size: 13px;
    line-height: 1.4;
}

.dhlpwc-shipping-method-delivery-options .dhlpwc-delivery-options-header {
    margin: 0 0 16px;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.25;
}

.dhlpwc-shipping-method-delivery-options .dhlpwc-shipping-method-parcelshop-option {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 2px 24px;
    align-items: center;
    padding: 16px 18px;
    border: 1px solid #e1e9e3;
    border-radius: 12px;
    background: #f8faf7;
}

.dhlpwc-shipping-method-delivery-options .dhlpwc-parcelshop-selection-text {
    display: block;
    grid-column: 1;
    grid-row: 1;
    margin: 0 0 7px;
    color: #52615a;
    font-size: 13px;
}

.dhlpwc-shipping-method-delivery-options .dhlpwc-parcelshop-option-message {
    display: block;
    grid-column: 1;
    margin: 0;
    color: #25352d;
    font-weight: 400;
    line-height: 1.45;
}

.dhlpwc-shipping-method-delivery-options .dhlpwc-parcelshop-option-message:nth-of-type(2) {
    grid-row: 2;
    color: #133d29;
    font-weight: 700;
}

.dhlpwc-shipping-method-delivery-options .dhlpwc-parcelshop-option-message:nth-of-type(3) {
    grid-row: 4;
}

.dhlpwc-shipping-method-delivery-options .dhlpwc-parcelshop-option-message:nth-of-type(4) {
    grid-row: 3;
}

.dhlpwc-shipping-method-delivery-options .dhlpwc-parcelshop-option-change {
    display: inline-block;
    grid-column: 2;
    grid-row: 2 / 5;
    justify-self: end;
    margin: 0;
    padding: 10px 14px;
    border: 1px solid #0b6b3f;
    border-radius: 9px;
    background: #fff;
    color: #0b5433;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.dhlpwc-shipping-method-delivery-options .dhlpwc-parcelshop-option-change:hover,
.dhlpwc-shipping-method-delivery-options .dhlpwc-parcelshop-option-change:focus {
    background: #eaf4ec;
    border-color: #07502f;
    color: #0b5433;
    outline-color: #0a6839;
}

@media (max-width: 600px) {
    .dhlpwc-shipping-method-delivery-options { padding: 16px 18px; }
    .dhlpwc-shipping-method-delivery-options .dhlpwc-shipping-method-parcelshop-option { grid-template-columns: 1fr; padding: 14px; }
    .dhlpwc-shipping-method-delivery-options .dhlpwc-parcelshop-option-change {
        grid-column: 1;
        grid-row: 5;
        justify-self: stretch;
        width: 100%;
        margin-top: 14px;
    }
}

/* Classic cart: keep the selected pickup point inside the shipping choice. */
.emuk-classic-cart-shell #shipping_method li:has(input[value="dhlpwc-parcelshop"]:checked) .dhlpwc-shipping-method-parcelshop-option {
    margin: 10px 0 2px 25px;
    padding: 12px 14px;
    border: 1px solid #dce7df;
    border-radius: 10px;
    background: #f8faf7;
    line-height: 1.4;
}

.emuk-classic-cart-shell #shipping_method .dhlpwc-parcelshop-option-message {
    display: block;
    color: #16442d;
    font-weight: 650;
}

.emuk-classic-cart-shell #shipping_method .dhlpwc-shipping-method-parcelshop-option br {
    display: none;
}

.emuk-classic-cart-shell #shipping_method input.dhlpwc-parcelshop-option-change {
    width: auto;
    min-height: 36px;
    margin: 9px 0 0;
    padding: 7px 12px;
    border: 1px solid #0b6b3f;
    border-radius: 8px;
    background: #fff;
    box-shadow: none;
    color: #0b5433;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.emuk-classic-cart-shell #shipping_method input.dhlpwc-parcelshop-option-change:hover,
.emuk-classic-cart-shell #shipping_method input.dhlpwc-parcelshop-option-change:focus {
    background: #eaf4ec;
    color: #0b5433;
}

.emuk-classic-cart-shell .cart_totals:has(input[value="dhlpwc-parcelshop"]:checked) .woocommerce-shipping-destination,
.emuk-classic-cart-shell .cart_totals:has(input[value^="pickup_location"]:checked) .woocommerce-shipping-destination {
    display: none;
}

@media (max-width: 600px) {
    .emuk-classic-cart-shell #shipping_method li:has(input[value="dhlpwc-parcelshop"]:checked) .dhlpwc-shipping-method-parcelshop-option {
        margin-left: 0;
    }
}

/* Keep collection alongside the other delivery rates instead of a separate step. */
body.emuk-delivery-choices-ready.woocommerce-checkout fieldset#shipping-method {
    display: none;
}

.woocommerce-checkout .emuk-delivery-choice {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
    padding: 14px 16px;
    border: 1px solid #d8e5dc;
    border-radius: 10px;
    background: #fff;
    box-shadow: none;
    color: #1b2e24;
    text-align: left;
    cursor: pointer;
}

.woocommerce-checkout .emuk-delivery-choice:hover,
.woocommerce-checkout .emuk-delivery-choice:focus-visible {
    border-color: #087442;
    background: #f6fbf7;
    color: #1b2e24;
}

.woocommerce-checkout .emuk-delivery-choice strong,
.woocommerce-checkout .emuk-delivery-choice small {
    display: block;
}

.woocommerce-checkout .emuk-delivery-choice strong { font-size: 14px; }
.woocommerce-checkout .emuk-delivery-choice small { margin-top: 2px; color: #59675e; font-size: 12px; }
.woocommerce-checkout .emuk-delivery-choice__price { margin-left: auto; font-size: 12px; white-space: nowrap; }
.woocommerce-checkout .emuk-shipping-choice { justify-content: center; color: #0b5433; font-size: 13px; font-weight: 700; }

.woocommerce-checkout #shipping-option .wc-block-components-radio-control:has(.emuk-pickup-choice) > label:last-of-type {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.woocommerce-checkout #shipping-option .emuk-pickup-choice {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr) auto;
    align-items: start;
    gap: 12px;
    margin: -1px 0 0;
    padding: 16px;
    border-color: #d9e4dc;
    border-radius: 0 0 10px 10px;
    font-size: 13px;
}

.woocommerce-checkout #shipping-option .emuk-pickup-choice strong {
    font-size: 13px;
    font-weight: 400;
    line-height: 20px;
}

.woocommerce-checkout #shipping-option .emuk-pickup-choice small {
    margin-top: 3px;
    line-height: 18px;
}

.woocommerce-checkout #shipping-option .emuk-delivery-choice__radio {
    box-sizing: border-box;
    width: 20px;
    height: 20px;
    border: 1px solid #9fb8a9;
    border-radius: 50%;
    background: #fff;
}

.woocommerce-checkout #shipping-option .emuk-delivery-choice__price {
    line-height: 20px;
}
