/* Base body/paragraph font (moved from base.html inline style) */
body,
.main-section p,
.mce-content-body p {
    font: Normal 14px/24px "Open Sans", sans-serif;
    letter-spacing: 0px;
    text-transform: none;
    color: #515151 !important;
}

.dt-input {
    width: auto !important;
}

.dt-input + label {
    margin-left: 10px;
}

@keyframes show-toast {
    0% {
        bottom: -100%
    }

    20% {
        bottom: 100px
    }

    80% {
        bottom: 100px
    }

    100% {
        bottom: -100%
    }
}



@media (max-width: 440px) {
    .img-list {
        width: 40vw !important;
        /* 40% of the viewport width */
        height: 35vw;
        /* Height relative to viewport width */
        max-width: 18rem;
        /* Set a maximum width */
        max-height: 14rem;
        /* Set a maximum height */
        object-fit: cover;
        /* Ensures the image covers the container */
    }
}

#qr-code-img {
    width: 150px;
    /* Adjust as needed */
    height: auto;
    /* Maintain aspect ratio */
    margin-bottom: 1rem;
    /* Space below the image */
}

.restaurant-count-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #007bff;
    margin-bottom: 16px;
    /* Reduced to 8px scale */
    text-transform: capitalize;
    font-style: italic;
    border-bottom: 1px solid #007bff;
    /* Reduced from 2px */
    padding-bottom: 8px;
    /* Reduced to 8px scale */
    font-family: 'Montserrat', sans-serif;
}





.cart-mobile-only {
    display: none;
}

@media (max-width: 480px) {
    .cart-mobile-only {
        display: inline;
    }

    .cart-above-mobile {
        display: none;
    }
}

.home-restaurant-img {
    border: 1px solid #ddd;
    /* Reduced from 2px */
    border-radius: 10%;
    /* Apply 10% border-radius */
    padding: 4px;
    /* Reduced to 8px scale (4px) */
    box-sizing: border-box;
    /* Ensure padding and border are included in the element's total width and height */

}

body {
    margin: 0;
    /* Remove default margin */
    overflow-x: hidden;
    /* Hide horizontal scrollbar */
    padding-bottom: 0;
    /* Sticky footer via flexbox handles positioning */
}

.order_complete_circle {
    /* width: 100px;
        height: 100px; */
    /* background-color: #cbd0d5; */
    /* Blue background */
    color: #007bff;
    /* Blue text color */
    font-size: 1.5rem;
    font-weight: bold;
    /* display: flex; */
    /* justify-content: center; */
    /* align-items: center; */
    /* border-radius: 25%;  */
    /* Makes the div a circle */
    /* text-align: center; */
    margin: 0 auto;
    /* Centers the circle horizontally */
}


.holder_radius {
    border-radius: 8px;
}

.show-notification {
    position: fixed;
    bottom: 100%;
    right: 20px;
    animation-name: show-toast;
    animation-duration: 7s;
    z-index: 99;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    /* Default alignment for larger screens */
}


@media (max-width: 768px) {
    .main-location {
        margin-top: 8px;
        /* Add some space between the brand name and location input on mobile */
    }
}


.brand_name h5 {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 2rem !important;
    color: #F28500 !important;
    font-weight: 700 !important;
    font-style: normal !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding: 8px 0 !important;
    /* Reduced to 8px scale */
    text-align: center;
}

/* Mobile responsive brand name */
@media (max-width: 768px) {
    .brand_name h5 {
        font-size: 1.5rem !important;
        padding: 4px 0 !important;
        /* Reduced to 8px scale */
    }
}

@media (max-width: 480px) {
    .brand_name h5 {
        font-size: 1.25rem !important;
    }
}

.input-with-icon {
    position: relative;
    width: 100%;
    /* Adjust width as necessary */
}

.input-with-icon input {
    width: 100%;
    padding-right: 32px;
    /* Space for the icon on the right - adjusted to 8px scale */
    box-sizing: border-box;
}

.input-with-icon span {
    position: absolute;
    right: 10px;
    top: 60%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #888;
    /* Icon color */
    height: 25%;
}

