.payment-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 99999;
    justify-content: center;
    align-items: center;
}

.payment-overlay.active {
    display: flex;
}

.payment-modal {
    background: white;
    border-radius: 16px;
    padding: 40px;
    max-width: 420px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.payment-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    animation: pulse 2s infinite;
}

.payment-icon.success {
    background: #10b981;
    animation: none;
}

.payment-icon.error {
    background: #ef4444;
    animation: none;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.8; }
}

.payment-title {
    font-size: 24px;
    font-weight: bold;
    color: #1a1a2e;
    margin-bottom: 10px;
}

.payment-subtitle {
    font-size: 14px;
    color: #666;
    margin-bottom: 30px;
}

.progress-container {
    background: #e5e7eb;
    border-radius: 10px;
    height: 8px;
    overflow: hidden;
    margin-bottom: 20px;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    width: 30%;
    animation: indeterminate 1.5s infinite ease-in-out;
}

.progress-bar.complete {
    width: 100%;
    animation: none;
    transition: width 0.5s ease;
}

@keyframes indeterminate {
    0% { margin-left: 0%; width: 30%; }
    50% { margin-left: 50%; width: 30%; }
    100% { margin-left: 0%; width: 30%; }
}

.payment-steps {
    text-align: left;
    margin-top: 20px;
}

.payment-step {
    display: flex;
    align-items: center;
    padding: 10px 0;
    color: #999;
    font-size: 14px;
    transition: all 0.3s ease;
}

.payment-step.active {
    color: #667eea;
    font-weight: 500;
}

.payment-step.completed {
    color: #10b981;
}

.step-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    background: #e5e7eb;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.payment-step.active .step-icon {
    background: #667eea;
    color: white;
}

.payment-step.completed .step-icon {
    background: #10b981;
    color: white;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.warning-message {
    background: #fef3c7;
    border-left: 4px solid #f59e0b;
    border-radius: 0 8px 8px 0;
    padding: 12px 15px;
    margin-top: 20px;
    font-size: 13px;
    color: #92400e;
    text-align: left;
}

.warning-message strong {
    display: block;
    margin-bottom: 5px;
}

/* Coupon Success Modal Styles */
.coupon-success-container {
    text-align: center;
    padding: 20px;
    position: relative;
}

.coupon-success-icon {
    margin-bottom: 20px;
}

.checkmark-circle {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.4);
    animation: scaleIn 0.3s ease-out;
}

.checkmark-circle i {
    color: white;
    font-size: 40px;
}

@keyframes scaleIn {
    0% { transform: scale(0); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.coupon-success-title {
    color: #28a745;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
}

.coupon-code-badge {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 10px 25px;
    border-radius: 25px;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.coupon-code-badge i {
    margin-right: 8px;
}

.coupon-details {
    margin-bottom: 20px;
}

.discount-info {
    font-size: 16px;
    color: #555;
    margin: 0;
}

.discount-value {
    font-size: 32px;
    font-weight: 700;
    color: #e74c3c;
    display: block;
    margin-bottom: 5px;
}

.eligible-products,
.non-eligible-products {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
    text-align: left;
}

.eligible-products {
    border-left: 4px solid #28a745;
}

.non-eligible-products {
    border-left: 4px solid #ffc107;
}

.eligible-title {
    color: #28a745;
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 14px;
}

.eligible-title i {
    margin-right: 5px;
}

.non-eligible-title {
    color: #856404;
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 14px;
}

.non-eligible-title i {
    margin-right: 5px;
}

.product-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.product-list li {
    padding: 5px 0;
    font-size: 13px;
    color: #555;
    border-bottom: 1px dashed #ddd;
}

.product-list li:last-child {
    border-bottom: none;
}

.product-list li:before {
    content: "•";
    color: #667eea;
    font-weight: bold;
    margin-right: 8px;
}

.savings-summary {
    margin-top: 20px;
}

.savings-box {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    color: white;
    padding: 20px 30px;
    border-radius: 15px;
    display: inline-block;
    box-shadow: 0 4px 20px rgba(238, 90, 36, 0.4);
}

.savings-label {
    display: block;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
    margin-bottom: 5px;
}

.savings-amount {
    font-size: 28px;
    font-weight: 700;
}

#success-coupon-modal .modal-content {
    border-radius: 20px;
    border: none;
    overflow: hidden;
}

#success-coupon-modal .modal-body {
    padding: 30px;
}

/* Coupon Actions Buttons */
.coupon-actions {
    margin-top: 25px;
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-continue-shopping {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    color: white;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.4);
    transition: all 0.3s ease;
}

.btn-continue-shopping:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.5);
    color: white;
}

