/* APCCO Cosmetics V52 — language switch and back-to-top. Shared header. */
/* APCCO Detergents v47 — single compact language selector. Does not affect other sectors. */
body.cosmetics .global-header .det47-lang-switch{position:relative;flex:0 0 auto;font-family:inherit;z-index:80}
body.cosmetics .global-header .det47-lang-switch summary{display:inline-flex;align-items:center;gap:9px;direction:ltr;list-style:none;cursor:pointer;user-select:none;min-height:41px;padding:0 14px;border:1px solid #dce5e9;border-radius:24px;background:#fff;color:#123447;font-size:13px;font-weight:700;box-shadow:0 2px 8px rgba(10,35,52,.07);white-space:nowrap}
body.cosmetics .global-header .det47-lang-switch summary::-webkit-details-marker{display:none}
body.cosmetics .global-header .det47-lang-switch summary::marker{content:''}
body.cosmetics .global-header .det47-lang-switch summary:hover,body.cosmetics .global-header .det47-lang-switch[open] summary{border-color:#9ebdc4;background:#f5fbf9}
body.cosmetics .global-header .det47-lang-switch summary:focus-visible,body.cosmetics .global-header .det47-lang-switch a:focus-visible{outline:2px solid #009b88;outline-offset:3px}
body.cosmetics .global-header .det47-globe{width:23px;height:23px;display:inline-flex;align-items:center;justify-content:center;border:1.5px solid #087c79;border-radius:50%;color:#087c79;font-size:18px;line-height:1}
body.cosmetics .global-header .det47-chevron{font-size:17px;line-height:1;color:#52717b;transition:transform .2s}
body.cosmetics .global-header .det47-lang-switch[open] .det47-chevron{transform:rotate(180deg)}
body.cosmetics .global-header .det47-lang-options{position:absolute;top:calc(100% + 10px);left:0;right:auto;direction:ltr;min-width:184px;display:flex;flex-direction:column;padding:7px;background:#fff;border:1px solid #dce7e9;border-radius:13px;box-shadow:0 14px 36px rgba(10,35,52,.17);z-index:101}
body.cosmetics .global-header .det47-lang-options a{display:flex;align-items:center;gap:10px;min-height:42px;padding:7px 9px;color:#163b4a;font-size:13px;text-decoration:none;border-radius:8px;white-space:nowrap}
body.cosmetics .global-header .det47-lang-options a:hover{background:#eef8f6}
body.cosmetics .global-header .det47-lang-options a[aria-current=page]{background:#e8f5f1;font-weight:700;color:#006f65}
body.cosmetics .global-header .det47-lang-code{width:29px;text-align:center;font-size:10px;font-weight:800;letter-spacing:.04em;color:#60818a;background:#f1f5f6;padding:5px 2px;border-radius:5px;direction:ltr}
body.cosmetics .global-header .det47-check{margin-inline-start:auto;color:#078e7c;font-size:16px}
@media(max-width:800px){body.cosmetics .global-header .det47-lang-switch summary{min-height:37px;padding:0 10px;gap:6px;font-size:12px}body.cosmetics .global-header .det47-lang-options{min-width:170px}}
@media(max-width:450px){body.cosmetics .global-header .det47-lang-options{left:auto;right:0}}


/* APCCO Detergents v48 — back to top button */
body.cosmetics .det48-top{position:fixed;left:18px;bottom:22px;width:46px;height:46px;display:flex;align-items:center;justify-content:center;border-radius:50%;background:#0f3343;color:#fff;text-decoration:none;box-shadow:0 10px 26px rgba(10,35,52,.22);border:1px solid rgba(255,255,255,.18);font-size:24px;line-height:1;z-index:85;opacity:0;visibility:hidden;transform:translateY(12px);transition:opacity .2s ease,transform .2s ease,visibility .2s ease}
body.cosmetics .det48-top:hover{background:#0b5360;color:#fff}
body.cosmetics .det48-top:focus-visible{outline:2px solid #00a89a;outline-offset:3px}
body.cosmetics .det48-top.is-visible{opacity:1;visibility:visible;transform:translateY(0)}
@media(max-width:640px){body.cosmetics .det48-top{left:14px;bottom:18px;width:42px;height:42px;font-size:22px}}

/* Cosmetic sector only: Arabic direction, same layout, no second template. */
html[dir="rtl"] body.cosmetics .cos34, html[dir="rtl"] body.cosmetics .cos35 {text-align:start}
body.cosmetics .det47-lang-switch:not([open]) .det47-lang-options{display:none!important}
body.cosmetics .det47-lang-switch[open] .det47-lang-options{display:flex!important}
body.cosmetics .det48-top{left:18px;bottom:22px}
@media(max-width:700px){body.cosmetics .det48-top{left:12px;bottom:15px}}
