* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family:
        Inter,
        Arial,
        sans-serif;

    background: #f6f8fb;
    color: #172033;
}

/* ========================================
   APP SPLASH / LOGIN
======================================== */

.auth-body {
    background: #f8fafc;
}

.app-splash {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: linear-gradient(145deg, #1d4ed8 0%, #2563eb 48%, #0f3ca7 100%);
    color: #fff;
    transition: opacity .42s ease, visibility .42s ease;
}

.app-splash--leaving {
    opacity: 0;
    visibility: hidden;
}

.splash-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 28px;
    text-align: center;
    animation: splashContentIn .7s cubic-bezier(.2, .85, .3, 1) both;
}

.splash-logo {
    width: 104px;
    height: 104px;
    display: grid;
    place-items: center;
    margin-bottom: 20px;
    animation: splashLogoPulse 1.5s ease-in-out infinite .7s;
}

.splash-logo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.splash-content strong {
    font-size: clamp(28px, 8vw, 36px);
    letter-spacing: -.04em;
}

.splash-content p {
    margin: 8px 0 26px;
    color: rgba(255, 255, 255, .78);
    font-size: 14px;
}

.splash-loader {
    width: 92px;
    height: 4px;
    overflow: hidden;
    border-radius: 99px;
    background: rgba(255, 255, 255, .25);
}

.splash-loader span {
    display: block;
    width: 48%;
    height: 100%;
    border-radius: inherit;
    background: #fff;
    animation: splashLoading 1.1s ease-in-out infinite;
}

.splash-glow {
    position: absolute;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: rgba(147, 197, 253, .2);
    filter: blur(4px);
}

.splash-glow-one { top: -155px; right: -120px; }
.splash-glow-two { bottom: -190px; left: -150px; background: rgba(96, 165, 250, .18); }

