/* =========================================
   COD Express Checkout - RTL Arabic Design
   ========================================= */

/* Main Form Container */
.cod-express-checkout-form {
    max-width: 500px;
    margin: 0 auto;
    font-family: 'Tajawal', 'Cairo', 'Arial', sans-serif;
    direction: rtl;
    text-align: right;
}

.cod-express-form-title {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
    text-align: center;
}

/* =========================================
   Quantity Offers Grid - Vertical Stacked
   ========================================= */
.cod-express-offers-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 25px;
    width: 100%;
}

.cod-express-offer-card {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 23px;
    background: #fafafa;
    border: 1px solid #d5d8dc;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.5s ease-in-out;
    min-height: 80px;
}

.cod-express-offer-card:hover {
    border-color: #e8e8e8;
    background: #e8e8e8;
    transform: translateY(-2px);
}

.cod-express-offer-card.active {border-color: #e8e8e8;background: #e8e8e8;box-shadow: 0px 3px 14px 4px rgb(232 232 232);}

/* Discount Badge - Top Right Corner */
.cod-express-discount-badge {
    position: absolute;
    top: -8px;
    right: 15px;
    background: #e74c3c;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    box-shadow: 0 2px 6px rgba(231, 76, 60, 0.3);
    z-index: 2;
}

/* Image Section - Right Side */
.cod-express-offer-image {
    flex-shrink: 0;
    margin-right: 0;
    margin-left: 15px;
}

.cod-express-offer-img {
 width: 54px;
    object-fit: cover;
    border-radius: 11px;
    border: 1px solid #f5f7f9;
}

/* Text Section - Center */
.cod-express-offer-text {
    flex: 1;
    text-align: center;
    padding: 0 10px;
}

.cod-express-offer-label {
font-weight: 900;
    font-size: 17px;
    color: #130906;
    line-height: 1.4;
}

/* Prices Section - Left Side */
.cod-express-offer-prices {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    flex-shrink: 0;
    text-align: left;
    direction: ltr;
}

.cod-express-original-price {
    text-decoration: line-through;
    color: #999;
    font-size: 13px;
    font-weight: 400;
}

.cod-express-discounted-price {
    font-weight: 700;
    font-size: 18px;
    color: #2c3e50;
    white-space: nowrap;
}

/* =========================================
   Form Fields
   ========================================= */
.cod-express-field {
    position: relative;
    margin-bottom: 15px;
}

.cod-express-field input,
.cod-express-field textarea {
    height: 44px !important;
    padding: 9px 11px !important;
    border: 1px solid #333333 !important;
    font-size: 14px !important;
    font-family: inherit;
    color: #333 !important;
    background: #fff;
    box-sizing: border-box;
    direction: rtl;
    text-align: right;
    border-radius: 14px !important;
    font-weight: bold;
}

.cod-express-field input:focus,
.cod-express-field textarea:focus {
    outline: none;
    border-color: #b8956a;
    box-shadow: 0 0 0 3px rgba(184, 149, 106, 0.1);
}

.cod-express-field.has-error input,
.cod-express-field.has-error textarea {
    border-color: #e74c3c;
}

.cod-express-field-error {
    display: block;
    color: #e74c3c;
    font-size: 12px;
    margin-top: 5px;
    text-align: right;
}

/* =========================================
   Order Summary
   ========================================= */
.cod-express-order-summary {
    background: #e8e8e8;
    padding: 16px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    border: 1px solid #e8e0d5;
}

.cod-express-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 15px;
    color: #555;
}

.cod-express-summary-row.total {
    margin-top: 8px;
    padding-top: 12px;
    font-weight: 700;
    font-size: 18px;
    color: #2c3e50;
}

/* =========================================
   Submit Button
   ========================================= */
.cod-express-submit-btn {
    width: 100%;
    padding: 18px 24px;
    background: #333 !important;
    color: #fff !important;
    border: none;
    border-radius: 10px;
    font-size: 20px;
    font-weight: 900;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    letter-spacing: 0.5px;
    animation: skew-x-shake 2.3s infinite;
}

@keyframes skew-x-shake {
  0% { transform: skewX(-20deg); }
  5% { transform: skewX(20deg); }
  10% { transform: skewX(-20deg); }
  15% { transform: skewX(20deg); }
  20% { transform: skewX(0deg); }
  100% { transform: skewX(0deg); }  
}

.cod-express-submit-btn:hover {
    background: #1a252f;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(44, 62, 80, 0.3);
}

.cod-express-submit-btn:disabled {
    background: #95a5a6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.cod-express-submit-btn.loading {
    opacity: 0.8;
}

/* =========================================
   Security Notice
   ========================================= */
.cod-express-security-notice {
    text-align: center;
    margin-top: 15px;
    color: #888;
    font-size: 13px;
}

/* =========================================
   Message Container
   ========================================= */
.cod-express-message {
    margin-bottom: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.6;
}

.cod-express-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.cod-express-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.cod-express-message.hidden {
    display: none;
}

.horizontal-shake {
  animation: horizontal-shaking 2s infinite;
}

@keyframes horizontal-shaking {
  0% { transform: translateX(0) }
  25% { transform: translateX(3px) }
  50% { transform: translateX(-3px) }
  75% { transform: translateX(3px) }
  100% { transform: translateX(0) }
}

/* =========================================
   Spinner
   ========================================= */
.spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    vertical-align: middle;
    margin-left: 8px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}


#pa_color{
    display:none !important
}

/* =========================================
   Responsive
   ========================================= */
@media (max-width: 480px) {
    .cod-express-checkout-form {
        padding: 0 10px;
    }
    
    .cod-express-offer-card {
        padding: 14px 16px;
    }
    
    .cod-express-offer-img {
        width: 55px;
        height: 55px;
    }
    
    .cod-express-offer-label {
        font-size: 14px;
    }
    
    .cod-express-discounted-price {
        font-size: 16px;
    }
    
    .cod-express-submit-btn {
        font-size: 15px;
        padding: 16px 20px;
    }
}