[data-site-legacy-language] {
 display: none !important;
}

#site-language-picker {
 box-sizing: border-box;
 width: min(420px, calc(100vw - 28px));
 max-height: calc(100dvh - 28px);
 padding: 20px;
 border: 1px solid var(--site-line);
 border-radius: 8px;
 background: var(--site-surface);
 color: var(--site-ink);
 font: 400 14px/1.4 "Inter", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

#site-language-picker::backdrop {
 background: rgb(0 0 0 / .46);
}

#site-language-title {
 margin: 0 0 16px;
 font-size: 19px;
 font-weight: 600;
}

.site-language-options {
 display: grid;
 grid-template-columns: repeat(2, minmax(0, 1fr));
 gap: 8px;
}

#site-language-picker button {
 min-width: 44px;
 min-height: 44px;
 padding: 8px 10px;
 border: 1px solid var(--site-control);
 border-radius: 4px;
 background: var(--site-surface);
 color: var(--site-ink);
 font: inherit;
 cursor: pointer;
}

#site-language-picker button[aria-pressed="true"] {
 border-color: var(--site-accent);
 background: var(--site-accent);
 color: var(--site-on-accent);
}

#site-language-picker button:focus-visible {
 outline: 2px solid var(--site-focus);
 outline-offset: 2px;
}

#site-language-picker .site-language-close {
 display: block;
 margin: 16px 0 0 auto;
}

/* The international home masthead overlays the photograph without shifting its controls. */
html[data-site-display-language] body:has(> main > :is(.home-opening, .showroom)) {
 position: relative;
}

html[data-site-display-language] body:has(> main > :is(.home-opening, .showroom)) > header.cabinetstore-global-row {
 position: absolute;
 z-index: 10;
 inset: 0 0 auto;
 background: transparent;
 border-block-end-color: transparent;
 color: #fff;
}

html[data-site-display-language] body:has(> main > :is(.home-opening, .showroom)) > header.cabinetstore-global-row img[data-cabinetstore-wordmark] {
 filter: brightness(0) invert(1) !important;
}

html[data-site-display-language] body:has(> main > :is(.home-opening, .showroom)) > header.cabinetstore-global-row
 .cabinetstore-global-actions {
 --site-ink: #fff;
}

html[data-site-display-language] body:has(> main > :is(.home-opening, .showroom)) > header.cabinetstore-global-row
 :is(.cabinetstore-global-actions > :is(a, button):hover, .cabinetstore-designer-navigation > summary:hover, .cabinetstore-designer-navigation[open] > summary) {
 background: rgb(255 255 255 / .18);
}

html[data-site-display-language] body:has(> main > :is(.home-opening, .showroom)) > header.cabinetstore-global-row
 :is(.brand, .cabinetstore-global-primary > a, .cabinetstore-global-actions > :is(a, button), .cabinetstore-designer-navigation > summary):focus-visible {
 outline-color: #fff;
}

html[data-site-display-language] .home-opening {
 display: grid;
 grid-template-rows: minmax(min-content, 1fr) auto;
 min-block-size: 100vh;
 min-block-size: 100dvh;
}

@media (max-width: 700px) and (orientation: portrait) {
 html[data-site-display-language] .home-opening {
  /* Extend the trial background behind the browser toolbar without resizing the grid tracks. */
  --home-browser-chrome-gap: calc(100lvh - 100dvh);
  box-sizing: content-box;
  padding-block-end: clamp(0px, var(--home-browser-chrome-gap), 6rem);
  background: var(--site-subtle);
 }
}

html[data-site-display-language] .home-opening > .showroom {
 min-block-size: 0;
}

html[data-site-display-language] .home-opening .home-final {
 padding-block: clamp(12px, 3dvh, 36px) max(clamp(12px, 3dvh, 36px), env(safe-area-inset-bottom, 0px));
}

html[data-site-display-language] .home-opening .home-final :is(h1, h2) {
 margin-block-end: clamp(8px, 1.5dvh, 16px);
 font-size: clamp(28px, 3vw, 44px);
 font-weight: 500;
 letter-spacing: -.04em;
 line-height: 1.15;
}

.home-final[data-design-trial-copy] p {
 margin: 0 0 clamp(8px, 1.5dvh, 14px);
 color: var(--site-muted);
 line-height: 1.4;
}

.home-final[data-design-trial-copy] button.home-button {
 background: transparent;
 color: inherit;
}

