/* Checkout Page Styles */
body {
    background-color: #FFFFFF;
    font-family: 'Inter', sans-serif;
    color: #0F0F0F;
    line-height: 1.6;
}

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

/* Header */
.header {
    text-align: center;
    margin-bottom: 50px;
    padding-bottom: 20px;
    border-bottom: 1px solid #E6E8EC;
}

.logo {
    font-family: 'Flood', sans-serif;
    font-size: 32px;
    color: #6688B1;
    line-height: 1;
    display: inline-block;
}

.logo-underline {
    height: 2px;
    width: 60px;
    background-color: #6688B1;
    margin: 5px auto 20px;
}

.header h1 {
    font-size: 36px;
    font-weight: 500;
    margin-bottom: 10px;
    color: #0F0F0F;
}

.header p {
    font-size: 16px;
    color: #666;
    font-weight: 300;
}

/* Checkout Container */
.checkout-container {
    background: #FFFFFF;
    border: 1px solid #E6E8EC;
    border-radius: 12px;
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Order Summary */
.order-summary {
    width: 100%;
}

.section-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 30px;
    color: #0F0F0F;
    padding-bottom: 15px;
    border-bottom: 2px solid #E6E8EC;
}

#orderDetails {
    background: #F8F9FA;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
}

.empty-cart {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-size: 16px;
}

.empty-cart p {
    margin: 0;
}

/* Cart Items (when populated) */
.cart-item {
    display: flex;
    gap: 20px;
    padding: 15px 0;
    border-bottom: 1px solid #E6E8EC;
}

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