.btn-remove-coupon {
    background: transparent;
    border: 2px solid #dc3545;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    color: #dc3545;
    transition: all 0.3s ease;
}

.btn-remove-coupon:hover {
    background: #dc3545;
    color: white;
    transform: translateY(-2px);
}

/* Coupon Applied Message with Remove Button */
.coupon-applied-message {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border: 1px solid #28a745;
    border-radius: 10px;
    padding: 15px 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.coupon-applied-text {
    color: #155724;
    font-size: 14px;
}

.coupon-applied-text i {
    color: #28a745;
    margin-right: 8px;
}

.coupon-applied-message .btn-remove-coupon {
    padding: 6px 15px;
    font-size: 12px;
    border-radius: 15px;
}

/* Coupon Removed Confirmation */
.coupon-removed-container {
    text-align: center;
    padding: 20px;
}

.removed-icon {
    margin-bottom: 15px;
}

.removed-icon i {
    font-size: 50px;
    color: #28a745;
}

.coupon-removed-container h4 {
    color: #333;
    margin-bottom: 10px;
}

.coupon-removed-container p {
    color: #666;
    margin-bottom: 5px;
}

/* Applied Coupon Display in Cart Summary */
.coupon-discount-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border: 1px solid #4caf50;
    border-radius: 8px;
    padding: 12px 15px;
    margin: 10px 0;
}

.coupon-label {
    color: #2e7d32;
    font-size: 14px;
}

.coupon-label i {
    margin-right: 5px;
}

.coupon-label strong {
    background: #4caf50;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    margin-left: 5px;
}

#coupon-discount-display {
    font-weight: 700;
    font-size: 16px;
}

/* Coupon Input Box */
#coupon_box {
    transition: all 0.3s ease;
}

/* Coupon Message Area */
#coupon_message {
    margin-top: 15px;
}

/* ── Navigation Guard Modal ──────────────────────────────── */
#navGuardModal .modal-content {
    border-radius: 16px;
    border: none;
    overflow: hidden;
}

#navGuardModal .modal-header {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border: none;
    padding: 20px 25px;
}

#navGuardModal .modal-header .modal-title {
    color: white;
    font-size: 18px;
    font-weight: 700;
}

#navGuardModal .modal-body {
    padding: 30px 25px;
    text-align: center;
}

.nav-guard-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 34px;
}

.nav-guard-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 10px;
}

.nav-guard-body {
    color: #555;
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 0;
}

.nav-guard-body strong {
    color: #d97706;
}

#navGuardModal .modal-footer {
    border: none;
    padding: 0 25px 25px;
    justify-content: center;
}

.btn-stay {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 35px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 15px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
}

.btn-stay:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
    color: white;
}

