/* =============================================
   Cart Modals CSS
   - Login Required Modal
   - Address Selection Modal
   - Payment Confirmation Modal
   - Bank Transfer Info Modal
   - Order Complete Alert Modal
   ============================================= */

/* =============================================
   1. Login Required Modal
   ============================================= */
.login-required-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 20000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-required-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
}

.login-required-content {
    position: relative;
    background: #fff;
    border-radius: 16px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: loginModalSlideIn 0.3s ease-out;
    overflow: hidden;
}

@keyframes loginModalSlideIn {
    from {
        transform: translateY(-20px) scale(0.95);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.login-required-header {
    padding: 20px;
    background: linear-gradient(135deg, #7ED321, #6FC010);
    color: #fff;
}

.login-required-header h3 {
    margin: 0;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.login-required-body {
    padding: 32px 24px;
    text-align: center;
}

.login-required-icon {
    font-size: 64px;
    color: #7ED321;
    margin-bottom: 16px;
}

.login-required-message {
    font-size: 15px;
    color: #333;
    line-height: 1.6;
    margin: 0;
}

.login-required-footer {
    display: flex;
    gap: 12px;
    padding: 16px 20px;
    background: #f8f9fa;
    border-top: 1px solid #e5e5e5;
}

.login-required-cancel,
.login-required-login {
    flex: 1;
    padding: 12px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.login-required-cancel {
    background: #fff;
    color: #666;
    border: 2px solid #e5e5e5;
}

.login-required-cancel:hover {
    background: #f5f5f5;
    border-color: #999;
}

.login-required-login {
    background: #7ED321;
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.login-required-login:hover {
    background: #6FC010;
}

/* =============================================
   2. Address Selection Modal
   ============================================= */
.address-selection-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 20000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.address-selection-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
}

.address-selection-content {
    position: relative;
    background: #fff;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideInUp 0.3s ease-out;
}

@keyframes slideInUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.address-selection-header {
    padding: 20px;
    border-bottom: 1px solid #e5e5e5;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #7ED321, #6FC010);
    border-radius: 12px 12px 0 0;
}

.address-selection-header h3 {
    margin: 0;
    font-size: 18px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.address-selection-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #fff;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}

.address-selection-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.address-selection-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.address-select-card {
    position: relative;
    padding: 16px;
    border: 2px solid #e5e5e5;
    border-radius: 8px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.2s;
    background: #fff;
}

.address-select-card:hover {
    border-color: #7ED321;
    box-shadow: 0 2px 8px rgba(126, 211, 33, 0.2);
}

.address-select-card.selected {
    border-color: #7ED321;
    background: #E8F5D6;
}

.address-default-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #7ED321;
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.address-select-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.address-select-recipient {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #333;
}

.address-select-recipient i {
    color: #7ED321;
    width: 20px;
}

.address-select-location {
    display: flex;
    gap: 8px;
    font-size: 14px;
    color: #666;
}

.address-select-location i {
    color: #7ED321;
    width: 20px;
    margin-top: 2px;
}

.address-select-lines {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.address-selected-icon {
    position: absolute;
    bottom: 12px;
    right: 12px;
    color: #7ED321;
    font-size: 24px;
}

.no-addresses-message {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.no-addresses-message i {
    font-size: 48px;
    color: #ccc;
    margin-bottom: 16px;
}

.no-addresses-message p {
    font-size: 16px;
    margin-bottom: 20px;
}

.add-address-redirect-btn {
    background: #7ED321;
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s;
}

.add-address-redirect-btn:hover {
    background: #6FC010;
}

.address-selection-footer {
    padding: 16px 20px;
    border-top: 1px solid #e5e5e5;
    background: #f8f9fa;
    border-radius: 0 0 12px 12px;
}

.address-manage-btn {
    width: 100%;
    padding: 12px;
    background: #fff;
    color: #666;
    border: 2px solid #e5e5e5;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
}

.address-manage-btn:hover {
    background: #f5f5f5;
    border-color: #999;
}

/* =============================================
   3. Payment Confirmation Modal
   ============================================= */
.payment-confirm-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 20000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.payment-confirm-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
}

.payment-confirm-content {
    position: relative;
    background: #fff;
    border-radius: 12px;
    padding: 0;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: confirmSlideIn 0.3s ease-out;
}

@keyframes confirmSlideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.payment-confirm-header {
    padding: 20px;
    border-bottom: 1px solid #e5e5e5;
    background: #f8f9fa;
    border-radius: 12px 12px 0 0;
}

.payment-confirm-header h3 {
    margin: 0;
    font-size: 18px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.payment-confirm-header i {
    color: #f39c12;
}

.payment-confirm-body {
    padding: 24px;
}

.confirm-message {
    font-size: 15px;
    color: #333;
    margin-bottom: 20px;
    text-align: center;
}

.confirm-amount {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: #E8F5D6;
    border-radius: 8px;
    margin-bottom: 12px;
}

.amount-label {
    font-size: 14px;
    color: #666;
}

.amount-value {
    font-size: 20px;
    font-weight: 700;
    color: #7ED321;
}

.confirm-method {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
}

.method-label {
    font-size: 14px;
    color: #666;
}

.method-value {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    gap: 6px;
}

.payment-confirm-footer {
    padding: 16px 20px;
    border-top: 1px solid #e5e5e5;
    display: flex;
    gap: 12px;
    background: #f8f9fa;
    border-radius: 0 0 12px 12px;
}

.confirm-btn-no,
.confirm-btn-yes {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.confirm-btn-no {
    background: #fff;
    color: #666;
    border: 2px solid #e5e5e5;
}

.confirm-btn-no:hover {
    background: #f5f5f5;
    border-color: #999;
}

.confirm-btn-yes {
    background: #7ED321;
    color: #fff;
}

.confirm-btn-yes:hover {
    background: #6FC010;
}

/* =============================================
   4. Bank Transfer Info Modal
   ============================================= */
.bank-info-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 20000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bank-info-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
}

.bank-info-content {
    position: relative;
    background: #fff;
    border-radius: 12px;
    padding: 0;
    width: 90%;
    max-width: 450px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: bankSlideIn 0.3s ease-out;
}

@keyframes bankSlideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.bank-info-header {
    padding: 20px;
    border-bottom: 1px solid #e5e5e5;
    background: linear-gradient(135deg, #7ED321, #6FC010);
    border-radius: 12px 12px 0 0;
}

.bank-info-header h3 {
    margin: 0;
    font-size: 18px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.bank-info-body {
    padding: 24px;
}

.success-message {
    text-align: center;
    margin-bottom: 24px;
    color: #7ED321;
}

.success-message i {
    font-size: 48px;
    margin-bottom: 8px;
}

.success-message p {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.bank-details {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.bank-details h4 {
    margin: 0 0 16px 0;
    font-size: 14px;
    color: #666;
}

.bank-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #e5e5e5;
}

.bank-item:last-child {
    border-bottom: none;
}

.bank-item.highlight {
    background: #E8F5D6;
    padding: 12px;
    margin: 8px -12px;
    border-radius: 6px;
    border: none;
}

.bank-label {
    font-size: 14px;
    color: #666;
}

.bank-value {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.bank-item.highlight .bank-value {
    color: #7ED321;
    font-size: 16px;
}

.bank-notice {
    background: #fff3cd;
    padding: 12px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.bank-notice i {
    color: #f39c12;
    margin-bottom: 4px;
}

.bank-notice p {
    margin: 0;
    font-size: 13px;
    color: #856404;
}

.bank-info-footer {
    padding: 16px 20px;
    border-top: 1px solid #e5e5e5;
    background: #f8f9fa;
    border-radius: 0 0 12px 12px;
}

.bank-close-btn {
    width: 100%;
    padding: 12px;
    background: #7ED321;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.bank-close-btn:hover {
    background: #6FC010;
}

/* =============================================
   5. Order Complete Alert Modal
   ============================================= */
.order-complete-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 20000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.order-complete-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.order-complete-content {
    position: relative;
    background: #fff;
    border-radius: 12px;
    width: 90%;
    max-width: 300px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: orderCompleteSlideIn 0.3s ease-out;
}

@keyframes orderCompleteSlideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.order-complete-body {
    padding: 30px 20px;
    text-align: center;
}

.order-complete-body p {
    margin: 0;
    font-size: 16px;
    font-weight: 500;
    color: #333;
}

.order-complete-id {
    margin-top: 10px !important;
    font-size: 13px !important;
    color: #666 !important;
    font-weight: 400 !important;
}

.order-complete-footer {
    padding: 15px 20px;
    border-top: 1px solid #eee;
    text-align: center;
}

.order-complete-btn {
    background: #7ED321;
    color: #fff;
    border: none;
    padding: 10px 40px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.order-complete-btn:hover {
    background: #6FC010;
}
