/* ===================================
   Enhanced Cart Summary Page Styles
   Ultra Modern, Sleek & Mobile-First
   =================================== */

/* Main Wrapper */
.order-summary-wrapper {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background: #f8fafc;
    position: relative;
}

.order-summary-card {
    background: #ffffff;
    border-radius: 0;
    box-shadow: none;
    overflow: hidden;
    border: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    margin: 0;
}

@media (min-width: 768px) {
    .order-summary-wrapper {
        padding: 1.5rem 1rem;
        background: #f1f5f9;
    }
    
    .order-summary-card {
        border-radius: 24px;
        margin: 0 auto;
        max-width: 1200px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    }
}

.order-summary-card:hover {
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.1);
}

/* Header Section */
.order-summary-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    background-size: 200% 200%;
    animation: headerGradient 8s ease infinite;
    padding: 1.25rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
}

@media (min-width: 768px) {
    .order-summary-header {
        padding: 1.75rem 2rem;
    }
}


.order-summary-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: #1e293b;
    margin: 0;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1;
    letter-spacing: -0.3px;
}

@media (min-width: 768px) {
    .order-summary-title {
        font-size: 1.65rem;
    }
}

.order-summary-title i {
    font-size: 1.35rem;
    margin-right: 0.625rem;
    color: #667eea;
}

@media (min-width: 768px) {
    .order-summary-title i {
        font-size: 1.5rem;
    }
}

.back-to-cart-btn {
    padding: 0.625rem 1rem;
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1;
    font-size: 0.875rem;
}

@media (min-width: 768px) {
    .back-to-cart-btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
        border-radius: 14px;
    }
}

.back-to-cart-btn:hover {
    background: #e2e8f0;
    color: #1e293b;
    border-color: #cbd5e1;
    transform: translateY(-1px);
}

.back-to-cart-btn:active {
    transform: translateY(0);
}

/* Body Section */
.order-summary-body {
    padding: 1rem;
    background: #ffffff;
    position: relative;
}

@media (min-width: 768px) {
    .order-summary-body {
        padding: 1.5rem;
    }
}

/* Section Headers */
.shipping-details-section,
.order-items-section {
    background: #ffffff;
    border-radius: 16px;
    padding: 1.25rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    margin-bottom: 1rem;
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease;
    position: relative;
}

@media (min-width: 768px) {
    .shipping-details-section,
    .order-items-section {
        padding: 1.5rem;
        margin-bottom: 1.25rem;
        border-radius: 18px;
    }
}

.shipping-details-section:hover,
.order-items-section:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.shipping-details-section h4,
.order-items-section h4 {
    color: #1e293b;
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e5e7eb;
    display: flex;
    align-items: center;
    position: relative;
    letter-spacing: -0.3px;
}

@media (min-width: 768px) {
    .shipping-details-section h4,
    .order-items-section h4 {
        font-size: 1.35rem;
        margin-bottom: 1.25rem;
    }
}

.shipping-details-section h4 i,
.order-items-section h4 i {
    margin-right: 0.625rem;
    color: #667eea;
    font-size: 1.25rem;
}

@media (min-width: 768px) {
    .shipping-details-section h4 i,
    .order-items-section h4 i {
        font-size: 1.4rem;
    }
}

/* Enhanced Form Styles */
.form-row-enhanced {
    margin-bottom: 1rem;
    position: relative;
}

@media (min-width: 768px) {
    .form-row-enhanced {
        margin-bottom: 1.25rem;
    }
}

.form-label-enhanced {
    display: flex;
    align-items: center;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    letter-spacing: -0.2px;
}

.form-label-enhanced i {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 1.1rem;
    margin-right: 0.5rem;
    filter: drop-shadow(0 1px 2px rgba(102, 126, 234, 0.2));
}

/* Prevent iOS zoom - ensure minimum 16px font-size */
@supports (-webkit-touch-callout: none) {
    .form-control-enhanced,
    input.form-control-enhanced,
    select.form-control-enhanced,
    textarea.form-control-enhanced {
        font-size: 16px !important;
    }
}

