/* Main Container */
.woocommerce-MyAccount-multiple-shipping {
    margin: 2em 0;
    padding: 20px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 3px;
}

/* Saved Addresses List */
.saved-addresses {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5em 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.saved-addresses li {
    position: relative;
    padding: 15px;
    background: white;
    border: 1px solid #e5e5e5;
    border-radius: 3px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.saved-addresses li:hover {
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

/* Address Block */
.saved-addresses address {
    font-style: normal;
    margin-bottom: 15px;
    line-height: 1.6;
    color: #555;
}

/* Action Links */
.saved-addresses a {
    display: inline-block;
    margin-right: 10px;
    padding: 5px 10px;
    font-size: 0.85em;
    text-decoration: none;
    border-radius: 3px;
    transition: all 0.2s;
}

/* Edit Button */
.saved-addresses a.edit-address {
    color: #2c8ed6;
    border: 1px solid #2c8ed6;
}

.saved-addresses a.edit-address:hover {
    background: #2c8ed6;
    color: white;
}

/* Remove Button */
.saved-addresses a.remove-address {
    color: #a00;
    border: 1px solid #a00;
}

.saved-addresses a.remove-address:hover {
    background: #a00;
    color: white;
}

/* Add New Address Button */
#show-new-address-form {
    margin-top: 15px;
    background: #4CAF50;
    color: white;
    border: none;
}

#show-new-address-form:hover {
    background: #3e8e41;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .saved-addresses {
        grid-template-columns: 1fr;
    }
    
    .saved-addresses li {
        padding: 12px;
    }
}

/* Form Styling */
#new-address-form {
    margin-top: 30px;
    padding: 20px;
    background: white;
    border: 1px solid #e5e5e5;
    border-radius: 3px;
}

#save-new-address {
    margin-top: 15px;
    background: #2c8ed6;
    color: white;
    border: none;
}

#save-new-address:hover {
    background: #1a7bc1;
}

.address-box {
    background-color: #f0f0f0;
    padding: 1.5em;    
    margin-bottom: 2em;
    border-radius: 10px;
}

.address-title {
    font-size: 21px;
    margin: 0;
    /* padding: 1.5em 1.5em 1em; */
    font-weight: 700;
}

.address-detail {
    margin-bottom: 0;
}

.woocommerce-shipping-totals.shipping {
    overflow-x: visible;
}

.woocommerce-shipping-totals.shipping th {
    display: block;
}

.woocommerce-shipping-totals.shipping td {
    display: block;
    text-align: left !important;
}

@media (max-width:921px) {
    .ast-container {
        padding: 0 !important;
    }
    
    .woocommerce-shipping-totals.shipping td {
        width: 125%;
    }
}

.order-total th, .order-total td, .order-total td bdi {
    font-weight: bold !important;
}

.order-total th::after {
    content: 'ทั้งสิ้น';
    display: inline;
}

.woocommerce-privacy-policy-text {
    font-size: xx-small;
}

table.item-row {
    margin-bottom: 0;
}

table.item-row td {
    border: none;
}

td.product-name {
    max-height: 5em;
    overflow-y: hidden;
}

.product-name > strong.product-quantity {
    display: none;
}

td.checkout-item-image {
    width: 80px;
}

td.checkout-item-info {
    text-align: left !important;
}

div.item-name {
    font-size: small;
}

@media (max-width:921px) {
    .product-total {
        min-width: 5em;
        padding: 0;
    }

    div.item-name {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        width: 10em;
    }
}