@keyframes splashContentIn {
    from { opacity: 0; transform: translateY(18px) scale(.94); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes splashLogoPulse {
    50% { transform: translateY(-5px) scale(1.035); }
}

@keyframes splashLoading {
    from { transform: translateX(-115%); }
    to { transform: translateX(220%); }
}

@media (prefers-reduced-motion: reduce) {
    .splash-content, .splash-logo, .splash-loader span { animation: none; }
}

a {
    text-decoration: none;
}

.landing {
    min-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 24px;

    background:
        radial-gradient(
            circle at top right,
            #dbeafe,
            transparent 40%
        ),
        #f8fafc;
}

.landing-content {
    width: 100%;
    max-width: 420px;

    text-align: center;

    background: white;

    padding: 45px 30px;

    border-radius: 28px;

    box-shadow:
        0 20px 60px
        rgba(15, 23, 42, .08);
}

.logo {
    width: 80px;
    height: 80px;

    margin: auto;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 24px;

    font-size: 38px;

    background: #2563eb;
    color: white;
}

.landing h1 {
    margin-top: 25px;
    margin-bottom: 8px;

    font-size: 30px;
}

.landing p {
    color: #64748b;
    line-height: 1.6;
}

.landing-actions {
    display: flex;
    gap: 12px;

    margin-top: 30px;
}

.btn {
    flex: 1;

    padding: 14px 20px;

    border-radius: 14px;

    font-weight: 700;

    text-align: center;
}

.btn-primary {
    background: #2563eb;
    color: white;
}

.btn-outline {
    border: 1px solid #dbe2ea;
    color: #2563eb;
    background: white;
}

@media (max-width: 480px) {

    .landing-content {
        padding: 35px 22px;
    }

}

/* ========================================
   AUTH
======================================== */

.auth-page {
    min-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;

    background:
        radial-gradient(
            circle at top right,
            #dbeafe,
            transparent 40%
        ),
        #f8fafc;
}

.auth-card {
    width: 100%;
    max-width: 430px;

    background: #fff;

    padding: 35px 30px;

    border-radius: 28px;

    box-shadow:
        0 20px 60px
        rgba(15, 23, 42, .08);
}

.auth-logo {
    width: 64px;
    height: 64px;

    margin: 0 auto 20px;

    display: flex;
    align-items: center;
    justify-content: center;

}

.auth-logo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.auth-card h1 {
    margin: 0;

    text-align: center;

    font-size: 27px;
}

.auth-subtitle {
    text-align: center;

    color: #64748b;

    margin: 8px 0 28px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;

    margin-bottom: 8px;

    font-size: 14px;

    font-weight: 700;
}

.form-group label span {
    color: #94a3b8;

    font-weight: 400;
}

.form-group input {
    width: 100%;

    height: 50px;

    padding: 0 15px;

    border: 1px solid #e2e8f0;

    border-radius: 14px;

    outline: none;

    font-size: 15px;

    transition: .2s;
}

.form-group input:focus {
    border-color: #2563eb;

    box-shadow:
        0 0 0 3px
        rgba(37, 99, 235, .1);
}

.btn-full {
    width: 100%;

    border: 0;

    cursor: pointer;

    font-size: 15px;
}

.alert {
    padding: 13px 15px;

    margin-bottom: 20px;

    border-radius: 12px;

    background: #fef2f2;

    color: #dc2626;

    font-size: 14px;
}

.auth-footer {
    text-align: center;

    margin-top: 25px;

    color: #64748b;

    font-size: 14px;
}

.auth-footer a {
    color: #2563eb;

    font-weight: 700;
}

/* ========================================
   CUSTOMER APP
======================================== */

.app-body {
    min-height: 100vh;
    background: #f4f7fb;

    padding-bottom: 90px;
}

.app-header {
    position: sticky;
    top: 0;
    z-index: 20;
    padding: 18px max(18px, calc((100% - 1064px) / 2)) 14px;

    background: rgba(255, 255, 255, .94);
    border-bottom: 1px solid rgba(226, 232, 240, .8);
    backdrop-filter: blur(16px);

    display: flex;

    align-items: center;

    justify-content: space-between;
}

.app-header > div:first-child {
    min-width: 0;
}

.location-label {
    color: #94a3b8;

    font-size: 11px;

    margin-bottom: 3px;
}

.location {
    width: fit-content;
    padding: 0;
    border: 0;
    background: transparent;
    display: flex;

    align-items: center;

    gap: 5px;

    font-size: 14px;
    color: #172033;
    cursor: pointer;
    font-family: inherit;
    text-align: left;
}

.location:hover strong {
    color: #2563eb;
}

.location strong {
    max-width: min(62vw, 290px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.location-detail {
    display: block;
    max-width: min(70vw, 340px);
    margin: 3px 0 0 22px;
    overflow: hidden;
    color: #94a3b8;
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.location-arrow {
    color: #64748b;
    font-size: 17px;
    margin-left: 2px;
}

.location-pin {
    font-size: 16px;
}

.notification-btn {
    width: 42px;
    height: 42px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 14px;

    background: #f1f5f9;
    color: #172033;
    position: relative;
    font-size: 18px;
    flex: 0 0 auto;
    box-shadow: 0 5px 12px rgba(15, 23, 42, .05);
}

.notification-btn i {
    position: absolute;
    top: 9px;
    right: 9px;
    width: 7px;
    height: 7px;
    border: 2px solid #f1f5f9;
    border-radius: 50%;
    background: #ef4444;
}

.notification-btn svg,
.search-box > svg,
.bottom-nav svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.app-main {
    width: 100%;
    max-width: 1100px;

    margin: auto;

    padding: 16px max(18px, calc((100% - 1064px) / 2)) 32px;
}

.search-box {
    height: 50px;

    display: flex;

    align-items: center;

    gap: 10px;

    padding: 0 15px;

    background: #fff;

    border: 1px solid #e2e8f0;

    border-radius: 15px;
    box-shadow: 0 5px 16px rgba(15, 23, 42, .045);
}

.search-box input {
    flex: 1;

    border: 0;

    outline: none;

    background: transparent;

    font-size: 14px;
}

.search-box:focus-within {
    border-color: #93c5fd;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, .1);
}

.search-box button {
    width: 30px;
    height: 30px;
    border: 0;
    border-left: 1px solid #e2e8f0;
    background: transparent;
    color: #2563eb;
    line-height: 1;
    cursor: pointer;
}

.search-box button svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-width: 1.8;
}

.promo-banner {
    margin-top: 18px;

    min-height: 164px;

    padding: 22px;

    border-radius: 22px;

    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 72%, #173b9e 100%);
    box-shadow: 0 14px 25px rgba(37, 99, 235, .2);

    color: #fff;

    display: flex;

    align-items: center;

    justify-content: space-between;

    overflow: hidden;
}

.promo-small {
    font-size: 11px;

    font-weight: 800;

    letter-spacing: 1px;

    opacity: .8;
}

.promo-banner h2 {
    margin: 7px 0;

    font-size: 22px;
}

.promo-banner p {
    margin: 0 0 14px;

    max-width: 270px;

    font-size: 13px;

    opacity: .9;
}

.promo-banner button {
    border: 0;

    padding: 9px 14px;

    border-radius: 10px;

    background: #fff;

    color: #2563eb;

    font-weight: 700;

    cursor: pointer;
}

.promo-art {
    position: relative;
    width: 116px;
    height: 116px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 50%;
    background: rgba(255, 255, 255, .14);
    transform: rotate(7deg);
}

.promo-art span {
    font-size: 66px;
}

.promo-art b {
    position: absolute;
    right: -3px;
    bottom: 2px;
    padding: 7px 9px;
    border-radius: 10px;
    background: #fbbf24;
    color: #713f12;
    font-size: 12px;
    transform: rotate(-10deg);
}

.section {
    margin-top: 25px;
}

.section-header {
    display: flex;

    align-items: center;

    justify-content: space-between;

    margin-bottom: 14px;
}

.section-header h2 {
    margin: 0;

    font-size: 18px;
}

.section-header a {
    color: #2563eb;

    font-size: 12px;

    font-weight: 700;
}

.category-scroll {
    display: flex;

    gap: 12px;

    overflow-x: auto;

    padding-bottom: 5px;

    scrollbar-width: none;
}

.category-scroll::-webkit-scrollbar {
    display: none;
}

.category-card {
    min-width: 78px;

    display: flex;

    flex-direction: column;

    align-items: center;

    gap: 7px;

    color: #334155;

    font-size: 12px;

    font-weight: 600;
}

.category-icon {
    width: 62px;
    height: 62px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 20px;

    background: #fff;

    font-size: 29px;

    box-shadow:
        0 4px 15px
        rgba(15, 23, 42, .05);
    border: 1px solid #edf2f7;
    transition: transform .2s, border-color .2s;
}

.category-card:hover .category-icon {
    border-color: #bfdbfe;
    transform: translateY(-3px);
}

.menu-scroll {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding: 2px 2px 12px;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
}

.menu-scroll::-webkit-scrollbar {
    display: none;
}

.menu-scroll .menu-card {
    flex: 0 0 214px;
    scroll-snap-align: start;
}

.restaurant-list {
    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 15px;
}

.menu-card {
    overflow: hidden;
    background: #fff;
    border: 1px solid #edf2f7;
    border-radius: 20px;
    color: #172033;
    box-shadow: 0 8px 20px rgba(15, 23, 42, .055);
    transition: transform .2s, box-shadow .2s;
}

.menu-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 28px rgba(15, 23, 42, .1);
}

.menu-image {
    width: 100%;
    height: 164px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, #fff7ed, #ffedd5);
    color: #f97316;
}

.menu-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s;
}

.menu-card:hover .menu-image img {
    transform: scale(1.04);
}

.menu-image svg {
    width: 58px;
    height: 58px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.5;
}

.menu-info {
    padding: 14px 15px 16px;
}

.menu-info h3 {
    margin: 0 0 5px;
    overflow: hidden;
    font-size: 15px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.menu-merchant {
    display: block;
    overflow: hidden;
    color: #94a3b8;
    font-size: 11px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.menu-price {
    display: block;
    margin-top: 10px;
    color: #2563eb;
    font-size: 15px;
}

.menu-meta {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 8px;
    color: #64748b;
    font-size: 11px;
}

.rating-icon {
    color: #f59e0b;
    font-size: 14px;
}

.restaurant-card {
    overflow: hidden;

    background: #fff;

    border-radius: 20px;

    color: #172033;

    box-shadow:
        0 4px 15px
        rgba(15, 23, 42, .05);

    transition: transform .2s;
}

.restaurant-card:hover {
    transform: translateY(-3px);
}

.restaurant-image {
    width: 100%;
    height: 158px;

    display: flex;

    align-items: center;
    justify-content: center;

    background: #e2e8f0;

    font-size: 50px;

    overflow: hidden;
}

.restaurant-image svg {
    width: 55px;
    height: 55px;
    fill: none;
    stroke: #2563eb;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.5;
}

.restaurant-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}

.restaurant-info {
    padding: 13px;
}

.restaurant-info h3 {
    margin: 0 0 7px;

    font-size: 15px;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;
}

.restaurant-meta {
    margin-top: 5px;

    color: #64748b;

    font-size: 11px;
}

.restaurant-meta span {
    margin: 0 4px;
}

.empty-state {
    grid-column: 1 / -1;

    text-align: center;

    padding: 50px 20px;

    background: #fff;

    border-radius: 20px;

    color: #64748b;
}

.empty-state div {
    font-size: 45px;

    margin-bottom: 10px;
}

.empty-state strong {
    color: #334155;
}

.empty-state p {
    font-size: 13px;
}


/* ========================================
   BOTTOM NAVIGATION
======================================== */

.bottom-nav {
    position: fixed;

    left: 50%;
    bottom: max(12px, env(safe-area-inset-bottom));

    transform: translateX(-50%);

    width: calc(100% - 24px);

    max-width: 600px;

    padding: 10px 8px;

    display: flex;

    justify-content: space-around;

    background: rgba(255,255,255,.94);

    backdrop-filter: blur(15px);

    border: 1px solid #e2e8f0;

    border-radius: 22px;

    box-shadow:
        0 10px 35px
        rgba(15, 23, 42, .12);

    z-index: 1000;
}

.bottom-nav a {
    min-width: 55px;

    display: flex;

    flex-direction: column;

    align-items: center;

    gap: 3px;

    color: #94a3b8;

    font-size: 20px;
    text-decoration: none;
}

.bottom-nav a.active {
    position: relative;
}

.bottom-nav a.active::before {
    position: absolute;
    top: -3px;
    width: 42px;
    height: 29px;
    border-radius: 12px;
    background: #dbeafe;
    content: '';
    z-index: -1;
}

.bottom-nav small {
    font-size: 10px;
}

.bottom-nav a.active {
    color: #2563eb;

    font-weight: 700;
}

.bottom-nav svg {
    position: relative;
    z-index: 1;
}

@media (max-width: 560px) {
    .app-main {
        padding-top: 13px;
    }

    .promo-banner {
        min-height: 152px;
        padding: 18px;
    }

    .promo-banner h2 {
        max-width: 185px;
        font-size: 19px;
    }

    .promo-banner p {
        max-width: 205px;
        font-size: 12px;
    }

    .promo-art {
        width: 88px;
        height: 88px;
        margin-right: -8px;
    }

    .promo-art span {
        font-size: 50px;
    }

    .restaurant-list {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .menu-scroll {
        gap: 12px;
        margin-right: -18px;
        padding-right: 18px;
    }

    .menu-scroll .menu-card {
        flex-basis: 214px;
        display: block;
        min-height: 0;
    }

    .menu-scroll .menu-image {
        height: 164px;
        min-height: 0;
    }

    .menu-card {
        display: grid;
        grid-template-columns: 118px 1fr;
        min-height: 118px;
    }

    .menu-image {
        height: 100%;
        min-height: 118px;
    }

    .menu-info {
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
}

/* ========================================
   PAGE HEADER
======================================== */

.page-header {
    height: 65px;

    padding: 0 18px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    background: #fff;

    position: sticky;

    top: 0;

    z-index: 100;
}

.page-header h1 {
    margin: 0;

    font-size: 18px;
}

.back-button {
    width: 42px;
    height: 42px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 13px;

    background: #f1f5f9;

    color: #172033;

    font-size: 22px;
}


/* ========================================
   RESTAURANT PAGE
======================================== */

.restaurant-page-title {
    margin: 25px 0 15px;
}

.restaurant-page-title h2 {
    margin: 0;

    font-size: 20px;
}

.restaurant-page-title p {
    margin: 5px 0 0;

    color: #64748b;

    font-size: 13px;
}


/* ========================================
   RESTAURANT DETAIL
======================================== */

.restaurant-cover {
    height: 250px;

    position: relative;

    background: #e2e8f0;

    overflow: hidden;
}

.restaurant-cover img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}

.cover-placeholder {
    width: 100%;
    height: 100%;

    display: flex;

    align-items: center;
    justify-content: center;

    font-size: 90px;
}

.detail-back {
    position: absolute;

    left: 18px;
    top: 18px;

    width: 42px;
    height: 42px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 14px;

    background: rgba(255,255,255,.9);

    color: #172033;

    font-size: 22px;
}

.restaurant-detail-info {
    position: relative;

    margin-top: -35px;

    padding: 0 20px 25px;

    background: #fff;

    border-radius: 30px 30px 0 0;
}

.restaurant-detail-logo {
    width: 70px;
    height: 70px;

    position: relative;

    top: -25px;

    margin-bottom: -15px;

    display: flex;

    align-items: center;
    justify-content: center;

    background: #f1f5f9;

    border-radius: 20px;

    border: 4px solid #fff;

    overflow: hidden;

    font-size: 35px;
}

.restaurant-detail-logo img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}

.restaurant-detail-info h1 {
    margin: 0 0 7px;

    font-size: 24px;
}

.detail-rating {
    color: #64748b;

    font-size: 13px;
}

.detail-rating span {
    margin: 0 5px;
}

.detail-description {
    margin: 15px 0;

    color: #64748b;

    font-size: 13px;

    line-height: 1.6;
}

.restaurant-features {
    display: flex;

    gap: 10px;
}

.restaurant-features > div {
    flex: 1;

    padding: 12px;

    display: flex;

    flex-direction: column;

    gap: 3px;

    background: #f8fafc;

    border-radius: 14px;

    font-size: 16px;
}

.restaurant-features span {
    color: #94a3b8;

    font-size: 10px;
}

.restaurant-features strong {
    font-size: 12px;
}


/* ========================================
   MENU
======================================== */

.menu-container {
    max-width: 900px;

    margin: auto;

    padding: 0 20px 130px;
}

.menu-header {
    display: flex;

    align-items: center;

    justify-content: space-between;

    margin-bottom: 20px;
}

.menu-header h2 {
    margin: 0;

    font-size: 20px;
}

.menu-header span {
    color: #94a3b8;

    font-size: 12px;
}

.menu-category {
    margin-bottom: 28px;
}

.menu-category > h3 {
    margin-bottom: 13px;

    font-size: 16px;
}

.product-card {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 15px;

    padding: 12px;

    margin-bottom: 10px;

    background: #fff;

    border-radius: 18px;

    box-shadow:
        0 3px 14px
        rgba(15, 23, 42, .05);
}

.product-info {
    flex: 1;
}

.product-info h4 {
    margin: 0 0 6px;

    font-size: 15px;
}

.product-info p {
    margin: 0 0 9px;

    color: #64748b;

    font-size: 11px;

    line-height: 1.5;
}

.product-price {
    display: flex;

    align-items: center;

    gap: 7px;
}

.product-price strong {
    color: #2563eb;

    font-size: 14px;
}

.product-price del {
    color: #94a3b8;

    font-size: 10px;
}

.product-image {
    width: 105px;
    height: 105px;

    flex-shrink: 0;

    position: relative;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 16px;

    background: #f1f5f9;

    overflow: hidden;

    font-size: 40px;
}

.product-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}

.add-cart-btn {
    position: absolute;

    right: 7px;
    bottom: 7px;

    width: 36px;
    height: 36px;

    border: 0;

    border-radius: 12px;

    background: #2563eb;

    color: #fff;

    font-size: 23px;

    cursor: pointer;

    box-shadow:
        0 5px 15px
        rgba(37,99,235,.3);
}

.sold-out {
    position: absolute;

    bottom: 7px;

    left: 7px;
    right: 7px;

    padding: 6px;

    text-align: center;

    border-radius: 8px;

    background: rgba(15,23,42,.7);

    color: #fff;

    font-size: 10px;
}


/* ========================================
   FLOATING CART
======================================== */

.floating-cart {
    position: fixed;

    left: 50%;
    bottom: 18px;

    transform: translateX(-50%);

    width: calc(100% - 30px);

    max-width: 500px;

    padding: 13px 17px;

    display: flex;

    align-items: center;

    gap: 12px;

    background: #2563eb;

    color: #fff;

    border-radius: 18px;

    box-shadow:
        0 10px 30px
        rgba(37,99,235,.3);

    z-index: 1100;
}

.floating-cart > span:first-child {
    font-size: 25px;
}

.floating-cart div {
    flex: 1;

    display: flex;

    flex-direction: column;
}

.floating-cart strong {
    font-size: 13px;
}

.floating-cart small {
    opacity: .8;

    font-size: 10px;
}

@media (min-width: 768px) {

    .restaurant-list {
        grid-template-columns:
            repeat(3, 1fr);
    }

    .restaurant-cover {
        max-width: 1100px;

        margin: auto;

        border-radius: 0 0 25px 25px;
    }

}

/* ========================================
   CART
======================================== */

.cart-container {
    width: 100%;
    max-width: 700px;

    margin: auto;

    padding: 18px 18px 130px;
}

.cart-empty {
    text-align: center;

    padding: 80px 25px;

    background: #fff;

    border-radius: 25px;

    margin-top: 25px;
}

.cart-empty-icon {
    width: 90px;
    height: 90px;

    margin: auto;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 28px;

    background: #eff6ff;

    font-size: 45px;
}

.cart-empty h2 {
    margin: 20px 0 8px;

    font-size: 20px;
}

.cart-empty p {
    margin: 0 auto 25px;

    max-width: 300px;

    color: #64748b;

    font-size: 13px;

    line-height: 1.6;
}

.cart-empty .btn {
    display: inline-block;

    padding: 13px 22px;
}


/* ========================================
   MERCHANT
======================================== */

.cart-merchant {
    display: flex;

    align-items: center;

    gap: 12px;

    padding: 15px;

    margin-bottom: 15px;

    background: #fff;

    border-radius: 18px;
}

.cart-merchant-icon {
    width: 50px;
    height: 50px;

    display: flex;

    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 15px;

    background: #f1f5f9;

    overflow: hidden;

    font-size: 25px;
}

.cart-merchant-icon img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}

.cart-merchant div:last-child {
    display: flex;

    flex-direction: column;

    gap: 3px;
}

.cart-merchant span {
    color: #94a3b8;

    font-size: 10px;
}

.cart-merchant strong {
    font-size: 14px;
}


/* ========================================
   CART ITEMS
======================================== */

.cart-items {
    display: flex;

    flex-direction: column;

    gap: 10px;
}

.cart-item {
    display: flex;

    align-items: center;

    gap: 12px;

    padding: 12px;

    background: #fff;

    border-radius: 18px;

    box-shadow:
        0 3px 12px
        rgba(15,23,42,.04);
}

.cart-product-image {
    width: 78px;
    height: 78px;

    flex-shrink: 0;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 15px;

    overflow: hidden;

    background: #f1f5f9;

    font-size: 30px;
}

.cart-product-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}

