.mg-delivery-estimate {
    margin-top: 16px;
    padding: 14px 18px;
    border-radius: 10px;
    background: #ffffff;
    border: 1px solid #ececec;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
    flex: 0 0 100%;
    width: 100%;
}

.woocommerce-variation-add-to-cart .mg-delivery-estimate,
form.cart .mg-delivery-estimate {
    order: 99;
}

form.cart .single_add_to_cart_button,
.woocommerce-variation-add-to-cart .single_add_to_cart_button {
    width: 100%;
    min-height: 52px;
    padding: 14px 20px;
}

.mg-delivery-estimate__content {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.mg-delivery-estimate__icon {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
}

.mg-delivery-estimate__icon img {
    height: 100%;
    max-height: 72px;
    width: auto;
    object-fit: contain;
}

.mg-delivery-estimate__row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 14px;
    line-height: 1.4;
}

.mg-delivery-estimate__label {
    color: #f97316;
    font-weight: 600;
}

.mg-delivery-estimate__row--express .mg-delivery-estimate__label {
    color: #f59e0b;
}

.mg-delivery-estimate__row--cheapest .mg-delivery-estimate__label {
    color: #10b981;
}

.mg-delivery-estimate__date {
    color: #111827;
    font-weight: 600;
}

.mg-delivery-estimate__row--cheapest .mg-delivery-estimate__date {
    color: #000000;
}

/* Manual Mode Styles */
.mg-delivery-estimate__header {
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 4px;
    color: #111827;
}

.mg-delivery-estimate__list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mg-delivery-estimate__list-item {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #4b5563;
}

.mg-delivery-estimate__method-name {
    flex: 1;
}

.mg-delivery-estimate__method-separator {
    margin: 0 8px;
    color: #9ca3af;
}

.mg-delivery-estimate__method-price {
    font-weight: 600;
    color: #111827;
}

/* Payment image block */
.mg-payment-image {
    margin-top: 10px;
    width: 100%;
    order: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.mg-payment-image__label {
    font-size: 11px;
    color: #6b7280;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.mg-payment-image img {
    display: inline-block;
    max-height: 60px;
    width: auto;
    height: auto;
}

form.cart .mg-payment-image,
.woocommerce-variation-add-to-cart .mg-payment-image {
    order: 100;
}