[hidden] {
  display: none;
}

body {
  background-color: var(--pico-background-color);
  color: var(--pico-color);
  min-height: 100vh;
}

progress {
  position: absolute;
  border-radius: 0;
}

[logo] {
  width: 150px;
  cursor: pointer;
}

button {
  display: flex;
}

img[hero] {
  display: block;
  place-self: center;
}

img[grid] {
  place-self: center;
  display: block;
}

a[icon] {
  cursor: pointer;

  svg {
    width: 32px;
    height: 32px;
  }
}

.absolute-bottom-right {
  position: absolute;
  bottom: 0;
  right: 0;
}

.extra-margin-bottom {
  margin-bottom: var(--pico-typography-spacing-vertical);
}

.center {
  text-align: center;
  place-self: center;
}

article {
  display: grid;
}

footer {
  margin-top: 0;
  display: grid;
}

.right {
  place-self: end;
  text-align: right;
}

.left {
  place-self: start;
  text-align: left;
}

[zombie] {
  max-height: 150px;
}

section[hero] {
  margin-bottom: 4rem;
}

section[inset] {
  place-self: center;
  width: 75%;
  display: grid;
}

.extra-margin-top-2 {
  margin-top: 2rem;
}

.extra-margin-bottom-2 {
  margin-bottom: 2rem;
}

.extra-margin-top-4 {
  margin-top: 4rem;
}

.extra-margin-bottom-4 {
  margin-bottom: 4rem;
}

@media (max-width: 768px) {
  section[inset] {
    width: 100%;
  }

  [logo] {
    width: 60px;
  }
}

[link],
a {
  cursor: pointer;
}

/* Cart item layout */
article[cart-item] {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1rem;
  align-items: start;
  margin-bottom: 1.25rem;
}

[cart-item-media] img[cart-item-image] {
  width: 100%;
  height: 100%;
  max-height: 120px;
  object-fit: cover;
  border-radius: var(--pico-border-radius);
}

[cart-item-main] {
  display: grid;
  gap: .5rem;
}

[cart-item-meta] {
  display: flex;
  gap: 1rem;
  align-items: baseline;
  color: var(--pico-muted-color);
}

[cart-item-actions] {
  display: flex;
  gap: 1rem;
  align-items: center;
}

[cart-item-actions] input[type="number"] {
  width: 96px;
  height: 48px;
  margin-bottom: 0;
}

@media (max-width: 768px) {
  article[cart-item] {
    grid-template-columns: 88px 1fr;
    gap: .75rem;
  }

  [cart-item-media] img[cart-item-image] {
    max-height: 88px;
  }

  [cart-item-meta] {
    gap: .5rem;
    flex-wrap: wrap;
  }

  [cart-item-actions] input[type="number"] {
    width: 80px;
    height: 44px;
  }
}