/* Google Fonts serves these free, SIL Open Font License families by script subset. */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:wght@400;600;700&family=Noto+Sans+Arabic:wght@400;600;700&family=Noto+Sans+Hebrew:wght@400;600;700&family=Noto+Sans+JP:wght@400;600;700&display=swap');
html[lang] body,
html[lang] #header,
html[lang] #footer,
html[lang] .navbar,
html[lang] .sociable-store-badge,
html[lang] .sociable-language-selector {
    font-family: 'Noto Sans', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans JP', sans-serif;
}
html[dir="rtl"] body { direction: rtl; }
html[dir="rtl"] .legal-info,
html[dir="rtl"] .entry-content,
html[dir="rtl"] .form-control,
html[dir="rtl"] textarea,
html[dir="rtl"] .MuiFormLabel-root,
html[dir="rtl"] .MuiTypography-root { text-align: right; }
html[dir="rtl"] .legal-info ol,
html[dir="rtl"] .legal-info ul { padding-left: 0; padding-right: 2em; }
html[dir="rtl"] .MuiInputLabel-root { transform-origin: top right; right: 0; left: auto; }
html[dir="rtl"] .MuiFormControlLabel-root { margin-left: 16px; margin-right: -11px; }
html[dir="rtl"] .navbar-nav,
html[dir="rtl"] .dropdown-menu { text-align: right; }
html[dir="rtl"] input[type="email"],
html[dir="rtl"] input[type="tel"],
html[dir="rtl"] input[type="url"],
html[dir="rtl"] input[name*="iban" i],
html[dir="rtl"] input[name*="wallet" i] { direction: ltr; text-align: left; }
html[dir="rtl"] .legal-info a { unicode-bidi: isolate; }
.sociable-footer-language { clear: both; padding: 12px 20px; color: #fff; text-align: start; }
.sociable-app-footer { display: flex; justify-content: center; padding: 24px 20px; color: #333; }
.sociable-language-selector { position: relative; display: inline-block; margin: 0; vertical-align: middle; z-index: 20; color: inherit; font-size: 14px; text-transform: none; text-align: start; }
.sociable-language-selector summary { cursor: pointer; padding: 12px 16px; min-height: 44px; box-sizing: border-box; border: 1px solid currentColor; border-radius: 6px; }
.sociable-language-selector summary:focus-visible { outline: 2px solid #e3184b; outline-offset: 3px; }
.sociable-language-options { position: absolute; inset-inline-start: 0; bottom: calc(100% + 8px); min-width: 180px; width: max-content; max-width: calc(100vw - 48px); max-height: min(65vh, 420px); overflow-y: auto; box-sizing: border-box; padding: 8px 0; background: white; border: 1px solid #ddd; border-radius: 6px; box-shadow: 0 4px 16px rgba(0,0,0,.12); }
.sociable-app-footer .sociable-language-options { inset-inline-start: 50%; transform: translateX(-50%); }
html[dir="rtl"] .sociable-app-footer .sociable-language-options { transform: translateX(50%); }
.sociable-language-options a { display: flex; align-items: center; min-height: 44px; box-sizing: border-box; padding: 7px 14px; color: #333 !important; white-space: nowrap; text-align: start; }
.sociable-language-options a:hover, .sociable-language-options a[aria-current="true"] { background: #f7f7f7; color: #e3184b !important; }
.sociable-store-badge { display: inline-flex; flex-direction: column; justify-content: center; min-width: 120px; min-height: 40px; padding: 5px 12px; border-radius: 7px; background: #111; color: #fff; border: 1px solid #aaa; line-height: 1.3; text-transform: none; text-align: center; vertical-align: middle; }
.sociable-store-badge > span { font-size: 10px; }
.sociable-store-badge > strong { font-size: 18px; font-weight: 500; }
html[dir="rtl"] .panel-title { text-align: right !important; }

/* Reserve real logo space; the legacy absolutely-positioned image had zero width. */
#header.sociable-header {
    position: absolute; left: 0; margin-top: 0;
    display: grid; grid-template-columns: 180px minmax(0, 1fr) auto;
    align-items: center; gap: 20px; height: auto; padding: 8px 24px;
    top: 12px; color: #2c3133; background: rgba(240, 240, 240, .98);
    box-sizing: border-box;
}
#header.sociable-header::after { display: none; }
#header.sociable-header #logo { float: none; width: 180px; height: 46px; }
#header.sociable-header #logo img { position: static; width: 100%; height: 100%; object-fit: contain; max-width: 100%; }
#header.sociable-header #logo img.white { display: none; }
#header.sociable-header .sociable-navigation-links { display: flex; align-items: center; justify-content: flex-end; gap: 4px; margin: 0; padding: 0; list-style: none; }
#header.sociable-header .sociable-navigation-links li { display: block; float: none; margin: 0; padding: 0; }
#header.sociable-header .sociable-navigation-links a { display: flex; align-items: center; min-height: 44px; padding: 8px 10px; box-sizing: border-box; color: #2c3133; font-size: 15px; font-weight: 600; line-height: 1.5; text-transform: none; text-decoration: none; white-space: nowrap; }
#header.sociable-header .sociable-navigation-links a:hover { color: #d01443; }
#header.sociable-header a:focus-visible,
#header.sociable-header summary:focus-visible,
#footer .sociable-footer-links a:focus-visible { outline: 2px solid #e3184b; outline-offset: 2px; border-radius: 4px; }
#header.sociable-header .sociable-header-stores { display: flex; align-items: center; justify-content: center; gap: 10px; }
#header.sociable-header .sociable-header-stores a { display: block; color: #fff; text-decoration: none; }
#header.sociable-header .sociable-store-badge { min-width: 128px; min-height: 44px; padding: 4px 10px; box-sizing: border-box; }
#header.sociable-header .sociable-store-badge > span { font-size: 11px; }
#header.sociable-header .sociable-store-badge > strong { font-size: 17px; }
#header.sociable-header .sociable-mobile-navigation { display: none; }
#footer .footer-row { padding: 0 24px; box-sizing: border-box; }
#footer .footer-copy { float: none; width: 100%; }
#footer .footer-copy .sociable-footer-links { display: flex; flex-wrap: wrap; gap: 0 20px; margin: 0; padding: 0; text-align: start; list-style: none; }
#footer .footer-copy .sociable-footer-links li { display: block; padding: 0; font-size: 14px; }
#footer .footer-copy .sociable-footer-links li::before { display: none; }
#footer .sociable-footer-links a { display: flex; align-items: center; min-height: 44px; line-height: 1.5; text-transform: none; }
#footer .sociable-footer-language { padding: 12px 0; }
#footer .sociable-footer-copyright { font-size: 12px; line-height: 1.8; font-weight: 400; text-align: start; overflow-wrap: anywhere; }
#footer .sociable-footer-copyright p { margin: 0; padding: 0; }
.legal-info .entry-content { overflow-wrap: anywhere; }

@media (max-width: 1599px) {
    #header.sociable-header .sociable-desktop-navigation { display: none; }
    #header.sociable-header .sociable-mobile-navigation { display: block; justify-self: end; }
    #header.sociable-header .sociable-mobile-navigation summary { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 8px 14px; box-sizing: border-box; border: 1px solid #8b9092; border-radius: 6px; cursor: pointer; font-size: 16px; font-weight: 600; line-height: 1.5; list-style: none; }
    #header.sociable-header .sociable-mobile-navigation summary::-webkit-details-marker { display: none; }
    #header.sociable-header .sociable-mobile-navigation summary::after { content: '\2630'; font-size: 20px; }
    #header.sociable-header .sociable-mobile-navigation[open] summary::after { content: '\00d7'; }
    #header.sociable-header .sociable-mobile-navigation nav { position: absolute; inset-inline-end: 24px; top: calc(100% + 8px); width: 340px; max-width: calc(100% - 48px); max-height: calc(100vh - 180px); max-height: calc(100dvh - 180px); overflow-y: auto; padding: 8px; box-sizing: border-box; background: #fff; border: 1px solid #ddd; border-radius: 8px; box-shadow: 0 6px 20px rgba(0,0,0,.16); }
    #header.sociable-header .sociable-mobile-navigation .sociable-navigation-links { display: block; }
    #header.sociable-header .sociable-mobile-navigation .sociable-navigation-links a { min-height: 48px; font-size: 16px; white-space: normal; overflow-wrap: anywhere; }
    #header.sociable-header .sociable-mobile-navigation .sociable-navigation-links a:hover { background: #f5f5f5; }
}
/* Bootstrap's 768px desktop navigation cannot fit the longer translated labels. */
@media (max-width: 1199px) {
    .sociable-app-header .navbar-header { float: none; }
    .sociable-app-header .navbar-toggle { display: block; }
    .sociable-app-header .navbar-collapse { border-top: 1px solid transparent; max-height: calc(100vh - 80px); overflow-y: auto !important; }
    .sociable-app-header .navbar-collapse.collapse:not(.in) { display: none !important; }
    .sociable-app-header .navbar-collapse.in { display: block !important; }
    .sociable-app-header .navbar-nav,
    .sociable-app-header .navbar-right { float: none !important; margin: 7px 0; }
    .sociable-app-header .navbar-nav > li { float: none; }
    .sociable-app-header .navbar-nav > li > a { min-height: 44px; box-sizing: border-box; white-space: normal; overflow-wrap: anywhere; }
}
@media (max-width: 700px) {
    #header.sociable-header { grid-template-columns: 150px minmax(0, 1fr); gap: 10px; padding: 0 16px; }
    #header.sociable-header #logo { width: 150px; height: 40px; }
    #header.sociable-header .sociable-header-stores { grid-column: 1 / -1; gap: 12px; }
    #header.sociable-header .sociable-store-badge { width: 128px; }
    #header.sociable-header .sociable-mobile-navigation summary { padding: 8px 10px; gap: 6px; font-size: 14px; }
    #header.sociable-header .sociable-mobile-navigation nav { inset-inline-end: 16px; max-width: calc(100% - 32px); }
    #footer .footer-row { padding: 0 16px; }
    #footer .footer-copy .sociable-footer-links { gap: 0 18px; }
}
@media (max-width: 640px) {
    /* #top already reserves 125px on phones; avoid a second 150px blank space. */
    #header.sociable-header ~ #content .legal-info { margin-top: 28px; margin-inline: 12px; padding: 28px 16px 40px; }
}
