.handla-home-demo {
  justify-self: end;
  width: min(100%, 341px);
}

.handla-demo-device {
  position: relative;
  margin: 0;
  padding: 10px;
  border: 1px solid rgba(18, 23, 20, 0.08);
  border-radius: 34px;
  background: #111;
  box-shadow: 0 24px 60px rgba(54, 72, 58, 0.18);
}

.handla-demo-app-icon {
  position: absolute;
  bottom: -28px;
  left: -24px;
  z-index: 3;
  width: 89px;
  height: 89px;
  border: 4px solid #fff;
  border-radius: 20px;
  box-shadow: 0 14px 30px rgba(54, 72, 58, 0.2);
}

.handla-demo-screen {
  overflow-y: auto;
  /* overscroll-behavior: contain; */
  scrollbar-width: none;
  height: 550px;
  min-height: 550px;
  padding: 24px 13px 32px;
  border-radius: 26px;
  background: #fff;
}

.handla-demo-form {
  display: grid;
  gap: 8px;
  margin-top: 24px;
}

.handla-demo-form .shopping-add-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 96px;
  align-items: center;
  gap: 0;
  width: 100%;
  margin: 0 auto;
}

.handla-demo-form input {
  min-width: 0;
  width: 100%;
  height: 48px;
  min-height: 48px;
  padding: 12px 13px;
  border: 1px solid rgba(47, 111, 78, 0.18);
  border-radius: 8px 0 0 8px;
  -webkit-appearance: none;
  appearance: none;
  background: #fff;
  color: #1f2823;
  font: inherit;
}

.handla-demo-form input:focus,
.handla-demo-form input:focus-visible {
  border-color: rgba(47, 111, 78, 0.18);
  outline: 0;
  box-shadow: none;
}

.handla-demo-form button {
  min-width: 0;
  width: 100%;
  height: 48px;
  min-height: 48px;
  padding: 10px 15px 10px 13px;
  border: 1px solid #d2d2d2;
  border-left: 0;
  border-radius: 0 8px 8px 0;
  background: #e9e9e9;
  color: #1f2823;
  font: inherit;
  font-weight: 850;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
}

.handla-demo-list-section {
  margin-top: 26px;
}

.handla-demo-list-section .shopping-items,
.handla-demo-list-section .shopping-item-group,
.handla-demo-list-section .shopping-row-copy {
  display: grid;
  gap: 0;
  min-width: 0;
}

.handla-demo-list-section .shopping-item-group h3 {
  margin: 8px 2px 0;
  color: #617168;
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.handla-demo-list-section .shopping-item-group + .shopping-item-group {
  margin-top: 18px;
}

.handla-demo-list-section .shopping-item-group.is-checked-group {
  margin-top: 24px;
}

.handla-demo-list-section .shopping-row {
  --shopping-row-reveal-width: 0px;
  position: relative;
  z-index: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 4px;
  min-height: 44px;
  padding: 0 11px;
  border: 1px solid rgba(47, 111, 78, 0.12);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.88);
  cursor: pointer;
  touch-action: pan-y;
  -webkit-user-select: none;
  user-select: none;
}

.handla-demo-list-section .shopping-row::before {
  position: absolute;
  inset: 0 var(--shopping-row-reveal-width) 0 0;
  z-index: 1;
  border-radius: inherit;
  background: #fff;
  content: "";
  transition: right 160ms ease;
}

.handla-demo-list-section .shopping-row.is-swipe-dragging::before {
  transition: none;
}

.handla-demo-list-section .shopping-row + .shopping-row {
  border-top: 0;
}

.handla-demo-list-section .shopping-item-group .shopping-row:first-of-type {
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

.handla-demo-list-section .shopping-item-group .shopping-row:last-of-type {
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}

.handla-demo-list-section .shopping-row-copy,
.handla-demo-list-section .shopping-row-menu {
  position: relative;
  z-index: 2;
}

.handla-demo-list-section .shopping-row strong {
  color: #1d2922;
  font-size: 1.02em;
  line-height: 1.1;
  -webkit-user-select: none;
  user-select: none;
}

.handla-demo-list-section .shopping-row span {
  color: #69756e;
  font-size: 0.84em;
  line-height: 1.2;
}

.handla-demo-list-section .shopping-row-menu {
  display: flex;
  align-items: center;
  align-self: stretch;
  min-width: 44px;
  min-height: 100%;
}

.handla-demo-list-section .shopping-row-swipe-remove {
  position: absolute;
  inset: 0 0 0 auto;
  z-index: 0;
  display: none;
  width: 96px;
  padding: 0 13px;
  border: 0;
  border-radius: inherit;
  background: #fff2ec;
  color: #7a372b;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 850;
  cursor: pointer;
}

.handla-demo-list-section .shopping-row-quantity-button,
.handla-demo-list-section .shopping-row-menu-button {
  position: relative;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  cursor: pointer;
}

.handla-demo-list-section .shopping-row-quantity-button {
  display: none;
  color: #68726c;
  font: inherit;
  font-size: 1.2rem;
  font-weight: 850;
  line-height: 1;
}

.handla-demo-list-section .shopping-row-menu-button::before {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 11px;
  height: 11px;
  border: 1px solid #d4d8d5;
  border-radius: 999px;
  background: #eeeeee;
  content: "";
  transform: translate(-50%, -50%);
}

.handla-demo-list-section .shopping-row.has-quantity-controls {
  grid-template-columns: minmax(0, 1fr) 88px;
}

.handla-demo-list-section .shopping-row.has-quantity-controls .shopping-row-menu {
  min-width: 88px;
}

.handla-demo-list-section .shopping-row.has-quantity-controls.has-decrease {
  grid-template-columns: minmax(0, 1fr) 132px;
}

.handla-demo-list-section .shopping-row.has-quantity-controls.has-decrease .shopping-row-menu {
  min-width: 132px;
}

.handla-demo-list-section .shopping-row.has-quantity-controls .shopping-row-quantity-button {
  display: block;
}

.handla-demo-list-section .shopping-row.is-checked {
  font-size: 90%;
  opacity: 0.56;
}

.handla-demo-list-section .shopping-row.is-checked strong {
  color: #8c8c8c;
  text-decoration: line-through;
  text-decoration-color: rgba(120, 120, 120, 0.48);
  text-decoration-thickness: 2px;
}

@media (max-width: 720px) {
  .handla-demo-screen {
    max-height: none;
  }
#demo-device-figure-container {
  max-width: calc(100% - 42px);
  margin-left: auto;
  margin-right: auto;
}
}

@media (max-width: 620px) {
  .handla-demo-screen {
    height: 500px;
    min-height: 500px;
    max-height: 550px;
  }
}