.cart-product-info {
    min-width: 0;

    flex: 1;
}

.cart-product-info h3 {
    margin: 0 0 5px;

    font-size: 14px;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;
}

.cart-item-price {
    display: block;

    margin-bottom: 9px;

    color: #2563eb;

    font-size: 12px;
}

.quantity-control {
    width: fit-content;

    display: flex;

    align-items: center;

    gap: 10px;

    padding: 3px;

    border: 1px solid #e2e8f0;

    border-radius: 10px;
}

.quantity-control button {
    width: 27px;
    height: 27px;

    border: 0;

    border-radius: 7px;

    background: #eff6ff;

    color: #2563eb;

    font-size: 18px;

    cursor: pointer;
}

.quantity-control span {
    min-width: 20px;

    text-align: center;

    font-size: 12px;

    font-weight: 700;
}

.cart-item-right {
    height: 78px;

    display: flex;

    flex-direction: column;

    align-items: flex-end;

    justify-content: space-between;
}

.cart-item-right > strong {
    font-size: 12px;

    white-space: nowrap;
}

.delete-cart {
    padding: 5px;

    border: 0;

    background: transparent;

    cursor: pointer;

    font-size: 15px;

    opacity: .7;
}


/* ========================================
   NOTE
======================================== */

.cart-note {
    display: flex;

    align-items: center;

    gap: 10px;

    margin-top: 15px;

    padding: 13px 15px;

    background: #fff;

    border-radius: 15px;
}