/* ── PayMe cancel button in modal ────────────────────────── */
#success-enroll-payme-modal .modal-header {
    justify-content: center;
    text-align: center;
}
#success-enroll-payme-modal .modal-header .modal-title {
    width: 100%;
    text-align: center;
    margin: 0;
}
#error-modal .modal-header {
    position: relative;
    justify-content: center;
    text-align: center;
}
#error-modal .modal-header .modal-title {
    width: 100%;
    text-align: center;
    margin: 0;
    padding-right: 2rem;
}
#error-modal .modal-header .btn-close,
#error-modal .modal-header .close {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
    filter: invert(1) grayscale(100%);
    opacity: 1;
}
#error-modal .modal-footer {
    justify-content: flex-end;
}
#error-modal .modal-footer .uec-cart-cta {
    border: 0;
    cursor: pointer;
    min-width: 120px;
}
.btn-cancel-payme {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.4);
    transition: all 0.3s ease;
}

.btn-cancel-payme:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.5);
    color: white;
}
/* ── END Navigation Guard Modal styles ────────────────────── */
/* Fix clipped 「移除」 button in cart table */
.cart-table .pro-remove {
    min-width: 96px;
    width: 96px;
    white-space: nowrap;
    text-align: center;
    vertical-align: middle;
}
.cart-table .pro-remove a,
.cart-table .pro-remove a.rbt-btn {
    width: auto !important;
    min-width: 72px !important;
    height: auto !important;
    line-height: 1.3 !important;
    padding: 8px 14px !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    white-space: nowrap !important;
    overflow: visible !important;
    margin: 0 auto;
    font-size: 14px !important;
}