html[data-site-display-language] .home-opening .home-hero-visual {
 position: absolute;
 height: auto;
}

html[data-site-display-language] .home-opening .home-hero-visual::after {
 content: "";
 background:
  linear-gradient(180deg, rgb(0 0 0 / .78), rgb(0 0 0 / .56) var(--cs-global-height), transparent max(27%, 112px)),
  linear-gradient(90deg, rgb(0 0 0 / .76), rgb(0 0 0 / .62) 34%, transparent 88%);
}

html[data-site-display-language] .home-opening .home-hero-copy {
 padding-block: max(var(--cs-global-height), clamp(56px, 7dvh, 88px)) clamp(12px, 4dvh, 36px);
}

html[data-site-display-language] .home-partner-card h3 {
 max-inline-size: 100%;
 overflow-wrap: anywhere;
 hyphens: auto;
}

@media (max-aspect-ratio: 3 / 2), (max-height: 540px) {
 html[data-site-display-language] .showroom-hero-media > .showroom-scene {
  /* Pan the whole scene around the reader so the animated cup stays registered. */
  --scene-width: max(100cqw, calc(100cqh * 16 / 9));
  --scene-height: calc(var(--scene-width) * 9 / 16);
  width: var(--scene-width);
  left: clamp(calc(100cqw - var(--scene-width)), calc(68cqw - .6675 * var(--scene-width)), 0px);
  top: clamp(calc(100cqh - var(--scene-height)), calc(60cqh - .729 * var(--scene-height)), 0px);
  bottom: auto;
  transform: none;
 }
}

@media (max-aspect-ratio: 4 / 5) {
 html[data-site-display-language] .home-opening .home-hero-visual::after {
  background:
   linear-gradient(180deg, rgb(0 0 0 / .76), rgb(0 0 0 / .5) var(--cs-global-height), transparent 33%),
   linear-gradient(90deg, rgb(0 0 0 / .75), rgb(0 0 0 / .5) 48%, rgb(0 0 0 / .16) 72%, transparent);
 }
}

@media (max-width: 700px) {
 html[data-site-display-language] .home-opening .home-hero-copy {
  align-self: end;
 }
}

@media (max-width: 700px) and (max-aspect-ratio: 4 / 5) {
 html[data-site-display-language] .showroom-hero-media > .showroom-scene {
  --scene-width: max(100cqw, 248cqh);
  left: clamp(calc(100cqw - var(--scene-width)), calc(77cqw - .6675 * var(--scene-width)), 0px);
 }
}

@media (max-width: 440px) {
 html[data-site-display-language] .home-opening .home-final .home-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: min(100%, 24rem);
  margin-inline: auto;
 }

 html[data-site-display-language] .home-opening .home-button {
  padding-inline: 8px;
 }

 html[data-site-display-language] .home-opening .home-button svg {
  width: 17px;
 }
}

@media (max-height: 650px) {
 html[data-site-display-language] .home-opening .home-hero-copy {
  padding-block: calc(var(--cs-global-height, 48px) + 8px) 8px;
 }

 html[data-site-display-language] .home-hero-intro {
  margin-block-end: 8px;
  line-height: 1.4;
 }

 html[data-site-display-language] .home-hero-note {
  margin-block: 6px 0;
 }
}

@media (max-height: 460px) and (min-aspect-ratio: 4 / 3) {
 html[data-site-display-language] .home-opening .home-hero-copy {
  width: auto;
  max-width: 650px;
  padding-block: calc(var(--cs-global-height, 48px) + 4px) 6px;
 }

 html[data-site-display-language] .home-opening .home-hero-note {
  font-size: 11px;
  line-height: 1.3;
 }

 html[data-site-display-language] .home-opening .home-hero-intro {
  max-width: 55ch;
  font-size: 13px;
 }

 html[data-site-display-language] .home-opening .home-button {
  min-height: 44px;
  padding-block: 6px;
 }

 html[data-site-display-language] .home-opening .home-final {
  padding-block: 8px max(8px, env(safe-area-inset-bottom, 0px));
 }

 html[data-site-display-language] .home-opening .home-final :is(h1, h2) {
  margin-block-end: 6px;
  font-size: 20px;
 }

 .home-final[data-design-trial-copy] p {
  margin-block-end: 6px;
  font-size: 13px;
 }
}