.cart-note input {
    width: 100%;

    border: 0;

    outline: none;

    font-size: 12px;
}


/* ========================================
   SUMMARY
======================================== */

.summary-card {
    margin-top: 15px;

    padding: 18px;

    background: #fff;

    border-radius: 20px;
}

.summary-card h2 {
    margin: 0 0 18px;

    font-size: 16px;
}

.summary-row {
    display: flex;

    align-items: center;

    justify-content: space-between;

    margin-bottom: 12px;

    color: #64748b;

    font-size: 13px;
}

.summary-row strong {
    color: #172033;

    font-size: 13px;
}

.summary-divider {
    height: 1px;

    margin: 15px 0;

    background: #e2e8f0;
}

.total-row {
    margin-bottom: 0;

    color: #172033;

    font-weight: 700;

    font-size: 15px;
}

.total-row strong {
    color: #2563eb;

    font-size: 17px;
}


/* ========================================
   CHECKOUT BUTTON
======================================== */

.checkout-button {
    position: fixed;

    left: 50%;
    bottom: 18px;

    transform: translateX(-50%);

    width: calc(100% - 30px);

    max-width: 650px;

    padding: 15px 18px;

    display: flex;

    align-items: center;

    gap: 12px;

    background: #2563eb;

    color: #fff;

    border-radius: 18px;

    box-shadow:
        0 10px 30px
        rgba(37,99,235,.3);

    z-index: 1000;
}

