

*,
*::before,
*::after {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

dialog {
  margin: auto;
}

html {
  font-size: 100%;
  font-synthesis-weight: none;
  height: 100%;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: rgba(var(--color-foreground), 0.2) transparent;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

:root {
  --direction-sign: 1;
}

:root:dir(rtl) {
  --direction-sign: -1;
}

html, body {
  overflow-x: clip;
  max-width: 100vw;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  margin: 0;
  font-size: var(--font-body--size);
  line-height: var(--line-height--body);
  font-family: var(--font-body--family);
  font-style: var(--font-body--style);
  font-weight: var(--font-body--weight);
  color: rgb(var(--color-foreground));
  background-color: rgb(var(--color-background));
}

#main-content {
  flex: 1 0 auto;
}

img, video, canvas, svg {
  display: block;
  max-width: 100%;
}

picture {
  display: contents;
}

img {
  height: auto;
}

input, button, textarea, select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: none;
}

a {
  color: rgb(var(--color-link));
  text-underline-offset: 0.3rem;
  text-decoration-color: rgba(var(--color-link), 0.5);
  text-decoration-thickness: 0.1rem;
  transition: color var(--duration-fast) ease,
              text-decoration-color var(--duration-fast) ease;
}

a:hover {
  text-decoration-color: rgba(var(--color-link), 1);
}


::selection {
  background-color: rgba(var(--color-foreground), 0.2);
}

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(var(--color-foreground), 0.2); border-radius: 3px; }


:focus { outline: none; }

:focus-visible {
  outline: var(--focus-outline-width) solid rgb(var(--color-foreground));
  outline-offset: var(--focus-outline-offset);
}


.skip-to-content-link:focus-visible {
  position: fixed;
  inset-block-start: 1rem;
  inset-inline-start: 1rem;
  z-index: var(--z-skip-link);
  padding: 1rem 2rem;
  background: rgb(var(--color-background));
  color: rgb(var(--color-foreground));
  text-decoration: none;
  border-radius: var(--radius-sm);
}


h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: var(--font-heading--family);
  font-style: var(--font-heading--style);
  font-weight: var(--font-heading--weight);
  color: rgb(var(--color-foreground-heading));
  line-height: var(--line-height--heading);
  letter-spacing: var(--letter-spacing--heading);
  word-break: break-word;
  text-wrap: balance;
}

h1, .h1 { font-size: var(--font-h1--size); }
h2, .h2 { font-size: var(--font-h2--size); }
h3, .h3 { font-size: var(--font-h3--size); }
h4, .h4 { font-size: var(--font-h4--size); font-family: var(--font-subheading--family); }
h5, .h5 { font-size: var(--font-h5--size); font-family: var(--font-subheading--family); }
h6, .h6 { font-size: var(--font-h6--size); font-family: var(--font-subheading--family); }

@media (width < 750px) {
  h1, .h1 { font-size: var(--font-h1--size-mobile, var(--font-h1--size)); }
  h2, .h2 { font-size: var(--font-h2--size-mobile, var(--font-h2--size)); }
  h3, .h3 { font-size: var(--font-h3--size-mobile, var(--font-h3--size)); }
  h4, .h4 { font-size: var(--font-h4--size-mobile, var(--font-h4--size)); }
  h5, .h5 { font-size: var(--font-h5--size-mobile, var(--font-h5--size)); }
  h6, .h6 { font-size: var(--font-h6--size-mobile, var(--font-h6--size)); }
}

p { text-wrap: pretty; }


.container {
  position: relative;
  margin: 0 auto;
  max-width: var(--page-width);
  padding-inline: calc(var(--container-padding-mobile) + var(--section-side-margin, 0px));
}

.container--narrow { max-width: var(--page-width-narrow); }
.container--full { max-width: 100%; padding-inline: 0; }
.container--full-padded { max-width: 100%; }

@media (width >= 750px) {
  .container { padding-inline: calc(var(--container-padding-desktop) + var(--section-side-margin, 0px)); }
  .container--full { padding-inline: 0; }
}


.section-card {
  margin-inline: calc(var(--container-padding-mobile) / 2 + var(--section-side-margin, 0px));
  padding: var(--space-3);
  border-radius: var(--radius-card);
  background: rgb(var(--color-background));
}

