@font-face {
  font-family: Montserrat;
  src: url("assets/fonts/montserrat-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --primary: #3b465c;
  --secondary: #a0feff;
  --rose: #f600a6;
  --light-grey: #efefef;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding-top: 60px;
  background: var(--primary);
  color: #fff;
  font-family: Montserrat, sans-serif;
  font-weight: 500;
  line-height: 1.5;
}

body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--secondary); outline-offset: 4px; }

.waves {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: -1;
  pointer-events: none;
}

.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1;
  height: 60px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  transition: background-color .4s;
}

.header.scrolled { background: var(--primary); }
.brand { position: absolute; left: 50%; transform: translateX(-50%); }
.brand img { height: 23px; }
.header-credit { margin-left: auto; color: #fff; font-size: 12px; font-weight: 700; white-space: nowrap; }
.icon-button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
}

main { flex: 1; padding: 0 35px; }
body.content-page-active main { padding: 0 20px; }
.content-page {
  width: 100%;
  max-width: 1400px;
  margin: 16px auto 28px;
  padding: 30px 40px 32px;
  border-radius: 8px;
  background: #f1f1f1;
  color: var(--primary);
}
.content-page-heading { padding: 0 12px 24px; }
.content-page-heading .breadcrumbs {
  margin: 0 0 5px;
  color: #8993a6;
  font-size: 13px;
  letter-spacing: .2px;
}
.breadcrumbs span { padding: 0 4px; }
.content-page-heading h1 {
  margin: 0;
  color: #34415b;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.35;
}
.content-page-body {
  min-height: 400px;
  padding: 16px 20px 30px;
  border-radius: 5px;
  background: #fff;
  color: #34415b;
  font-size: 13px;
  letter-spacing: .15px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}
.content-page-body p { margin: 0 0 10px; }
.content-page-body h2 {
  margin: 24px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #d9dce2;
  font-size: 20px;
  line-height: 1.4;
}
.content-page-body h2:first-child { margin-top: 0; }
.content-page-body strong { display: inline-block; margin: 6px 0; }
.content-page-body a { color: var(--rose); }

