a{
    color:#212529;
    text-decoration: none;
}
.menu-row{
    margin-top:20px;
}
body {
    background-color: #f8f9fa;
}

.checkout-row {
    max-width: 1200px;
    margin: 1rem auto;
}

/**支付**/
.payment-box {
    border: 2px solid #e1e5e9;
    border-radius: 5px;
    padding: 30px 20px 10px 20px;
    background-color: white;
    position: relative;
}

.payment-box:hover {
    transform: translateY(-5px);
}


.border-text {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background-color: white;
    padding: 0 15px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 1.1rem;
}
.paypal-button {
    background-color: #ffc439;
    border: none;
    border-radius: 5px;
    color: #111;
    padding: 14px 24px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.paypal-button:hover {
    background-color: #f2b731;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}
.paypal-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.1);
}
.paypal-icon {
    margin-right: 10px;
    font-size: 1.3rem;
    color: #003087;
}

/**Or continue below**/
.divider-with-text {
    position: relative;
    text-align: center;
    margin: 2rem 0;
}

.divider-with-text::before,
.divider-with-text::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 45%;
    height: 1px;
    background-color: #dee2e6;
}

.divider-with-text::before {
    left: 0;
}

.divider-with-text::after {
    right: 0;
}

.divider-text {
    display: inline-block;
    background-color: white;
    padding: 0 1rem;
    position: relative;
    z-index: 1;
    color: #6c757d;
}

.email-error{
    color:#dc3545;

}

/* 外部加载动画 */
.external-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.external-loading-overlay.active {
    opacity: 1;
    visibility: visible;
}

.external-spinner-container {
    text-align: center;
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    max-width: 400px;
    width: 90%;
    animation: slideUp 0.4s ease-out;
}

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

.external-spinner {
    width: 60px;
    height: 60px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #0070ba;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 25px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.external-loading-text {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.external-loading-subtext {
    color: #666;
    font-size: 1rem;
    margin-bottom: 20px;
}

.external-progress-bar {
    width: 100%;
    height: 6px;
    background: #e9ecef;
    border-radius: 3px;
    overflow: hidden;
    margin-top: 20px;
}

.external-progress {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #0070ba, #005ea6);
    border-radius: 3px;
    transition: width 0.5s ease;
}


.payment-card, .order-card {
    border: none !important;
    border-radius: 5px;
    padding:0 15px !important;
}

.payment-header, .order-header {
    padding-bottom: 1rem;
}
.add-ifont{
    font-size:20px
}

.product-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 0.25rem;
}

.paypal-btn {
    background-color: #FFC439;
    color: #003087;
    border: none;
    font-weight: 600;
    padding: 0.75rem;
}

.paypal-btn:hover {
    background-color: #FFB800;
    color: #003087;
}

.paypal-logo {
    width: 20px;
    height: 20px;
    margin-right: 0.5rem;
}



.order-card {
    border-top:1px solid #000;
    border-radius: 12px;
    transition: transform 0.3s ease;
}
.order-card:hover {
    transform: translateY(-5px);
}
.order-header {
    border-bottom: 1px solid #eaeaea;
    border-top: 1px solid #eaeaea;
    padding-bottom: 1rem;
}
.product-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    position: relative;
}
.quantity-badge {
    position: absolute;
    top: -8px;
    right: 0px;
    background-color: #ff6b6b;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
}
.price-details {
    font-size: 0.85rem;
    color: #6c757d;
}
.order-total {
    font-size: 1.25rem;
    font-weight: bold;
    border-top: 1px solid #eaeaea;
    border-bottom: 1px solid #eaeaea;

    padding-top: 1rem;
}
.voucher-section {
    border-top: 1px dashed #dee2e6;
    border-bottom: 1px dashed #dee2e6;
    padding: 1rem 0;
    margin: 1rem 0;
}
.voucher-section .error-message {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: none;
}
.voucher-section .success-message {
    color: #198754;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: none;
}

.form-control.error {
    border: 2px solid #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.voucher-toggle {
    cursor: pointer;
    color: #0d6efd;
    font-weight: 500;
}
.voucher-toggle:hover {
    text-decoration: underline;
}
.voucher-form {
    margin-top: 1rem;
    display: none;
}
.voucher-form.active {
    display: block;
}
.btn-apply {
    background-color: #0d6efd;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 0.5rem 1rem;
    font-weight: 500;
}
.btn-apply:hover {
    background-color: #0b5ed7;
}
.discount-item {
    color: #28a745;
}
@media (max-width: 992px) {
    .order-col {
        margin-top: 2rem;
    }
    .border-text {
        font-size: 0.9rem;
    }
    .secure-payment{
        display:none;
    }
    .divider-with-text {
        margin: 1rem 0;
    }
    .payment-header,.form-check-label{
        font-size: 0.9rem;
    }
}
