/* =====================================================
   PROFESSIONAL CHECKOUT PAGE - Clean Modern Design
   ===================================================== */

.checkout-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.checkout-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 32px;
}

/* =====================================================
   CHECKOUT SECTIONS
   ===================================================== */

.checkout-section {
    background: white;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-title {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
}

.edit-btn {
    background: #ff6b35;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease;
}

.edit-btn:hover {
    background: #e55a2b;
}

/* =====================================================
   ADDRESS DISPLAY
   ===================================================== */

.address-display {
    background: white;
    border-left: 4px solid #27ae60;
    padding: 20px;
    border-radius: 8px;
}

.address-info .address-name strong {
    font-size: 18px;
    color: #1a1a1a;
    display: block;
    margin-bottom: 12px;
}

.address-details p {
    margin: 8px 0;
    color: #4a5568;
    font-size: 14px;
    line-height: 1.5;
}

/* =====================================================
   HANDLING CHARGE
   ===================================================== */

.handling-charge {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.handling-icon {
    font-size: 32px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 8px;
}

.handling-info {
    flex: 1;
}

.handling-info h4 {
    margin: 0 0 4px 0;
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
}

.handling-info p {
    margin: 0;
    color: #718096;
    font-size: 14px;
}

.handling-price {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
}

/* =====================================================
   COUPON SECTION
   ===================================================== */

.coupon-applied {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 8px;
    padding: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
}

.coupon-applied span {
    color: #155724;
    font-weight: 600;
    font-size: 14px;
}

.remove-coupon-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.coupon-form {
    margin-top: 16px;
}

.coupon-input-group {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.coupon-input-group input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
}

.apply-coupon-btn {
    padding: 12px 24px;
    background: #27ae60;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-size: 14px;
}

.coupon-error {
    color: #e74c3c;
    font-size: 13px;
    margin: 0 0 12px 0;
}

.available-coupons {
    margin-top: 16px;
}

.coupons-title {
    font-size: 13px;
    color: #7f8c8d;
    margin-bottom: 12px;
    font-weight: 600;
}

.coupon-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    border: 1px dashed #e0e0e0;
    border-radius: 8px;
    background: #f9f9f9;
    margin-bottom: 8px;
}

.coupon-details {
    flex: 1;
}

.coupon-code {
    font-weight: 800;
    color: #2c3e50;
    font-size: 14px;
    letter-spacing: 0.5px;
}

.coupon-discount {
    color: #27ae60;
    font-weight: 700;
    font-size: 13px;
    margin-top: 2px;
}

.apply-btn {
    padding: 8px 16px;
    background: #27ae60;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    font-size: 12px;
}

/* =====================================================
   FAVORITES SECTION
   ===================================================== */

.favorites-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 16px;
}

.favorite-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.favorite-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
}

.favorite-details h4 {
    margin: 0 0 4px 0;
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
}

.favorite-details p {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #27ae60;
}

/* =====================================================
   ORDER SUMMARY
   ===================================================== */

.order-summary {
    background: white;
    border-radius: 12px;
    padding: 24px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: sticky;
    top: 20px;
}

.summary-header {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 20px 0;
}

.summary-items {
    margin-bottom: 24px;
}

.summary-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.summary-item-image img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
}

.summary-item-details {
    flex: 1;
}

.summary-item-name {
    margin: 0 0 4px 0;
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
}

.summary-item-qty {
    margin: 0;
    font-size: 12px;
    color: #718096;
}

.summary-item-price {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
}

.summary-calculations {
    border-top: 1px solid #e5e7eb;
    padding-top: 16px;
    margin-bottom: 16px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.summary-label {
    color: #4a5568;
    font-size: 14px;
}

.summary-value {
    font-weight: 600;
    color: #1a1a1a;
    font-size: 14px;
}

.summary-value.discount {
    color: #27ae60;
}

.summary-total {
    border-top: 2px solid #e5e7eb;
    padding-top: 16px;
    margin-bottom: 20px;
}

.summary-total .summary-label {
    font-weight: 600;
    font-size: 16px;
    color: #1a1a1a;
}

.summary-total .summary-value.total {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
}

.proceed-btn {
    width: 100%;
    background: #27ae60;
    color: white;
    border: none;
    padding: 16px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.2s ease;
}

.proceed-btn:hover {
    background: #229954;
}

/* =====================================================
   FORM STYLES
   ===================================================== */

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #374151;
    font-size: 14px;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s ease;
}

.form-input:focus {
    outline: none;
    border-color: #3b82f6;
}

.continue-btn {
    background: #ff6b35;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    font-size: 14px;
    margin-top: 16px;
}

