.error-message,
.terms-error,
.payment-error {
    display: none;
    color: #e3342f;
    font-size: 12px;
    margin-top: -10px;
    margin-bottom: 10px;
    font-weight: 500;
}

/* Required Field Indicator */
.required::after {
    content: " *";
    color: #dc3545;
    font-weight: bold;
}

/* Smooth transitions for validation states */
.form-control {
    transition: border-color 0.3s ease, background-color 0.3s ease,
        box-shadow 0.3s ease;
}

/* Focus states for better accessibility */
.form-control:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(35, 30, 25, 0.1);
}

.form-control.error:focus {
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.2);
}

.form-control.valid:focus {
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.2);
}

#checkoutForm label,
#checkoutForm input.form-control,
#checkoutForm select.form-control,
#checkoutForm textarea.form-control {
    color: #000; /* text color for labels & inputs */
    font-size: 15px; /* increase font size (adjust as needed) */
}

/* For placeholder text inside inputs/textarea */
#checkoutForm input::placeholder,
#checkoutForm textarea::placeholder {
    color: #000;
    opacity: 1; /* ensures the black placeholder is fully visible */
}

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1050;
    animation: fadeIn 0.3s ease;
    overflow-y: auto;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.modal-dialog-custom {
    animation: slideUp 0.3s ease;
    max-width: 700px;
    width: 100%;
    margin: 20px auto;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

.modal-content {
    border: none;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    background-color: #ffffff;
}

.modal-header {
    border-bottom: 2px solid black;
    padding-top: 20px;
    background-color: #f8f9fa;
}

.modal-title {
    font-weight: 700;
    color: black;
    font-size: 16px;
}

.last-updated {
    font-size: 14px;
    color: #6c757d;
    margin-top: 0.25rem;
}

.btn-close:focus {
    box-shadow: none;
}

.modal-body {
    padding: 1.5rem;
    color: #212529;
    max-height: 60vh;
    font-size: 16px;
    overflow-y: auto;
}

.terms-section {
    margin-bottom: 1.5rem;
    font-size: 16px;
}

.terms-section h6 {
    color: #333;
    font-weight: 600;
    margin-bottom: 0.75rem;
    font-size: 16px;
}

.terms-section p,
.terms-section ul {
    color: #555;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.terms-section ul {
    padding-left: 1.25rem;
}

.terms-section li {
    margin-bottom: 0.5rem;
}

.highlight-box {
    background-color: #f8f9fa;
    border-left: 3px solid #667eea;
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 4px;
}

.modal-footer {
    border-top: 1px solid #dee2e6;
    padding: 1rem 1.5rem;
}

.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: #555;
}
/* Ball Grid Pulse Animation */
.ball-grid-pulse {
    display: inline-block;
    position: relative;
    width: 57px;
    height: 57px;
}
.ball-grid-pulse div {
    position: absolute;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #fff;
    animation-fill-mode: both;
    animation: ball-grid-pulse 1.3s 0s infinite ease-in-out;
}

.ball-grid-pulse div:nth-child(1) {
    top: 0;
    left: 0;
    animation-delay: 0.2s;
}

.ball-grid-pulse div:nth-child(2) {
    top: 0;
    left: 24px;
    animation-delay: 0.3s;
}

.ball-grid-pulse div:nth-child(3) {
    top: 0;
    left: 48px;
    animation-delay: 0.4s;
}

.ball-grid-pulse div:nth-child(4) {
    top: 24px;
    left: 0;
    animation-delay: 0.1s;
}

.ball-grid-pulse div:nth-child(5) {
    top: 24px;
    left: 24px;
    animation-delay: 0.2s;
}

.ball-grid-pulse div:nth-child(6) {
    top: 24px;
    left: 48px;
    animation-delay: 0.3s;
}

.ball-grid-pulse div:nth-child(7) {
    top: 48px;
    left: 0;
    animation-delay: 0s;
}