.checkout-button span:first-child {
    flex: 1;

    font-size: 14px;

    font-weight: 700;
}

.checkout-button strong {
    font-size: 14px;
}

.checkout-button span:last-child {
    font-size: 20px;
}
/* ========================================
   CHECKOUT
======================================== */

.checkout-container {
    width: 100%;
    max-width: 700px;

    margin: auto;

    padding: 15px 18px 130px;
}

.checkout-section {
    margin-bottom: 15px;

    padding: 18px;

    background: #fff;

    border-radius: 20px;
}

.checkout-section-title {
    display: flex;

    align-items: center;

    gap: 12px;

    margin-bottom: 17px;
}

.checkout-section-title > div:first-child {
    width: 40px;
    height: 40px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 12px;

    background: #eff6ff;

    font-size: 19px;
}

.checkout-section-title h2 {
    margin: 0 0 3px;

    font-size: 15px;
}

.checkout-section-title span {
    color: #94a3b8;

    font-size: 10px;
}


/* ADDRESS */

.address-list {
    display: flex;

    flex-direction: column;

    gap: 10px;
}

.address-card {
    display: flex;

    gap: 12px;

    padding: 14px;

    border: 1px solid #e2e8f0;

    border-radius: 15px;

    cursor: pointer;
}

.address-card:has(input:checked) {
    border-color: #2563eb;

    background: #eff6ff;
}

.address-card input {
    margin-top: 4px;

    accent-color: #2563eb;
}

.address-content {
    flex: 1;

    display: flex;

    flex-direction: column;

    gap: 4px;

    font-size: 12px;
}

.address-top {
    display: flex;

    align-items: center;

    gap: 8px;

    margin-bottom: 2px;
}

.address-top > strong {
    color: #2563eb;

    font-size: 11px;
}

.default-badge {
    padding: 3px 7px;

    border-radius: 6px;

    background: #dbeafe;

    color: #2563eb;

    font-size: 9px;

    font-weight: 700;
}

.address-content > span {
    color: #64748b;

    font-size: 10px;
}

.address-content p {
    margin: 4px 0;

    color: #475569;

    font-size: 11px;

    line-height: 1.5;
}

.address-content small {
    color: #94a3b8;

    font-size: 9px;
}

.add-address-button {
    width: 100%;

    margin-top: 12px;

    padding: 12px;

    border: 1px dashed #93c5fd;

    border-radius: 12px;

    background: #f8fbff;

    color: #2563eb;

    font-weight: 700;

    cursor: pointer;
}

.no-address {
    padding: 20px;

    text-align: center;

    border-radius: 15px;

    background: #f8fafc;
}

.no-address div {
    font-size: 30px;
}

.no-address strong {
    display: block;

    margin-top: 7px;

    font-size: 13px;
}

.no-address p {
    margin: 5px 0 0;

    color: #94a3b8;

    font-size: 10px;
}


/* CHECKOUT ITEMS */

.checkout-items {
    display: flex;

    flex-direction: column;

    gap: 12px;
}

.checkout-item {
    display: flex;

    justify-content: space-between;

    gap: 15px;

    font-size: 12px;
}

.checkout-item > div {
    display: flex;

    flex-direction: column;

    gap: 4px;
}

.checkout-item span {
    color: #94a3b8;

    font-size: 10px;
}


/* PAYMENT */

.payment-option {
    display: flex;

    align-items: center;

    gap: 12px;

    padding: 13px;

    margin-bottom: 10px;

    border: 1px solid #e2e8f0;

    border-radius: 14px;

    cursor: pointer;
}

.payment-option:has(input:checked) {
    border-color: #2563eb;

    background: #eff6ff;
}

.payment-option input {
    accent-color: #2563eb;
}

.payment-icon {
    width: 38px;
    height: 38px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 11px;

    background: #f1f5f9;

    font-size: 19px;
}

.payment-info {
    flex: 1;

    display: flex;

    flex-direction: column;

    gap: 3px;
}

.payment-info strong {
    font-size: 12px;
}

.payment-info span {
    color: #94a3b8;

    font-size: 10px;
}

.payment-check {
    color: #2563eb;

    font-weight: 800;
}

.payment-option.disabled {
    opacity: .45;

    cursor: not-allowed;
}


/* NOTE */

