/* ================= PAYMENT & CART FINAL CSS ================= */

/* --- Base & Reset --- */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background: #f8f8f8;
    color: #333;
}

h1,
h2,
h3 {
    margin: 0.5em 0;
    font-weight: 600;
}

/* --- Container --- */
.container {
    width: 95%;
    max-width: 1200px;
    margin: auto;
    padding: 20px 0;
}

/* --- Hero Section --- */
.hero-section {
    text-align: center;
    margin-bottom: 30px;
}

.hero-section h1 {
    font-size: 2.5rem;
    color: #ffb300;
}

.hero-section p {
    font-size: 1.2rem;
    color: #555;
}

/* --- Panels & Cards --- */
.grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.panel {
    flex: 1 1 350px;
}

.card {
    background: #fff;
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
    margin-bottom: 20px;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
}

.btn-3d {
    background: linear-gradient(145deg, #ffb300, #ffa500);
    color: #000;
    box-shadow: 0 4px 0 #c47f00;
    transform-style: preserve-3d;
}

.btn-3d:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 0 #c47f00;
}

/* --- Cart Items --- */
#cartItems {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

#cartItems p {
    padding: 12px;
    color: #fff;
    text-align: center;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
}

.cart-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff8e1;
    border-radius: 12px;
    padding: 10px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.cart-item:hover {
    transform: translateX(5px);
}

.cart-item-img {
    border-radius: 8px;
    width: 60px;
    height: 60px;
    object-fit: cover;
}

.cart-item-info {
    flex: 1;
    margin-left: 10px;
}

.cart-item-info strong {
    display: block;
    font-size: 1rem;
    margin-bottom: 4px;
}

.cart-item-info p {
    margin: 0;
    font-size: 0.9rem;
    color: #555;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 6px;
}

.cart-item-controls button {
    padding: 4px 8px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-weight: bold;
}

.cart-item-controls .minus,
.cart-item-controls .plus {
    background: #ffb300;
    color: #000;
}

.cart-item-controls .remove {
    background: #ff4d4f;
    color: #fff;
}

/* --- Cart Summary --- */
.cart-summary div {
    display: flex;
    justify-content: space-between;
    margin: 6px 0;
}

.cart-summary strong {
    font-size: 1.1rem;
}

/* --- Delivery & Selects --- */
select {
    width: 100%;
    padding: 10px 12px;
    margin: 6px 0 12px;
    border-radius: 10px;
    border: 1px solid #ccc;
    font-size: 1rem;
}

/* --- Payment Options --- */
.payment-options {
    display: flex;
    gap: 10px;
    margin: 10px 0;
}

.payment-option {
    padding: 10px 18px;
    border-radius: 12px;
    border: 2px solid transparent;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.payment-option.mtn {
    background: #ffb300;
    color: #000;
}

.payment-option.airtel {
    background: #d32f2f;
    color: #fff;
}

.payment-option.selected {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* --- Merchant Card --- */
#merchantCard {
    background: #fff3cd;
    padding: 15px;
    border-radius: 12px;
    margin-top: 10px;
}

#merchantCard .actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

/* --- Input Fields --- */
.btn-input {
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #ccc;
    margin: 10px 0;
    font-size: 1rem;
}

/* --- Floating WhatsApp & Support Buttons --- */
.floating-buttons {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.floating-buttons .btn {
    background: #25d366;
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.floating-buttons .btn:hover {
    transform: translateY(-2px);
}

/* --- Toast --- */
#toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    background: #333;
    color: #fff;
    padding: 12px 18px;
    border-radius: 12px;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 9999;
    font-weight: bold;
}

/* --- Go To Payment Pointer --- */
#goToPaymentPointer {
    position: fixed;
    bottom: 80px;
    right: 20px;
    z-index: 9999;
    cursor: pointer;
}

#goToPaymentPointer .pointer-bubble {
    background: #ffb300;
    color: #000;
    font-weight: bold;
    padding: 10px 16px;
    border-radius: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    animation: pulse 1.2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.9;
    }

    50% {
        transform: scale(1.1);
        opacity: 1;
    }

    100% {
        transform: scale(1);
        opacity: 0.9;
    }
}

/* --- Feedback Form --- */
.feedback-form input,
.feedback-form select,
.feedback-form textarea {
    width: 100%;
    margin-bottom: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #ccc;
    font-size: 1rem;
}

/* --- Feedback Toast --- */
#fbToast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #ffb300;
    color: #000;
    padding: 12px 18px;
    border-radius: 30px;
    font-weight: bold;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 9999;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .grid {
        flex-direction: column;
    }

    .panel {
        flex: 1 1 100%;
    }

    .cart-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .cart-item-controls {
        margin-top: 6px;
    }

    .floating-buttons {
        right: 10px;
        bottom: 14px;
    }
}