/* Website languages (inc/i18n.php): 🌐 buttons, footer language links, first-visit picker. */

/* Indian scripts: letter-spacing and capitals break joined letters, so they are switched off. */
html[lang^="hi"] body *, html[lang^="gu"] body *, html[lang^="pa"] body * { letter-spacing: normal !important; text-transform: none !important; }
html[lang^="hi"] body, html[lang^="gu"] body, html[lang^="pa"] body { line-height: 1.6; }

/* 🌐 button: icon only, same size as the other header icons. Hidden where the header switches
   to its ☰ menu: the language choices are inside that menu instead (and in the footer). */
.sa-lang-btn {
	display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; flex: none;
	border-radius: 10px; border: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .06); color: rgba(255, 255, 255, .7);
	font: inherit; line-height: 1; cursor: pointer; transition: background-color .2s, border-color .2s, color .2s;
}
.sa-lang-btn:hover { background: rgba(128, 187, 1, .12); border-color: rgba(128, 187, 1, .3); color: #a6d93a; }
.sa-lang-btn span { display: none; }
@media (max-width: 900px) { .sa-header-actions .sa-lang-btn { display: none; } }

/* On the A2 / Farmacy page headers (light or dark per page) */
.lp-ph .sa-lang-btn { width: 38px; height: 38px; margin-left: 6px; border-radius: 99px; background: transparent; color: inherit; border: 1.5px solid color-mix(in srgb, currentColor 30%, transparent); }
.lp-ph .sa-lang-btn:hover { background: var(--ph-hover, rgba(0, 0, 0, .05)); color: inherit; }
@media (max-width: 1040px) { .lp-ph .sa-lang-btn { display: none; } }

/* Language links: footer, and inside the phone menus */
.sa-lang-links { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 14px; margin: 0 0 12px; font-size: 14px; }
.sa-lang-links__icon { flex: none; opacity: .7; color: rgba(255, 255, 255, .72); }
.sa-lang-links a { color: rgba(255, 255, 255, .72); text-decoration: none; padding: 2px 0; border-bottom: 1px solid transparent; }
.sa-lang-links a:hover { color: #fff; border-bottom-color: rgba(255, 255, 255, .4); }
.sa-lang-links a[aria-current="true"] { color: #fff; font-weight: 700; border-bottom-color: #a6d93a; }

/* Site header ☰ menu (phones/tablets only) */
.sa-lang-links--menu { display: none; }
@media (max-width: 900px) {
	.sa-lang-links--menu { display: flex; justify-content: flex-start; gap: 8px; margin: 10px 0 4px; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, .08); }
	.sa-lang-links--menu a { padding: 7px 12px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 99px; font-size: 14px; }
	.sa-lang-links--menu a[aria-current="true"] { border-color: #a6d93a; background: rgba(128, 187, 1, .14); }
}

/* A2 / Farmacy page header phone panel */
.lp-ph .sa-lang-links--panel { justify-content: flex-start; gap: 8px; margin: 16px 0 0; }
.lp-ph .sa-lang-links--panel .sa-lang-links__icon { color: var(--ph-link, currentColor); }
.lp-ph .sa-lang-links--panel a { padding: 7px 12px; border: 1px solid color-mix(in srgb, currentColor 22%, transparent); border-radius: 99px; color: var(--ph-link, inherit); font-size: 14px; }
.lp-ph .sa-lang-links--panel a[aria-current="true"] { font-weight: 700; border-color: currentColor; }

/* First-visit picker (same as the app's) */
.sa-langpick { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; padding: 22px; background: rgba(16, 28, 4, .55); opacity: 0; transition: opacity .2s; }
.sa-langpick[hidden] { display: none; }
.sa-langpick.is-open { opacity: 1; }
html.sa-langpick-open { overflow: hidden; }
.sa-langpick__card { width: 100%; max-width: 420px; background: #fff; border-radius: 22px; padding: 22px 20px 20px; box-shadow: 0 24px 60px rgba(16, 28, 4, .3); transform: translateY(12px); transition: transform .25s; font-family: inherit; }
.sa-langpick.is-open .sa-langpick__card { transform: none; }
.sa-langpick__title { margin: 0 0 16px; text-align: center; color: #1a2e05; font-size: 21px; font-weight: 800; line-height: 1.3; }
.sa-langpick__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sa-langpick__opt {
	position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 78px; padding: 10px 8px;
	border: 1.5px solid #e4dcc7; border-radius: 16px; background: #fff; color: #1e2a0e; text-decoration: none; cursor: pointer; transition: border-color .15s, background-color .15s;
}
.sa-langpick__opt:hover { border-color: #b9cf8a; }
.sa-langpick__opt:focus-visible { outline: 3px solid rgba(93, 138, 0, .35); outline-offset: 2px; }
.sa-langpick__opt[aria-checked="true"] { border-color: #5d8a00; background: #e8f4c8; }
.sa-langpick__opt[aria-checked="true"]::after {
	content: "✓"; position: absolute; top: 7px; right: 7px; width: 20px; height: 20px; border-radius: 50%; background: #5d8a00; color: #fff;
	font-size: 12px; font-weight: 900; line-height: 20px; text-align: center;
}
.sa-langpick__label { font-size: 20px; font-weight: 800; line-height: 1.3; }
.sa-langpick__hint { margin-top: 2px; font-size: 12px; color: #5a6a3a; }
.sa-langpick__note { margin: 16px 0 0; text-align: center; color: #5a6a3a; font-size: 13.5px; line-height: 1.5; }
.sa-langpick__go { display: block; width: 100%; min-height: 50px; margin-top: 14px; border: 0; border-radius: 14px; background: #1a2e05; color: #fff; font: inherit; font-size: 16px; font-weight: 800; cursor: pointer; }
.sa-langpick__go:hover { background: #2a4410; }
@media (prefers-reduced-motion: reduce) { .sa-langpick, .sa-langpick__card { transition: none; } }