.checkout-note {
    width: 100%;

    min-height: 80px;

    resize: vertical;

    padding: 13px;

    border: 1px solid #e2e8f0;

    border-radius: 13px;

    outline: none;

    font-family: inherit;

    font-size: 12px;
}

.checkout-note:focus {
    border-color: #2563eb;
}


/* BOTTOM */

.checkout-bottom {
    position: fixed;

    left: 50%;
    bottom: 0;

    transform: translateX(-50%);

    width: 100%;

    max-width: 700px;

    padding: 12px 18px;

    display: flex;

    align-items: center;

    gap: 15px;

    background: rgba(255,255,255,.95);

    backdrop-filter: blur(15px);

    border-top: 1px solid #e2e8f0;

    z-index: 1000;
}

.checkout-bottom > div {
    flex: 1;

    display: flex;

    flex-direction: column;

    gap: 3px;
}

.checkout-bottom > div span {
    color: #94a3b8;

    font-size: 9px;
}

.checkout-bottom > div strong {
    color: #2563eb;

    font-size: 15px;
}

.checkout-bottom button {
    min-width: 155px;

    padding: 14px 18px;

    border: 0;

    border-radius: 14px;

    background: #2563eb;

    color: #fff;

    font-weight: 700;

    cursor: pointer;
}

.checkout-bottom button:disabled {
    opacity: .6;

    cursor: wait;
}


/* ========================================
   MODAL
======================================== */

.modal-overlay {
    position: fixed;

    inset: 0;

    display: none;

    align-items: flex-end;

    justify-content: center;

    padding: 15px;

    background: rgba(15,23,42,.5);

    z-index: 3000;
}

.modal-overlay.show {
    display: flex;
}

.modal-card {
    width: 100%;

    max-width: 500px;

    max-height: 90vh;

    overflow-y: auto;

    position: relative;

    padding: 25px;

    background: #fff;

    border-radius: 25px 25px 20px 20px;

    animation: modalUp .25s ease;
}

.modal-card h2 {
    margin: 0 0 5px;

    font-size: 20px;
}

.modal-card > p {
    margin: 0 0 22px;

    color: #64748b;

    font-size: 12px;
}

.modal-close {
    position: absolute;

    right: 18px;
    top: 18px;

    width: 35px;
    height: 35px;

    border: 0;

    border-radius: 10px;

    background: #f1f5f9;

    color: #475569;

    font-size: 22px;

    cursor: pointer;
}

.form-group select,
.form-group textarea {
    width: 100%;

    padding: 13px;

    border: 1px solid #e2e8f0;

    border-radius: 13px;

    outline: none;

    font-family: inherit;

    font-size: 13px;

    background: #fff;
}

@keyframes modalUp {

    from {
        transform: translateY(30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }

}


/* ========================================
   ORDER SUCCESS
======================================== */

.order-success-page {
    width: 100%;
    max-width: 500px;

    min-height: 100vh;

    margin: auto;

    padding: 70px 20px 40px;

    text-align: center;
}

.success-icon {
    width: 85px;
    height: 85px;

    margin: auto;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #dcfce7;

    color: #16a34a;

    font-size: 42px;

    font-weight: 800;
}

.order-success-page h1 {
    margin: 22px 0 8px;

    font-size: 25px;
}

.order-success-page > p {
    margin: 0 auto 25px;

    max-width: 330px;

    color: #64748b;

    font-size: 13px;

    line-height: 1.6;
}

.success-order-card {
    padding: 20px;

    text-align: left;

    background: #fff;

    border-radius: 20px;

    box-shadow:
        0 5px 25px
        rgba(15,23,42,.05);
}

.success-order-card > span {
    display: block;

    margin-bottom: 5px;

    color: #94a3b8;

    font-size: 10px;
}

.success-order-card > strong {
    display: block;

    font-size: 14px;
}

.success-order-card .success-total {
    color: #2563eb;

    font-size: 19px;
}

.success-divider {
    height: 1px;

    margin: 15px 0;

    background: #e2e8f0;
}

.success-actions {
    display: flex;

    flex-direction: column;

    gap: 10px;

    margin-top: 20px;
}

.success-actions .btn {
    display: block;
}


/* ========================================
   ORDER DETAIL
======================================== */

.order-detail-container {
    width: 100%;
    max-width: 700px;

    margin: auto;

    padding: 15px 18px 50px;
}

.order-status-card {
    padding: 25px;

    margin-bottom: 15px;

    text-align: center;

    background: #fff;

    border-radius: 22px;
}

.order-status-icon {
    font-size: 42px;

    margin-bottom: 10px;
}

.order-status-card > span {
    color: #94a3b8;

    font-size: 10px;
}

.order-status-card h2 {
    margin: 5px 0;

    color: #2563eb;

    font-size: 19px;
}

.order-status-card small {
    color: #94a3b8;

    font-size: 10px;
}

.order-detail-card {
    margin-bottom: 15px;

    padding: 18px;

    background: #fff;

    border-radius: 20px;
}

.order-detail-card h2 {
    margin: 0 0 15px;

    font-size: 15px;
}

.order-restaurant {
    display: flex;

    align-items: center;

    gap: 12px;
}

.order-restaurant-icon {
    width: 50px;
    height: 50px;

    display: flex;

    align-items: center;
    justify-content: center;

    overflow: hidden;

    border-radius: 14px;

    background: #f1f5f9;

    font-size: 25px;
}

.order-restaurant-icon img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}

.order-restaurant > div:last-child {
    display: flex;

    flex-direction: column;

    gap: 3px;
}

.order-restaurant span {
    color: #94a3b8;

    font-size: 9px;
}

.order-restaurant strong {
    font-size: 14px;
}

.order-item-row {
    display: flex;

    justify-content: space-between;

    gap: 15px;

    padding: 12px 0;

    border-bottom: 1px solid #f1f5f9;

    font-size: 12px;
}

.order-item-row:last-child {
    border-bottom: 0;
}

.order-item-row > div {
    display: flex;

    flex-direction: column;

    gap: 4px;
}

.order-item-row span {
    color: #94a3b8;

    font-size: 10px;
}

.address-phone {
    display: block;

    margin-top: 3px;

    color: #64748b;

    font-size: 11px;
}

.order-detail-card > p {
    color: #475569;

    font-size: 12px;

    line-height: 1.6;
}

