/* EatPal brand palette A - Persian blue and turquoise
   Loaded after compiled CSS. To disable: remove the link from layouts/head.blade.php
   Contrast checked: teal on white 5.6, cream on teal 5.2, clay on white 5.2 */

:root {
    --ep-navy:      #12304F;
    --ep-navy-deep: #0C2038;
    --ep-teal:      #14746F;
    --ep-teal-dark: #0F5F5B;
    --ep-turquoise: #3EB5A6;
    --ep-sand:      #F5F1E8;
    --ep-cream:     #FBF9F5;
    --ep-muted:     #5F6B76;
    --ep-line:      #E1E5E4;
    --ep-clay:      #B84A33;
}

/* 1. Discount badges */
.business-card .img .discount-badge,
.order .food-card .off,
.each-restaurant .restaurant-content .food-card .off {
    background: var(--ep-clay);
    background-color: var(--ep-clay);
    color: #FFFFFF;
}

/* 2. Buttons: teal with cream text */
.header .profile .log-in,
.login .login-content form button,
.login-wrapper .login .login-content form .before-code button,
.login-wrapper .login .login-content form .before-code button.incorrect,
.login-wrapper .login .login-content form .after-code button,
.login-wrapper .login .login-content form .after-code button.incorrect {
    background: var(--ep-teal);
    background-color: var(--ep-teal);
    color: var(--ep-cream);
    border-color: var(--ep-teal);
    transition: background-color .3s ease;
}

.header .profile .log-in:hover,
.login .login-content form button:hover,
.login-wrapper .login .login-content form .before-code button:hover,
.login-wrapper .login .login-content form .after-code button:hover {
    background-color: var(--ep-teal-dark);
    color: var(--ep-cream);
}

.header .profile .log-in span,
.login .login-content form button span {
    color: var(--ep-cream);
}

.login .login-content form button:disabled,
.login-wrapper .login .login-content form button:disabled {
    background-color: #D3D8DA;
    color: #7C868C;
}

/* 3. select2 */
.select2-results__option--highlighted[aria-selected],
.select2-container--default .select2-selection--single {
    background: var(--ep-teal);
    background-color: var(--ep-teal);
    color: var(--ep-cream);
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: var(--ep-cream);
}

/* 4. Accent text on light surfaces */
.each-restaurant .restaurant-title .menu,
.favorite .favorite-box .favorite-card .restaurant-title .menu,
.home-stats .stat-card .stat-info,
.home-stats .stat-card .stat-info span,
.header .logo h2,
.mobileFooter div.active a,
.mobileFooter div.active a span {
    color: var(--ep-teal);
}

/* 5. Footer brand name */
.desktop-footer .eatpal .eatpal-content .brand h3 {
    color: var(--ep-navy);
}

/* 6. Charts and progress */
.home-stats .stat-card .circular-progress circle.fg,
.home-stats .circular-progress circle.fg,
.circular-progress circle.fg {
    stroke: var(--ep-teal);
}

.home-stats .stat-card .circular-progress circle.bg {
    stroke: var(--ep-line);
}

.vaziate-sefaresh .sefaresh-bar .first {
    background-color: var(--ep-teal);
}

/* 7. Cart badge is inline styled in the view */
.basket-wrapper > a[x-cloak],
.mobileFooter a[x-cloak] {
    background-color: var(--ep-teal) !important;
    color: var(--ep-cream) !important;
}

/* 8. Tabs on restaurant page */
.shop .changeContentBtn button.active {
    background: var(--ep-teal);
    background-color: var(--ep-teal);
    color: var(--ep-cream);
    border-color: var(--ep-teal);
}

.shop .changeContentBtn button {
    transition: background-color .3s ease, color .3s ease;
}

/* 9. Download app button */
.download-app-cta .btn,
.download-app-cta a.btn {
    background-color: var(--ep-teal) !important;
    color: var(--ep-cream) !important;
}

.download-app-cta .btn svg { fill: var(--ep-cream); }

/* 10. Claim banner */
.claim-banner { border-color: var(--ep-turquoise); }

.claim-banner-btn {
    background: var(--ep-teal);
    color: var(--ep-cream) !important;
}