.ball-grid-pulse div:nth-child(8) {
    top: 48px;
    left: 24px;
    animation-delay: 0.1s;
}

.ball-grid-pulse div:nth-child(9) {
    top: 48px;
    left: 48px;
    animation-delay: 0.2s;
}

@keyframes ball-grid-pulse {
    0%,
    70%,
    100% {
        transform: scale3D(1, 1, 1);
        opacity: 1;
    }
    35% {
        transform: scale3D(0, 0, 1);
        opacity: 0.7;
    }
}

/* Custom BlockUI overlay styling */
.blockOverlay {
    background-color: rgba(0, 0, 0, 0.6) !important;
}

.blockMsg {
    background: transparent !important;
    border: none !important;
    color: white !important;
}

.mfp-product .product-popup-wrapper {
    max-width: 960px; /* adjust to your design */
    margin: 0 auto;
}

.mfp-product .product-popup {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
}
.mfp-container {
    display: flex;
    align-items: center; /* vertically center */
    justify-content: center; /* horizontally center */
    min-height: 100vh;
}
.mfp-content {
    margin: auto;
    max-width: 960px; /* or your design’s width */
    width: 100%;
}

/* Modal Overlay */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 9998;
    animation: fadeIn 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Modal Container */
.otp-modal {
    background: white;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s ease;
    overflow: hidden;
}

/* Modal Header */
.modal-header {
    background: var(--brand);
    color: white;
    padding: 30px;
    position: relative;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 600;
    display: flex;
    color: white;
    align-items: center;
    gap: 10px;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

/* Modal Body */
.modal-body {
    padding: 40px 30px;
}

.email-section {
    text-align: center;
    margin-bottom: 30px;
}

.email-icon {
    font-size: 3rem;
    color: #667eea;
    margin-bottom: 15px;
}

.email-section p {
    color: #666;
    margin-bottom: 10px;
}

.email-display {
    background-color: #f8f9fa;
    padding: 12px 20px;
    border-radius: 10px;
    font-weight: 600;
    color: #333;
    margin: 15px 0;
}

.email-section small {
    color: #999;
    font-size: 0.9rem;
}

/* Alert Messages */
.alert {
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: none;
    animation: slideDown 0.3s ease;
}

.alert.active {
    display: block;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
    border-left: 4px solid #ffc107;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border-left: 4px solid #17a2b8;
}

/* OTP Inputs */
.otp-inputs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 30px 0;
}

.otp-input {
    width: 50px;
    height: 55px;
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    transition: all 0.3s ease;
    outline: none;
}

.otp-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.otp-input.error {
    border-color: #dc3545;
    animation: shake 0.5s;
}

/* Resend Section */
.resend-section {
    text-align: center;
    margin-bottom: 25px;
}

.resend-section small {
    color: #666;
}