.order-detail-card > small {
    color: #94a3b8;

    font-size: 10px;
}


/* TIMELINE */

.order-timeline {
    display: flex;

    flex-direction: column;
}

.timeline-item {
    position: relative;

    display: flex;

    gap: 12px;

    padding-bottom: 20px;
}

.timeline-item:not(:last-child)::before {
    content: '';

    position: absolute;

    left: 12px;
    top: 25px;

    width: 1px;
    height: calc(100% - 10px);

    background: #dbeafe;
}

.timeline-dot {
    width: 25px;
    height: 25px;

    flex-shrink: 0;

    position: relative;

    z-index: 1;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #2563eb;

    color: #fff;

    font-size: 11px;
}

.timeline-item > div:last-child {
    display: flex;

    flex-direction: column;

    gap: 3px;
}

.timeline-item strong {
    font-size: 12px;
}

.timeline-item span {
    color: #64748b;

    font-size: 10px;
}

.timeline-item small {
    color: #94a3b8;

    font-size: 9px;
}
/* ========================================
   MERCHANT DASHBOARD
======================================== */

.merchant-body {
    background: #f5f7fb;
}

.merchant-topbar {
    height: 70px;

    padding: 0 25px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    background: #fff;

    border-bottom: 1px solid #e2e8f0;

    position: sticky;

    top: 0;

    z-index: 1000;
}

.merchant-brand {
    display: flex;

    align-items: center;

    gap: 12px;
}

.merchant-logo {
    width: 45px;
    height: 45px;

    display: flex;

    align-items: center;
    justify-content: center;

    overflow: hidden;

    border-radius: 14px;

    background: #eff6ff;

    font-size: 23px;
}

.merchant-logo img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}

.merchant-brand > div:last-child {
    display: flex;

    flex-direction: column;

    gap: 3px;
}

.merchant-brand span {
    color: #94a3b8;

    font-size: 10px;
}

.merchant-brand strong {
    font-size: 14px;
}

.merchant-logout {
    padding: 9px 14px;

    border-radius: 10px;

    background: #fef2f2;

    color: #dc2626;

    font-size: 11px;

    font-weight: 700;
}

.merchant-container {
    width: 100%;

    max-width: 1200px;

    margin: auto;

    padding: 30px 20px 60px;
}

.merchant-heading {
    display: flex;

    align-items: center;

    justify-content: space-between;

    margin-bottom: 25px;
}

.merchant-heading > div:first-child > span {
    color: #2563eb;

    font-size: 11px;

    font-weight: 700;
}

.merchant-heading h1 {
    margin: 4px 0 0;

    font-size: 25px;
}

.merchant-status {
    display: flex;

    align-items: center;

    gap: 7px;

    padding: 9px 12px;

    border-radius: 10px;

    background: #dcfce7;

    color: #15803d;

    font-size: 10px;

    font-weight: 700;
}

.merchant-status span {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: #22c55e;
}


/* STAT */

.merchant-stat-grid {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 15px;

    margin-bottom: 20px;
}

.merchant-stat-card {
    padding: 18px;

    display: flex;

    align-items: center;

    gap: 13px;

    background: #fff;

    border-radius: 18px;

    box-shadow:
        0 3px 15px
        rgba(15,23,42,.04);
}

.merchant-stat-icon {
    width: 45px;
    height: 45px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 13px;

    background: #eff6ff;

    font-size: 21px;
}

.merchant-stat-card > div:last-child {
    display: flex;

    flex-direction: column;

    gap: 4px;
}

.merchant-stat-card span {
    color: #94a3b8;

    font-size: 10px;
}

.merchant-stat-card strong {
    font-size: 21px;
}


/* ALERT */

.new-order-alert {
    display: none;

    align-items: center;

    gap: 12px;

    padding: 14px 17px;

    margin-bottom: 20px;

    background: #eff6ff;

    border: 1px solid #bfdbfe;

    border-radius: 15px;
}

.new-order-alert.show {
    display: flex;
}

.new-order-alert > div:first-child {
    font-size: 23px;
}

.new-order-alert > div:nth-child(2) {
    flex: 1;

    display: flex;

    flex-direction: column;

    gap: 3px;
}

.new-order-alert strong {
    font-size: 12px;
}

.new-order-alert span {
    color: #64748b;

    font-size: 10px;
}

.new-order-alert button {
    padding: 8px 13px;

    border: 0;

    border-radius: 9px;

    background: #2563eb;

    color: #fff;

    font-size: 10px;

    font-weight: 700;
}


/* ORDERS */

.merchant-orders-section {
    padding: 20px;

    background: #fff;

    border-radius: 22px;
}

.merchant-section-header {
    display: flex;

    align-items: center;

    justify-content: space-between;

    margin-bottom: 20px;
}

.merchant-section-header h2 {
    margin: 0 0 4px;

    font-size: 18px;
}

.merchant-section-header span {
    color: #94a3b8;

    font-size: 10px;
}

.refresh-button {
    width: 38px;
    height: 38px;

    border: 0;

    border-radius: 11px;

    background: #f1f5f9;

    cursor: pointer;

    font-size: 20px;
}

.merchant-orders {
    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 15px;
}

.merchant-order-card {
    padding: 17px;

    border: 1px solid #e2e8f0;

    border-radius: 18px;

    transition: .2s;
}

.merchant-order-card:hover {
    box-shadow:
        0 8px 25px
        rgba(15,23,42,.06);
}

.merchant-order-card.status-pending {
    border-color: #93c5fd;

    background: #f8fbff;
}

.merchant-order-header {
    display: flex;

    align-items: flex-start;

    justify-content: space-between;

    gap: 10px;

    margin-bottom: 16px;
}

.merchant-order-header > div {
    display: flex;

    flex-direction: column;

    gap: 4px;
}

.merchant-order-header strong {
    font-size: 12px;
}

.merchant-order-header span {
    color: #94a3b8;

    font-size: 9px;
}

.order-status-badge {
    padding: 6px 9px;

    border-radius: 8px;

    background: #eff6ff;

    color: #2563eb !important;

    font-size: 9px !important;

    font-weight: 700;
}


/* CUSTOMER */

