html,
body.page-shell {
  min-height: 100%;
}

body.page-shell {
  display: flex;
  min-height: 100dvh;
  flex-direction: column;
}

.page-main {
  flex: 1 0 auto;
}

#nav-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 90;
  height: 2px;
  width: 0;
  background: #04535c;
  pointer-events: none;
}

#nav-progress.is-on {
  width: 70%;
  transition: width 0.35s ease;
}

#nav-progress.is-done {
  width: 100%;
  transition: width 0.15s ease;
}

body.is-nav-loading .page-main {
  opacity: 0.62;
  pointer-events: none;
}

.mobile-nav {
  position: fixed;
  z-index: 50;
  right: 0;
  bottom: 0;
  left: 0;
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 10px 4px calc(10px + env(safe-area-inset-bottom));
  border-top: 1px solid #eef1f4;
  background: #fff;
}

.mobile-nav-item,
.mobile-nav-cart {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: #637381;
  text-align: center;
  text-decoration: none;
  font-size: 11px;
  line-height: 1.15;
}

.mobile-nav-item svg {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}

.mobile-nav-cart-btn svg {
  width: 42px;
  height: 42px;
}

.mobile-nav-item span {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mobile-nav-item.is-active,
.mobile-nav-cart.is-active {
  color: #04535c;
}

.mobile-nav-cart {
  position: relative;
  z-index: 1;
  align-self: stretch;
}

.mobile-nav-cart-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  width: 74px;
  height: 74px;
  align-items: center;
  justify-content: center;
  border: 5px solid #fff;
  border-radius: 999px;
  background: #22c55e;
  color: #fff;
  box-shadow: 0 8px 20px rgba(34, 197, 94, 0.35);
  transform: translate(-50%, calc(-50% - 12px));
}

.favorite-toggle {
  position: absolute;
  z-index: 2;
  top: 10px;
  right: 10px;
}

.favorite-btn {
  display: flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #637381;
  box-shadow: 0 2px 8px rgba(22, 28, 36, 0.12);
}

.favorite-btn.is-on {
  background: #ec4899;
  color: #fff;
}

.favorite-btn.is-on svg path {
  fill: currentColor;
}

@media (max-width: 1023px) {
  .favorites-grid article {
    padding: 10px;
    gap: 8px;
  }

  .favorites-grid article > .flex.gap-3 > a {
    display: none;
  }

  .favorites-grid article button {
    padding-left: 8px;
    padding-right: 8px;
    font-size: 12px;
  }
}

.mobile-nav-cart-count {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 22px;
  height: 22px;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  border-radius: 999px;
  background: #ec4899;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

@media (min-width: 1024px) {
  .mobile-nav {
    display: none;
  }
}

@media (max-width: 1023px) {
  .page-main {
    padding-bottom: 88px;
  }
}

.ui-select {
  position: relative;
}

.ui-select select.js-ui-select {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.ui-select-toggle {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid rgba(145, 158, 171, 0.32);
  border-radius: 8px;
  background: #fff;
  padding: 16px 14px;
  text-align: left;
  font-size: 16px;
  line-height: 1.4;
  color: #161c24;
}

.ui-select-toggle:focus {
  outline: none;
  border-color: #04535c;
  box-shadow: 0 0 0 4px rgba(4, 83, 92, 0.1);
}

.ui-select-toggle[aria-expanded="true"] {
  border-color: #04535c;
}

.ui-select-value {
  min-width: 0;
  flex: 1;
}

.ui-select-value.is-placeholder {
  color: #919eab;
}

.ui-select-menu {
  position: absolute;
  z-index: 40;
  top: calc(100% + 8px);
  right: 0;
  left: 0;
  max-height: 320px;
  overflow: auto;
  border: 1px solid #dfe3e8;
  border-radius: 12px;
  background: #fff;
  padding: 6px;
  box-shadow: 0 12px 32px rgba(22, 28, 36, 0.12);
}

.ui-select-option {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 8px;
  background: transparent;
  padding: 12px 12px;
  text-align: left;
  font-size: 15px;
  line-height: 1.4;
  color: #161c24;
}

.ui-select-option:hover,
.ui-select-option.is-active {
  background: #c7f6ec;
  color: #04535c;
}

.ui-select-option.is-placeholder,
.ui-select-option:disabled {
  display: none;
}

.card-cvc-wrap {
  position: relative;
}

.card-cvc-wrap .js-card-cvc {
  padding-right: 48px;
}

.card-cvc-toggle {
  position: absolute;
  top: 50%;
  right: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  color: #637381;
  transform: translateY(-50%);
}

.card-cvc-toggle.is-on {
  color: #04535c;
}

.staff-chart {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 140px;
}

.staff-chart-col {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  gap: 6px;
}

.staff-chart-bar {
  display: block;
  width: 100%;
  min-height: 4px;
  border-radius: 6px 6px 0 0;
  background: #04535c;
}

.staff-chart-label {
  color: #919eab;
  font-size: 10px;
  line-height: 1;
}

.staff-meter {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #eef1f4;
}

.staff-meter span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: #57cec7;
}