.form-control-enhanced {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    font-size: 16px; /* Minimum 16px to prevent iOS zoom */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    color: #1e293b;
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.form-control-enhanced:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 
        0 0 0 4px rgba(102, 126, 234, 0.12),
        0 4px 16px rgba(102, 126, 234, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    background: #ffffff;
}

.form-control-enhanced::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

.form-control-enhanced.is-invalid {
    border-color: #ef4444;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23ef4444'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath d='m5.8 3.6 .4.4.4-.4M6 8.5V6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
    padding-right: calc(1.5em + 0.75rem);
    box-shadow: 
        0 0 0 4px rgba(239, 68, 68, 0.1),
        0 2px 8px rgba(239, 68, 68, 0.15);
}

.validation-message {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #ef4444;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Enhanced Alert */
.alert-info-enhanced {
    background: linear-gradient(135deg, #dbeafe 0%, #e0f2fe 100%);
    border: 2px solid #3b82f6;
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.alert-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: #3b82f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.25rem;
}

.alert-content {
    flex: 1;
}

.alert-content strong {
    color: #1e40af;
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
}

.alert-content p {
    color: #1e3a8a;
    margin: 0;
    font-size: 0.95rem;
}

/* Enhanced Order Items */
.order-items-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.order-item-enhanced {
    display: flex;
    gap: 0.875rem;
    padding: 1rem;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    margin-bottom: 0.75rem;
    transition: all 0.2s ease;
    position: relative;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

@media (min-width: 768px) {
    .order-item-enhanced {
        gap: 1.25rem;
        padding: 1.25rem;
        border-radius: 20px;
        margin-bottom: 1rem;
    }
}

.order-item-enhanced::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(180deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    transform: scaleY(0);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 0 4px 4px 0;
}

.order-item-enhanced::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.03) 0%, rgba(118, 75, 162, 0.03) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.order-item-enhanced:hover {
    border-color: #cbd5e1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.order-item-image-wrapper {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    border-radius: 12px;
    overflow: hidden;
    background: #f1f5f9;
    border: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.2s ease;
}

@media (min-width: 768px) {
    .order-item-image-wrapper {
        width: 90px;
        height: 90px;
        border-radius: 14px;
    }
}

.order-item-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.order-item-content {
    flex: 1;
    min-width: 0;
    position: relative;
    z-index: 1;
}

.order-item-title-enhanced {
    font-size: 1.05rem;
    font-weight: 800;
    color: #1e293b;
    margin: 0 0 0.5rem 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    line-height: 1.5;
    letter-spacing: -0.3px;
}

@media (min-width: 768px) {
    .order-item-title-enhanced {
        font-size: 1.2rem;
    }
}

.badge-combo {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #ffffff;
    padding: 0.35rem 0.85rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    box-shadow: 
        0 4px 12px rgba(251, 191, 36, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: badgeGlow 3s ease-in-out infinite;
}

@keyframes badgeGlow {
    0%, 100% { 
        box-shadow: 
            0 4px 12px rgba(251, 191, 36, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.3);
    }
    50% { 
        box-shadow: 
            0 4px 20px rgba(251, 191, 36, 0.6),
            inset 0 1px 0 rgba(255, 255, 255, 0.4),
            0 0 20px rgba(251, 191, 36, 0.3);
    }
}

.badge-promo {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    padding: 0.35rem 0.85rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    box-shadow: 
        0 4px 12px rgba(16, 185, 129, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: promoPulse 2s ease-in-out infinite;
}

@keyframes promoPulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 
            0 4px 12px rgba(16, 185, 129, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.3);
    }
    50% { 
        transform: scale(1.05);
        box-shadow: 
            0 6px 20px rgba(16, 185, 129, 0.6),
            inset 0 1px 0 rgba(255, 255, 255, 0.4),
            0 0 25px rgba(16, 185, 129, 0.4);
    }
}

.order-item-variant-enhanced {
    display: inline-block;
    background: #f1f5f9;
    color: #64748b;
    padding: 0.375rem 0.75rem;
    border-radius: 8px;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    border: 1px solid #e2e8f0;
}

.order-item-variant-enhanced i {
    color: #667eea;
    font-size: 0.75rem;
}

.order-item-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 0.5rem;
}

.order-item-quantity-enhanced,
.order-item-products-count {
    color: #64748b;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
}

.order-item-quantity-enhanced i,
.order-item-products-count i {
    color: #667eea;
    margin-right: 0.25rem;
}

.order-item-price-wrapper {
    flex-shrink: 0;
    text-align: right;
    display: flex;
    align-items: center;
}

.order-item-price-enhanced {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.order-item-price-enhanced .original-price {
    color: #1e293b;
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.2;
}

.order-item-price-enhanced .discounted-price {
    font-size: 1.1rem;
    font-weight: 700;
    margin-top: 0.25rem;
}

.order-total-item {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 2px solid #667eea;
    border-left: 4px solid #667eea;
}

.order-total-label {
    color: #667eea;
    font-size: 1.125rem;
    font-weight: 700;
}

.order-subtotal-value {
    color: #667eea;
    font-size: 1.75rem;
    font-weight: 900;
}

/* Promo Code Section */
.promo-code-section {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 1.25rem;
    margin-top: 1rem;
    position: relative;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

@media (min-width: 768px) {
    .promo-code-section {
        padding: 1.5rem;
        margin-top: 1.25rem;
        border-radius: 18px;
    }
}

.promo-code-section:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.promo-code-section h4 {
    color: #1e293b;
    font-size: 1.35rem;
    font-weight: 900;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    letter-spacing: -0.5px;
}

@media (min-width: 768px) {
    .promo-code-section h4 {
        font-size: 1.5rem;
    }
}

.promo-code-section h4 i {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-right: 0.75rem;
    font-size: 1.4rem;
    filter: drop-shadow(0 2px 4px rgba(16, 185, 129, 0.3));
}

.promo-code-input-group {
    display: flex;
    gap: 0.75rem;
}

/* Prevent iOS zoom for promo code input */
@supports (-webkit-touch-callout: none) {
    .promo-code-input-group input {
        font-size: 16px !important;
    }
}

.promo-code-input-group input {
    flex: 1;
    padding: 1rem 1.25rem;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    font-size: 16px; /* Minimum 16px to prevent iOS zoom */
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.promo-code-input-group input:focus {
    outline: none;
    border-color: #10b981;
    box-shadow: 
        0 0 0 4px rgba(16, 185, 129, 0.12),
        0 4px 16px rgba(16, 185, 129, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    background: #ffffff;
}

.promo-code-input-group button {
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    border: none;
    border-radius: 16px;
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 6px 20px rgba(16, 185, 129, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.promo-code-input-group button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.promo-code-input-group button:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 8px 28px rgba(16, 185, 129, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.promo-code-input-group button:hover::before {
    left: 100%;
}

.promo-code-input-group button:active {
    transform: translateY(-1px) scale(0.98);
}

.promo-applied-box {
    background: linear-gradient(135deg, rgba(209, 250, 229, 0.95) 0%, rgba(167, 243, 208, 0.95) 100%);
    backdrop-filter: blur(10px);
    border: 2px solid #10b981;
    border-radius: 18px;
    padding: 1.5rem;
    margin-top: 1.25rem;
    box-shadow: 
        0 8px 24px rgba(16, 185, 129, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    animation: promoSuccess 0.5s ease-out;
}

@keyframes promoSuccess {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.discount-details {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid rgba(16, 185, 129, 0.3);
    font-size: 1rem;
    font-weight: 700;
    color: #059669;
}

/* Order Total Section */
.order-total-section {
    background: #f8fafc;
    border: 2px solid #667eea;
    border-radius: 16px;
    padding: 1.25rem;
    margin-top: 1rem;
    position: relative;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.1);
}

@media (min-width: 768px) {
    .order-total-section {
        padding: 1.5rem;
        margin-top: 1.25rem;
        border-radius: 18px;
    }
}

.order-total-section h4 {
    color: #1e293b;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1;
    letter-spacing: -0.3px;
}

@media (min-width: 768px) {
    .order-total-section h4 {
        font-size: 1.5rem;
    }
}

.order-total-section h4 i {
    color: #667eea;
    margin-right: 0.625rem;
    font-size: 1.3rem;
}

@media (min-width: 768px) {
    .order-total-section h4 i {
        font-size: 1.5rem;
    }
}

.order-final-total {
    font-size: 1.75rem;
    color: #667eea;
    font-weight: 800;
    position: relative;
    z-index: 1;
    letter-spacing: -0.5px;
}

@media (min-width: 768px) {
    .order-final-total {
        font-size: 2.25rem;
    }
}

/* Delivery Charge Section */
.delivery-charge-section {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(102, 126, 234, 0.15);
    border-radius: 18px;
    padding: 1.25rem 1.5rem;
    margin-top: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.06),
        0 0 0 1px rgba(102, 126, 234, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: slideIn 0.4s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.delivery-charge-section:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 8px 24px rgba(102, 126, 234, 0.15),
        0 0 0 1px rgba(102, 126, 234, 0.2);
}

.delivery-charge-section span {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    color: #1e293b;
    font-size: 1rem;
}

.delivery-charge-section i {
    color: #667eea;
    font-size: 1.25rem;
}

.delivery-charge-section strong {
    font-size: 1.25rem;
    font-weight: 900;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Free Delivery Message */
.free-delivery-message {
    margin-top: 1rem;
    animation: slideIn 0.4s ease-out;
}

.free-delivery-message .alert {
    background: linear-gradient(135deg, rgba(209, 250, 229, 0.95) 0%, rgba(167, 243, 208, 0.95) 100%);
    backdrop-filter: blur(10px);
    border: 2px solid #10b981;
    border-radius: 18px;
    padding: 1.25rem 1.5rem;
    box-shadow: 
        0 4px 16px rgba(16, 185, 129, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    margin: 0;
}

.free-delivery-message .alert i {
    color: #10b981;
    font-size: 1.5rem;
    margin-right: 0.75rem;
    animation: bounce 2s ease-in-out infinite;
}

.free-delivery-message .alert strong {
    color: #059669;
    font-size: 1.1rem;
    font-weight: 800;
}

/* Payment Method Section */
.payment-method-section {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 1.25rem;
    margin-top: 1rem;
    position: relative;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

@media (min-width: 768px) {
    .payment-method-section {
        padding: 1.5rem;
        margin-top: 1.25rem;
        border-radius: 18px;
    }
}

.payment-method-section:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.payment-method-section h4 {
    color: #1e293b;
    font-size: 1.2rem;
    font-weight: 900;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1;
    letter-spacing: -0.5px;
}

@media (min-width: 768px) {
    .payment-method-section h4 {
        font-size: 1.35rem;
        margin-bottom: 1.25rem;
    }
}

.payment-method-section h4 i {
    color: #667eea;
    margin-right: 0.625rem;
    font-size: 1.25rem;
}

@media (min-width: 768px) {
    .payment-method-section h4 i {
        font-size: 1.4rem;
    }
}

.payment-methods {
    display: grid;
    gap: 1rem;
}

.payment-method-option {
    position: relative;
}

.payment-method-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.payment-method-label {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.payment-method-label::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.1), transparent);
    transition: left 0.5s ease;
}

.payment-method-label:hover::before {
    left: 100%;
}

.payment-method-label i {
    font-size: 1.75rem;
    color: #667eea;
    transition: all 0.2s ease;
}

.payment-method-label span {
    font-weight: 800;
    color: #1e293b;
    font-size: 1.1rem;
    letter-spacing: -0.3px;
}

.payment-method-label small {
    display: block;
    color: #64748b;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    font-weight: 500;
}

.payment-method-option input[type="radio"]:checked + .payment-method-label {
    border-color: #667eea;
    background: #eff6ff;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.15);
}

.payment-method-option input[type="radio"]:checked + .payment-method-label::after {
    content: '✓';
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.3rem;
    box-shadow: 
        0 6px 20px rgba(102, 126, 234, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    animation: checkPop 0.3s ease-out;
}

@keyframes checkPop {
    0% {
        transform: translateY(-50%) scale(0);
    }
    50% {
        transform: translateY(-50%) scale(1.2);
    }
    100% {
        transform: translateY(-50%) scale(1);
    }
}

.payment-method-label:hover {
    border-color: #cbd5e1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Footer Section */
.order-summary-footer-enhanced {
    padding: 0.875rem;
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    position: relative;
}

@media (min-width: 768px) {
    .order-summary-footer-enhanced {
        padding: 1.25rem 1.5rem;
    }
}

.footer-content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: stretch;
    width: 100%;
}

/* Mobile: Button first, then delivery estimate */
@media (max-width: 767px) {
    .footer-content-wrapper {
        flex-direction: column;
    }
    
    .place-order-btn-enhanced {
        order: 1;
        width: 100%;
    }
    
    .estimate-delivery-enhanced {
        order: 2;
        width: 100%;
    }
}

@media (min-width: 768px) {
    .footer-content-wrapper {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 1.5rem;
    }
    
    .place-order-btn-enhanced {
        order: 2;
    }
    
    .estimate-delivery-enhanced {
        order: 1;
    }
}

.estimate-delivery-enhanced {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    flex: 1;
    padding: 0.625rem 0.875rem;
    background: #f8fafc;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    width: 100%;
}

@media (min-width: 768px) {
    .estimate-delivery-enhanced {
        padding: 0.875rem 1.125rem;
        border-radius: 14px;
        width: auto;
    }
}

.delivery-icon {
    width: 40px;
    height: 40px;
    background: #667eea;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.2rem;
    flex-shrink: 0;
    position: relative;
}

@media (min-width: 768px) {
    .delivery-icon {
        width: 48px;
        height: 48px;
        font-size: 1.4rem;
        border-radius: 14px;
    }
}


.delivery-text strong {
    color: #1e293b;
    font-size: 0.85rem;
    font-weight: 700;
    display: block;
    margin-bottom: 0.125rem;
    letter-spacing: -0.2px;
}

@media (min-width: 768px) {
    .delivery-text strong {
        font-size: 1rem;
    }
}

.delivery-text p {
    color: #64748b;
    font-size: 0.75rem;
    margin: 0;
    font-weight: 500;
    line-height: 1.3;
}

@media (min-width: 768px) {
    .delivery-text p {
        font-size: 0.875rem;
    }
}

.place-order-btn-enhanced {
    position: relative;
    padding: 0.75rem 1rem;
    background: #667eea;
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.25);
    overflow: hidden;
    width: 100%;
    text-transform: none;
    letter-spacing: 0;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (min-width: 768px) {
    .place-order-btn-enhanced {
        padding: 1rem 2rem;
        font-size: 1.05rem;
        min-width: 200px;
        width: auto;
        border-radius: 16px;
        min-height: 52px;
    }
}

.place-order-btn-enhanced .btn-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

@media (min-width: 768px) {
    .place-order-btn-enhanced .btn-content {
        gap: 0.75rem;
    }
}

.place-order-btn-enhanced .btn-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s ease;
    z-index: 1;
}

.place-order-btn-enhanced:hover {
    background: #5568d3;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.35);
}

.place-order-btn-enhanced:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.3);
}

.place-order-btn-enhanced:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    background: #94a3b8;
}

/* ===================================
   Mobile Responsive Styles - Ultra Cool
   =================================== */

@media (max-width: 992px) {
    .order-summary-body {
        padding: 1.5rem;
    }

    .shipping-details-section,
    .order-items-section {
        padding: 1.5rem;
        border-radius: 20px;
    }
}

/* Mobile First - Primary Breakpoint */
@media (max-width: 768px) {
    .order-summary-wrapper {
        padding: 0;
    }

    .order-summary-card {
        border-radius: 0;
        margin: 0;
    }

    .order-summary-header {
        flex-direction: column;
        gap: 1rem;
        padding: 1.5rem 1.25rem;
        text-align: center;
        border-radius: 0;
    }

    .order-summary-title {
        font-size: 1.5rem;
        justify-content: center;
        width: 100%;
    }

    .back-to-cart-btn {
        width: 100%;
        justify-content: center;
        padding: 0.875rem 1.25rem;
        font-size: 0.95rem;
        border-radius: 14px;
    }

    .order-summary-body {
        padding: 1rem 0.875rem;
    }

    .shipping-details-section,
    .order-items-section {
        padding: 1.25rem 1rem;
        margin-bottom: 1rem;
        border-radius: 18px;
    }

    .shipping-details-section h4,
    .order-items-section h4 {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }

    .form-row-enhanced {
        margin-bottom: 1rem;
    }

    .form-label-enhanced {
        font-size: 0.95rem;
        margin-bottom: 0.625rem;
    }

    .form-control-enhanced {
        padding: 1rem 1.125rem;
        font-size: 16px; /* Minimum 16px to prevent iOS zoom */
        border-radius: 14px;
        min-height: 52px; /* Better touch target */
    }

    .order-item-enhanced {
        flex-direction: column !important;
        gap: 1rem;
        padding: 1.25rem;
        border-radius: 18px;
    }

    .order-item-image-wrapper {
        width: 100%;
        height: 180px;
        align-self: center;
        max-width: 180px;
        border-radius: 16px;
    }

    .order-item-content {
        text-align: center;
        width: 100%;
    }

    .order-item-title-enhanced {
        justify-content: center;
        text-align: center;
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }

    .order-item-meta {
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .order-item-price-wrapper {
        justify-content: center;
        width: 100%;
        margin-top: 0.5rem;
    }

    .order-item-price-enhanced {
        align-items: center;
    }

    .order-item-price-enhanced .original-price {
        font-size: 1.5rem;
    }

    .promo-code-section {
        padding: 1.5rem 1.25rem;
        border-radius: 20px;
    }

    .promo-code-input-group {
        flex-direction: column;
        gap: 0.75rem;
    }

    .promo-code-input-group input {
        width: 100%;
        padding: 1rem;
        font-size: 16px; /* Minimum 16px to prevent iOS zoom */
        border-radius: 14px;
        min-height: 52px;
    }

    .promo-code-input-group button {
        width: 100%;
        justify-content: center;
        padding: 1rem;
        font-size: 1rem;
        border-radius: 14px;
        min-height: 52px;
    }

    .order-total-section {
        padding: 1.5rem 1.25rem;
        border-radius: 20px;
    }

    .order-total-section h4 {
        font-size: 1.4rem;
    }

    .order-final-total {
        font-size: 1.75rem;
    }

    .payment-method-section {
        padding: 1.5rem 1.25rem;
        border-radius: 20px;
    }

    .payment-method-label {
        padding: 1.25rem;
        border-radius: 16px;
        min-height: 70px;
    }

    .payment-method-label i {
        font-size: 1.75rem;
    }

    .payment-method-label span {
        font-size: 1.05rem;
    }

    .order-summary-footer-enhanced {
        padding: 1rem 0.875rem;
        border-radius: 0;
    }

    .footer-content-wrapper {
        gap: 0.75rem;
        flex-direction: column !important;
    }

    .place-order-btn-enhanced {
        order: 1 !important;
        width: 100% !important;
    }

    .estimate-delivery-enhanced {
        order: 2 !important;
        width: 100% !important;
        flex-direction: row;
        text-align: left;
        gap: 0.625rem;
        padding: 0.625rem 0.875rem;
    }

    .delivery-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
        flex-shrink: 0;
    }

    .delivery-text {
        flex: 1;
    }

    .delivery-text strong {
        font-size: 0.8rem;
    }

    .delivery-text p {
        font-size: 0.7rem;
    }

    .place-order-btn-enhanced {
        width: 100%;
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
        border-radius: 12px;
        min-height: 44px;
    }
}

/* Small Mobile Devices */
@media (max-width: 576px) {
    .order-summary-header {
        padding: 1.25rem 1rem;
    }

    .order-summary-title {
        font-size: 1.35rem;
    }

    .order-summary-title i {
        font-size: 1.35rem;
    }

    .back-to-cart-btn {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }

    .order-summary-body {
        padding: 0.875rem 0.75rem;
    }

    .shipping-details-section,
    .order-items-section {
        padding: 1rem 0.875rem;
        border-radius: 16px;
        margin-bottom: 0.875rem;
    }

    .shipping-details-section h4,
    .order-items-section h4 {
        font-size: 1.15rem;
        margin-bottom: 0.875rem;
    }

    .form-control-enhanced {
        padding: 0.875rem 1rem;
        font-size: 16px; /* Minimum 16px to prevent iOS zoom */
        min-height: 48px;
    }

    .order-item-enhanced {
        padding: 1rem;
        border-radius: 16px;
    }

    .order-item-image-wrapper {
        height: 160px;
        max-width: 160px;
        border-radius: 14px;
    }

    .order-item-title-enhanced {
        font-size: 1rem;
    }

    .order-item-price-enhanced .original-price {
        font-size: 1.35rem;
    }

    .order-total-section {
        padding: 1.25rem 1rem;
        border-radius: 18px;
    }

    .order-total-section h4 {
        font-size: 1.2rem;
    }

    .order-final-total {
        font-size: 1.6rem;
    }

    .payment-method-section {
        padding: 1.25rem 1rem;
        border-radius: 18px;
    }

    .payment-method-label {
        padding: 1rem;
        min-height: 65px;
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .payment-method-label i {
        font-size: 1.5rem;
    }

    .payment-method-label span {
        font-size: 1rem;
    }

    .payment-method-label small {
        margin-top: 0;
        font-size: 0.8rem;
    }

    .order-summary-footer-enhanced {
        padding: 0.875rem 0.75rem;
    }

    .footer-content-wrapper {
        gap: 0.625rem;
        flex-direction: column !important;
    }

    .place-order-btn-enhanced {
        order: 1 !important;
        width: 100% !important;
    }

    .estimate-delivery-enhanced {
        order: 2 !important;
        width: 100% !important;
        flex-direction: row;
        text-align: left;
        padding: 0.625rem 0.75rem;
        gap: 0.5rem;
    }

    .delivery-icon {
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
        flex-shrink: 0;
    }

    .delivery-text strong {
        font-size: 0.75rem;
    }

    .delivery-text p {
        font-size: 0.65rem;
        line-height: 1.2;
    }

    .place-order-btn-enhanced {
        padding: 0.7rem 0.875rem;
        font-size: 0.85rem;
        border-radius: 11px;
        min-height: 42px;
    }
}

/* Extra Small Devices */
@media (max-width: 400px) {
    .order-summary-header {
        padding: 1.5rem 1rem;
    }

    .order-summary-title {
        font-size: 1.35rem;
    }

    .order-summary-body {
        padding: 0.875rem 0.75rem;
    }

    .shipping-details-section,
    .order-items-section {
        padding: 1rem 0.875rem;
    }

    .order-item-image-wrapper {
        height: 160px;
        max-width: 160px;
    }
}

/* RTL Support */
[dir="rtl"] .order-summary-header {
    flex-direction: row-reverse;
}

[dir="rtl"] .order-item-enhanced {
    flex-direction: row-reverse;
}

[dir="rtl"] .order-item-price-wrapper {
    text-align: left;
}

[dir="rtl"] .order-item-price-enhanced {
    align-items: flex-start;
}

[dir="rtl"] .footer-content-wrapper {
    flex-direction: row-reverse;
}

/* Print Styles */
@media print {
    .order-summary-header,
    .order-summary-footer-enhanced,
    .back-to-cart-btn,
    .place-order-btn-enhanced,
    .promo-code-section,
    .payment-method-section {
        display: none;
    }

    .order-summary-card {
        box-shadow: none;
        border: 1px solid #000;
    }
}