.continue-btn:hover {
    background: #e55a2b;
}

.form-buttons {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.cancel-btn {
    background: #6c757d;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    font-size: 14px;
}

.cancel-btn:hover {
    background: #5a6268;
}

.field-error {
    color: #e74c3c;
    font-size: 12px;
    margin-top: 4px;
}

/* =====================================================
   RESPONSIVE DESIGN
   ===================================================== */

@media (max-width: 768px) {
    .checkout-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .checkout-section {
        padding: 16px;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .favorites-grid {
        grid-template-columns: 1fr;
    }
    
    .order-summary {
        position: static;
    }
}

/* =====================================================
   ADDRESS MODAL STYLES - Foxtale Inspired
   ===================================================== */

.address-selector-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: none;
}

.address-selector-modal.active {
    display: block;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

.modal-content {
    position: relative;
    background: white;
    max-width: 600px;
    margin: 50px auto;
    border-radius: 16px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 24px 16px;
    border-bottom: 1px solid #e4e7eb;
}

.modal-title {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #718096;
    cursor: pointer;
    padding: 4px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: background 0.2s ease;
}

.modal-close:hover {
    background: #f7fafc;
}

.address-list-view {
    padding: 16px 24px;
}

.address-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.address-card {
    border: 2px solid #e4e7eb;
    border-radius: 12px;
    padding: 16px;
    background: white;
    transition: all 0.2s ease;
}

.address-card:hover {
    border-color: #ff6b35;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.1);
}

.address-card.selected {
    border-color: #ff6b35;
    background: #fff5f0;
}

.address-card-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

.address-info {
    flex: 1;
}

.address-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.address-name {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
}

.address-label {
    background: #f0f4f8;
    color: #4a5568;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    text-transform: capitalize;
}

.address-lines {
    font-size: 14px;
    color: #2d3748;
    margin: 0 0 4px 0;
    line-height: 1.4;
}

.address-city-state {
    font-size: 13px;
    color: #718096;
    margin: 0 0 8px 0;
}

.address-phone {
    font-size: 13px;
    color: #4a5568;
    margin: 0;
}

.address-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
}

.current-selection {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #ff6b35;
    font-size: 13px;
    font-weight: 500;
}

.check-icon {
    background: #ff6b35;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.deliver-here-btn {
    background: #ff6b35;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease;
}

.deliver-here-btn:hover {
    background: #e55a2b;
}

.edit-address-btn {
    background: #f7fafc;
    color: #4a5568;
    border: 1px solid #e4e7eb;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.edit-address-btn:hover {
    background: #edf2f7;
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid #e4e7eb;
}

.add-new-address-btn {
    width: 100%;
    background: #ff6b35;
    color: white;
    border: none;
    padding: 14px 16px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.add-new-address-btn:hover {
    background: #e55a2b;
}

.plus-icon {
    font-size: 18px;
    font-weight: 600;
}

/* =====================================================
   ADD ADDRESS FORM STYLES - Foxtale Inspired
   ===================================================== */

.add-address-section {
    padding: 0 24px 24px;
}

.add-address-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e4e7eb;
}

.back-btn {
    background: #f7fafc;
    color: #4a5568;
    border: 1px solid #e4e7eb;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.back-btn:hover {
    background: #edf2f7;
}

.add-address-title {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
}

.new-address-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-section-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
    padding-bottom: 8px;
    border-bottom: 1px solid #f0f4f8;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-row .form-group.full-width {
    grid-column: 1 / -1;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-label {
    font-size: 13px;
    font-weight: 600;
    color: #4a5568;
    margin: 0;
}

.form-input {
    padding: 12px 16px;
    border: 2px solid #e4e7eb;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s ease;
    background: white;
}

.form-input:focus {
    outline: none;
    border-color: #ff6b35;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.form-input:read-only {
    background: #f7fafc;
    color: #718096;
}

.field-error {
    font-size: 12px;
    color: #e53e3e;
    margin-top: 4px;
    min-height: 16px;
}

.address-type-options {
    display: flex;
    gap: 16px;
}

.address-type-option {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 12px 16px;
    border: 2px solid #e4e7eb;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.address-type-option:hover {
    border-color: #ff6b35;
    background: #fff5f0;
}

.address-type-option input[type="radio"] {
    margin: 0;
}

.address-type-option input[type="radio"]:checked + .radio-label {
    color: #ff6b35;
    font-weight: 600;
}

.address-type-option input[type="radio"]:checked {
    accent-color: #ff6b35;
}

.radio-label {
    font-size: 14px;
    color: #4a5568;
    font-weight: 500;
}

.form-actions {
    margin-top: 16px;
}

.continue-btn {
    width: 100%;
    background: #ff6b35;
    color: white;
    border: none;
    padding: 14px 16px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.continue-btn:hover {
    background: #e55a2b;
}

.continue-btn:disabled {
    background: #cbd5e0;
    cursor: not-allowed;
}

/* =====================================================
   DELIVERY OPTIONS STYLES - Foxtale Inspired
   ===================================================== */

.delivery-options {
    margin-top: 20px;
}

.delivery-option {
    border: 2px solid #e4e7eb;
    border-radius: 12px;
    padding: 20px;
    background: white;
    transition: all 0.2s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.delivery-option.selected {
    border-color: #ff6b35;
    background: #fff5f0;
}

.delivery-option-info {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    flex: 1;
}

.delivery-icon {
    font-size: 24px;
    flex-shrink: 0;
    margin-top: 2px;
}

.delivery-option-details {
    flex: 1;
}

.delivery-option-name {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 8px 0;
}

.delivery-option-desc {
    font-size: 14px;
    color: #4a5568;
    margin: 0 0 8px 0;
    line-height: 1.4;
}

.delivery-pincode-info {
    font-size: 12px;
    color: #718096;
    margin: 0;
    background: #f7fafc;
    padding: 6px 10px;
    border-radius: 6px;
    display: inline-block;
}

.delivery-price {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    flex-shrink: 0;
    margin-left: 16px;
}

.delivery-price.free {
    color: #22c55e;
    font-weight: 800;
}

.shipping-info-note {
    margin-top: 12px;
    padding: 12px;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 8px;
}

.shipping-info-note p {
    font-size: 13px;
    color: #0369a1;
    margin: 0;
}

.shipping-warning {
    margin-top: 12px;
    padding: 12px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
}

.shipping-warning p {
    font-size: 13px;
    color: #dc2626;
    margin: 0;
}

/* =====================================================
   ADDRESS FORM STYLES - For users without saved addresses
   ===================================================== */

.address-form-section {
    background: #fff;
    border: 1px solid #e4e7eb;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 16px;
}

.profile-info {
    background: #f8f9fa;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #ff6b35;
}

.profile-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 8px 0;
}

.profile-email {
    font-size: 14px;
    color: #4a5568;
    margin: 0;
}

.address-form-header {
    text-align: center;
    margin-bottom: 24px;
}

.form-title {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 8px 0;
}

.form-subtitle {
    font-size: 14px;
    color: #718096;
    margin: 0;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-label {
    font-size: 13px;
    font-weight: 600;
    color: #4a5568;
    margin: 0;
}

.form-input {
    padding: 12px 16px;
    border: 2px solid #e4e7eb;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s ease;
    background: white;
}

.form-input:focus {
    outline: none;
    border-color: #ff6b35;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.form-input:read-only {
    background: #f7fafc;
    color: #718096;
}

.field-error {
    font-size: 12px;
    color: #e53e3e;
    margin-top: 4px;
    min-height: 16px;
}

.address-type-section {
    margin-bottom: 20px;
}

.address-type-options {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.address-type-option {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 12px 16px;
    border: 2px solid #e4e7eb;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.address-type-option:hover {
    border-color: #ff6b35;
    background: #fff5f0;
}

.address-type-option input[type="radio"] {
    margin: 0;
}

.address-type-option input[type="radio"]:checked + .radio-label {
    color: #ff6b35;
    font-weight: 600;
}

.address-type-option input[type="radio"]:checked {
    accent-color: #ff6b35;
}

.radio-label {
    font-size: 14px;
    color: #4a5568;
    font-weight: 500;
}

.continue-btn {
    width: 100%;
    background: #ff6b35;
    color: white;
    border: none;
    padding: 14px 16px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.continue-btn:hover {
    background: #e55a2b;
}

.continue-btn:disabled {
    background: #cbd5e0;
    cursor: not-allowed;
}

/* =====================================================
   RESPONSIVE DESIGN
   ===================================================== */

@media (max-width: 768px) {
    .checkout-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .modal-content {
        margin: 20px;
        max-height: 90vh;
    }
    
    .address-card-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .address-actions {
        flex-direction: row;
        width: 100%;
        justify-content: space-between;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .address-type-options {
        flex-direction: column;
    }
    
    .address-contact {
        flex-direction: column;
        gap: 8px;
    }
    
    .delivery-option {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .delivery-option-info {
        width: 100%;
    }
    
    .delivery-price {
        margin-left: 0;
        font-size: 16px;
        align-self: flex-end;
    }
    
    .delivery-pincode-info {
        font-size: 11px;
        padding: 4px 8px;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .address-type-options {
        flex-direction: column;
        gap: 8px;
    }
    
    .address-form-section {
        padding: 16px;
    }
}

/* Phone Login Modal */
.phone-login-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.phone-login-modal.active {
    opacity: 1;
    visibility: visible;
}

.phone-login-content {
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    max-width: 420px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border: none;
    background: #f5f5f5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease;
}

.modal-close:hover {
    background: #e8e8e8;
}

.modal-header {
    text-align: center;
    margin-bottom: 24px;
}

.modal-logo {
    font-size: 48px;
    margin-bottom: 12px;
}

.modal-title {
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 8px 0;
}

.modal-subtitle {
    font-size: 14px;
    color: #7f8c8d;
    margin: 0;
}

.phone-input-group {
    margin-bottom: 20px;
}

.phone-input-wrapper {
    display: flex;
    gap: 12px;
    align-items: center;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 12px 16px;
    background: #fafafa;
    transition: all 0.2s ease;
}

.phone-input-wrapper:focus-within {
    border-color: #2c3e50;
    background: #fff;
}

.country-code {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    color: #2c3e50;
}

.phone-input {
    flex: 1;
    min-width: 200px;
    border: none;
    background: transparent;
    font-size: 16px;
    font-weight: 500;
    color: #2c3e50;
    outline: none;
    width: 100%;
}

.phone-input::placeholder {
    color: #bdc3c7;
}

.otp-input-group {
    margin-bottom: 20px;
}

.otp-inputs {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.otp-input {
    width: 52px;
    height: 52px;
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    background: #fafafa;
    color: #2c3e50;
    transition: all 0.2s ease;
}

.otp-input:focus {
    border-color: #2c3e50;
    background: #fff;
    outline: none;
}

.modal-action-btn {
    width: 100%;
    background: linear-gradient(135deg, #2c3e50 0%, #1a252f 100%);
    color: #fff;
    border: none;
    padding: 16px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.modal-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(44, 62, 80, 0.3);
}

.modal-action-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.resend-link {
    text-align: center;
    margin-top: 16px;
}

.resend-btn {
    background: none;
    border: none;
    color: #3498db;
    font-size: 14px;
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
}

.resend-btn:hover {
    color: #2980b9;
}

.gokwik-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    padding: 12px;
    background: #f9f9f9;
    border-radius: 8px;
}

.badge-text {
    font-size: 12px;
    color: #7f8c8d;
    font-weight: 600;
}

.security-badges {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: center;
}

.security-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.security-icon {
    width: 24px;
    height: 24px;
    background: #e8f8f5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #27ae60;
}

.security-label {
    font-size: 10px;
    color: #95a5a6;
    font-weight: 600;
}

/* Delivery Details Section */
.checkout-section {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    margin-bottom: 24px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.section-title {
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
}

.edit-btn {
    background: none;
    border: none;
    color: #3498db;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
}

.edit-btn:hover {
    color: #2980b9;
}

.address-display {
    padding: 16px;
    background: #f9f9f9;
    border-radius: 12px;
    border-left: 4px solid #27ae60;
}

.address-name {
    font-size: 16px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 8px 0;
}

.address-details {
    font-size: 14px;
    color: #7f8c8d;
    line-height: 1.6;
    margin: 0;
}

.address-phone {
    font-size: 14px;
    color: #2c3e50;
    font-weight: 600;
    margin-top: 8px;
}

.delivery-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
}

.delivery-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: #f9f9f9;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.delivery-option:hover {
    border-color: #2c3e50;
    background: #fff;
}

.delivery-option.selected {
    border-color: #2c3e50;
    background: #f0f8ff;
}

.delivery-option-info {
    display: flex;
    gap: 12px;
    align-items: center;
}

.delivery-icon {
    width: 40px;
    height: 40px;
    background: #fff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.delivery-option-details {
    flex: 1;
}

.delivery-option-name {
    font-size: 15px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 4px 0;
}

.delivery-option-desc {
    font-size: 13px;
    color: #7f8c8d;
    margin: 0;
}

.delivery-price {
    font-size: 16px;
    font-weight: 700;
    color: #2c3e50;
}

.delivery-price.free {
    color: #27ae60;
}

/* Coupons Section */
.coupons-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
}

.coupon-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: linear-gradient(135deg, #fff4e6 0%, #ffe8cc 100%);
    border: 2px dashed #f39c12;
    border-radius: 12px;
}

.coupon-info {
    flex: 1;
}

.coupon-code {
    font-size: 15px;
    font-weight: 700;
    color: #d35400;
    font-family: 'Courier New', monospace;
    margin: 0 0 4px 0;
}

.coupon-desc {
    font-size: 13px;
    color: #7f8c8d;
    margin: 0;
}

.apply-coupon-btn {
    background: #f39c12;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease;
}

.apply-coupon-btn:hover {
    background: #e67e22;
}

.apply-coupon-btn.applied {
    background: #27ae60;
    cursor: default;
}

/* Recommendations */
.last-minute-favorites {
    margin-top: 16px;
}

.favorites-title {
    font-size: 16px;
    font-weight: 700;
    color: #e74c3c;
    margin: 0 0 12px 0;
}

.favorites-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.favorite-item {
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.favorite-image {
    width: 100%;
    height: 120px;
    background: #fafafa;
    overflow: hidden;
}

.favorite-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.favorite-details {
    padding: 12px;
}

.favorite-name {
    font-size: 13px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 8px 0;
    line-height: 1.2;
}

.favorite-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.favorite-price {
    font-size: 14px;
    font-weight: 700;
    color: #2c3e50;
}

.favorite-discount {
    font-size: 12px;
    font-weight: 600;
    color: #27ae60;
    background: #e8f8f5;
    padding: 2px 8px;
    border-radius: 4px;
}

.favorite-add-btn {
    width: 100%;
    background: #2c3e50;
    color: #fff;
    border: none;
    padding: 8px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 8px;
    transition: background 0.2s ease;
}

.favorite-add-btn:hover {
    background: #1a252f;
}

/* Payment Options */
.payment-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
}

.payment-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.payment-option:hover {
    border-color: #2c3e50;
    background: #fafafa;
}

.payment-option.selected {
    border-color: #2c3e50;
    background: #f0f8ff;
}

.payment-option-info {
    display: flex;
    gap: 12px;
    align-items: center;
}

.payment-icon {
    width: 40px;
    height: 40px;
    background: #f9f9f9;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.payment-option-details {
    flex: 1;
}

.payment-option-name {
    font-size: 15px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 4px 0;
}

.payment-option-desc {
    font-size: 13px;
    color: #7f8c8d;
    margin: 0;
}

.payment-discount-badge {
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
    color: #fff;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
}

.upi-qr-section {
    margin-top: 16px;
    padding: 16px;
    background: #f9f9f9;
    border-radius: 12px;
    text-align: center;
}

.qr-code {
    width: 200px;
    height: 200px;
    margin: 0 auto 16px;
    background: #fff;
    padding: 16px;
    border-radius: 12px;
}

.upi-apps {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 16px;
}

.upi-app {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Order Summary Sidebar */
.order-summary {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 24px;
    max-height: calc(100vh - 48px);
    overflow-y: auto;
}

.summary-header {
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 20px 0;
}

.summary-items {
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 16px;
    margin-bottom: 16px;
}

.summary-item {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.summary-item:last-child {
    margin-bottom: 0;
}

.summary-item-image {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    background: #fafafa;
    flex-shrink: 0;
}

.summary-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.summary-item-details {
    flex: 1;
}

.summary-item-name {
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 4px 0;
    line-height: 1.3;
}

.summary-item-qty {
    font-size: 12px;
    color: #7f8c8d;
}

.summary-item-price {
    font-size: 14px;
    font-weight: 700;
    color: #2c3e50;
    text-align: right;
}

.summary-calculations {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.summary-label {
    font-size: 14px;
    color: #7f8c8d;
}

.summary-value {
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
}

.summary-discount {
    color: #27ae60;
    font-weight: 700;
}

.summary-total {
    padding-top: 16px;
    border-top: 2px solid #2c3e50;
    margin-top: 16px;
}

.summary-total .summary-label {
    font-size: 16px;
    font-weight: 700;
    color: #2c3e50;
}

.summary-total .summary-value {
    font-size: 20px;
    font-weight: 700;
    color: #2c3e50;
}

.place-order-btn {
    width: 100%;
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
    color: #fff;
    border: none;
    padding: 16px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 20px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.place-order-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(39, 174, 96, 0.3);
}

.place-order-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Responsive */
@media (max-width: 992px) {
    .checkout-grid {
        grid-template-columns: 1fr;
    }
    
    .order-summary {
        position: static;
        max-height: none;
    }
    
    .favorites-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .checkout-container {
        padding: 0 16px;
    }
    
    .checkout-section {
        padding: 16px;
    }
    
    .order-summary {
        padding: 16px;
    }
    
    .phone-login-content {
        padding: 24px;
    }
    
    .otp-input {
        width: 44px;
        height: 44px;
        font-size: 20px;
    }
}