.claim-banner-btn:hover {
    background: var(--ep-teal-dark);
    color: var(--ep-cream) !important;
}

/* 11. HTML banners replacing image banners */
.ep-cta { border-radius: 16px; padding: 44px 40px; margin: 0 auto; }

.ep-cta-dark { background: var(--ep-navy); color: var(--ep-cream); }

.ep-cta-light {
    background: var(--ep-sand);
    border: 1px solid var(--ep-line);
    color: var(--ep-navy);
}

.ep-cta h2 { font-size: 27px; font-weight: 800; line-height: 1.8; margin: 0 0 14px; }

.ep-cta-dark h2 em { font-style: normal; color: var(--ep-turquoise); }

.ep-cta p { font-size: 15px; line-height: 2.1; margin: 0 0 26px; max-width: 620px; }

.ep-cta-dark p { color: rgba(251, 249, 245, .78); }
.ep-cta-light p { color: var(--ep-muted); }

.ep-eyebrow {
    display: inline-block;
    font-size: 12.5px;
    border-radius: 999px;
    padding: 5px 16px;
    margin-bottom: 18px;
    border: 1px solid var(--ep-teal);
    color: var(--ep-teal);
}

.ep-cta-dark .ep-eyebrow {
    border-color: rgba(62, 181, 166, .5);
    color: var(--ep-turquoise);
}

.ep-btn {
    display: inline-block;
    background: var(--ep-teal);
    color: var(--ep-cream) !important;
    text-decoration: none;
    font-size: 15px;
    font-weight: 800;
    padding: 14px 34px;
    border-radius: 10px;
    transition: background-color .3s ease;
}

.ep-btn:hover { background: var(--ep-teal-dark); color: var(--ep-cream) !important; }

.ep-btn-ghost {
    display: inline-block;
    background: transparent;
    border: 1px solid var(--ep-turquoise);
    color: var(--ep-turquoise) !important;
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    padding: 13px 30px;
    border-radius: 10px;
    margin-right: 12px;
    transition: background-color .3s ease;
}

.ep-btn-ghost:hover { background: rgba(62, 181, 166, .14); }

@media (max-width: 767px) {
    .ep-cta { padding: 30px 22px; border-radius: 14px; }
    .ep-cta h2 { font-size: 21px; }
    .ep-cta p { font-size: 14px; }
    .ep-btn, .ep-btn-ghost { display: block; text-align: center; margin: 10px 0 0; }
}

body { font-feature-settings: "ss02"; }

/* ---- v5: remaining orange families ---- */
/* app.scss holds four different oranges: ffa301, ffb800, ffc727, ffa303 */

/* divider lines under section titles */
.upOfcategories .divider-line,
.divider-line {
    background: var(--ep-line);
}

/* "see all" links */
.show-more-btn a,
.upOfcategories .show-more-btn a {
    color: var(--ep-teal);
}

/* map markers and map chrome */
.leaflet-div-icon {
    background: var(--ep-teal);
    border-color: var(--ep-teal);
}

.map .map-wrapper .yellow-pill {
    background: var(--ep-teal);
    background-color: var(--ep-teal);
    color: var(--ep-cream);
}

.form-wrapper-fixed .search-map {
    background-color: var(--ep-teal);
    color: var(--ep-cream);
}

/* OTP input focus */
.code-box:is(:hover, :focus) {
    border-color: var(--ep-teal);
    outline-color: var(--ep-teal);
}

/* vendor dashboard active item */
.restaurant-dashboard .sidebar-card .list-group-item.active {
    background-color: var(--ep-teal);
    color: var(--ep-cream);
}

/* submit hover */
.sabt:hover {
    background-color: var(--ep-teal-dark);
    color: var(--ep-cream);
}

/* legacy layout leftovers */
.navbar-logo-div,
.brand-text,
.container-title::after {
    color: var(--ep-teal);
    background-color: transparent;
}

.container-title::after {
    background: var(--ep-teal);
}

/* vendor link in header */
.header .profile .restaurant-log-in {
    border-color: var(--ep-teal);
    color: var(--ep-teal);
}

.header .profile .restaurant-log-in span {
    color: var(--ep-teal);
}

/* ---- v6: hero and map entry ---- */

