/* Only the composite secure-payment image; individual product/trust images stay native. */
img[alt="Icon-Secure-Payment"],
img[src*="Icon-Secure-Payment"],
img[data-lazy-src*="Icon-Secure-Payment"] {
    display: block !important;
    width: auto !important;
    height: auto !important;
    max-width: min(220px, 100%) !important;
    max-height: 140px !important;
    object-fit: contain;
    object-position: left center;
}
body.woocommerce-checkout form.checkout .e-checkout__container {
    grid-template-columns: minmax(0, 1fr) minmax(340px, .8fr) !important;
    gap: 24px !important;
}
body.woocommerce-checkout form.checkout .e-checkout__column,
body.woocommerce-checkout form.checkout .e-checkout__column-inner { min-width: 0; }
body.woocommerce-checkout #billing_country_field,
body.woocommerce-checkout #shipping_country_field { display: none !important; }
body.woocommerce-checkout form.checkout textarea#billing_full_address,
body.woocommerce-checkout form.checkout textarea#shipping_full_address,
body.woocommerce-checkout form.checkout textarea#order_comments {
    height: 88px !important;
    min-height: 88px !important;
    max-height: 200px;
    resize: vertical;
    line-height: 1.5;
}
body.woocommerce-checkout #order_review .woocommerce-shipping-totals > td {
    width: auto !important;
    padding: 16px 0 !important;
    text-align: left !important;
    vertical-align: top;
}
body.woocommerce-checkout #order_review .artadia-shipping-layout {
    display: grid;
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
}
body.woocommerce-checkout #order_review .artadia-shipping-title { margin: 0 !important; padding: 0 !important; font-size: 13px !important; font-weight: 600; line-height: 1.5; color: #333; }
body.woocommerce-checkout #order_review .artadia-shipping-options { min-width: 0; }
body.woocommerce-checkout #order_review .artadia-shipping-options ul#shipping_method {
    display: grid !important;
    gap: 2px !important;
    margin: 0 !important;
    padding: 0 5px 0 0 !important;
    list-style: none !important;
    text-align: left !important;
}
body.woocommerce-checkout #order_review .artadia-shipping-options ul#shipping_method li {
    display: grid !important;
    grid-template-columns: 16px minmax(0, 1fr);
    gap: 8px;
    align-items: start;
    min-height: 32px;
    margin: 0 !important;
    padding: 6px 0 !important;
    text-indent: 0 !important;
    float: none !important;
    width: auto !important;
}
body.woocommerce-checkout #order_review .artadia-shipping-options ul#shipping_method input[type="radio"] {
    position: static !important;
    float: none !important;
    appearance: auto !important;
    width: 15px !important;
    height: 15px !important;
    margin: 3px 0 0 !important;
    padding: 0 !important;
    accent-color: #333;
}
body.woocommerce-checkout #order_review .artadia-shipping-options ul#shipping_method label {
    display: block !important;
    min-width: 0;
    margin: 0 !important;
    padding: 0 !important;
    color: #333 !important;
    font-size: 13px !important;
    font-weight: 400;
    line-height: 1.5 !important;
    white-space: normal !important;
    overflow-wrap: anywhere;
    text-align: left !important;
}
body.woocommerce-checkout #order_review .artadia-shipping-options ul#shipping_method label::before { display: none !important; }
body.woocommerce-checkout #order_review .artadia-shipping-options .amount { display: inline-block; color: #222 !important; font-weight: 600; white-space: nowrap; }
body.woocommerce-checkout #order_review .amount { color: #222 !important; }
body.woocommerce-checkout #order_review .product-name,
body.woocommerce-checkout #order_review .wd-checkout-prod { overflow-wrap: anywhere; }
@media (max-width: 1024px) {
    body.woocommerce-checkout form.checkout .e-checkout__container { grid-template-columns: minmax(0, 1fr) !important; gap: 20px !important; }
    body.woocommerce-checkout form.checkout .e-sticky-right-column { position: static !important; width: auto !important; }
}
@media (max-width: 640px) {
    body.woocommerce-checkout #order_review .artadia-shipping-layout { grid-template-columns: minmax(0, 1fr); gap: 8px; }
    body.woocommerce-checkout #order_review .artadia-shipping-title { margin-top: 0; }
    body.woocommerce-checkout #order_review .artadia-shipping-options ul#shipping_method li { min-height: 44px; padding: 9px 0 !important; }
    body.woocommerce-checkout .e-checkout__order_review,
    body.woocommerce-checkout .e-checkout__order_review-2 { padding: 16px !important; }
    body.woocommerce-checkout form.checkout .form-row-first,
    body.woocommerce-checkout form.checkout .form-row-last { width: 100% !important; float: none !important; }
    img[alt="Icon-Secure-Payment"] { max-width: min(180px, 100%) !important; max-height: 115px !important; }
}

/* Classic Woo layouts, including Hello and XStore, stack independently of Elementor. */
@media (max-width: 1024px) {
    body.woocommerce-checkout form.checkout { display: block !important; }
    body.woocommerce-checkout form.checkout #customer_details,
    body.woocommerce-checkout form.checkout #order_review,
    body.woocommerce-checkout form.checkout #order_review_heading,
    body.woocommerce-checkout form.checkout .col2-set .col-1,
    body.woocommerce-checkout form.checkout .col2-set .col-2 {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0;
        float: none !important;
        clear: both;
    }
}