.input-with-icon i {
    font-size: 18px;
    /* Adjust icon size */
}

.logo a,
.logo a:hover,
.bg-white a,
.bg-white a:hover {
    text-decoration: none;
}

/* Removed duplicate brand_name h1 - using h5 version instead */


#navbar_main {
    position: sticky !important;
}

.decrease_cart:hover i,
.add_to_cart:hover i {
    color: black !important;

}

.catName {
    border-radius: 0.5rem !important;
}

.main-search.fancy .field-holder input[type="text"] {
    color: #000000 !important;
}

table>tbody>tr>td {
    border: none !important;
}

#opening_hours select {
    padding: 4px 8px !important;
    /* Adjusted to 8px scale */

}

.btn-success.add_hour {
    padding: 8px 16px !important;
    /* Adjusted to 8px scale */
}

.payment-method[type=radio] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.payment-method[type=radio]+img {
    cursor: pointer;
    padding: 4px;
    /* Adjusted to 8px scale */
}

.payment-method[type=radio]:checked+img {
    outline: 2px solid #0000ff
}

@media only screen and (max-width: 480px) {
    a.get-start-btn {
        display: block;
        margin-top: 16px !important;
        /* Adjusted to 8px scale */
        margin-left: 0 !important;
    }

    .main-search-bar {
        padding-top: 48px !important;
        /* Reduced to section limit */
        padding-bottom: 32px !important;
        /* Reduced to mobile section limit */
        background-position: left !important;
        /* it can be left or right */
        /* width: 50% !important; */

    }


    .user-dashboard {
        width: 100% !important
    }

    .menu-itam-holder .quantity {
        right: 0 !important;
        margin-top: -32px !important;
        /* Adjusted to 8px scale */
    }

    .table.opening_hours {
        width: 100% !important;

    }

    .table td {
        padding: 0.5rem !important;
    }

}

table td,
table th {
    line-height: 1rem !important;
}

/* ========================================
   NAVBAR ALIGNMENT FIXES - VERTICAL & HORIZONTAL
   ======================================== */

/* Fix main navbar container vertical alignment */
.main-header .row {
    align-items: center !important;
    min-height: 70px;
}

/* Fix header content vertical alignment */
.header-content {
    display: flex;
    align-items: center !important;
    justify-content: flex-start;
}

/* Fix navbar navigation vertical alignment */
.navbar-collapse .login-option {
    display: flex;
    align-items: center !important;
    gap: 0.75rem;
    /* Consistent horizontal spacing */
    flex-wrap: wrap;
}

/* Cart Button - Styled like Marketplace button */
.btn-cart {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 40px !important;
    padding: 8px 16px !important;
    border: 1px solid #F28500 !important;
    border-radius: 0.25rem !important;
    background-color: transparent !important;
    color: #F28500 !important;
    text-decoration: none !important;
    position: relative !important;
    transition: all 0.2s ease !important;
    line-height: 1.5 !important;
}

.btn-cart:hover {
    background-color: #F28500 !important;
    color: white !important;
}

@media (max-width: 768px) {
    .btn-cart {
        min-height: 44px !important;
    }
}

.btn-cart i {
    font-size: 18px !important;
    margin: 0 !important;
}

/* Cart badge positioning */
.btn-cart .badge,
.btn-cart #cart_counter {
    position: absolute !important;
    top: -8px !important;
    right: -8px !important;
    background-color: #F28500 !important;
    color: white !important;
    font-weight: 600 !important;
    border-radius: 50px !important;
    min-width: 20px !important;
    height: 20px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 6px !important;
    font-size: 11px !important;
    line-height: 1 !important;
}

/* Ensure all navbar buttons have same height and vertical alignment */
.main-header .btn,
.main-header a.get-start-btn,
.main-header a.cs-popup-joinus-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 38px !important;
    padding: 0.5rem 1rem !important;
    line-height: 1.5 !important;
    white-space: nowrap;
}

/* Fix navbar toggler alignment */
.navbar-toggler {
    margin-left: 0.5rem;
    align-self: center;
}

/* Right-align navbar items properly */
.navbar-collapse {
    justify-content: flex-end;
}