.cart-item-image {
    width: 80px;
    height: 80px;
    background-color: #E6E8EC;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

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

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

.cart-item-title {
    font-weight: 600;
    margin-bottom: 5px;
    color: #0F0F0F;
}

.cart-item-meta {
    font-size: 13px;
    color: #666;
    margin-bottom: 5px;
}

.cart-item-price {
    font-weight: 600;
    color: #6688B1;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #E6E8EC;
    font-size: 18px;
    font-weight: 700;
    color: #0F0F0F;
}

.cart-total-amount {
    color: #6688B1;
    font-size: 22px;
}

/* Form Styles */
.payment-form {
    margin-top: 30px;
}

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

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

.form-control {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #E6E8EC;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    transition: all 0.3s ease;
    background: #FFFFFF;
}

.form-control:focus {
    outline: none;
    border-color: #6688B1;
    box-shadow: 0 0 0 3px rgba(102, 136, 177, 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

/* Payment Buttons */
.payment-btn {
    width: 100%;
    padding: 16px 24px;
    background-color: #6688B1;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.payment-btn:hover {
    background-color: #5A7AA3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 136, 177, 0.3);
}

#eftBtn {
    background: linear-gradient(135deg, #0F0F0F 0%, #2A2A2A 100%);
    border: 1px solid #333;
}

#eftBtn:hover {
    background: linear-gradient(135deg, #1A1A1A 0%, #333 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Bank Details Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: white;
    padding: 40px;
    border-radius: 16px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal.active .modal-content {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #E6E8EC;
}

.modal-header h3 {
    font-size: 24px;
    font-weight: 600;
    color: #0F0F0F;
    margin: 0;
}

.close-modal {
    background: none;
    border: none;
    font-size: 32px;
    cursor: pointer;
    color: #666;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-modal:hover {
    background: #F8F9FA;
    color: #0F0F0F;
}

/* Bank Details */
.bank-details {
    background: linear-gradient(135deg, #F8F9FA 0%, #FFFFFF 100%);
    border: 2px solid #E6E8EC;
    border-radius: 12px;
    padding: 30px;
    margin: 20px 0;
}

.bank-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid #E6E8EC;
}

.bank-logo {
    width: 50px;
    height: 50px;
    background: #6688B1;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 20px;
}

.bank-name {
    font-size: 20px;
    font-weight: 700;
    color: #0F0F0F;
    margin: 0;
}

.detail-row {
    display: flex;
    align-items: baseline;
    padding: 12px 0;
    border-bottom: 1px dashed #E6E8EC;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    width: 140px;
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.detail-value {
    flex: 1;
    font-weight: 600;
    color: #0F0F0F;
    font-size: 16px;
    word-break: break-all;
}

.account-type-badge {
    background: #6688B1;
    color: white;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 20px;
    display: inline-block;
    margin-top: 5px;
    font-weight: 500;
}

.copy-btn {
    background: none;
    border: 2px solid #6688B1;
    color: #6688B1;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 15px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.copy-btn:hover {
    background: #6688B1;
    color: white;
}

/* Payment Instructions */
.instructions {
    margin-top: 25px;
    padding: 20px;
    background: #FFF9E6;
    border-left: 4px solid #FFC107;
    border-radius: 8px;
}

.instructions h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #0F0F0F;
    display: flex;
    align-items: center;
    gap: 8px;
}

.instructions ul {
    margin: 0;
    padding-left: 20px;
}

.instructions li {
    margin-bottom: 10px;
    color: #555;
    font-size: 14px;
}

.instructions strong {
    color: #0F0F0F;
}

/* Yoco Section */
.yoco-section {
    text-align: center;
    padding: 30px;
}

.yoco-logo {
    margin-bottom: 25px;
}

.yoco-logo img {
    max-width: 120px;
}

.yoco-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 30px 0;
}

.feature {
    text-align: center;
}

.feature-icon {
    font-size: 32px;
    margin-bottom: 10px;
    color: #6688B1;
}

.feature-text {
    font-size: 13px;
    color: #666;
    font-weight: 500;
}

.yoco-btn {
    background: #6688B1;
    color: white;
    border: none;
    padding: 18px 36px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
    box-shadow: 0 4px 12px rgba(102, 136, 177, 0.3);
}

.yoco-btn:hover {
    background: #5A7AA3;
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(102, 136, 177, 0.4);
}

/* Secure Badge */
.secure-badge {
    text-align: center;
    margin-top: 30px;
    padding: 15px;
    background: #F8F9FA;
    border-radius: 8px;
    color: #4CAF50;
    font-weight: 500;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Footer */
.footer {
    text-align: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #E6E8EC;
    color: #666;
    font-size: 14px;
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #0F0F0F;
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    z-index: 2000;
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.toast.success {
    background: #4CAF50;
}

.toast.error {
    background: #ff4444;
}

/* Loading State */
.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

@keyframes spin {
    to { transform: translateY(-50%) rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 20px;
    }
    
    .checkout-container {
        padding: 25px;
    }
    
    .header h1 {
        font-size: 28px;
    }
    
    .section-title {
        font-size: 20px;
    }
    
    .modal-content {
        padding: 25px;
        width: 95%;
    }
    
    .detail-row {
        flex-direction: column;
        gap: 5px;
    }
    
    .detail-label {
        width: 100%;
    }
    
    .copy-btn {
        margin-left: 0;
        margin-top: 10px;
    }
    
    .yoco-features {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 24px;
    }
    
    .cart-item {
        flex-direction: column;
    }
    
    .cart-item-image {
        width: 100%;
        height: 120px;
    }
    
    .payment-btn {
        padding: 14px 20px;
        font-size: 15px;
    }
}
/* Yoco Payment Styles */
.yoco-payment-section {
    margin: 20px 0;
}

.yoco-card {
    background: linear-gradient(135deg, #00A3E0, #0082B3);
    color: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 163, 224, 0.2);
}

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

.secure-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.yoco-description {
    font-size: 1rem;
    margin-bottom: 15px;
    opacity: 0.95;
}

.card-icons {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.card-icons span {
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 10px;
    border-radius: 4px;
}

.yoco-btn {
    background: white;
    color: #00A3E0;
    font-weight: 600;
    width: 100%;
    padding: 14px;
    border: none;
    transition: all 0.3s;
}

.yoco-btn:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Cash Payment Styles */
.cash-payment-section {
    margin: 20px 0;
}

.cash-card {
    background: #f5f5f5;
    padding: 25px;
    border-radius: 12px;
    border-left: 4px solid #4CAF50;
}

.cash-card h3 {
    color: #4CAF50;
    margin-bottom: 10px;
}

/* Reference Highlight */
.reference-highlight {
    background: #ffd700;
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: bold;
    font-family: monospace;
    font-size: 1.1rem;
}

/* Payment Instructions */
.payment-instruction {
    font-size: 0.9rem;
    color: #666;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #ddd;
}

/* Hidden Class */
.hidden {
    display: none !important;
}
/* ===============================
   CHECKOUT MOBILE OPTIMISATION
================================ */

/* Tablets */
@media (max-width: 992px) {

    .container {
        padding: 30px 20px;
    }

    .checkout-container {
        padding: 30px;
    }

    .header h1 {
        font-size: 30px;
    }

}


/* Large Phones */
@media (max-width: 768px) {

    .container {
        padding: 20px 16px;
    }

    .checkout-container {
        padding: 25px 20px;
        border-radius: 10px;
    }

    .header {
        margin-bottom: 35px;
    }

    .header h1 {
        font-size: 26px;
    }

    .section-title {
        font-size: 20px;
        margin-bottom: 20px;
    }

    .cart-item {
        gap: 15px;
    }

    .cart-item-image {
        width: 70px;
        height: 70px;
    }

    .modal-content {
        width: 95%;
        padding: 25px;
        border-radius: 12px;
    }

    .detail-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .detail-label {
        width: 100%;
        font-size: 13px;
    }

    .detail-value {
        font-size: 15px;
    }

    .copy-btn {
        margin-left: 0;
        margin-top: 8px;
    }

    .payment-btn {
        padding: 16px;
        font-size: 15px;
    }

    .yoco-features {
        grid-template-columns: 1fr;
        gap: 16px;
    }

}


/* Small Phones */
@media (max-width: 480px) {

    .header h1 {
        font-size: 22px;
    }

    .logo {
        font-size: 28px;
    }

    .checkout-container {
        padding: 20px 16px;
    }

    .cart-item {
        flex-direction: column;
    }

    .cart-item-image {
        width: 100%;
        height: 140px;
    }

    .cart-item-details {
        width: 100%;
    }

    .payment-btn {
        padding: 15px;
        font-size: 15px;
    }

    .yoco-card {
        padding: 20px;
    }

    .yoco-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .card-icons {
        flex-wrap: wrap;
        gap: 10px;
    }

    .toast {
        width: 90%;
        text-align: center;
    }

}


/* Extra Small Phones */
@media (max-width: 380px) {

    .header h1 {
        font-size: 20px;
    }

    .form-control {
        padding: 12px;
        font-size: 14px;
    }

    .payment-btn {
        font-size: 14px;
    }

}