.artx-languages { display:flex; justify-content:flex-end; padding:6px max(16px, calc((100vw - 1440px)/2)); font-size:13px; position:relative; z-index:110; }
.artx-languages summary { display:flex; align-items:center; gap:8px; cursor:pointer; padding:8px 12px; min-height:38px; border:1px solid transparent; border-radius:8px; list-style:none; color:#303b3e; }
.artx-languages summary::-webkit-details-marker { display:none; }
.artx-languages summary:hover,.artx-languages details[open] summary { background:#f0f3f3; border-color:#e0e5e5; }
.artx-languages__chevron { margin-inline-start:4px; transition:transform .15s; }
.artx-languages details[open] .artx-languages__chevron { transform:rotate(180deg); }
.artx-languages__panel { box-sizing:border-box; position:absolute; right:0; top:100%; width:280px; max-width:calc(100vw - 32px); padding:12px; background:#fff; color:#202829; border:1px solid #e0e5e5; border-radius:12px; box-shadow:0 12px 36px #20282924; }
.artx-languages ul { position:static; display:block; max-height:none; overflow:visible; margin:0; padding:0; list-style:none; }
.artx-languages a { display:flex; align-items:center; gap:10px; min-height:42px; padding:10px 12px; border-radius:7px; color:inherit; text-decoration:none; }
.artx-languages a:hover { background:#f0f3f3; color:#202829; }
.artx-languages a[aria-current] { background:#e8eeee; font-weight:600; }
.artx-languages a[aria-current]::after { content:"✓"; margin-inline-start:auto; }
.artx-languages a:focus-visible,.artx-languages summary:focus-visible { outline:2px solid #365d72; outline-offset:2px; }
html[dir="rtl"] body { direction:rtl; }
html[dir="rtl"] input[type="email"],html[dir="rtl"] input[type="tel"],html[dir="rtl"] input[autocomplete*="cc-"],html[dir="rtl"] .artx-price { direction:ltr; unicode-bidi:isolate; }
html[dir="rtl"] input,html[dir="rtl"] textarea { text-align:start; }
html[dir="rtl"] .artx-header,html[dir="rtl"] .artx-footer { text-align:start; }
/* Translated action labels stay intact instead of stacking one word per line. */
.artx-artwork__action { white-space:nowrap; flex-shrink:0; }
html[dir="rtl"] .artx-artwork__action-icon { margin-right:0; margin-left:var(--artx-space-1); }
@media (max-width:640px) {
 body .artx-artwork__actions,body .artx-artwork__actions-group { height:auto; min-height:44px; }
 body .artx-artwork__actions-group { flex-wrap:wrap; justify-content:center; row-gap:4px; }
 body .artx-artwork__thumbs { flex:1 0 100%; }
}

html[dir="rtl"] .artx-artwork__nav--prev { left:auto; right:0; }
html[dir="rtl"] .artx-artwork__nav--next { right:auto; left:0; }
html[dir="rtl"] .artx-artwork__nav svg { transform:scaleX(-1); }

/* Keep the language choice on the navigation row beneath search. */
.artx-header__nav { overflow: visible; }
.artx-header__nav > .artx-languages { position: absolute; right: var(--artx-page-padding); top: calc(var(--artx-header-top-gap) + var(--artx-header-row-height)); padding: 0; height: var(--artx-header-row-height); align-items: center; }
.artx-header__nav > .artx-languages ul { inset-inline-end: 0; }
@media (min-width: 768px) {
 .artx-header__row--menu { padding-right: 160px; }
 .artx-header__row--menu > .artx-header__links { max-width: 100%; overflow-x: auto; }
}
@media (max-width: 767px) {
 .artx-header { height: calc(var(--artx-header-height) + 44px); }
 .artx-header__nav { height: calc(var(--artx-header-nav-height) + 44px); }
 .artx-header__nav > .artx-languages { height: 44px; }
}

.artx-languages__flag { display:block; flex:0 0 20px; width:20px; height:15px; object-fit:cover; border-radius:2px; box-shadow:0 0 0 1px #00000014; }

.artx-header__nav > .artx-languages summary { box-sizing:border-box; min-height:30px; height:30px; padding:4px 10px; }

@media (min-width: 768px) {
 .artx-header__nav > .artx-languages { right: calc(var(--artx-page-padding) - 11px); }
}

.artx-languages [data-artx-settings-open]{display:flex;align-items:center;gap:8px;cursor:pointer;padding:4px 10px;min-height:36px;border:1px solid transparent;border-radius:8px;background:transparent;font:inherit;color:#303b3e}
.artx-languages [data-artx-settings-open]:hover{background:#f0f3f3}
.artx-languages [data-artx-settings-open]:focus-visible{outline:2px solid #365d72;outline-offset:2px}
.artx-settings{box-sizing:border-box;width:min(440px,calc(100vw - 32px));max-width:none;max-height:calc(100dvh - 32px);margin:auto;padding:32px;border:1px solid #ddd;background:#fff;color:#111;overflow:auto;text-align:start}
.artx-settings::backdrop{background:#0006}
.artx-settings h2{font-size:24px;line-height:1.3;font-weight:400;margin:0 28px 24px 0}
.artx-settings label{display:block;font-size:14px;margin:18px 0 8px}
.artx-settings select{box-sizing:border-box;width:100%;height:48px;font:inherit;padding:10px;border:1px solid #777;background:#fff;color:#111}
.artx-settings p{font-size:13px;line-height:1.5;color:#666;margin:16px 0 24px}
.artx-settings button[type=submit]{width:100%;min-height:48px}
.artx-settings :focus-visible{outline:2px solid #111;outline-offset:3px}

/* The select arrow follows the direction of its label. */
html[dir="rtl"] body.artx .artx-settings select { background-position: left 16px center; }

.artx-language-picker{position:relative}
.artx-language-picker>button{display:flex;align-items:center;gap:10px;width:100%;min-height:48px;padding:10px;border:1px solid #777;background:#fff;color:#111;font:inherit;text-align:start;cursor:pointer}
.artx-language-picker img{display:block;width:20px;height:15px;object-fit:cover;flex-shrink:0}
.artx-language-picker [role=listbox]{position:absolute;z-index:5;inset-inline:0;top:100%;max-height:240px;overflow-y:auto;border:1px solid #777;background:#fff;box-shadow:0 4px 12px #0002}
.artx-language-picker [role=option]{display:flex;align-items:center;gap:10px;min-height:44px;padding:8px 12px;box-sizing:border-box;cursor:pointer}
.artx-language-picker [role=option]:hover,.artx-language-picker [role=option].is-active{background:#edf1f5}
.artx-language-picker [aria-selected=true]{font-weight:600}
.artx-settings select[hidden],.artx-language-picker [hidden]{display:none}