body.account-page-active {
  padding-top: 60px;
  background: #f1f1f1;
  color: #34415b;
}
body.account-page-active .waves { display: none; }
body.account-page-active .header { height: 60px; background: #f1f1f1; }
body.account-page-active .brand img,
body.account-page-active .menu-toggle img {
  filter: brightness(0) saturate(100%) invert(26%) sepia(12%) saturate(1043%) hue-rotate(185deg) brightness(93%) contrast(90%);
}
body.account-page-active .header-credit { color: var(--primary); }
body.account-page-active main { padding: 0; }
body.account-page-active .footer { display: none; }
.account-page { width: 100%; max-width: 760px; margin: 0 auto; padding: 0 20px 40px; color: #34415b; }
.account-breadcrumb { display: none; }
.account-page h1 { margin: -8px 14px 30px; font-size: 28px; line-height: 1.35; }
.account-load-status { margin: 28px 14px; font-size: 14px; }
.account-section { margin: 0 0 28px; }
.account-section-heading { display: flex; min-height: 24px; align-items: center; justify-content: space-between; margin: 0 13px 7px; }
.account-section-heading h2 { margin: 0; color: #34415b; font-size: 11px; font-weight: 500; letter-spacing: .5px; line-height: 1.4; text-transform: uppercase; }
.account-action { display: inline-flex; align-items: center; gap: 5px; padding: 0; border: 0; background: transparent; color: var(--rose); font-size: 12px; line-height: 1.4; }
.account-action svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; }
.account-card { border-radius: 4px; background: #fff; }
.account-balance-row { display: flex; min-height: 55px; align-items: center; justify-content: space-between; padding: 8px 15px; font-size: 12px; }
.account-balance-row strong { font-size: 20px; font-weight: 600; }
.account-history-card { padding: 7px 14px; }
.account-history-row { display: flex; width: 100%; min-height: 40px; align-items: center; justify-content: space-between; padding: 4px 0; border: 0; background: transparent; color: #34415b; font-size: 12px; text-align: left; }
.account-history-row + .account-history-row { border-top: 1px solid #d7d7d7; }
.account-history-row span:last-child { color: #c8c8c8; font-size: 26px; line-height: 1; }
.account-details-card { display: grid; gap: 3px; margin: 0; padding: 10px 15px; }
.account-details-card > div { display: grid; grid-template-columns: 112px minmax(0, 1fr); font-size: 12px; line-height: 1.7; }
.account-details-card dt { color: #919aae; }
.account-details-card dd { min-width: 0; margin: 0; overflow-wrap: anywhere; color: #34415b; }
.account-action-status { margin: -12px 14px 0; color: #667187; font-size: 12px; }
.account-action-status:empty { display: none; }
.content-page-body ul { margin: 0 0 14px; padding: 0; list-style: none; }
.content-page-body li { position: relative; margin: 0 0 8px; padding-left: 16px; }
.content-page-body li::before {
  position: absolute;
  top: .65em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--rose);
  content: "";
}
.washdry-page {
  width: 100%;
  max-width: 760px;
  margin: 40px auto;
  overflow: hidden;
  border-radius: 8px;
  background: #f1f1f1;
  color: #34415b;
  box-shadow: 0 20px 90px rgb(0 0 0 / .18);
}
.washdry-content { min-height: 420px; padding: 32px 36px 42px; }
.washdry-content h1 { margin: 0 0 26px; color: #172d54; font-size: clamp(27px, 5vw, 40px); font-weight: 750; line-height: 1.3; text-align: center; }
.washdry-status { margin: 0; color: #34415b; font-size: 14px; }
.washdry-status:empty { display: none; }
.machine-type-groups { display: grid; gap: 24px; }
.machine-type-group { min-width: 0; }
.machine-grid { display: grid; width: 100%; max-width: 480px; grid-template-columns: repeat(2, minmax(0, 1fr)); justify-content: center; align-items: stretch; gap: 16px; margin: 0 auto; padding: 0; list-style: none; }
.machine-item { display: grid; min-width: 0; padding: 10px; border: 1px solid #d9e2f1; border-radius: 18px; background: #fff; box-shadow: 0 8px 22px rgb(23 45 84 / .08); color: #172d54; }
.machine-icon { display: block; width: 100%; max-width: none; height: auto; color: #172d54; }
.machine-icon.is-large { width: 100%; }
.machine-select-button { display: grid; width: 100%; place-items: center; padding: 0; border: 0; border-radius: 12px; background: transparent; color: inherit; transition: transform .15s ease, background-color .15s ease; }
.machine-select-button:hover { transform: translateY(-2px); }
.machine-select-button:focus-visible { outline-color: #355e9a; }
.machine-selection { display: grid; justify-items: center; padding: 8px 0 18px; text-align: center; }
.machine-selection-back { justify-self: start; padding: 6px 12px; border: 1px solid rgb(59 70 92 / .4); border-radius: 18px; background: transparent; color: var(--primary); font-size: 13px; }
.machine-selection h2 { margin: 0 0 20px; color: var(--primary); font-size: 22px; }
.selected-machine-icon { display: grid; min-height: 150px; place-items: center; margin-bottom: 10px; }
.selected-machine-icon .machine-icon { width: 180px; max-width: 100%; }
.selected-machine-icon .machine-icon.is-large { width: 150px; }
.drying-duration { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin: 0 0 18px; padding: 0; border: 0; color: var(--primary); }
.drying-duration legend { width: 100%; margin-bottom: 8px; font-size: 15px; font-weight: 700; }
.drying-duration label { position: relative; display: block; width: 88px; height: 50px; cursor: pointer; }
.drying-duration label input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drying-duration label span { display: grid; width: 100%; height: 100%; place-items: center; border-radius: 6px; background: #e1e3e8; color: #8790a0; font-size: 20px; font-weight: 700; transition: background-color .15s ease, color .15s ease; }
.drying-duration label input:checked + span { background: var(--rose); color: #fff; }
.drying-duration label input:focus-visible + span { outline: 3px solid var(--primary); outline-offset: 3px; }
.dryer-price-control { display: grid; justify-items: center; gap: 10px; margin: 0 0 12px; color: var(--primary); }
.dryer-time { margin: 0; font-size: 22px; }
.dryer-price-buttons { display: flex; justify-content: center; gap: 14px; }
.dryer-price-buttons button { width: 80px; height: 52px; border: 0; border-radius: 7px; background: var(--rose); color: #fff; font-size: 32px; font-weight: 700; line-height: 1; }
.dryer-price-buttons button:disabled { cursor: default; opacity: .45; }
.dryer-price-hint { margin: 0; font-size: 14px; }
.selected-machine-price { min-height: 30px; margin: 0 0 16px; color: var(--primary); font-size: 22px; font-weight: 700; }
.purchase-confirmation { position: relative; width: min(100%, 360px); height: 60px; }
.purchase-confirmation input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 60px;
  margin: 0;
  appearance: none;
  border-radius: 999px;
  background: linear-gradient(to right, var(--rose) 0%, var(--rose) var(--slider-progress, 0%), #d4d7dd var(--slider-progress, 0%), #d4d7dd 100%);
  cursor: grab;
  touch-action: pan-y;
}
.purchase-confirmation input:active { cursor: grabbing; }
.purchase-confirmation input::-webkit-slider-thumb {
  width: 52px;
  height: 52px;
  appearance: none;
  border: 4px solid #fff;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 3px 12px rgb(0 0 0 / .2);
}
.purchase-confirmation input::-moz-range-thumb {
  width: 44px;
  height: 44px;
  border: 4px solid #fff;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 3px 12px rgb(0 0 0 / .2);
}
.purchase-confirmation input:disabled { cursor: default; opacity: .8; }
.purchase-slider-label { position: absolute; inset: 0; display: grid; place-items: center; color: var(--primary); font-size: 14px; font-weight: 700; pointer-events: none; }
.purchase-confirmation-status { min-height: 22px; margin: 14px 0 0; color: var(--primary); font-size: 14px; }
.purchase-confirmation-status:empty { display: none; }
.manual-code-prompt { max-width: 456px; margin: 36px auto 0; text-align: center; }
.manual-code-prompt p { margin: 0 0 16px; color: var(--primary); font-size: 14px; }
.machine-code-toggle {
  display: block;
  width: 100%;
  min-height: 54px;
  padding: 10px 18px;
  border: 0;
  border-radius: 999px;
  background: var(--rose);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  box-shadow: 0 20px 36px rgb(0 0 0 / .14);
}
.machine-code-toggle:hover { filter: brightness(.95); }
.manual-machine-code { max-width: 456px; margin: 20px auto 0; text-align: center; }
.manual-machine-code label { display: block; margin-bottom: 8px; color: var(--primary); font-size: 14px; }
.manual-machine-code input {
  width: 100%;
  padding: 4px 12px 8px;
  border: 0;
  border-bottom: 2px solid var(--primary);
  border-radius: 0;
  outline-offset: 4px;
  background: transparent;
  color: var(--primary);
  font: 700 25px/1.3 Montserrat, sans-serif;
  letter-spacing: .3em;
  text-align: center;
}
.manual-machine-code input::placeholder { color: #c3c7cf; opacity: 1; }
.manual-machine-code-status { min-height: 21px; margin: 8px 0 0; color: #34415b; font-size: 13px; }
.manual-machine-code-status:empty { display: none; }
.content-page-body table { width: 100%; border-collapse: collapse; text-align: left; }
.content-page-body th, .content-page-body td { padding: 8px; border: 1px solid #d9dce2; }
.carousel { max-width: 400px; margin: 0 auto; }
.slides {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.slides::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; min-width: 0; text-align: center; scroll-snap-align: start; }
.slide-image { display: flex; justify-content: center; padding: 70px 0 25px; }
.slide-image img { align-self: flex-start; }
.slide h1, .slide h2 {
  margin: 0 0 33px;
  font-size: 25px;
  font-weight: 700;
  letter-spacing: 1.08px;
  line-height: 30px;
}
.slide p {
  margin: 0 0 16px;
  opacity: .5;
  color: var(--light-grey);
  font-size: 15px;
  letter-spacing: .2px;
  line-height: 23px;
}
.pagination { display: flex; justify-content: center; gap: 8px; margin: -8px 0 -10px; }
.pagination button {
  display: grid;
  place-items: center;
  width: 36px;
  height: 23px;
  padding: 0;
  border: 0;
  background: transparent;
}
.pagination button::after { content: ""; width: 36px; height: 3px; background: rgb(255 255 255 / .3); }
.pagination button[aria-current="true"]::after { background: var(--rose); }
.auth-loading { display: flex; height: 226px; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: #fff; font-size: 13px; }
.auth-spinner { width: 28px; height: 28px; border: 3px solid rgb(255 255 255 / .3); border-top-color: var(--secondary); border-radius: 50%; animation: auth-spinner-rotate .75s linear infinite; }
.auth-loading.has-error .auth-spinner { animation-play-state: paused; opacity: .55; }
.auth-retry { padding: 5px 14px; border: 1px solid rgb(255 255 255 / .55); border-radius: 18px; background: transparent; color: inherit; font: inherit; cursor: pointer; }
@keyframes auth-spinner-rotate { to { transform: rotate(360deg); } }
.account-actions { padding: 68px 0 50px; text-align: center; }
.account-actions[hidden] { display: none; }
.login-button {
  display: block;
  margin-bottom: 35px;
  padding: 6px 12px;
  border: 1px solid var(--secondary);
  border-radius: 99px;
  background: var(--secondary);
  color: var(--primary);
  box-shadow: 0 30px 50px rgb(0 0 0 / .15);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: .5px;
  line-height: 50px;
}
.register-link { color: #ddd; font-size: 15px; letter-spacing: .2px; line-height: 23px; }

.footer { padding-top: 24px; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 24px;
  padding: 24px 20px;
  background: rgb(0 0 0 / .25);
}
.footer-links a {
  color: rgb(239 239 239 / .5);
  font-size: 12px;
  text-align: center;
  text-transform: uppercase;
}
.footer-copyright {
  padding: 12px 20px;
  background: rgb(0 0 0 / .5);
  color: rgb(239 239 239 / .5);
  font-size: 12px;
  letter-spacing: .8px;
  line-height: 20px;
  text-align: center;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: min(384px, calc(100% - 44px));
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  overflow-y: auto;
  background: var(--primary);
  color: #fff;
}
.sidebar.is-logged-in { width: min(320px, calc(100% - 44px)); }
.sidebar[open] { animation: slide-in .3s cubic-bezier(.54, .02, .35, .88); }
.sidebar::backdrop { background: rgb(0 0 0 / .5); animation: fade-in .3s ease; }
.sidebar.is-closing { animation: slide-out .3s cubic-bezier(.54, .02, .35, .88) forwards; }
.sidebar.is-closing::backdrop { animation: fade-out .3s ease forwards; }
.sidebar-heading {
  display: block;
  padding: 42px 48px 30px 50px;
  background: rgb(0 0 0 / .15);
}
.sidebar-heading-row { display: flex; align-items: center; justify-content: space-between; }
.close-menu { width: 55px; height: 39px; flex-shrink: 0; opacity: .8; }
.close-menu:hover { opacity: 1; }
.sidebar-links { padding: 0 50px; }
.sidebar.is-logged-in .sidebar-heading { padding: 20px 20px 32px; }
.sidebar.is-logged-in .sidebar-links { padding: 0 20px; }
.sidebar-links ul { list-style: none; margin: 0; padding: 43px 0 0; }
.sidebar-links a {
  display: block;
  padding: .6rem 0;
  color: var(--light-grey);
  font-size: 14px;
  letter-spacing: .3px;
  line-height: 23px;
  text-transform: uppercase;
}
.sidebar-links .sidebar-account { margin-top: 25px; padding: 25px 0; border-top: 1px solid var(--secondary); }
.sidebar-links.is-logged-in > ul:not(.sidebar-account) { display: none; }
.sidebar-links.is-logged-in > .sidebar-account { margin: 0; padding: 8px 0 22px; border: 0; border-bottom: 1px solid var(--secondary); }
.sidebar-account [hidden] { display: none; }
.sidebar-user-summary { padding: 25px 0 0; color: #fff; font-size: 20px; font-weight: 500; line-height: 1.4; text-transform: none; }
.sidebar-user-summary p { margin: 0 0 7px; }
.sidebar-username, .sidebar-user-summary p strong { color: #fff; font-size: inherit; font-weight: 500; }
.sidebar-buy-credit { display: inline-flex; align-items: center; gap: 4px; padding: 0; border: 0; background: transparent; color: var(--rose); font-size: 12px; font-weight: 700; }
.sidebar-buy-credit svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; }
.sidebar-account-status { display: block; margin-top: 4px; color: #c2c9d4; font-size: 11px; font-weight: 500; line-height: 1.4; }
.sidebar-logout-item { margin-top: 0; padding-top: 0; border-top: 0; }
.sidebar-links.is-logged-in .sidebar-account > li > a { min-height: 44px; padding: 11px 0; line-height: 20px; }
.sidebar-links.is-logged-in .sidebar-account > li > a[aria-current="page"] { color: var(--secondary); }
.sidebar-links.is-logged-in .sidebar-logout { min-height: 44px; padding: 11px 0; line-height: 20px; }
.sidebar-logout { width: 100%; padding: .6rem 0; border: 0; background: transparent; color: var(--light-grey); font: inherit; font-size: 14px; letter-spacing: .3px; text-align: left; text-transform: uppercase; cursor: pointer; }
.sidebar-logout:hover { color: var(--secondary); }

@keyframes slide-in { from { transform: translateX(-100%); } to { transform: translateX(0); } }
@keyframes slide-out { to { transform: translateX(-100%); } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes fade-out { to { opacity: 0; } }

@media (min-width: 768px) {
  .brand img { height: 30px; }
  .slide-image { padding-bottom: 25px; }
  .account-actions { max-width: 280px; margin: 0 auto; }

  body.account-page-active {
    background: var(--primary);
    color: #fff;
  }
  body.account-page-active .waves { display: block; }
  body.account-page-active .header { background: transparent; }
  body.account-page-active .brand img,
  body.account-page-active .menu-toggle img { filter: none; }
  body.account-page-active .header-credit { color: #fff; }
  .account-page {
    max-width: 536px;
    margin: 44px auto 40px;
    padding: 52px 40px 56px;
    border-radius: 8px;
    background: #f1f1f1;
  }
  .account-breadcrumb { display: block; margin: 0 12px 6px; color: #919aae; font-size: 12px; }
  .account-page h1 { margin: 0 12px 34px; }
}

@media (min-width: 992px) {
  body { padding-top: 130px; }
  .header { height: 130px; }
  .header.scrolled { height: 60px; }
}

@media (max-width: 400px) {
  main { padding: 0 15px; }
  .login-button { font-size: 19px; }
}

@media (max-width: 600px) {
  body.content-page-active main { padding: 0 12px; }
  .content-page { margin: 12px auto 20px; padding: 22px 14px 16px; }
  .content-page-heading { padding: 0 4px 18px; }
  .content-page-heading h1 { font-size: 24px; }
  .content-page-body { min-height: 0; padding: 16px 14px 24px; font-size: 13px; }
  .content-page-body table { font-size: 11px; }
  .content-page-body th, .content-page-body td { padding: 5px; }
  body.washdry-page-active main { padding: 0; }
  body.washdry-page-active { background: #f1f1f1; color: #34415b; }
  body.washdry-page-active .waves { display: none; }
  body.washdry-page-active .header { background: #f1f1f1; }
  body.washdry-page-active .brand img,
  body.washdry-page-active .menu-toggle img {
    filter: brightness(0) saturate(100%) invert(26%) sepia(12%) saturate(1043%) hue-rotate(185deg) brightness(93%) contrast(90%);
  }
  body.washdry-page-active .header-credit { color: var(--primary); }
  .washdry-page {
    width: 100%;
    max-width: none;
    min-height: calc(100dvh - 60px);
    margin: 0;
    border-radius: 0;
    box-shadow: none;
  }
  .washdry-content { min-height: calc(100dvh - 60px); padding: 38px 28px 42px; }
  .selected-machine-icon .machine-icon { width: 160px; }
  .selected-machine-icon .machine-icon.is-large { width: 128px; }
}

@media (prefers-reduced-motion: reduce) {
  .slides { scroll-behavior: auto; }
  .header { transition: none; }
  .sidebar[open], .sidebar::backdrop { animation-duration: 1ms; }
}