@media (width >= 750px) {
  .section-card {
    margin-inline: calc(var(--container-padding-desktop) + var(--section-side-margin, 0px));
    padding: var(--space-6);
  }
}

.section-card .container { --section-side-margin: 0px; }


@media (width < 750px) {
  .hide-on-mobile:not(#hide-on) { display: none; }
}

@media (width >= 750px) {
  .hide-on-desktop:not(#hide-on) { display: none; }
}

.visually-hidden,
.skip-to-content-link:not(:focus-visible) {
  position: absolute;
  overflow: hidden;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}


.field {
  position: relative;
  width: 100%;
  display: flex;
}

.field__input,
textarea,
select {
  -webkit-appearance: none;
  appearance: none;
  background-color: var(--color-input-bg);
  color: var(--color-input-text);
  font-family: var(--font-body--family);
  font-size: 1rem;
  width: 100%;
  box-sizing: border-box;
  border-radius: var(--radius-input);
  border: 1px solid var(--color-input-border);
  padding: var(--inputs-padding);
  min-height: var(--inputs-min-height);
  transition: border-color var(--duration-fast) ease,
              box-shadow var(--duration-fast) ease;
}

.field__input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: none;
  border-color: rgb(var(--color-foreground));
  box-shadow: 0 0 0 1px rgb(var(--color-foreground));
}

.field__input:user-invalid,
.field__input[aria-invalid="true"],
textarea:user-invalid,
select:user-invalid {
  border-color: rgb(var(--color-error));
  box-shadow: 0 0 0 1px rgb(var(--color-error));
}

.field__input:user-valid:not(:placeholder-shown),
textarea:user-valid:not(:placeholder-shown) {
  border-color: rgb(var(--color-success));
}

textarea {
  resize: vertical;
  min-height: 120px;
}

label {
  display: block;
  margin-block-end: var(--space-1);
  font-weight: 500;
}

input[type="checkbox"],
input[type="radio"] {
  display: inline-block;
  width: var(--checkbox-size);
  height: var(--checkbox-size);
  margin-inline-end: var(--space-2);
  accent-color: rgb(var(--color-accent-1));
}


.btn {
  --button-font-size: var(--buttons-font-size);
  --button-gap: var(--space-2);
  --button-padding-inline: var(--buttons-space-horizontal);
  --button-padding-block: var(--buttons-space-vertical);
  --button-min-height: var(--minimum-touch-target);
  --button-radius: var(--buttons-radius);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--button-gap);
  font-family: var(--buttons-font);
  font-size: var(--button-font-size);
  font-weight: var(--buttons-font-weight);
  letter-spacing: 0.02em;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  border: 0;
  border-radius: var(--button-radius);
  padding: var(--button-padding-block) var(--button-padding-inline);
  min-height: var(--button-min-height);
  --button-press-transition: var(--duration-normal) var(--ease-spring);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: background-color var(--duration-normal) ease,
              color var(--duration-normal) ease,
              border-color var(--duration-normal) ease,
              transform var(--duration-fast) ease,
              scale var(--button-press-transition),
              box-shadow var(--duration-normal) ease;
}

.btn__label {
  display: inline-block;
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.2;
}
.btn .icon { flex-shrink: 0; }

.btn:hover {
  transform: translateY(var(--buttons-hover-translate));
}

.btn:active {
  --button-press-transition: var(--duration-fast) var(--ease-out);
  transform: translateY(0);
}

@media (prefers-reduced-motion: no-preference) {
  .btn:active { scale: 0.95; }
}

.btn:focus-visible {
  outline: var(--focus-outline-width) solid rgb(var(--color-foreground));
  outline-offset: var(--focus-outline-offset);
}

.btn[disabled] {
  opacity: var(--disabled-opacity);
  cursor: not-allowed;
  pointer-events: none;
}

.btn--primary {
  background-color: var(--button-primary-bg);
  color: var(--button-primary-color);
  border: var(--button-primary-border-width) solid var(--button-primary-border-color);
}
.btn--primary:hover {
  background-color: var(--button-primary-bg-hover);
  color: var(--button-primary-color-hover);
}