.resend-link {
    color: #667eea;
    cursor: pointer;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.resend-link:hover {
    color: #764ba2;
    text-decoration: underline;
}

.resend-link.disabled {
    color: #999;
    cursor: not-allowed;
    pointer-events: none;
}

.resend-timer {
    color: #999;
    display: none;
}

.resend-timer.active {
    display: inline;
}

/* Verify Button */
.verify-btn {
    width: 100%;
    background: var(--brand);
    border: none;
    color: white;
    padding: 15px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 0px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.verify-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.verify-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-text {
    display: inline;
}

.btn-spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

/* Demo Button */
.demo-container {
    padding: 50px 20px;
    text-align: center;
}

.demo-btn {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border: none;
    color: white;
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.demo-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.4);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

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

@keyframes shake {
    0%,
    100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-10px);
    }
    75% {
        transform: translateX(10px);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive */
@media (max-width: 600px) {
    .otp-modal {
        width: 95%;
        margin: 20px;
    }

    .modal-body {
        padding: 30px 20px;
    }

    .otp-input {
        width: 45px;
        height: 50px;
        font-size: 20px;
    }

    .otp-inputs {
        gap: 8px;
    }
}

/* ─── Shipping Method ─────────────────────────────── */
.shipping-section,
.pickup-store-section,
.shipping-address-section {
    margin-bottom: 2.4rem;
}
.shipping-section .section-title,
.pickup-store-section .section-title,
.shipping-address-section .section-title {
    font-size: 1.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.4rem;
    padding-bottom: 0.6rem;
    border-bottom: 2px solid var(--primaryColor);
    display: inline-block;
}

/* ── Shipping Method — card style ── */
.shipping-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.shipping-option {
    display: flex;
    align-items: center;
    gap: 1.4rem;
    padding: 1.4rem 1.6rem;
    border: 1.5px solid #e0e0e0;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    user-select: none;
}
.shipping-option:hover {
    border-color: var(--primaryColor);
    background: var(--secondaryColor);
}
.shipping-option.is-active {
    border-color: var(--primaryColor);
    background: var(--secondaryColor);
}
.shipping-option input[type="radio"] {
    accent-color: var(--primaryColor);
    width: 17px;
    height: 17px;
    cursor: pointer;
    flex-shrink: 0;
    margin: 0;
}
.shipping-option-icon {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.8rem;
    color: #666;
    transition: background 0.2s, color 0.2s;
}
.shipping-option.is-active .shipping-option-icon {
    background: white;
}
.shipping-option-body {
    flex: 1;
}
.shipping-option-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 0.2rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.shipping-option-desc {
    font-size: 1.2rem;
    color: black;
}
.badge-free {
    font-size: 1.15rem;
    font-weight: 600;
    color: #27ae60;
}

/* ─── Pickup Store ────────────────────────────────── */
.store-select-wrapper {
    position: relative;
    margin-bottom: 1.2rem;
}
.store-select-wrapper select {
    width: 100%;
    padding: 1.2rem 1.8rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1.4rem;
    background: #fff;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}
.store-select-wrapper::after {
    content: "▾";
    position: absolute;
    right: 1.4rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #555;
}
.store-card {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 1.4rem 1.8rem;
    background: #fafafa;
    display: flex;
    gap: 1.2rem;
    align-items: flex-start;
}
.store-card-icon {
    background: white;
    color: #666666;
    border-radius: 4px;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.6rem;
}
.store-card-body .store-name {
    font-weight: 700;
    font-size: 1.4rem;
    margin-bottom: 0.3rem;
}
.store-card-body .store-address {
    font-size: 1.3rem;
    color: #555;
    margin-bottom: 0.2rem;
}
.store-card-body .store-phone {
    font-size: 1.3rem;
    color: #555;
}
.store-card-body .store-phone i {
    margin-right: 0.4rem;
}

/* ─── Shipping Address empty state ───────────────── */
.shipping-address-empty {
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    background: #f7f7f7;
    padding: 4rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}
.shipping-address-empty .empty-icon {
    font-size: 4rem;
    color: #ccc;
    line-height: 1;
}
.shipping-address-empty p {
    font-size: 1.4rem;
    color: #999;
    margin: 0;
}
.btn-add-address {
    margin-top: 0.6rem;
    background: #222;
    color: #fff !important;
    border: none;
    border-radius: 30px;
    padding: 1rem 2.4rem;
    font-size: 1.4rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    transition: background 0.2s;
    text-decoration: none;
    min-width: 26rem;
    justify-content: center;
}
.btn-add-address:hover {
    background: #444;
    color: #fff !important;
}

/* ─── Saved Address Card ─────────────────────────── */
.shipping-address-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.4rem;
}
.shipping-address-header .section-title {
    margin-bottom: 0 !important;
    border-bottom: none !important;
    padding-bottom: 0 !important;
}
.btn-change-address {
    background: #fff;
    color: var(--primaryColor);
    border: 1.5px solid var(--primaryColor);
    border-radius: 30px;
    padding: 0.7rem 1.6rem;
    font-size: 1.3rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
}
.btn-change-address:hover {
    background: var(--secondaryColor);
    color: #fff;
}

.saved-address-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1.6rem 1.8rem;
    background: #fff;
    display: none;
}
.saved-address-card .addr-name {
    font-weight: 700;
    font-size: 1.4rem;
    margin-bottom: 0.4rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}
.saved-address-card .addr-name i {
    color: var(--primaryColor);
    font-size: 1.5rem;
}
.saved-address-card .addr-line {
    font-size: 1.3rem;
    color: #555;
    margin-bottom: 0.2rem;
    padding-left: 2.3rem;
}

/* ─── Add Address Modal ───────────────────────────── */
.addr-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}
.addr-modal-overlay.open {
    display: flex;
}
.addr-modal {
    background: #fff;
    border-radius: 12px;
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 3rem 3.2rem 2.4rem;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}
.addr-modal-close {
    position: absolute;
    top: 1.4rem;
    right: 1.8rem;
    background: none;
    border: none;
    font-size: 2rem;
    color: #888;
    cursor: pointer;
    line-height: 1;
}
.addr-modal-close:hover {
    color: #333;
}
.addr-modal h4 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 2.4rem;
    padding-bottom: 1.2rem;
    border-bottom: 1px solid #eee;
}
.addr-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.4rem;
}
.addr-form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.6rem;
}
.addr-form-group label {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
}
.addr-form-group label .req {
    color: var(--primaryColor);
    margin-left: 0.2rem;
}
.addr-form-group input,
.addr-form-group select {
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 1rem 1.6rem;
    height: 40px;
    font-size: 1.4rem;
    outline: none;
    transition: border-color 0.2s;
}
.addr-form-group input:focus,
.addr-form-group select:focus {
    border-color: var(--primaryColor);
}
.addr-form-group select {
    appearance: none;
    -webkit-appearance: none;
    background: #fff;
    cursor: pointer;
}
.addr-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 1.2rem;
    margin-top: 2rem;
    padding-top: 1.6rem;
    border-top: 1px solid #eee;
}
.btn-cancel-addr {
    background: #6c757d;
    color: #fff;
    border: none;
    border-radius: 30px;
    padding: 1rem 2.2rem;
    font-size: 1.4rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
.btn-cancel-addr:hover {
    background: #565e64;
}
.btn-save-addr {
    background: var(--primaryColor);
    color: #fff;
    border: none;
    border-radius: 30px;
    padding: 1rem 2.2rem;
    font-size: 1.4rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
.btn-save-addr:hover {
    background: var(--primaryColor);
}

/* Hide the native radio input */
.shipping-option input[type="radio"] {
    display: none;
}

/* Card layout */
.shipping-option {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    cursor: pointer;
    margin-bottom: 12px;
    background: #fff;
    transition: all 0.25s ease;
    position: relative;
}

/* Active state — yellow/green background like your screenshot */
.shipping-option.is-active {
    border-color: var(--secondaryColor);
    background: linear-gradient(
        135deg,
        var(--secondaryColor) 0%,
        var(--secondaryColor) 100%
    );
}

/* Icon box */
.shipping-option-icon {
    width: 48px;
    height: 48px;
    background: #f5f5f5;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #555;
    flex-shrink: 0;
}

/* Text body */
.shipping-option-body {
    flex: 1;
}

.shipping-option-title {
    font-weight: 700;
    font-size: 14px;
    color: #222;
}

.shipping-option-desc {
    font-size: 14px;
    color: #555;
    margin-top: 2px;
}

.badge-free {
    color: #27ae60;
    font-weight: 600;
}

/* ── Radio indicator (right side) ─────────────────── */
.shipping-radio-indicator {
    margin-left: auto;
    flex-shrink: 0;
}

.radio-outer {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid #aaa;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s ease;
}

.radio-inner {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: transparent;
    transition: background 0.2s ease;
}

/* Active card — radio fills in */
.shipping-option.is-active .radio-outer {
    border-color: #333;
}

.shipping-option.is-active .radio-inner {
    background: #333;
}
