/*
 * Shared by every customer page of the classic theme: Alexandria, the restaurant's mark in the
 * header, and a calmer type scale for the header and the cart.
 * Linked from layouts/guest.blade.php, and again by the classic menu after shop-classic-refresh.css,
 * which would otherwise put its own font and header rules back. Remove both links to go back.
 */

@font-face {
    font-family: 'Alexandria Menu';
    src: url('../fonts/Alexandria-Arabic.woff2') format('woff2');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}

@font-face {
    font-family: 'Alexandria Menu';
    src: url('../fonts/Alexandria-Latin.woff2') format('woff2');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- One typeface ---------- */
html body.shop-customer-font,
html body.shop-customer-font :is(input, select, textarea, button, h1, h2, h3, h4, h5, h6),
html body.shop-customer-font .shop-classic-menu-shell,
html body.shop-customer-font .shop-classic-option-dialog,
html body.shop-customer-font [class*="shop-customer-"],
html body.shop-customer-font [class*="shop-contact-floating"],
html body.shop-customer-font #shop-cart-root,
html body.shop-customer-font #shop-cart-root .shop-cart-compact,
html body.shop-customer-font .shop-customer-nav {
    --font-ui: 'Alexandria Menu', system-ui, sans-serif;
    font-family: 'Alexandria Menu', system-ui, sans-serif !important;
}

/* Typing fields clip to the font's declared height, and Alexandria declares far less depth
   than its dotted final letters use (ي in «في»). The same files with taller metrics, for fields only. */
@font-face {
    font-family: 'Alexandria Field';
    src: url('../fonts/Alexandria-Arabic.woff2') format('woff2');
    font-weight: 100 900;
    font-display: swap;
    ascent-override: 115%;
    descent-override: 58%;
    line-gap-override: 0%;
    unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}

@font-face {
    font-family: 'Alexandria Field';
    src: url('../fonts/Alexandria-Latin.woff2') format('woff2');
    font-weight: 100 900;
    font-display: swap;
    ascent-override: 115%;
    descent-override: 58%;
    line-gap-override: 0%;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

html body.shop-customer-font :is(input, textarea, select):not([type="hidden"]):not([type="checkbox"]):not([type="radio"]) {
    font-family: 'Alexandria Field', system-ui, sans-serif !important;
}

/* ---------- The restaurant's mark in the header ---------- */
html:not(.dark) body .shop-customer-nav__brand > .shop-customer-nav__brand-mark:first-child:not(.shop-customer-nav__brand-copy) {
    display: inline-flex !important;
}

html body .shop-customer-nav .shop-customer-nav__brand-mark,
html body .shop-customer-nav .shop-customer-nav__brand-mark > :is(img, span) {
    width: 40px;
    height: 40px;
    max-width: 40px;
    flex-basis: 40px;
    border-radius: 12px;
}

html body .shop-customer-nav .shop-customer-nav__brand-mark > span:not(.hidden) {
    box-shadow: none;
    font-size: 16px;
    font-weight: 700;
}

html body .shop-customer-nav .shop-customer-nav__brand-mark > img {
    border: 1px solid #ebe8e2;
    background: #fff;
    object-fit: contain;
}

html body .shop-customer-nav .shop-customer-nav__brand { gap: 10px; }

/* ---------- Phone type scale: header and cart ---------- */
@media (max-width: 767.98px) {
    /* Header */
    html body .shop-customer-nav .shop-customer-nav__brand-copy > .shop-customer-nav__brand-name { font-size: 15px; font-weight: 700; line-height: 1.5; }
    html body .shop-customer-nav .shop-customer-nav__brand-copy > .shop-customer-nav__brand-status { font-size: 11px; font-weight: 500; }

    /* Cart and checkout */
    html body.shop-customer-font #shop-cart-root .shop-cart-heading h1 { font-size: 17px; font-weight: 700; line-height: 1.7; }
    html body.shop-customer-font #shop-cart-root .shop-cart-checkout-total > :last-child { font-size: 16px; font-weight: 700; }
    html body.shop-customer-font #shop-cart-root .shop-cart-summary h2 { font-size: 14px; font-weight: 700; line-height: 1.7; }
    html body.shop-customer-font #shop-cart-root .shop-cart-summary div { font-size: 13px; }
    html body.shop-customer-font #shop-cart-root .shop-cart-total-label,
    html body.shop-customer-font #shop-cart-root .shop-cart-total,
    html body.shop-customer-font #shop-cart-root .shop-cart-total div { font-size: 14px; }
    html body.shop-customer-font #shop-cart-root :is(.shop-primary-button, .shop-checkout-online, .shop-checkout-whatsapp) { font-size: 13px; }
    html body.shop-customer-font #shop-cart-root .cart-line-name { font-size: 13px; line-height: 1.8; }

    /* Order tracking */
    html body.shop-customer-font .shop-order-details .shop-order-page-title { font-size: 17px; font-weight: 700; }
    html body.shop-customer-font .shop-order-details .customer-order-alerts__label { font-size: 17px; font-weight: 700; line-height: 1.7; }
}
