/* General SweetAlert modal adjustments for this plugin */
.swal2-popup.quick-cod-swal-popup {
    width: 500px; /* Default width for larger screens */
    max-width: 90%;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0px 6px 20px rgba(0, 0, 0, 0.15);
    font-family: "Segoe UI", Tahoma, sans-serif;
    direction: rtl;
}

/* The container for our custom HTML */
.quick-cod-swal-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Product & Shipping Info Section */
.swal-order-summary {
    background-color: #f8f9fa;
    border-radius: 10px;
    margin-bottom: 1rem;
    border: 1px solid #dee2e6;
    overflow: hidden;
}

.swal-product-info,
.swal-shipping-info,
.swal-discount-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1.1rem;
}

.swal-shipping-info,
.swal-discount-info {
    border-top: 1px solid #dee2e6;
}

.swal-discount-info {
    color: #28a745;
}

.swal-product-info .product-title,
.swal-shipping-info .shipping-title,
.swal-discount-info .discount-title {
    font-weight: 600;
    font-size: 1rem;
    color: #343a40;
}

.swal-product-info .product-price,
.swal-shipping-info .shipping-cost,
.swal-discount-info .discount-amount {
    font-weight: 700;
    font-size: 1.1rem;
    color: #007cba;
}

.swal-shipping-info .shipping-cost {
    color: #343a40;
}

.swal-discount-info .discount-amount {
    color: #28a745;
}

/* The form itself */
#quick-cod-form-swal {
    display: flex;
    flex-direction: column;
}

#quick-cod-form-swal .swal-form-group {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-bottom: 0.75rem;
}

#quick-cod-form-swal .swal2-input::placeholder {
    color: #495057;
    opacity: 1;
}

#quick-cod-form-swal .swal2-input {
    padding: 10px 12px;
    font-size: 1rem;
    border-radius: 6px;
    border: 1px solid #ced4da;
    height: 40px;
    text-align: right;
}

#quick-cod-form-swal .swal2-input:focus {
    border-color: #007cba;
    box-shadow: 0 0 5px rgba(0,124,186,0.25);
    outline: none;
}

/* Quantity Control styles */
.swal-quantity-control {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin: 0.5rem 0 1rem 0;
}

.swal-quantity-control .swal2-input {
    width: 50px !important;
    height: 38px !important;
    text-align: center;
    font-weight: bold;
    -moz-appearance: textfield;
    margin: 0;
}

.swal-quantity-btn {
    width: 38px;
    height: 38px;
    font-size: 1.1rem;
}

/* Promo Code Section */
.swal-promo-code-container {
    margin: 0.5rem 0 1rem 0;
}

.swal-promo-input-wrapper {
    display: flex;
    gap: 8px;
}

#swal-promo-code {
    flex-grow: 1;
}

.swal-apply-promo-btn {
    padding: 8px 12px;
    font-size: 0.9rem;
}

.swal-promo-feedback {
    font-size: 0.85rem;
    margin-top: 4px;
}

/* Wholesale Alert Section */
.swal-wholesale-alert {
    padding: 10px 15px;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    font-weight: 600;
    text-align: right;
    display: flex;
    align-items: center;
    gap: 10px;
    direction: rtl;
}

.swal-wholesale-alert.info {
    background-color: #e7f3ff;
    color: #007cba;
    border: 1px solid #b3d7ff;
}

.swal-wholesale-alert.success {
    background-color: #e6ffed;
    color: #28a745;
    border: 1px solid #c3e6cb;
}

.swal-wholesale-alert i {
    font-size: 1.1rem;
}

/* Buttons */
.swal2-actions {
    margin-top: 1rem;
}

@media (max-width: 480px) {
    .swal-promo-input-wrapper {
        flex-direction: column;
    }

    .swal-apply-promo-btn {
        width: 100%;
    }
}

/* Other existing styles... */