.btn--secondary {
  background-color: var(--button-secondary-bg);
  color: var(--button-secondary-color);
  border: var(--button-secondary-border-width) solid var(--button-secondary-border-color);
}
.btn--secondary:hover {
  background-color: var(--button-secondary-bg-hover);
  color: var(--button-secondary-color-hover);
}

.btn--link {
  background: none;
  color: rgb(var(--color-link));
  border: none;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 0.3rem;
  min-height: auto;
}
.btn--link:hover {
  text-decoration-thickness: 0.15rem;
  transform: none;
}

.btn--small {
  --button-font-size: 0.875rem;
  --button-gap: var(--space-2);
  --button-padding-block: var(--space-2);
  --button-padding-inline: var(--space-4);
  --button-min-height: 36px;
}
.btn--full-width {
  width: 100%;
}
.btn[aria-busy="true"]:not([data-state]) { cursor: progress; }
.btn[aria-busy="true"]:not([data-state]) > *,
.btn[aria-busy="true"]:not([data-state])::after {
  transition: opacity var(--duration-fast) ease, translate var(--duration-normal) var(--ease-spring);
}
.btn[aria-busy="true"]:not([data-state]) > * {
  opacity: 0;
  translate: 0 -8px;
}
.btn[aria-busy="true"]:not([data-state])::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 20px;
  height: 20px;
  border: 2px solid currentColor;
  border-radius: 50%;
  border-inline-end-color: transparent;
  animation: btn-spin 0.6s linear infinite;
}
@starting-style {
  .btn[aria-busy="true"]:not([data-state])::after { opacity: 0; translate: 0 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .btn[aria-busy="true"]:not([data-state]) > * { translate: none; }
  @starting-style {
    .btn[aria-busy="true"]:not([data-state])::after { translate: none; }
  }
}

@keyframes btn-spin {
  to { transform: rotate(360deg); }
}

deferred-media { display: block; }


.rte h1, .rte h2, .rte h3, .rte h4, .rte h5, .rte h6 {
  margin-block: 1.5em 0.5em;
}
.rte h1:first-child, .rte h2:first-child, .rte h3:first-child {
  margin-block-start: 0;
}
.rte p { margin-block-end: 1em; }
.rte p:last-child { margin-block-end: 0; }

.rte ul, .rte ol {
  padding-inline-start: 1.5em;
  margin-block-end: 1em;
}
.rte li { margin-block-end: 0.25em; }

.rte blockquote {
  border-inline-start: 3px solid rgb(var(--color-accent-1));
  padding-inline-start: 1em;
  margin-block: 1em;
  font-style: italic;
  opacity: 0.9;
}

.rte code {
  background: rgba(var(--color-foreground), 0.05);
  padding: 0.15em 0.4em;
  border-radius: var(--radius-xs);
  font-size: 0.9em;
}

.rte pre {
  background: rgba(var(--color-foreground), 0.05);
  padding: 1em;
  border-radius: var(--radius-sm);
  overflow-x: auto;
  margin-block: 1em;
}

.rte table {
  width: 100%;
  border-collapse: collapse;
  margin-block: 1em;
}
.rte th, .rte td {
  border: 1px solid rgb(var(--color-border));
  padding: 0.5em 0.75em;
  text-align: start;
}
.rte th {
  background: rgba(var(--color-foreground), 0.03);
  font-weight: 600;
}

.rte img {
  border-radius: var(--radius-sm);
  margin-block: 1em;
}

.rte a {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}


.spinner {
  width: 24px;
  height: 24px;
  border: 2px solid rgb(var(--color-foreground));
  border-radius: 50%;
  border-inline-end-color: transparent;
  animation: btn-spin 0.6s linear infinite;
}

:root[data-image-fade] img[loading="lazy"]:not([data-image-arrival]) {
  background-color: rgba(var(--color-foreground), 0.06);
}
img[loading="lazy"][data-image-arrival="fade"] { animation: image-arrive var(--duration-normal) var(--ease-out); }

@keyframes image-arrive { from { opacity: 0; } }


.drawer-panel--start { --drawer-from: -1; }
.drawer-panel--end { --drawer-from: 1; }

.drawer-panel {
  --drawer-offset: calc(var(--drawer-from) * 100% * var(--direction-sign));
  --drawer-hidden-opacity: 1;
  transform: translateX(var(--drawer-offset));
  opacity: var(--drawer-hidden-opacity);
  transition: transform var(--duration-drawer-exit) var(--ease-in), opacity var(--duration-drawer-exit) var(--ease-in),
    overlay var(--duration-drawer-exit) allow-discrete, display var(--duration-drawer-exit) allow-discrete;
}

.drawer-panel[open] {
  transform: translateX(0);
  opacity: 1;
  transition: transform var(--duration-drawer-enter) var(--ease-spring), opacity var(--duration-drawer-enter) var(--ease-out),
    overlay var(--duration-drawer-enter) allow-discrete, display var(--duration-drawer-enter) allow-discrete;
}

.drawer-panel::backdrop {
  background: rgba(0, 0, 0, 0);
  transition: background var(--duration-drawer-exit), overlay var(--duration-drawer-exit) allow-discrete, display var(--duration-drawer-exit) allow-discrete;
}

.drawer-panel[open]::backdrop { background: rgba(0, 0, 0, calc(var(--backdrop-opacity) * (1 - var(--swipe-progress, 0)))); }

:root[data-scroll-lock] { overflow: hidden; }
:root[data-scroll-lock][data-scrollbar] { scrollbar-gutter: stable; }

@starting-style {
  .drawer-panel[open] { transform: translateX(var(--drawer-offset)); opacity: var(--drawer-hidden-opacity); }
  .drawer-panel[open]::backdrop { background: rgba(0, 0, 0, 0); }
}

@media (prefers-reduced-motion: no-preference) {
  .drawer-panel[open] .drawer-panel__item {
    animation: drawer-item-in var(--duration-slow) var(--ease-spring) backwards;
    animation-delay: calc(120ms + min(var(--item-index), 6) * 60ms);
  }
}

@media (prefers-reduced-motion: reduce) {
  .drawer-panel { --drawer-offset: 0px; --drawer-hidden-opacity: 0; }
}

@keyframes drawer-item-in {
  from { opacity: 0; translate: calc(var(--drawer-from) * 14px * var(--direction-sign)) 0; }
}


@media (forced-colors: active) {
  .btn { border: 1px solid transparent; }
  .btn:focus-visible { outline: 1px solid transparent; }
  .field__input:focus-visible { outline: 1px solid transparent; }
}


@media (prefers-reduced-motion: no-preference) {
  :root {
    view-transition-name: none;
  }

  html:active-view-transition-type(page-navigation),
  html:active-view-transition-type(product-image-transition) {
    view-transition-name: root-custom;
  }

  ::view-transition {
    pointer-events: none;
  }

  html:active-view-transition-type(page-navigation) main[data-page-transition-enabled='true'] {
    view-transition-name: main-content;
  }

  html:active-view-transition-type(page-navigation) main[data-product-transition='true'][data-template*='product'] {
    view-transition-name: none;
  }

  @keyframes vt-fade-out {
    from { opacity: 1; }
    to { opacity: 0; }
  }

  @keyframes vt-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
  }

  @keyframes vt-slide-up {
    from { transform: translateY(60px); }
  }

  ::view-transition-old(main-content) {
    animation: var(--duration-normal) var(--ease-out) both vt-fade-out;
  }

  ::view-transition-new(main-content) {
    animation: var(--duration-normal) var(--ease-out) both vt-fade-in,
               var(--duration-normal) var(--ease-out) both vt-slide-up;
  }

  html:active-view-transition-type(product-image-transition) [data-view-transition-type='product-image-transition'] {
    view-transition-name: product-image-transition;
  }

  ::view-transition-group(product-image-transition) {
    z-index: 1;
    animation-duration: var(--duration-normal);
    animation-timing-function: var(--ease-out);
  }

  ::view-transition-old(product-image-transition),
  ::view-transition-new(product-image-transition) {
    block-size: 100%;
    overflow: hidden;
    object-fit: cover;
    animation-duration: var(--duration-normal);
    animation-timing-function: var(--ease-out);
  }
}