/* Shopping cart — pathway style (match login.php) */
.uec-cart-page {
    background: linear-gradient(180deg, #eff6ff 0%, #f8fafc 40%, #ffffff 100%);
    padding: 28px 0 56px;
    min-height: 50vh;
    font-size: 1.125rem;
}
.uec-cart-shell {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 16px;
}
.uec-cart-header {
    background: #fff;
    border: 1px solid #bfdbfe;
    border-left: 5px solid #1d4ed8;
    border-radius: 12px;
    box-shadow: 0 4px 18px rgba(29, 78, 216, 0.08);
    padding: 22px 24px;
    margin-bottom: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    align-items: flex-end;
    justify-content: space-between;
}
.uec-cart-kicker {
    display: inline-block;
    background: #dbeafe;
    color: #1e3a8a;
    border: 1px solid #93c5fd;
    border-radius: 6px;
    font-size: 1.05rem;
    font-weight: 700;
    padding: 4px 12px;
    margin-bottom: 8px;
}
.uec-cart-header h1 {
    margin: 0 0 6px;
    color: #0f172a;
    font-size: clamp(2.05rem, 3.5vw, 2.6rem);
    font-weight: 800;
    line-height: 1.25;
}
.uec-cart-header p {
    margin: 0;
    color: #64748b;
    font-size: 1.4rem;
    line-height: 1.45;
}
.uec-cart-count {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 10px;
    padding: 12px 18px;
    text-align: center;
    min-width: 110px;
}
.uec-cart-count strong {
    display: block;
    font-size: 2.05rem;
    color: #1d4ed8;
    line-height: 1.1;
}
.uec-cart-count span {
    font-size: 1.15rem;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.uec-cart-empty {
    background: #fff;
    border: 0;
    border-radius: 12px;
    box-shadow: 0 4px 18px rgba(29, 78, 216, 0.08);
    padding: 40px 28px;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}
.uec-cart-empty h2 {
    margin: 0 0 10px;
    color: #0f172a;
    font-size: 2.2rem;
    font-weight: 800;
}
.uec-cart-empty p {
    margin: 0 0 20px;
    color: #64748b;
    font-size: 1.4rem;
    line-height: 1.5;
}
.uec-cart-empty img,
.uec-cart-empty img.uec-empty-cart-img {
    display: block !important;
    max-width: min(280px, 100%) !important;
    width: auto !important;
    height: auto !important;
    margin: 0 auto 22px !important;
    border: 0 !important;
    border-radius: 0 !important;
    outline: none !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
}
.uec-cart-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px 24px;
    border-radius: 10px;
    background: #ea580c;
    border: 1px solid #fed7aa;
    color: #fff !important;
    text-decoration: none !important;
    font-weight: 700;
    font-size: 1.3rem;
    box-shadow: 0 4px 14px rgba(234, 88, 12, 0.28);
}
.uec-cart-cta:hover {
    filter: brightness(1.05);
    color: #fff !important;
}

.uec-cart-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.9fr);
    gap: 18px;
    align-items: start;
}
.uec-cart-panel {
    background: #fff;
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    box-shadow: 0 4px 18px rgba(29, 78, 216, 0.08);
    padding: 20px;
}
.uec-cart-panel h2,
.uec-cart-panel h3 {
    margin: 0 0 14px;
    color: #1e3a8a;
    font-size: 1.55rem;
    font-weight: 800;
}
.uec-cart-aside {
    position: sticky;
    top: 16px;
}
.uec-cart-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: min(62vh, 640px);
    overflow: auto;
    padding-right: 4px;
}
.uec-cart-item {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 14px;
    background: #f8fafc;
}
.uec-cart-item img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #fff;
}
.uec-cart-item-title {
    margin: 0 0 4px;
    color: #0f172a;
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.35;
}
.uec-cart-item-meta {
    margin: 0;
    color: #64748b;
    font-size: 1.2rem;
}
.uec-cart-item-price {
    margin: 0;
    color: #1d4ed8;
    font-size: 1.45rem;
    font-weight: 800;
    white-space: nowrap;
}
.uec-cart-remove {
    display: inline-flex;
    margin-top: 8px;
    padding: 7px 14px;
    border-radius: 8px;
    border: 1px solid #fecaca;
    background: #fff;
    color: #b91c1c !important;
    text-decoration: none !important;
    font-size: 1.15rem;
    font-weight: 700;
}
.uec-cart-remove:hover {
    background: #fef2f2;
    color: #991b1b !important;
}
.uec-cart-selected {
    margin: 0 0 14px;
    padding: 14px 16px;
    border-radius: 10px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
}
.uec-cart-selected strong {
    display: block;
    color: #1e3a8a;
    font-size: 1.25rem;
    margin-bottom: 6px;
}
.uec-cart-selected ul {
    margin: 0;
    padding-left: 1.1rem;
    color: #334155;
    font-size: 1.2rem;
    line-height: 1.5;
}
.uec-cart-selected li { margin-bottom: 4px; }
.uec-cart-totals p {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 8px;
    color: #475569;
    font-size: 1.3rem;
}
.uec-cart-totals h2 {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin: 12px 0 0;
    padding-top: 12px;
    border-top: 1px solid #e2e8f0;
    color: #0f172a;
    font-size: 1.65rem;
    font-weight: 800;
}
.uec-coupon-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
}
.uec-coupon-row input {
    flex: 1;
    min-width: 140px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #f8fafc;
    padding: 14px 16px;
    font-size: 1.25rem;
}
.uec-coupon-row input:focus {
    border-color: #93c5fd;
    background: #eff6ff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(147, 197, 253, 0.35);
}
.uec-coupon-btn,
.uec-pay-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 18px;
    border-radius: 10px;
    border: 1px solid #fed7aa;
    background: #ea580c;
    color: #fff !important;
    font-weight: 700;
    font-size: 1.25rem;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(234, 88, 12, 0.25);
}
.uec-coupon-btn:hover,
.uec-pay-btn:hover {
    filter: brightness(1.05);
}
.uec-pay-btn {
    width: 100%;
    margin-top: 12px;
    padding: 16px 18px;
    font-size: 1.35rem;
}
.uec-pay-methods {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}
.uec-pay-option {
    display: flex !important;
    flex-direction: row !important;
    gap: 12px !important;
    align-items: flex-start !important;
    position: relative !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 10px !important;
    padding: 14px 16px !important;
    background: #f8fafc !important;
    min-height: 0 !important;
    height: auto !important;
    overflow: visible !important;
}
.uec-pay-option::before,
.uec-pay-option::after {
    content: none !important;
    display: none !important;
}
.uec-pay-option input[type="radio"] {
    position: static !important;
    appearance: auto !important;
    -webkit-appearance: radio !important;
    width: 1.2rem !important;
    height: 1.2rem !important;
    min-width: 1.2rem;
    margin: 0.35rem 0 0 !important;
    padding: 0 !important;
    opacity: 1 !important;
    visibility: visible !important;
    flex-shrink: 0;
    cursor: pointer;
    z-index: 1;
}
.uec-pay-option label {
    position: static !important;
    display: block !important;
    flex: 1 !important;
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #0f172a !important;
    font-size: 1.25rem !important;
    line-height: 1.5 !important;
    cursor: pointer;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    left: auto !important;
    top: auto !important;
    height: auto !important;
    overflow: visible !important;
    white-space: normal !important;
    background: transparent !important;
    border: 0 !important;
}
.uec-pay-option label::before,
.uec-pay-option label::after {
    content: none !important;
    display: none !important;
}
.uec-pay-option h6 {
    margin: 0 !important;
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    line-height: 1.45 !important;
}
.uec-pay-option .uec-pay-note {
    display: block !important;
    margin-top: 10px !important;
    color: #64748b !important;
    font-size: 1.15rem !important;
    font-weight: 400 !important;
    line-height: 1.5 !important;
}
.uec-manual-modal .modal-header {
    background: linear-gradient(135deg, #0f3d54, #0b6e99) !important;
    color: #fff !important;
    border-bottom: 0;
}
.uec-manual-modal .modal-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: #fff !important;
}
.uec-manual-modal .modal-header .close {
    color: #fff !important;
    opacity: 1;
    text-shadow: none;
}
.uec-manual-modal .modal-header .btn-close {
    filter: invert(1);
    opacity: 1;
}
.uec-manual-modal .form-label {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1e3a8a;
    margin-bottom: 6px;
}
.uec-manual-modal .form-control,
.uec-manual-modal .form-select {
    font-size: 1.1rem;
    padding: 12px 14px;
    border-radius: 8px;
}
.uec-manual-modal .uec-manual-hint {
    margin: 0 0 16px;
    color: #475569;
    font-size: 1.05rem;
    line-height: 1.5;
}
.uec-manual-modal .uec-manual-total {
    margin: 0 0 14px;
    padding: 12px 14px;
    border-radius: 8px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e3a8a;
    font-size: 1.15rem;
    font-weight: 700;
}
.uec-manual-modal #manual_enroll_form_error {
    display: none;
    margin-bottom: 12px;
    color: #b91c1c;
    font-size: 1.05rem;
    font-weight: 600;
}
.uec-manual-modal .form-control.is-invalid,
.uec-manual-modal .form-select.is-invalid {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.18);
    background-color: #fef2f2;
}
#paypal-button,
#payme-button {
    margin-top: 10px;
}
#payme-button img {
    max-width: 100%;
    height: auto;
}
.coupon-discount-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}
@media (max-width: 900px) {
    .uec-cart-layout {
        grid-template-columns: 1fr;
    }
    .uec-cart-aside {
        position: static;
        order: -1;
    }
    .uec-cart-items {
        max-height: none;
    }
    .uec-cart-item {
        grid-template-columns: 64px minmax(0, 1fr);
    }
.uec-group-buy-note {
    margin: 12px 0 16px;
    padding: 12px 14px;
    background: #f8fafc;
    border: 1px solid #dbe4f0;
    border-radius: 10px;
    font-size: 0.92rem;
    line-height: 1.45;
    color: #334155;
}
.uec-group-buy-note p {
    margin: 0 0 8px;
}
.uec-group-buy-note p:last-child {
    margin-bottom: 0;
}
.uec-group-buy-refund {
    color: #9a3412;
}
.uec-coupon-blocked {
    font-size: 0.9rem;
    color: #64748b;
    margin: 0 0 10px;
}

