/* Checkout Page Layout */
.checkout-page-container {
    padding: 40px 0;
    font-family: 'Inter', sans-serif;
    background-color: #f8f9fa;
}

.checkout-layout {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

/* Left Column: Form */
.checkout-form-column {
    flex: 1;
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
}

.checkout-header {
    color: #e74c3c;
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 25px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 15px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    color: #333;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.form-control:focus {
    border-color: #e74c3c;
    outline: none;
}

.payment-methods {
    margin-top: 25px;
    margin-bottom: 25px;
}

.payment-option {
    display: inline-flex;
    align-items: center;
    margin-right: 20px;
    cursor: pointer;
}

.payment-option input {
    margin-right: 8px;
}

.btn-order-now {
    display: block;
    width: 100%;
    background: #ff0000;
    color: white;
    font-weight: 700;
    font-size: 18px;
    padding: 15px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-align: center;
    transition: background 0.2s;
}

.btn-order-now:hover {
    background: #cc0000;
}

/* Right Column: Summary */
.checkout-summary-column {
    width: 400px;
    flex-shrink: 0;
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
}

.summary-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
}

.checkout-cart-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.checkout-cart-table th {
    text-align: left;
    padding: 10px;
    background: #f9f9f9;
    border-bottom: 2px solid #eee;
    font-size: 13px;
    font-weight: 600;
    color: #555;
}

.checkout-cart-table td {
    padding: 15px 10px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
}

.checkout-item-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    margin-right: 10px;
}

.checkout-item-name {
    font-size: 13px;
    color: #333;
    display: block;
    max-width: 150px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.checkout-qty-control {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 3px;
}

.qty-btn-sm {
    padding: 2px 6px;
    background: #f5f5f5;
    border: none;
    cursor: pointer;
    font-size: 12px;
}

.qty-val-sm {
    padding: 0 8px;
    font-size: 12px;
    min-width: 20px;
    text-align: center;
}

.checkout-remove-btn {
    color: #e74c3c;
    cursor: pointer;
    background: none;
    border: none;
}

.summary-totals {
    border-top: 2px solid #eee;
    padding-top: 15px;
}

.total-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 14px;
    color: #555;
}

.total-row.final {
    font-weight: 700;
    color: #333;
    font-size: 16px;
    margin-top: 10px;
    border-top: 1px solid #eee;
    padding-top: 10px;
}

/* Responsive */
@media (max-width: 991px) {
    .checkout-layout {
        flex-direction: column-reverse;
        /* Summary on top usually better on mobile, or bottom? Design shows side-by-side. Let's stack naturally. */
    }

    .checkout-summary-column {
        width: 100%;
        margin-bottom: 20px;
    }
}

/* Delivery Area Pill Style */
.delivery-pills-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.delivery-pill {
    cursor: pointer;
    margin: 0;
}

.delivery-pill input {
    display: none;
}

.pill-text {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    border: 1px solid #e1e8cf;
    /* Light border from image */
    background: #fff;
    color: #333;
}

.delivery-pill input:checked+.pill-text {
    background: #e74c3c;
    /* Red background */
    color: #fff;
    border-color: #e74c3c;
    box-shadow: 0 4px 10px rgba(231, 76, 60, 0.2);
}

.delivery-pill:hover .pill-text {
    border-color: #e74c3c;
}

/* OTP Inline Box Styles */
.otp-inline-box {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.otp-box-content {
    background: #fdfdfd;
    border: 1px solid #e74c3c !important;
}

#otp_input:focus {
    border-color: #e74c3c;
    box-shadow: 0 0 0 0.1rem rgba(231, 76, 60, 0.25);
    outline: none;
}

.gap-2 {
    gap: 0.5rem;
}

.d-flex {
    display: flex;
}

.align-items-center {
    align-items: center;
}

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

.btn-primary {
    background-color: #e74c3c;
    border-color: #e74c3c;
}

.btn-link {
    color: #e74c3c;
    text-decoration: none;
    font-size: 12px;
}

.btn-link:hover {
    text-decoration: underline;
    color: #c0392b;
}