.ep-hero { padding: 54px 20px 44px; text-align: center; }

.ep-hero h1 {
    font-size: 34px;
    font-weight: 800;
    line-height: 1.75;
    margin: 0 0 16px;
    color: var(--ep-navy);
}

.ep-hero h1 em { font-style: normal; color: var(--ep-teal); }

.ep-hero .lead {
    font-size: 16px;
    line-height: 2.1;
    color: var(--ep-muted);
    max-width: 660px;
    margin: 0 auto 30px;
}

.ep-hero form { max-width: 640px; margin: 0 auto; display: flex; gap: 8px; }

.ep-hero input[type="search"] {
    flex: 1;
    height: 60px;
    border: 1px solid var(--ep-line);
    border-radius: 12px;
    padding: 0 20px;
    font-size: 16px;
    font-family: inherit;
    outline: none;
    background: #FFFFFF;
    color: var(--ep-navy);
    transition: border-color .3s ease;
}

.ep-hero input[type="search"]:focus { border-color: var(--ep-teal); }
.ep-hero input[type="search"]::placeholder { color: #9AA3AB; }

.ep-hero button {
    height: 60px;
    padding: 0 30px;
    border: none;
    border-radius: 12px;
    background: var(--ep-teal);
    color: var(--ep-cream);
    font-size: 15px;
    font-weight: 800;
    font-family: inherit;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color .3s ease;
}

.ep-hero button:hover { background: var(--ep-teal-dark); }

.ep-hero .facts { margin-top: 24px; font-size: 13.5px; color: var(--ep-muted); line-height: 2; }
.ep-hero .facts b { color: var(--ep-navy); font-weight: 800; }

.ep-mapcta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    background: var(--ep-navy);
    border-radius: 16px;
    padding: 38px 40px;
    text-decoration: none;
    transition: background-color .3s ease;
}

.ep-mapcta:hover { background: var(--ep-navy-deep); }

.ep-mapcta h3 {
    font-size: 23px;
    font-weight: 800;
    line-height: 1.8;
    margin: 0 0 10px;
    color: var(--ep-cream);
}

.ep-mapcta h3 em { font-style: normal; color: var(--ep-turquoise); }

.ep-mapcta p {
    font-size: 14.5px;
    line-height: 2.05;
    margin: 0;
    color: rgba(251, 249, 245, .75);
    max-width: 560px;
}

.ep-mapcta .go {
    flex-shrink: 0;
    border: 1px solid var(--ep-turquoise);
    color: var(--ep-turquoise);
    border-radius: 10px;
    padding: 13px 26px;
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
}

@media (max-width: 767px) {
    .ep-hero { padding: 34px 16px 30px; }
    .ep-hero h1 { font-size: 24px; }
    .ep-hero .lead { font-size: 14.5px; margin-bottom: 22px; }
    .ep-hero form { flex-direction: column; }
    .ep-hero input[type="search"], .ep-hero button { height: 54px; width: 100%; }
    .ep-mapcta { flex-direction: column; align-items: stretch; padding: 28px 22px; text-align: center; }
    .ep-mapcta h3 { font-size: 19px; }
    .ep-mapcta .go { text-align: center; }
}

/* ---- v7: claim page trust block ---- */
.cl-trust { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--ep-line); }

.cl-trust-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-bottom: 14px;
}

.cl-trust-row img { border-radius: 6px; }

.cl-trust-note {
    font-size: 12.5px;
    line-height: 2;
    color: var(--ep-muted);
    text-align: center;
}

/* ---- v8: claim guest state ---- */
.cl-guest-note {
    margin-top: 14px;
    font-size: 13px;
    line-height: 2;
    color: var(--ep-muted);
    text-align: center;
}