/* Horizontal spacing standardization */
.login-option>* {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Fix navbar container alignment */
.navbar {
    align-items: center !important;
}

.navbar .container-fluid {
    align-items: center !important;
}

/* Location input vertical alignment */
.main-location {
    display: flex;
    align-items: center;
}

/* Responsive navbar alignment */
@media (max-width: 991px) {
    .navbar-collapse .login-option {
        flex-direction: column;
        align-items: stretch !important;
        gap: 0.5rem;
        margin-top: 1rem;
    }

    .main-header .btn,
    .main-header a.get-start-btn,
    .main-header a.cs-popup-joinus-btn {
        width: 100%;
        justify-content: center;
    }

    /* Fix hamburger alignment with location bar on mobile */
    .navbar-toggler {
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
        margin: 0 !important;
    }

    .main-header .container-fluid {
        position: relative;
    }

    /* Ensure logo and location are on same row */
    .main-header .row {
        align-items: center !important;
    }

    .main-header .col-lg-6.col-md-8 {
        display: flex;
        align-items: center;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100%;
    }

    .main-header .row {
        align-items: center !important;
    }

    /* Logo and location in same row on mobile */
    .logo {
        flex-shrink: 0;
    }

    .main-location {
        flex: 1;
        margin-left: 8px;
        /* Adjusted to 8px scale */
    }

    /* Hamburger aligned on right, same line */
    .navbar-toggler {
        position: absolute;
        right: 15px;
        top: 15px;
    }

    .main-header .col-lg-6.col-md-4 {
        position: relative;
        margin-top: 0 !important;
    }
}

/* ========================================
   FIX EXCESSIVE SPACING ON ALL PAGES
   ======================================== */

/* Remove excessive padding from restaurant cover section */
.restaurant-detail-image-section {
    padding: 24px 0 16px !important;
    margin-bottom: 16px !important;
}

/* ========================================
   COVER HEADER Pure CSS, no image
   Class name avoids "gradient" keyword so
   orderzy-modern.css selectors can't match.
   ======================================== */

.cover-header {
    background: linear-gradient(135deg, #111827 0%, #1C2333 55%, #111827 100%) !important;
    background-color: #111827 !important;
    position: relative !important;
    overflow: hidden !important;
    border-bottom: 3px solid #F28500 !important;
}

/* Warm orange glow from bottom-left replaces theme's black overlay */
.cover-header::before {
    background: radial-gradient(
        ellipse at 0% 110%,
        rgba(242, 133, 0, 0.20) 0%,
        transparent 55%
    ) !important;
    background-color: transparent !important;
}

/* Restaurant / user name bold, warm white */
.cover-header span.restaurant-title {
    color: #F9FAFB !important;
    font-weight: 700 !important;
    font-size: 20px !important;
    letter-spacing: 0.4px !important;
    line-height: 1.3 !important;
    display: block !important;
    margin-bottom: 2px !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4) !important;
}

/* Address & email */
.cover-header .text-holder .text p {
    color: #9CA3AF !important;
    font-size: 13px !important;
    margin-bottom: 2px !important;
}

/* Icons */
.cover-header .text-holder .text i {
    color: #F28500 !important;
    opacity: 0.9 !important;
    font-size: 12px !important;
}

/* Remove excessive padding from account header */
.account-header {
    padding-top: 16px !important;
    /* Reduced to 8px scale */
    margin-bottom: 16px !important;
    /* Reduced to 8px scale */
}

/* Universal fix - minimal spacing after navbar for all pages */
.main-section {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.page-section {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Ensure first page section after navbar has minimal padding */
.page-section.nopadding {
    padding-top: 0 !important;
    padding-bottom: 8px !important;
    /* Adjusted to 8px scale */
    margin-top: 0 !important;
}

/* Remove excessive margins from content containers */
.main-section .page-section:first-child {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Fix marketplace page - remove empty container spacing */
.main-section .container {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

.main-section .container .row {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Target empty containers and rows that cause spacing */
.main-section .container:empty,
.main-section .row:empty {
    display: none !important;
}

/* Specific fix for marketplace listing container */
.main-section .page-section .container .row {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* AGGRESSIVE FIX - Target the heading directly */
.restaurant-count-title {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

h4.restaurant-count-title {
    margin-top: 0 !important;
    padding-top: 0 !important;
}


/* Target listing-sorting-holder */
.listing-sorting-holder {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.listing-sorting-holder.mt-4 {
    margin-top: 0 !important;
}



/* Scoped spacing fix for marketplace listings only */
.main-section .listing-sorting-holder > *,
.main-section .restaurant-grid > * {
    margin-top: 0;
}

.main-section .listing-sorting-holder,
.main-section .food-hub-filter {
    margin-top: 0 !important;
}

/* Scoped spacing fix for marketplace listing cards only */
.main-section .listing-sorting-holder .mb-4,
.main-section .listing-sorting-holder .mb-3,
.main-section .listing-sorting-holder .mb-2,
.main-section .restaurant-grid .mb-4,
.main-section .restaurant-grid .mb-3,
.main-section .restaurant-grid .mb-2 {
    margin-bottom: 0.5rem !important;
}


/* ========================================
   FOOTER - MINIMAL DARK STICKY FOOTER
   ======================================== */

/* Ensure html and body take full height for sticky footer */
html {
    height: 100%;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Make wrapper take remaining space - BUT WITH MINIMAL CONTENT HEIGHT */
.wrapper {
    flex: 1 0 auto;
    min-height: 0 !important;
    display: flex;
    flex-direction: column;
}

/* Prevent wrapper from growing excessively when content is minimal */
.wrapper>* {
    flex-shrink: 0;
}

/* Footer - Clean dark minimal */
#footer.footer-minimal {
    background-color: #1E293B !important;
    padding: 20px 0 16px !important;
    margin-top: auto;
    flex-shrink: 0;
}


/* Footer links row - centered, single line with dots */
.footer-links-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
}

.footer-links-row a {
    color: #64748B !important;
    font-size: 13px !important;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links-row a:hover {
    color: #F28500 !important;
    text-decoration: none;
}

.footer-dot {
    color: #334155;
    font-size: 12px;
    user-select: none;
}

/* Footer bottom row - contact + copyright */
.footer-bottom-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    padding-top: 12px;
    border-top: 1px solid #334155;
}

.footer-contact-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.footer-contact-links a {
    color: #64748B !important;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.footer-contact-links a:hover {
    color: #F28500 !important;
}

.footer-contact-links i {
    margin-right: 5px;
    color: #F28500;
}

.footer-copyright {
    color: #475569 !important;
    font-size: 12px !important;
}

/* Footer responsive */
@media (max-width: 768px) {
    .footer-links-row {
        gap: 4px;
    }

    .footer-links-row a {
        font-size: 12px !important;
    }

    .footer-bottom-row {
        flex-direction: column;
        gap: 8px;
    }

    .footer-contact-links {
        flex-direction: column;
        gap: 6px;
    }
}

/* ========================================
   GLOBAL FORM FOCUS STATES
   ======================================== */

/* All form inputs - focus ring in brand color */
input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
textarea:focus,
select:focus {
    border-color: #F28500 !important;
    box-shadow: 0 0 0 3px rgba(242, 133, 0, 0.1) !important;
    outline: none !important;
}

/* ========================================
   RESTAURANT CARD HOVER STATES
   ======================================== */

.restaurant-card-v2 {
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.restaurant-card-v2:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1) !important;
}

/* Touch devices: use active state instead of hover */
@media (hover: none) {
    .restaurant-card-v2:hover {
        transform: none;
        box-shadow: none !important;
    }

    .restaurant-card-v2:active {
        transform: scale(0.98);
    }
}

/* ========================================
   TOUCH TARGET MINIMUM SIZES (44px)
   ======================================== */

@media (max-width: 768px) {
    .qty-btn {
        min-width: 44px !important;
        min-height: 44px !important;
    }

    .menu-row__qty-btn {
        /* Only enforce min-height for tap target; min-width breaks the qty-controls layout */
        min-height: 44px !important;
    }

    .search-bar__location-change {
        min-width: 44px !important;
        min-height: 44px !important;
    }
}