/* GitBusiness.com language combo box (gb_i18n.py, 24 Nov 2026).
   Sits at the far right of the navy menu bar; on phones, between the logo and
   the menu button. Works on any page: the bar's colours are its own. */

.gb-lang {
    position: relative;
    flex: 0 0 auto;
    order: 4;
    font-family: Roboto, 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans Devanagari',
                 'Noto Sans Bengali', 'Noto Sans Thai', 'Noto Sans SC', 'Noto Sans TC',
                 'Noto Sans JP', 'Noto Sans KR', system-ui, -apple-system, 'Segoe UI', sans-serif;
    z-index: 1100;
}

.gb-lang-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    padding: 0 12px 0 13px;
    border: 1px solid rgba(255,255,255,.42);
    border-radius: 12px;
    background: rgba(255,255,255,.1);
    color: #fff;
    font: inherit;
    font-size: 14.5px;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color .18s ease, border-color .18s ease;
}
.gb-lang-btn:hover,
.gb-lang-btn[aria-expanded="true"] {
    background: rgba(255,255,255,.2);
    border-color: rgba(255,255,255,.7);
}
.gb-lang-btn:focus-visible {
    outline: 2px solid #F7D350;
    outline-offset: 2px;
}
.gb-lang-btn .fa-globe { font-size: 15px; opacity: .9; }
.gb-lang-caret { font-size: 10px; opacity: .75; transition: transform .18s ease; }
.gb-lang-btn[aria-expanded="true"] .gb-lang-caret { transform: rotate(180deg); }

.gb-lang-list {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 290px;
    max-height: min(70vh, 520px);
    overflow-y: auto;
    margin: 0;
    padding: 6px;
    list-style: none;
    background: #ffffff;
    color: #0f172a;
    border: 1px solid rgba(15,23,42,.12);
    border-radius: 14px;
    box-shadow: 0 18px 48px rgba(6,10,34,.32);
    text-align: left;
}
.gb-lang-list[hidden] { display: none; }

.gb-lang-list li {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin: 0;
    padding: 9px 12px;
    border-radius: 9px;
    cursor: pointer;
    font-size: 15px;
    line-height: 1.3;
}
.gb-lang-list li:hover,
.gb-lang-list li:focus {
    background: #eef2ff;
    outline: none;
}
.gb-lang-list li[aria-selected="true"] {
    background: #0a1033;
    color: #fff;
}
.gb-lang-list li[aria-selected="true"] .gb-lang-en { color: rgba(255,255,255,.7); }
.gb-lang-native { font-weight: 500; }
.gb-lang-en { font-size: 12.5px; color: #64748b; white-space: nowrap; }

/* Right-to-left pages: the list opens towards the inside of the screen. */
html[dir="rtl"] .gb-lang-list { right: auto; left: 0; text-align: right; }

/* Phones and tablets: beside the logo, before the menu button. */
@media (max-width: 991px) {
    .gb-lang { order: 2; margin-left: auto; }
    html[dir="rtl"] .gb-lang { margin-left: 0; margin-right: auto; }
    .gb-lang-btn { height: 44px; font-size: 15px; }
    .gb-lang-list { width: min(290px, calc(100vw - 32px)); }
}
@media (max-width: 420px) {
    /* the globe and the short code; no room for more */
    .gb-lang-btn { padding: 0 10px; gap: 6px; }
    .gb-lang-btn .gb-lang-caret { display: none; }
}

/* The language's short code (ES, DE, 繁 ...) stands in for its name on narrow phones. */
.gb-lang-code { display: none; font-weight: 700; letter-spacing: .04em; }
@media (min-width: 992px) {
    .gb-lang-btn { height: 36px; border-radius: 10px; }
}
@media (max-width: 480px) {
    .gb-lang-cur { display: none; }
    .gb-lang-code { display: inline; }
}

/* Pages without the front page's menu bar (sign-in, account, payment, admin):
   the box keeps to the top corner, on a navy plate of its own. */
.gb-lang-corner {
    position: fixed;
    top: max(12px, env(safe-area-inset-top));
    right: 14px;
    z-index: 2000;
}
html[dir="rtl"] .gb-lang-corner { right: auto; left: 14px; }
.gb-lang-corner .gb-lang-btn,
.gb-legal-header .gb-lang-btn {
    height: 38px;
    background: #0a1033;
    border-color: rgba(255,255,255,.3);
    box-shadow: 0 6px 18px rgba(6,10,34,.25);
}
.gb-lang-corner .gb-lang-btn:hover,
.gb-lang-corner .gb-lang-btn[aria-expanded="true"] { background: #1b2563; }
.gb-legal-header .gb-lang { order: 0; margin-left: 0; }
.gb-legal-header .gb-lang-btn { box-shadow: none; background: rgba(255,255,255,.08); }

/* Policies are binding in English; the note says so on translated pages only. */
.gb-legal-en-note {
    display: flex; gap: 10px; align-items: center;
    margin: 0 0 22px; padding: 12px 16px;
    border-radius: 12px; background: #eef2ff; color: #1e3a8a; font-weight: 500;
}
html[lang="en"] .gb-legal-en-note { display: none; }

/* Right-to-left pages: arrows that mean "onward" point the other way. */
html[dir="rtl"] .fa-arrow-right,
html[dir="rtl"] .fa-angle-double-right,
html[dir="rtl"] .fa-arrow-left { transform: scaleX(-1); }

/* Right-to-left sign-in / sign-up forms: the field icon and the show-password
   eye change sides, so neither sits on the text. */
html[dir="rtl"] .gb-input-wrap > i { left: auto; right: 15px; }
html[dir="rtl"] .gb-auth-card input[type="text"],
html[dir="rtl"] .gb-auth-card input[type="password"],
html[dir="rtl"] .gb-auth-card input[type="email"],
html[dir="rtl"] .gb-auth-card input[type="tel"] { padding: 13px 42px 13px 15px; }
html[dir="rtl"] .gb-auth-card .gb-has-toggle { padding-left: 46px; }
html[dir="rtl"] .gb-reveal { right: auto; left: 6px; }
html[dir="rtl"] .gb-field-phone input[type="text"] { padding-left: 15px; }