/* ---- v9: claim page styles, moved out of @section(head) ---- */
        .cl-box { max-width: 520px; margin: 0 auto; }

        .cl-step { flex: 1; height: 4px; border-radius: 2px; background: #e5e7eb; }
        .cl-step.on { background: #14746F; }

        .cl-biz { text-align: center; font-size: 13.5px; color: #6b7280; line-height: 2; margin-bottom: 22px; }
        .cl-biz strong { color: #1f2937; }

        .cl-value {
            background: #F5F1E8;
            border: 1px solid #3EB5A6;
            border-radius: 14px;
            padding: 16px 18px;
            margin-bottom: 22px;
        }

        .cl-value .h { font-size: 13.5px; font-weight: 800; color: #12304F; margin-bottom: 8px; }

        .cl-value ul { margin: 0; padding: 0; list-style: none; }

        .cl-value li {
            font-size: 13px;
            color: #5F6B76;
            line-height: 2.1;
            padding-right: 20px;
            position: relative;
        }

        .cl-value li::before {
            content: '✓';
            position: absolute;
            right: 0;
            color: #14746F;
            font-weight: 800;
        }

        .cl-field { margin-bottom: 18px; }

        .cl-field label {
            display: block;
            font-size: 13px;
            font-weight: 700;
            margin-bottom: 6px;
        }

        .cl-field input {
            width: 100%;
            border: 1px solid #d1d5db;
            border-radius: 10px;
            padding: 13px 15px;
            font-size: 16px;
            font-family: inherit;
            direction: ltr;
            text-align: center;
            letter-spacing: 1px;
            outline: none;
        }

        .cl-field input:focus { border-color: #14746F; }

        .cl-field .hint { font-size: 12px; color: #9ca3af; margin-top: 6px; line-height: 1.9; }

        .cl-submit {
            width: 100%;
            background: #14746F;
            color: #fff;
            border: none;
            border-radius: 10px;
            padding: 14px;
            font-size: 15px;
            font-weight: 800;
            font-family: inherit;
            cursor: pointer;
            transition: background .2s;
        }

        .cl-submit:hover { background: #0F5F5B; }
        .cl-submit:disabled { background: #d1d5db; cursor: not-allowed; }

        .cl-free {
            text-align: center;
            font-size: 12px;
            color: #9ca3af;
            margin-top: 14px;
            line-height: 2;
        }

/* ---- v10: claim page polish ---- */
.cl-box { max-width: 560px; }

.cl-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--ep-navy);
    text-align: center;
    margin-bottom: 10px;
}

.cl-biz { text-align: center; font-size: 14px; line-height: 2; color: var(--ep-muted); margin-bottom: 22px; }
.cl-biz strong { color: var(--ep-navy); }

.cl-steps { display: flex; gap: 6px; justify-content: center; margin-bottom: 22px; }

.cl-step { width: 36px; height: 4px; border-radius: 999px; background: var(--ep-line); }
.cl-step.on { background: var(--ep-teal); }

.cl-trust-row img { border-radius: 6px; height: auto; max-height: 90px; width: auto; }

/* ---- v12: union approval badge ---- */
.ep-union {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: var(--ep-sand);
    border: 1px solid var(--ep-line);
    border-radius: 12px;
    padding: 16px 18px;
    margin-top: 20px;
    text-align: right;
}

.ep-union-tick {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--ep-teal);
    color: var(--ep-cream);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
}

.ep-union-body { flex: 1; min-width: 0; }

.ep-union-title {
    font-size: 13.5px;
    font-weight: 800;
    color: var(--ep-navy);
    line-height: 1.95;
    margin: 0 0 4px;
}

.ep-union-note {
    font-size: 12.5px;
    line-height: 2;
    color: var(--ep-muted);
    margin: 0;
}

.ep-union-note a { color: var(--ep-teal); text-decoration: underline; }

.ep-cta-dark .ep-union {
    background: rgba(251, 249, 245, .06);
    border-color: rgba(62, 181, 166, .35);
}

.ep-cta-dark .ep-union-title { color: var(--ep-cream); }
.ep-cta-dark .ep-union-note { color: rgba(251, 249, 245, .72); }
.ep-cta-dark .ep-union-note a { color: var(--ep-turquoise); }

/* ---- v13: vendor dashboard theme override (Sneat) ---- */
:root {
    --bs-primary: #14746F;
    --bs-primary-rgb: 20, 116, 111;
}

.layout-menu .menu-item.active > .menu-link,
.menu-item.active > .menu-link {
    background: var(--ep-teal) !important;
    color: var(--ep-cream) !important;
}

.layout-menu .menu-item.active > .menu-link .menu-icon,
.menu-item.active > .menu-link i {
    color: var(--ep-cream) !important;
}

.btn-primary,
.btn-primary:focus {
    background-color: var(--ep-teal) !important;
    border-color: var(--ep-teal) !important;
    color: var(--ep-cream) !important;
}

.btn-primary:hover,
.btn-primary:active {
    background-color: var(--ep-teal-dark) !important;
    border-color: var(--ep-teal-dark) !important;
}

.text-primary { color: var(--ep-teal) !important; }
.bg-primary { background-color: var(--ep-teal) !important; }

.badge.bg-label-primary,
.bg-label-primary {
    background-color: rgba(20, 116, 111, .12) !important;
    color: var(--ep-teal) !important;
}

.app-brand-link .app-brand-logo img { border-radius: 8px; }

/* ---- v14: dashboard start checklist ---- */
.ep-check {
    background: #fff;
    border: 1px solid var(--ep-line);
    border-radius: 14px;
    padding: 6px 0 0;
    margin-bottom: 24px;
    overflow: hidden;
}

.ep-check-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    font-size: 14.5px;
    font-weight: 800;
    color: var(--ep-navy);
    border-bottom: 1px solid var(--ep-line);
}

.ep-check-count { font-size: 12.5px; font-weight: 700; color: var(--ep-teal); }

.ep-check-row {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 15px 20px;
    border-bottom: 1px solid var(--ep-line);
    text-decoration: none;
    transition: background-color .25s ease;
}

.ep-check-row:last-of-type { border-bottom: none; }
.ep-check-row:hover { background: var(--ep-sand); }

.ep-check-tick {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 1.5px solid var(--ep-line);
    color: var(--ep-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
}

.ep-check-row.done .ep-check-tick {
    background: var(--ep-teal);
    border-color: var(--ep-teal);
    color: var(--ep-cream);
}

.ep-check-body { flex: 1; min-width: 0; }
.ep-check-body b { display: block; font-size: 14px; color: var(--ep-navy); margin-bottom: 3px; }
.ep-check-body small { display: block; font-size: 12.5px; line-height: 1.95; color: var(--ep-muted); }
.ep-check-row.done .ep-check-body b { color: var(--ep-muted); text-decoration: line-through; }

.ep-check-foot {
    padding: 13px 20px;
    background: var(--ep-sand);
    font-size: 13px;
    line-height: 2;
    color: var(--ep-muted);
}

.ep-check-foot b { color: var(--ep-navy); }
.ep-check-foot a { color: var(--ep-teal); }

/* ---- v15: consumer login wall removed ---- */
/* Ordering is disabled on every business (menu_only=1, listing_only=1)
   and there are zero orders ever. Cart entry points are hidden until
   the payment gateway phase. The markup stays so nothing breaks. */
.header .basket,
.mobileFooter .cartItemBtn,
.mobileFooter div:has(> .cartItemBtn) {
    display: none !important;
}

/* ---- claim otp page styles ---- */
        .claim-box { max-width: 520px; margin: 0 auto; }
        .claim-note { font-size: 13px; line-height: 2; }
        .claim-steps { display: flex; gap: 8px; justify-content: center; margin-bottom: 24px; direction: rtl; }
        .claim-step { flex: 1; height: 4px; border-radius: 2px; background: #e5e7eb; }
        .claim-step.active { background: #0d6efd; }
        #code {
            letter-spacing: 14px; text-align: center;
            font-size: 26px; font-weight: 700; direction: ltr;
        }

/* ---- claim success page styles ---- */
    @unless ($isVendor)
        <meta http-equiv="refresh" content="3">
    @endunless
        .claim-box { max-width: 520px; margin: 0 auto; text-align: center; }
        .claim-note { font-size: 13px; line-height: 2; }
        .claim-tick {
            width: 84px; height: 84px; border-radius: 50%;
            background: #198754; color: #fff; font-size: 44px; line-height: 84px;
            margin: 0 auto 20px;
        }
        .claim-steps { display: flex; gap: 8px; justify-content: center; margin-bottom: 24px; direction: rtl; }
        .claim-step { flex: 1; height: 4px; border-radius: 2px; background: #198754; }