.merchant-customer {
    display: flex;

    align-items: center;

    gap: 10px;

    padding: 11px;

    margin-bottom: 12px;

    border-radius: 12px;

    background: #f8fafc;
}

.customer-avatar {
    width: 38px;
    height: 38px;

    flex-shrink: 0;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 12px;

    background: #dbeafe;

    color: #2563eb;

    font-size: 13px;

    font-weight: 800;
}

.customer-avatar.large {
    width: 48px;
    height: 48px;
}

.merchant-customer > div:last-child {
    display: flex;

    flex-direction: column;

    gap: 3px;
}

.merchant-customer strong {
    font-size: 11px;
}

.merchant-customer span {
    color: #94a3b8;

    font-size: 9px;
}


/* TOTAL */

.merchant-order-total {
    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-bottom: 12px;
}

.merchant-order-total span {
    color: #94a3b8;

    font-size: 10px;
}

.merchant-order-total strong {
    color: #2563eb;

    font-size: 14px;
}

.merchant-note {
    padding: 10px;

    margin-bottom: 12px;

    border-radius: 10px;

    background: #fffbeb;

    color: #92400e;

    font-size: 10px;

    line-height: 1.5;
}


/* ACTIONS */

.merchant-order-actions {
    display: flex;

    gap: 7px;

    flex-wrap: wrap;
}

.order-detail-button,
.accept-button,
.reject-button {
    padding: 10px 12px;

    border-radius: 10px;

    border: 0;

    font-size: 10px;

    font-weight: 700;

    cursor: pointer;
}

.order-detail-button {
    background: #f1f5f9;

    color: #475569;
}

.accept-button {
    flex: 1;

    background: #2563eb;

    color: #fff;
}

.reject-button {
    background: #fef2f2;

    color: #dc2626;
}

.waiting-driver {
    width: 100%;

    padding: 10px;

    text-align: center;

    border-radius: 10px;

    background: #f8fafc;

    color: #64748b;

    font-size: 10px;
}


/* EMPTY */

.merchant-empty {
    padding: 60px 20px;

    display: flex;

    flex-direction: column;

    align-items: center;

    text-align: center;

    color: #94a3b8;
}

.merchant-empty div {
    margin-bottom: 10px;

    font-size: 45px;
}

.merchant-empty strong {
    color: #475569;

    font-size: 14px;
}

.merchant-empty span {
    margin-top: 5px;

    font-size: 10px;
}


/* ========================================
   MERCHANT ORDER DETAIL
======================================== */

.merchant-order-detail-container {
    width: 100%;

    max-width: 650px;

    margin: auto;

    padding: 20px 18px 50px;
}

.merchant-detail-status {
    padding: 22px;

    margin-bottom: 15px;

    text-align: center;

    background: #fff;

    border-radius: 20px;
}

.merchant-detail-status span {
    display: inline-block;

    padding: 7px 11px;

    border-radius: 9px;

    background: #eff6ff;

    color: #2563eb;

    font-size: 10px;

    font-weight: 700;
}

.merchant-detail-status h2 {
    margin: 10px 0 5px;

    font-size: 19px;
}

.merchant-detail-status small {
    color: #94a3b8;

    font-size: 10px;
}

.merchant-detail-card {
    margin-bottom: 15px;

    padding: 18px;

    background: #fff;

    border-radius: 20px;
}

.merchant-detail-card h2 {
    margin: 0 0 15px;

    font-size: 15px;
}

.detail-customer {
    display: flex;

    align-items: center;

    gap: 12px;
}

.detail-customer > div:last-child {
    display: flex;

    flex-direction: column;

    gap: 4px;
}

.detail-customer strong {
    font-size: 13px;
}

.detail-customer span,
.detail-phone {
    color: #64748b;

    font-size: 10px;
}

.detail-order-item {
    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 12px 0;

    border-bottom: 1px solid #f1f5f9;
}

.detail-order-item:last-child {
    border-bottom: 0;
}

.detail-order-item > div {
    display: flex;

    flex-direction: column;

    gap: 4px;
}

.detail-order-item strong {
    font-size: 12px;
}

.detail-order-item span {
    color: #94a3b8;

    font-size: 10px;
}

.merchant-detail-card > p {
    margin: 10px 0;

    color: #475569;

    font-size: 12px;

    line-height: 1.6;
}

.maps-button {
    display: block;

    padding: 11px;

    margin-top: 12px;

    text-align: center;

    border-radius: 11px;

    background: #eff6ff;

    color: #2563eb;

    font-size: 11px;

    font-weight: 700;
}

.payment-method-detail {
    margin-top: 14px;

    padding: 10px;

    border-radius: 10px;

    background: #f8fafc;

    font-size: 10px;
}

.merchant-primary-action {
    width: 100%;

    padding: 14px;

    border: 0;

    border-radius: 13px;

    background: #2563eb;

    color: #fff;

    font-size: 13px;

    font-weight: 700;

    cursor: pointer;
}

.merchant-danger-action {
    width: 100%;

    padding: 13px;

    margin-top: 9px;

    border: 0;

    border-radius: 13px;

    background: #fef2f2;

    color: #dc2626;

    font-size: 12px;

    font-weight: 700;

    cursor: pointer;
}

.merchant-waiting {
    display: flex;

    flex-direction: column;

    align-items: center;

    gap: 7px;

    padding: 20px;

    text-align: center;

    border-radius: 14px;

    background: #f8fafc;

    color: #64748b;
}

.merchant-waiting strong {
    color: #334155;

    font-size: 13px;
}

.merchant-waiting span {
    max-width: 280px;

    font-size: 10px;

    line-height: 1.5;
}


/* RESPONSIVE */

@media (max-width: 800px) {

    .merchant-stat-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .merchant-orders {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 500px) {

    .merchant-topbar {
        padding: 0 15px;
    }

    .merchant-container {
        padding: 20px 12px 40px;
    }

    .merchant-heading h1 {
        font-size: 21px;
    }

    .merchant-stat-card {
        padding: 13px;
    }

    .merchant-stat-icon {
        width: 38px;
        height: 38px;

        font-size: 18px;
    }

    .merchant-stat-card strong {
        font-size: 18px;
    }

    .merchant-orders-section {
        padding: 13px;
    }

}
