/* Shop header in the style of the ads shop variant /lp/shop (user 15.11.): slogan logo, round initials button, delivery button.
   Loaded after style.css (layouts/head-scripts) on every page of layouts/main; dark rules for html.theme-dark (checkout ?theme=dark). */

/* ---------- logo: mascot + slogan (under 380px smaller and without "since FIFA 19", user 15.11.), word mark + slogan from 770px ---------- */
.logonavbar .site_logo { align-items: center; }
.site_logo .mg-brand { display: flex; flex: none; align-items: center; gap: 6px; color: #0f1b2d; text-decoration: none; }
.logonavbar .site_logo a.mg-brand img { display: block; width: auto; height: auto; max-width: none; margin: 0; object-fit: contain; }
.site_logo .mg-brand__full { display: none; }
.logonavbar .site_logo a.mg-brand .mg-brand__mascot img { width: 42px; filter: invert(1); }  /* the picture is white (made for dark pages) */
.mg-brand__text { display: flex; flex-direction: column; font-family: "Open Sans", sans-serif; line-height: .95; text-align: left; white-space: nowrap; }
.mg-brand__text b { font-size: 17px; font-weight: 800; letter-spacing: -.02em; }
.mg-brand__text strong { font-size: 15px; font-weight: 800; letter-spacing: -.01em; text-transform: uppercase; }
.mg-brand__text small { margin-top: 2px; color: #5a6577; font-size: 8.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
@media (min-width: 770px) {
    .site_logo .mg-brand { gap: 12px; }
    .site_logo .mg-brand__full { display: block; }
    .logonavbar .site_logo a.mg-brand .mg-brand__full img { width: 150px; }
    .site_logo .mg-brand__mascot { display: none; }
    .mg-brand__text { padding-inline-start: 12px; border-inline-start: 1px solid #e3e7ed; }
    .mg-brand__text b { font-size: 15px; }
    .mg-brand__text strong { font-size: 13px; }
    .mg-brand__text small { font-size: 8px; }
}
@media (min-width: 1200px) { .logonavbar .site_logo a.mg-brand .mg-brand__full img { width: 180px; } }
@media (max-width: 991.98px) { .logonavbar .site_logo .navbar-toggler { margin-inline-end: 4px; } }

/* ---------- round initials button (logged in) ---------- */
.mg-initials { display: grid; flex: none; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #0f1b2d; color: #fff; font-family: "Open Sans", sans-serif; font-size: 12.5px; font-weight: 800; letter-spacing: .02em; line-height: 1; box-shadow: 0 0 0 2px #fff, 0 0 0 3px #e3e7ed; }
.mg-initials--sm { width: 28px; height: 28px; font-size: 11px; }
.account-menu-div .user-icon--initials { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; }
.account-menu-div .user-icon--initials.show { border-radius: 50%; box-shadow: none !important; }
.account-menu-div .user-icon--initials:hover .mg-initials { box-shadow: 0 0 0 2px #fff, 0 0 0 3px #f44369; }

/* ---------- delivery button (only with a coin balance): top row on phones, menu bar on desktop ----------
   One colour for "delivery" everywhere (user 15.11.): yellow-orange with dark text, also in the drawer, the user menus,
   the customer area and /lp/shop (lp-shop.css). */
.mg-delivery-btn { display: inline-flex; flex: none; align-items: center; justify-content: center; gap: 6px; min-height: 32px; padding: 0 12px; border-radius: 999px; background: linear-gradient(90deg, #ffc61a 0%, #ff9f1a 100%); color: #14110a !important; font-family: "Open Sans", sans-serif; font-size: 13px; line-height: 1; text-decoration: none; white-space: nowrap; transition: filter .2s; }
.mg-delivery-btn:hover { filter: brightness(1.08); }
.mg-delivery-btn svg { width: 14px; height: 14px; flex: none; }
.mg-delivery-btn strong { font-size: 13px; font-weight: 700; color: #14110a; }
.mg-delivery-btn--bar { min-height: 40px; min-width: 160px; padding: 0 20px; }
.mg-delivery-btn--bar strong { font-size: 15px; }
@media (min-width: 992px) { .mg-delivery-btn--top { display: none; } }
/* 350-400px: the slogan needs the room, the button loses its icon */
@media (max-width: 399.98px) {
    .mg-delivery-btn--top { padding: 0 9px; }
    .mg-delivery-btn--top svg { display: none; }
    .mg-delivery-btn--top strong { font-size: 12px; }
}
@media (max-width: 991.98px) {
    .logonavbar .right-menu-bar { column-gap: 6px; }
    .logonavbar .account-menu-div { column-gap: 6px; }
}
/* phones up to 480px: burger, slogan logo, language, delivery and initials in one row */
@media (max-width: 479.98px) {
    .desktopHeader > .navbar > .container { padding-inline: 10px; }
    .logonavbar .site_logo .navbar-toggler { margin-inline-end: 2px; padding-inline: 0; }
    .logonavbar .site_logo .navbar-toggler svg { width: 26px; height: 26px; }
    .site_logo .mg-brand { gap: 5px; }
    .logonavbar .site_logo a.mg-brand .mg-brand__mascot img { width: 38px; }
    .mg-brand__text b { font-size: 15px; }
    .mg-brand__text strong { font-size: 12px; }
    .mg-brand__text small { font-size: 7.5px; letter-spacing: .14em; }
    .logonavbar .right-menu-bar, .logonavbar .account-menu-div { column-gap: 4px; }
    .account-menu-div .user-icon--initials { width: 36px; height: 36px; }
    .account-menu-div .user-icon--initials .mg-initials { width: 32px; height: 32px; font-size: 11.5px; }
    .mg-delivery-btn--top { padding: 0 9px; }
}
/* under 380px (small phones without the viewport fix, browser windows): smaller logo, slogan without its last line */
@media (max-width: 379.98px) {
    .desktopHeader > .navbar > .container { padding-inline: 8px; }
    .logonavbar .site_logo .navbar-toggler svg { width: 24px; height: 24px; }
    .site_logo .mg-brand { gap: 4px; }
    .logonavbar .site_logo a.mg-brand .mg-brand__mascot img { width: 32px; }
    .mg-brand__text b { font-size: 13px; }
    .mg-brand__text strong { font-size: 10px; }
    .mg-brand__text small { display: none; }
    .header-locator-btn { padding-inline: 5px; font-size: 13px; }
    .account-menu-div .user-icon--initials { width: 32px; height: 32px; }
    .account-menu-div .user-icon--initials .mg-initials { width: 28px; height: 28px; font-size: 10.5px; }
    .account-menu-div .user-icon svg { width: 28px; height: 28px; }
    .mg-delivery-btn--top { min-height: 28px; padding: 0 7px; }
    .mg-delivery-btn--top strong { font-size: 11px; }
}

/* phones up to 480px, pages with the "FC Coins" button and guests: currency sign without its code (like logged in), compact button */
@media (max-width: 479.98px) {
    .header-locator-btn .header-locator-currency-code { display: none; }
    .logonavbar .account-menu-div a.is-sealpass { min-width: 0 !important; padding: 0 10px; }
}
@media (max-width: 379.98px) {
    .logonavbar .account-menu-div a.is-sealpass { min-height: 28px; padding: 0 7px; }
    .logonavbar .account-menu-div a.is-sealpass strong { font-size: 11px; }
}
/* under 340px: flag + currency only (the language code goes) */
@media (max-width: 339.98px) { .header-locator-btn .header-locator-language { display: none; } }

/* ---------- dark version (checkout ?theme=dark) ---------- */
.theme-dark .site_logo .mg-brand { color: #fff; }
.theme-dark .logonavbar .site_logo a.mg-brand .mg-brand__mascot img { filter: none; }
.theme-dark .mg-brand__text small { color: #8e9bb0; }
.theme-dark .mg-brand__text { border-color: #25385c; }
.theme-dark .mg-initials { background: #fff; color: #080e1b; box-shadow: 0 0 0 2px #000, 0 0 0 3px #25385c; }
/* dark phones: the code next to the currency sign goes like in the light version, so the row fits with the delivery button */
@media (max-width: 429.98px) { .theme-dark .header-locator-btn--compact .header-locator-currency-code { display: none; } }

/* ---------- light/dark switch (checkout only, components/common/theme-switch) ---------- */
.mg-theme { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.mg-theme__label { color: #5a6577; font-size: 14px; font-weight: 700; }
.mg-theme__seg { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid #e3e7ed; border-radius: 12px; background: #fff; }
.mg-theme__opt { display: grid; place-items: center; width: 34px; height: 30px; border-radius: 9px; color: #5a6577 !important; text-decoration: none; }
.mg-theme__opt:hover { background: #f5f6f8; color: #0f1b2d !important; }
.mg-theme__opt[aria-current="true"] { background: #eef0f4; color: #0f1b2d !important; }
.mg-theme--row { padding: 2px 4px 4px; }
/* user menu: switch next to the name, the name gets smaller */
#user-sidebar .user-sidebar-top:has(.mg-theme--menu) { display: flex; align-items: center; gap: 8px; }
#user-sidebar .user-sidebar-top:has(.mg-theme--menu) .user-pro-name { flex: 1; min-width: 0; }
#user-sidebar .user-sidebar-top:has(.mg-theme--menu) .user-name h2 { font-size: 18px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#user-sidebar .user-sidebar-top:has(.mg-theme--menu) .user-name span { display: block; overflow: hidden; text-overflow: ellipsis; }
.mg-theme--menu { flex: none; margin-inline-end: 6px; }
/* inside the user menu the old styles make spans inline-block and colour every svg path: keep the two buttons side by side, icons as lines */
#user-sidebar .mg-theme__seg { display: inline-flex; flex-direction: row; }
#user-sidebar .mg-theme__opt { display: grid; }
#user-sidebar .mg-theme__opt svg, #user-sidebar .mg-theme__opt svg * { fill: none !important; stroke: currentColor !important; }
/* phones: the menu is full width and its close "X" (.overlay, 50x50) sits top right */
@media (max-width: 767.98px) { .mg-theme--menu { margin-inline-end: 48px; } }
.theme-dark .mg-theme__label { color: #8e9bb0; }
.theme-dark .mg-theme__seg { border-color: #25385c; background: #0f192c; }
.theme-dark .mg-theme__opt { color: #8e9bb0 !important; }
.theme-dark .mg-theme__opt:hover, .theme-dark .mg-theme__opt[aria-current="true"] { background: #1a2946; color: #fff !important; }

/* ---------- customer area (account v2): delivery in the same yellow-orange as everywhere (user 15.11.) ---------- */
.acc2 .acc2-nav--row a.is-highlight, .acc2 .acc2-nav--side a.is-highlight, .acc2 .acc2-account__cta, .acc2-html .sh-user__nav a.is-hl { background: linear-gradient(90deg, #ffc61a 0%, #ff9f1a 100%); color: #14110a !important; }
.acc2-html .sh-user__nav a.is-hl > svg:first-child { color: #14110a; }
.acc2-html .sh-user__nav a.is-hl .sh-live { background: #15803d; }  /* green blinking dot like the sidebar */

/* delivery page: "Coins Menge" → "Menge" on small phones (user 15.11.) */
.acc2-label-short { display: none; }
@media (max-width: 399.98px) { .acc2-label-long { display: none; } .acc2-label-short { display: inline; } }
