/* WooCommerce float clearfix elements must not occupy checkout grid cells. */
.woocommerce-checkout .col2-set::before,
.woocommerce-checkout .col2-set::after {
    display: none;
}

.woocommerce-checkout #customer_details {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
}

.woocommerce-checkout #ship-to-different-address {
    margin-bottom: 12px;
    font-size: 14px;
    line-height: 1.4;
}

.woocommerce-checkout #ship-to-different-address label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 32px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

.woocommerce-checkout #ship-to-different-address-checkbox {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    margin: 0;
}

.woocommerce-checkout #customer_details > .col-1,
.woocommerce-checkout #customer_details > .col-2 {
    min-width: 0;
}

@media (max-width: 900px) {
    .woocommerce-checkout #customer_details {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 600px) {
    .woocommerce-checkout .woocommerce {
        padding-right: 12px;
        padding-left: 12px;
    }

    .woocommerce-checkout form.checkout,
    .woocommerce-checkout #order_review {
        padding: 14px;
    }

    .woocommerce-checkout #customer_details > .col-1,
    .woocommerce-checkout #customer_details > .col-2 {
        padding: 16px;
    }

    .woocommerce-checkout table.shop_table {
        table-layout: fixed;
    }

    .woocommerce-checkout table.shop_table th,
    .woocommerce-checkout table.shop_table td {
        padding: 12px 8px;
        overflow-wrap: anywhere;
    }
}
