@font-face {
  font-family: "Civmazon MC";
  src: url(/assets/fonts/minecraft.ttf) format("truetype");
  font-display: swap;
}

:root {
  --font-mc: "Civmazon MC", Arial, sans-serif;
  --nav-belt: #131921;
  --nav-main: #232f3e;
  --search-btn: #febd69;
  --search-btn-hover: #f3a847;
  --cart-count: #f08804;
  --page: #e3e6e6;
  --surface: #fff;
  --tile: #f7f8f8;
  --text: #0f1111;
  --muted: #565959;
  --link: #007185;
  --link-hover: #c7511f;
  --border: #d5d9d9;
  --rule: #e7e7e7;
  --in-stock: #007600;
  --low-stock: #b12704;
  --bestseller: #c45500;
  --yellow: #ffd814;
  --yellow-border: #fcd200;
  --yellow-hover: #f7ca00;
  --orange: #ffa41c;
  --orange-border: #ff8f00;
  --orange-hover: #fa8900;
  --footer-top: #37475a;
  --footer: #232f3e;
  --footer-bottom: #131a22;
  --focus: 0 0 0 2px #fff, 0 0 0 4px #007185;
  --radius-card: 12px;
  --radius-tile: 8px;
  color-scheme: light;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 16px;
}

/* The Minecraft font is drawn on a pixel grid: it only stays sharp at 12, 16, 24, 32 and 40px, and gets no fake bold */
body {
  margin: 0;
  min-width: 320px;
  font: 12px/1.5 var(--font-mc);
  font-synthesis: none;
  -webkit-font-smoothing: none;
  color: var(--text);
  background: var(--page);
}

:lang(ja) body {
  font-family: "Civmazon MC", "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
}

:lang(zh) body {
  font-family: "Civmazon MC", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

[data-loading] body {
  opacity: 0;
  animation: reveal 0s 1.5s forwards;
}

@keyframes reveal {
  to { opacity: 1; }
}

body:has(dialog[open]) {
  overflow: hidden;
}

h1, h2, h3, p, ul, ol, dl, dd, figure, fieldset {
  margin: 0;
}

ul, ol {
  padding: 0;
  list-style: none;
}

fieldset {
  padding: 0;
  border: 0;
  min-width: 0;
}

[hidden] {
  display: none !important;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

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

button {
  cursor: pointer;
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  color: var(--link-hover);
  text-decoration: underline;
}

:focus-visible {
  outline: none;
  box-shadow: var(--focus);
  border-radius: 4px;
}

hr {
  height: 0;
  margin: 14px 0;
  border: 0;
  border-top: 1px solid var(--rule);
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 1em;
  height: 1em;
  flex: none;
  fill: currentColor;
}

.caret {
  width: 8px;
  height: 5px;
  flex: none;
  fill: #a7acb2;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Header */

.nav {
  position: relative;
  z-index: 30;
  color: #fff;
}

.nav-belt {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 60px;
  padding: 0 10px;
  background: var(--nav-belt);
}

.nav-item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 50px;
  padding: 0 9px;
  border: 1px solid transparent;
  border-radius: 4px;
  background: none;
  color: #fff;
  text-align: left;
  white-space: nowrap;
}

.nav-item:hover,
.nav-item[aria-expanded="true"] {
  border-color: #fff;
  color: #fff;
  text-decoration: none;
}

.nav-line-1 {
  font-size: 12px;
  line-height: 14px;
  color: #ccc;
}

.nav-line-2 {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  line-height: 15px;
}

.nav-logo {
  padding: 4px 8px 0;
}

.nav-logo img {
  width: 92px;
}

.nav-deliver {
  flex-direction: row;
  align-items: flex-end;
  gap: 2px;
  padding-bottom: 8px;
}

.nav-lines {
  display: flex;
  flex-direction: column;
}

.nav-pin {
  width: 15px;
  height: 18px;
  margin-bottom: 1px;
}

.nav-search {
  position: relative;
  flex: 1;
  display: flex;
  height: 40px;
  min-width: 0;
  margin: 0 8px;
  border-radius: 8px;
  color: var(--text);
}

.nav-search:focus-within {
  box-shadow: 0 0 0 3px #f90;
}

.nav-scope {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  max-width: 180px;
  padding: 0 8px 0 10px;
  border-radius: 8px 0 0 8px;
  border-right: 1px solid #cdcdcd;
  background: #e6e6e6;
  color: #555;
  font-size: 12px;
  white-space: nowrap;
  cursor: pointer;
}

.nav-scope:hover {
  background: #d4d4d4;
  color: var(--text);
}

.nav-scope span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-scope .caret {
  fill: #666;
}

.nav-scope select {
  position: absolute;
  inset: 0;
  width: 100%;
  opacity: 0;
  cursor: pointer;
}

.nav-search-input {
  flex: 1;
  min-width: 0;
  text-overflow: ellipsis;
  padding: 0 10px;
  border: 0;
  background: #fff;
  font-size: 12px;
  appearance: none;
  outline: none;
}

.nav-search-input::-webkit-search-cancel-button {
  appearance: none;
}

.nav-search-submit {
  display: grid;
  place-items: center;
  width: 45px;
  border: 0;
  border-radius: 0 8px 8px 0;
  background: var(--search-btn);
}

.nav-search-submit:hover {
  background: var(--search-btn-hover);
}

.nav-search-submit img {
  width: 24px;
  height: 24px;
}

.search-suggestions {
  position: absolute;
  top: calc(100% + 1px);
  left: 0;
  right: 0;
  padding: 6px 0;
  border: 1px solid #c4c4c4;
  background: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, .13);
  border-radius: 8px;
  overflow: hidden;
}

.search-suggestions li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 12px;
  font-size: 16px;
  line-height: 1.25;
  cursor: pointer;
}

.search-suggestions li:hover,
.search-suggestions li[aria-selected="true"] {
  background: #eee;
}

.search-suggestions img {
  flex: none;
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.suggestion-name {
  flex: 1;
}

.suggestion-category {
  color: var(--muted);
  font-size: 12px;
}

.flyout-anchor {
  position: relative;
}

.nav-lang {
  flex-direction: row;
  align-items: center;
  gap: 5px;
  padding-top: 8px;
}

.nav-lang .icon {
  width: 18px;
  height: 18px;
}

.flyout {
  position: absolute;
  top: calc(100% + 6px);
  z-index: 40;
  padding: 14px 18px 16px;
  border-radius: var(--radius-card);
  background: #fff;
  color: var(--text);
  box-shadow: 0 2px 16px rgba(0, 0, 0, .3);
  white-space: nowrap;
}

.flyout::before {
  content: "";
  position: absolute;
  top: -8px;
  border: 8px solid transparent;
  border-top: 0;
  border-bottom-color: #fff;
}

.flyout::after {
  content: "";
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 10px;
}

.flyout-lang {
  left: -12px;
  min-width: 230px;
}

.flyout-lang::before {
  left: 40px;
}

.flyout-account {
  right: -60px;
  width: 260px;
  text-align: center;
}

.flyout-account::before {
  right: 100px;
}

.flyout-title {
  margin-bottom: 8px;
  font-size: 12px;
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  font-size: 12px;
  cursor: pointer;
}

.lang-option:hover span {
  color: var(--link-hover);
  text-decoration: underline;
}

.lang-option input {
  width: 15px;
  height: 15px;
  margin: 0;
  accent-color: #e77600;
}

.flyout-note {
  margin-top: 8px;
  font-size: 12px;
}

.flyout-links {
  text-align: left;
  font-size: 12px;
  line-height: 24px;
}

.flyout-links a {
  color: #444;
}

.nav-cart {
  flex-direction: row;
  align-items: center;
  gap: 8px;
}

/* An inventory slot holding the minecart, with the count in the corner like a stack in the game */
.nav-cart-slot {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 2px solid;
  border-color: #373737 #fff #fff #373737;
  background: #8b8b8b;
}

.nav-cart-slot img {
  width: 28px;
  height: 28px;
  image-rendering: pixelated;
}

.nav-cart-count {
  position: absolute;
  right: 1px;
  bottom: -1px;
  color: #fff;
  font-size: 16px;
  line-height: 1;
  text-shadow: 2px 2px 0 #3f3f3f;
}


.nav-main {
  display: flex;
  align-items: center;
  height: 39px;
  padding: 0 11px;
  background: var(--nav-main);
  font-size: 12px;
}

.nav-main .nav-item {
  flex-direction: row;
  align-items: center;
  gap: 4px;
  height: 31px;
  padding: 0 8px;
}

.nav-all {
}

.nav-all .icon {
  width: 20px;
  height: 20px;
}

.nav-links {
  display: flex;
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.nav-promo {
}

.page-dim {
  position: fixed;
  inset: 0;
  z-index: 20;
  background: rgba(0, 0, 0, .5);
  opacity: 0;
  visibility: hidden;
  transition: opacity .15s, visibility .15s;
}

.page-dim.is-visible {
  opacity: 1;
  visibility: visible;
}

/* Buttons */

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 100px;
  color: var(--text);
  font-size: 12px;
  text-align: center;
}

.btn:hover {
  color: var(--text);
  text-decoration: none;
}

.btn:disabled {
  cursor: not-allowed;
  opacity: .6;
}

.btn-cart {
  background: var(--yellow);
  border-color: var(--yellow-border);
}

.btn-cart:hover:not(:disabled) {
  background: var(--yellow-hover);
}

.btn-buy {
  background: var(--orange);
  border-color: var(--orange-border);
}

.btn-buy:hover {
  background: var(--orange-hover);
}

.btn-secondary {
  border-color: var(--border);
  background: #fff;
  box-shadow: 0 2px 5px rgba(213, 217, 217, .5);
}

.btn-secondary:hover {
  background: #f7fafa;
}

.link-button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--link);
  font-size: 12px;
}

.link-button:hover {
  color: var(--link-hover);
  text-decoration: underline;
}

/* Prices and badges */

.price {
  display: inline-flex;
  color: var(--text);
  line-height: 1;
  white-space: nowrap;
}

.price-figure {
  display: inline-flex;
  align-items: flex-start;
  gap: 3px;
}

.currency {
  display: inline-block;
  flex: none;
  background: center / 100% 100% no-repeat;
  image-rendering: pixelated;
}

.currency--diamond {
  width: 12px;
  height: 13px;
  background-image: url(/assets/currency/diamond.png);
}

.currency--iron {
  width: 16px;
  height: 12px;
  background-image: url(/assets/currency/iron.png);
}

.price-rest,
.price-iron {
  display: inline-flex;
  align-items: flex-start;
  gap: 3px;
}

.price-rest {
  margin-left: 6px;
}

.price--lg { font-size: 32px; }
.price--md { font-size: 24px; }
.price--sm { font-size: 16px; }
.price--xs { font-size: 12px; }

.price--lg .price-rest { font-size: 16px; }

.price--lg .currency { margin-top: 1px; }
.price--md .currency { margin-top: 1px; }

.price--xs .price-figure {
  align-items: center;
}

.rate {
  display: inline-flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 2px 6px;
}

.rate-unit {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.2;
}

.rate--xs {
  align-items: center;
}

.rate-single {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  color: var(--muted);
  font-size: 12px;
}

.tile {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  padding: 8%;
  background: var(--tile);
  border-radius: var(--radius-tile);
}

.tile img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Home */

.home {
  padding-bottom: 20px;
}

.home > .home-grid,
.home > .panel {
  width: min(1460px, 100% - 40px);
  margin-left: auto;
  margin-right: auto;
}

.hero {
  position: relative;
  height: 600px;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 70%;
  background: linear-gradient(rgba(227, 230, 230, 0), var(--page));
  pointer-events: none;
}

.hero-slide {
  position: absolute;
  inset: 0;
  color: #fff;
  opacity: 0;
  visibility: hidden;
  image-rendering: pixelated;
  transition: opacity .6s, visibility .6s;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
}

.hero-slide--taiga { background: linear-gradient(100deg, rgba(7, 30, 18, .94), rgba(7, 30, 18, .72) 45%, rgba(7, 30, 18, .3)), url(/assets/textures/spruce_leaves.png) 0 0 / 64px #1c3b25; }
.hero-slide--ice { background: linear-gradient(100deg, rgba(6, 26, 58, .94), rgba(6, 26, 58, .7) 45%, rgba(6, 26, 58, .2)), url(/assets/textures/blue_ice.png) 0 0 / 64px; }
.hero-slide--wool { background: linear-gradient(100deg, rgba(48, 14, 56, .94), rgba(48, 14, 56, .66) 45%, rgba(48, 14, 56, .12)), url(/assets/textures/white_wool.png) 0 0 / 64px; }

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  max-width: 1500px;
  height: 330px;
  margin: 0 auto;
  padding: 0 110px;
}

.hero-kicker {
  margin-bottom: 12px;
  font-size: 16px;
  line-height: 1;
  opacity: .9;
}

.hero-title {
  max-width: 560px;
  font-size: 40px;
  line-height: 1.2;
  text-shadow: 5px 5px 0 rgba(0, 0, 0, .35);
}

.hero-text {
  margin-top: 12px;
  font-size: 16px;
  line-height: 1.4;
  opacity: .9;
}

.hero-cta {
  display: inline-block;
  margin-top: 22px;
  padding: 9px 22px;
  border-radius: 100px;
  background: var(--yellow);
  color: var(--text);
  font-size: 12px;
}

.hero-cta:hover {
  background: var(--yellow-hover);
  color: var(--text);
  text-decoration: none;
}

.hero-art {
  position: relative;
  height: 290px;
}

.hero-art img {
  position: absolute;
  image-rendering: auto;
  filter: drop-shadow(0 18px 18px rgba(0, 0, 0, .45));
}

.hero-art-main { width: 270px; left: 50%; top: 10px; transform: translateX(-50%); }
.hero-art-side { width: 170px; right: 4%; bottom: -10px; }
.hero-art-back { width: 170px; left: 4%; top: 30px; }

.hero-nav {
  position: absolute;
  top: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 80px;
  height: 250px;
  border: 0;
  background: none;
  color: #fff;
}

.hero-nav .icon {
  width: 42px;
  height: 42px;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .4));
}

.hero-nav--prev { left: 0; }
.hero-nav--next { right: 0; }

.home-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin: 20px 20px 0;
}

.home-grid--overlap {
  margin-top: -270px;
}

.card,
.dp-title {
  overflow-wrap: break-word;
}

.card-quad a,
.signin-promo span,
.shelf-name,
.cart-line-name {
  hyphens: auto;
}

.card {
  display: flex;
  flex-direction: column;
  min-height: 420px;
  padding: 20px 20px 15px;
  background: var(--surface);
  border-radius: var(--radius-card);
}

.card-title {
  margin-bottom: 14px;
  font-size: 24px;
  line-height: 1.25;
}

.card-quad {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 15px;
}

.card-quad a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--text);
  font-size: 12px;
  line-height: 16px;
}

.card-quad .tile {
  padding: 12%;
}

.card-feature {
  display: block;
  margin-bottom: 10px;
}

.card-feature .tile {
  aspect-ratio: 1.25;
}

.card-name {
  display: -webkit-box;
  margin-top: 6px;
  overflow: hidden;
  color: var(--text);
  font-size: 12px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.card-link {
  margin-top: auto;
  padding-top: 14px;
  font-size: 12px;
}

.card--signin .btn {
  min-height: 34px;
  margin-bottom: 20px;
}

.signin-promo {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 20px;
  background: var(--tile);
  color: var(--text);
  text-align: center;
  border-radius: var(--radius-tile);
}

.signin-promo:hover {
  color: var(--text);
}

.signin-promo img {
  width: 55%;
  max-width: 180px;
}

.signin-promo span {
  font-size: 16px;
  line-height: 1.3;
}

.units-intro {
  margin-bottom: 14px;
  color: var(--muted);
}

.units-slot {
  position: relative;
  width: 76px;
  height: 76px;
  margin: 0 auto 18px;
  padding: 8px;
  border: 4px solid;
  border-color: #373737 #fff #fff #373737;
  background: #8b8b8b;
}

.units-slot img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.units-slot span {
  position: absolute;
  right: 2px;
  bottom: -2px;
  color: #fff;
  font-size: 16px;
  text-shadow: 2px 2px 0 #3f3f3f;
}

.units-rules {
  display: grid;
  gap: 12px;
}

.units-rules li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
}

.units-pill {
  flex: none;
  min-width: 42px;
  padding: 4px 6px;
  border-radius: 6px;
  background: var(--nav-main);
  color: #fff;
  font-size: 12px;
  text-align: center;
}

.panel {
  margin: 20px 20px 0;
  padding: 20px 20px 16px;
  background: var(--surface);
  border-radius: var(--radius-card);
}

.panel-title {
  margin-bottom: 14px;
  font-size: 24px;
  line-height: 1.25;
}

.shelf-viewport {
  position: relative;
}

.shelf-track {
  position: relative;
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}

.shelf-track::-webkit-scrollbar {
  display: none;
}

.shelf-item {
  flex: none;
  width: 200px;
  scroll-snap-align: start;
}

.shelf-item a {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--text);
}

.shelf-item a:hover {
  color: var(--text);
  text-decoration: none;
}

.shelf-item a:hover .shelf-name {
  color: var(--link-hover);
  text-decoration: underline;
}

.shelf-name {
  display: -webkit-box;
  overflow: hidden;
  color: var(--link);
  font-size: 12px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.shelf-btn {
  position: absolute;
  top: 70px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 45px;
  height: 100px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255, 255, 255, .95);
  box-shadow: 0 1px 3px rgba(15, 17, 17, .15);
  color: var(--text);
  opacity: 0;
  transition: opacity .15s;
}

.shelf-btn .icon {
  width: 20px;
  height: 20px;
}

.shelf-viewport:hover .shelf-btn:not(:disabled),
.shelf-btn:focus-visible {
  opacity: 1;
}

.shelf-btn:disabled {
  visibility: hidden;
}

.shelf-btn--prev { left: 0; }
.shelf-btn--next { right: 0; }

/* Product page */

.page-product {
  background: var(--surface);
}

.dp {
  max-width: 1500px;
  margin: 0 auto;
  padding: 12px 20px 40px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 12px;
}

.breadcrumb li + li::before {
  content: "›";
  margin-right: 6px;
}

.dp-grid {
  display: grid;
  grid-template-columns: minmax(280px, 40fr) minmax(0, 37fr) 260px;
  align-items: start;
  gap: 28px;
}

.dp-image .tile {
  padding: 10%;
  border-radius: var(--radius-card);
  background: #fff;
}

.dp-title {
  font-size: 24px;
  font-weight: 400;
  line-height: 32px;
}

.dp-store {
  display: inline-block;
  margin-top: 4px;
}

.dp-badges {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-size: 12px;
}

.badge-bestseller {
  padding: 3px 14px 3px 7px;
  background: var(--bestseller);
  color: #fff;
  clip-path: polygon(0 0, 100% 0, calc(100% - 7px) 50%, 100% 100%, 0 100%);
}

.dp-single {
  margin-top: 10px;
}

.dp-note {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

.variants {
  margin-top: 16px;
}

.swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.swatch {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: var(--radius-tile);
  background: #fff;
}

.swatch:hover {
  border-color: #888c8c;
}

.swatch[aria-current="true"] {
  border-color: var(--link);
  box-shadow: 0 0 0 1px var(--link);
}

.swatch img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.attr-table {
  border-collapse: collapse;
}

.attr-table th,
.attr-table td {
  padding: 4px 0;
  text-align: left;
  vertical-align: top;
}

.attr-table th {
  padding-right: 24px;
}

.dp-about {
  margin-bottom: 8px;
  font-size: 16px;
}

.dp-bullets {
  padding-left: 18px;
  list-style: disc;
}

.dp-bullets li {
  margin-top: 4px;
}

.buybox {
  min-width: 0;
}

.offers {
  display: grid;
  gap: 12px;
}

.offer {
  display: grid;
  justify-items: start;
  gap: 6px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: #f7f8f8;
  cursor: pointer;
}

.offer:hover {
  border-color: #a6aaaa;
}

.offer.is-selected {
  background: #fff;
  border-color: #a6aaaa;
  cursor: auto;
}

.offer-label {
  display: grid;
  justify-items: start;
  gap: 6px;
  width: 100%;
  cursor: pointer;
}

.offer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
}

.offer-head input {
  flex: none;
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--link);
  cursor: pointer;
}

.offer-text {
  color: var(--muted);
  font-size: 12px;
}

.offer-details {
  display: grid;
  gap: 12px;
  width: 100%;
  margin-top: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
}

.buybox-actions {
  display: grid;
  gap: 8px;
}

.buybox-deliver-to {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--link);
  font-size: 12px;
}

.stock {
  color: var(--in-stock);
  font-size: 16px;
}

.stock--low {
  color: var(--low-stock);
  font-size: 12px;
}

.buybox-qty {
  display: flex;
  align-items: center;
  gap: 10px;
}

.stepper {
  display: inline-flex;
  align-items: center;
  height: 36px;
  border: 2px solid var(--yellow);
  border-radius: 100px;
  background: #fff;
}

.stepper:focus-within {
  box-shadow: var(--focus);
}

.stepper-btn {
  display: grid;
  place-items: center;
  width: 34px;
  height: 100%;
  border: 0;
  border-radius: 100px;
  background: none;
  color: var(--text);
}

.stepper-btn:hover:not(:disabled) {
  background: #f0f2f2;
}

.stepper-btn:disabled {
  color: #b8bcbc;
  cursor: not-allowed;
}

.stepper-btn .icon {
  width: 17px;
  height: 17px;
}

.stepper-value {
  width: 48px;
  padding: 0;
  border: 0;
  background: none;
  text-align: center;
  outline: none;
}

.buybox-total {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}

.qty-hint {
  margin-top: 0;
  color: var(--muted);
  font-size: 12px;
}

.buybox-meta {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 12px;
  font-size: 12px;
}

.buybox-meta dt {
  color: var(--muted);
}

.buybox-meta dd {
  display: flex;
  align-items: center;
  gap: 4px;
}

.dp-section {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
}

.dp-section > h2 {
  margin-bottom: 16px;
  font-size: 24px;
  line-height: 1.25;
}

.dp-info {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
}

.dp-info h3 {
  margin-bottom: 8px;
  font-size: 16px;
}

.dp-section-sub {
  margin: 24px 0 8px;
  font-size: 16px;
}

.spec-table {
  width: 100%;
  border: 1px solid var(--rule);
  border-radius: var(--radius-tile);
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
}

.spec-table th,
.spec-table td {
  padding: 7px 14px;
  text-align: left;
  vertical-align: top;
}

.spec-table tr + tr > * {
  border-top: 1px solid var(--rule);
}

.spec-table th {
  width: 45%;
  background: #f0f2f2;
  color: #333;
}

.dp-missing {
  padding: 60px 0;
  text-align: center;
}

.dp-missing h1 {
  margin-bottom: 12px;
  font-size: 24px;
  font-weight: 400;
}

/* Search results */

.page-results {
  background: var(--surface);
}

.results {
  padding-bottom: 40px;
}

.results-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 20px;
  padding: 10px 20px;
  box-shadow: 0 2px 4px rgba(15, 17, 17, .1);
}

.sort {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sort select {
  height: 30px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #f0f2f2;
  box-shadow: 0 2px 5px rgba(15, 17, 17, .15);
  cursor: pointer;
}

.results-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 28px;
  max-width: 1500px;
  margin: 20px auto 0;
  padding: 0 20px;
}

.results-filters h2 {
  margin-bottom: 8px;
  font-size: 16px;
}

.results-filters li {
  margin-bottom: 6px;
}

.results-filters a {
  color: var(--text);
}

.results-filters a[aria-current] {
  color: var(--link-hover);
}

.results-filters span {
  color: var(--muted);
}

.results-note {
  margin-bottom: 14px;
  color: var(--muted);
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 16px;
}

.result {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--rule);
  border-radius: var(--radius-card);
}

.result .tile {
  width: 100%;
}

.result-name {
  color: var(--text);
  font-size: 16px;
}

.result-category {
  color: var(--muted);
}

.result .btn {
  margin-top: auto;
}

.results-empty {
  padding: 40px 0;
}

.results-empty h1 {
  margin-bottom: 10px;
  font-size: 24px;
  font-weight: 400;
}

/* Drawers */

.drawer {
  position: fixed;
  inset: 0 auto 0 0;
  width: 365px;
  max-width: calc(100vw - 48px);
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  overflow-y: auto;
  background: #fff;
  color: var(--text);
  border-radius: 0 16px 16px 0;
}

.drawer--right {
  inset: 0 0 0 auto;
  border-radius: 16px 0 0 16px;
}

.drawer::backdrop {
  background: rgba(0, 0, 0, .8);
}

.drawer[open] {
  animation: drawer-left .25s ease-out;
}

.drawer--right[open] {
  animation-name: drawer-right;
}

@keyframes drawer-left {
  from { transform: translateX(-100%); }
}

@keyframes drawer-right {
  from { transform: translateX(100%); }
}

.drawer-head {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 12px 0 20px;
  border-bottom: 1px solid var(--rule);
  background: #fff;
}

.drawer-head h2 {
  flex: 1;
  font-size: 16px;
}

.drawer-head--dark {
  padding-left: 30px;
  border: 0;
  background: var(--nav-main);
  color: #fff;
}

.drawer-head--dark a {
  flex: 1;
  color: #fff;
  font-size: 16px;
}

.drawer-avatar {
  width: 26px;
  height: 26px;
}

.drawer-close {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: none;
}

.drawer-close:hover {
  background: rgba(127, 127, 127, .2);
}

.drawer-close .icon {
  width: 20px;
  height: 20px;
}

.menu-panel {
  padding: 12px 0;
}

.menu-panel h2 {
  padding: 13px 20px 8px 36px;
  font-size: 16px;
}

.menu-panel hr {
  margin: 6px 0;
  border-top-width: 5px;
  border-color: #d5dbdb;
}

.menu-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 13px 20px 13px 36px;
  border: 0;
  background: none;
  color: #111;
  font-size: 12px;
  text-align: left;
}

.menu-row:hover {
  background: #eaeded;
  color: #111;
  text-decoration: none;
}

.menu-row .icon {
  width: 16px;
  height: 16px;
  color: #888;
}

.menu-back {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 13px 36px;
  border: 0;
  background: none;
  font-size: 12px;
  text-transform: uppercase;
}

.menu-back:hover {
  background: #eaeded;
}

.cart-status:not(:empty) {
  display: grid;
  gap: 6px;
  padding: 16px 20px 0;
}

.cart-added {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--in-stock);
  font-size: 16px;
}

.cart-added .icon {
  width: 22px;
  height: 22px;
}

.cart-warning {
  color: var(--low-stock);
  font-size: 12px;
}

.cart-summary {
  display: grid;
  gap: 8px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--rule);
}

.cart-subtotal {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 16px;
}

.cart-amount,
.cart-empty {
  padding: 24px 20px;
  font-size: 16px;
}

.cart-lines li {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 14px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--rule);
}

.cart-line-name {
  display: -webkit-box;
  overflow: hidden;
  color: var(--text);
  font-size: 12px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.cart-line-mode {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.cart-line-meta {
  margin: 4px 0 8px;
  color: var(--muted);
  font-size: 12px;
}

.cart-line-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 8px;
}

.cart-continue {
  width: calc(100% - 40px);
  margin: 16px 20px 24px;
}

/* Footer */

.footer {
  margin-top: 40px;
  color: #ddd;
}

.footer::before {
  content: "";
  display: block;
  height: 24px;
  background: url(/assets/textures/grass_block_side.png) 0 0 / 48px;
  image-rendering: pixelated;
}

.page-product .footer {
  margin-top: 0;
}

.back-to-top {
  display: block;
  width: 100%;
  padding: 14px 0;
  border: 0;
  background: var(--footer-top);
  color: #fff;
  font-size: 16px;
}

.back-to-top:hover {
  background: #485769;
}

.footer-main {
  background: var(--footer);
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, auto));
  justify-content: center;
  gap: 32px 80px;
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 20px;
}

.footer-cols h2 {
  margin-bottom: 10px;
  color: #fff;
  font-size: 16px;
}

.footer-cols li {
  margin-bottom: 8px;
  line-height: 18px;
}

.footer-cols a {
  color: #ddd;
}

.footer-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  padding: 30px 20px;
  border-top: 1px solid #3a4553;
}

.footer-logo img {
  width: 80px;
}

.footer-lang {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 12px;
  border: 1px solid #848688;
  border-radius: 8px;
  color: #ccc;
  cursor: pointer;
}

.footer-lang:focus-within {
  box-shadow: var(--focus);
}

.footer-lang select {
  padding-right: 12px;
  border: 0;
  background: transparent;
  color: #ccc;
  appearance: none;
  outline: none;
  cursor: pointer;
}

.footer-lang select option {
  color: var(--text);
}

.footer-lang .caret {
  position: absolute;
  right: 10px;
  pointer-events: none;
}

.footer-bottom {
  padding: 30px 20px 36px;
  background: var(--footer-bottom);
  font-size: 12px;
  text-align: center;
}

.footer-legal {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 24px;
  margin-bottom: 6px;
}

.footer-legal a {
  color: #ddd;
}

.footer-disclaimer {
  max-width: 640px;
  margin: 8px auto 0;
  color: #999;
}

/* Account */

.muted {
  color: var(--muted);
}

.btn-small {
  width: auto;
  min-height: 29px;
  padding: 0 14px;
}

.btn-danger {
  background: var(--low-stock);
  border-color: var(--low-stock);
  color: #fff;
}

.btn-danger:hover {
  background: #8f1f03;
  color: #fff;
}

.confirm {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.confirm.is-asking {
  padding: 8px 10px;
  border-radius: var(--radius-tile);
  background: #fff5f2;
}

.flyout-account.is-signed-in {
  width: 440px;
  text-align: left;
}

.flyout-greeting {
  margin: -2px 0 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--rule);
  color: var(--muted);
  font-size: 12px;
}

.flyout-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.flyout-columns h3 {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 400;
}

.flyout-columns .link-button {
  color: #444;
}

.page-account,
.page-checkout,
.page-admin {
  background: var(--surface);
}

.account {
  max-width: 1000px;
  margin: 0 auto;
  padding: 16px 20px 40px;
}

.account-heading {
  margin-bottom: 20px;
}

.account-heading h1 {
  font-size: 24px;
  font-weight: 400;
}

.account-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 16px;
}

.account-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  height: 100%;
  padding: 16px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  color: var(--text);
}

.account-card:hover {
  background: #f7fafa;
  color: var(--text);
  text-decoration: none;
}

.account-icon {
  flex: none;
  width: 48px;
  height: 48px;
  image-rendering: pixelated;
}

.account-card-title {
  display: block;
  margin-bottom: 4px;
  font-size: 16px;
}

.account-card-text {
  color: var(--muted);
}

.account-empty {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 24px 0;
}

.tile--icon {
  padding: 24%;
}

.tile--icon img {
  image-rendering: pixelated;
}

/* Forms */

.input {
  width: 100%;
  height: 32px;
  padding: 0 10px;
  border: 1px solid #888c8c;
  border-radius: var(--radius-tile);
  background: #fff;
  box-shadow: inset 0 1px 2px rgba(15, 17, 17, .15);
}

.input:focus {
  outline: none;
  border-color: var(--link);
  box-shadow: 0 0 0 3px #c8f3fa, inset 0 1px 2px rgba(15, 17, 17, .15);
}

.input[aria-invalid="true"] {
  border-color: #cc0c39;
}

.input[type="number"] {
  appearance: textfield;
}

.input::-webkit-inner-spin-button,
.input::-webkit-outer-spin-button {
  margin: 0;
  appearance: none;
}

.field {
  display: grid;
  gap: 4px;
}

.field-label {
  padding: 0;
  font-size: 12px;
}

.field-hint {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.field-group {
  display: grid;
  gap: 6px;
}

.field-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}

.field-row--coords {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.check {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.check input {
  width: 15px;
  height: 15px;
  margin: 0;
  accent-color: #e77600;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.form-actions .btn {
  width: auto;
  padding: 0 20px;
}

.form-error {
  color: #cc0c39;
}

.map-link {
  font-size: 12px;
}

.name-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.name-form .input {
  flex: 1 1 220px;
  max-width: 360px;
}

.name-form .btn {
  width: auto;
  padding: 0 20px;
}

.name-form .field-hint,
.name-form .form-error {
  flex-basis: 100%;
}

/* Orders */

.tabs {
  display: flex;
  gap: 24px;
  border-bottom: 1px solid var(--rule);
  overflow-x: auto;
}

.tabs a {
  flex: none;
  padding: 8px 0;
  color: var(--text);
  border-bottom: 3px solid transparent;
}

.tabs a:hover {
  text-decoration: none;
  border-bottom-color: var(--border);
}

.tabs a[aria-current] {
  border-bottom-color: #e77600;
}

.orders-count {
  margin: 14px 0;
}

.order-list {
  display: grid;
  gap: 20px;
}

.order {
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
}

.order-head {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 32px;
  margin: 0;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  background: #f0f2f2;
  color: var(--muted);
}

.order-head dt {
  text-transform: uppercase;
}

.order-head dd {
  margin: 0;
  color: var(--text);
}

.order-number {
  margin-left: auto;
  text-align: right;
}

.order-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 24px;
  padding: 18px 20px;
}

.order-status {
  font-size: 16px;
  font-weight: 400;
}

.order-status--delivered {
  color: var(--in-stock);
}

.order-status--cancelled {
  color: var(--low-stock);
}

.tracker {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  margin: 14px 0 6px;
  color: var(--muted);
}

.tracker li::before {
  content: "";
  display: block;
  height: 6px;
  margin-bottom: 6px;
  border-radius: 3px;
  background: var(--rule);
}

.tracker .is-done {
  color: var(--text);
}

.tracker .is-done::before {
  background: #067d62;
}

.order-items {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.order-item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.order-item > div {
  display: grid;
  gap: 4px;
  justify-items: start;
}

.order-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.order-actions .confirm {
  display: flex;
}

.order-hint {
  color: var(--muted);
}

/* Addresses */

.address-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.address-add {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 100%;
  min-height: 240px;
  padding: 20px;
  border: 2px dashed #c7c7c7;
  border-radius: var(--radius-card);
  color: var(--muted);
  font-size: 16px;
  text-align: center;
}

a.address-add:hover {
  border-color: var(--muted);
  color: var(--text);
  text-decoration: none;
}

.address-add.is-full {
  font-size: 12px;
}

.address-add-plus {
  font-size: 40px;
  line-height: 1;
}

.address-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 100%;
  min-height: 240px;
  padding: 16px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
}

.address-default {
  margin: -16px -20px 4px;
  padding: 8px 20px;
  border-bottom: 1px solid var(--rule);
  color: var(--muted);
}

address {
  display: flex;
  flex-direction: column;
  font-style: normal;
}

.address-notes {
  color: var(--muted);
}

.address-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 16px;
  margin-top: auto;
}

.address-editor h2 {
  margin-bottom: 16px;
  font-size: 24px;
  font-weight: 400;
}

.address-form {
  display: grid;
  gap: 16px;
  max-width: 560px;
}

/* Lists */

.lists-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.lists-nav {
  display: grid;
  gap: 12px;
}

.lists-nav ul {
  border: 1px solid var(--rule);
  border-radius: var(--radius-card);
  overflow: hidden;
}

.lists-nav li + li {
  border-top: 1px solid var(--rule);
}

.lists-nav li a {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  color: var(--text);
}

.lists-nav li a .muted {
  flex: none;
}

.lists-nav li a[aria-current] {
  background: #f0f2f2;
  box-shadow: inset 4px 0 0 #e77600;
}

.list-view {
  display: grid;
  gap: 14px;
  align-content: start;
}

.list-view > h2,
.list-title h2 {
  font-size: 24px;
  font-weight: 400;
}

.list-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rule);
}

.list-head .name-form {
  flex: 1;
}

.list-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
}

.list-item {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) 200px;
  gap: 20px;
  align-items: start;
  padding: 16px 0;
  border-bottom: 1px solid var(--rule);
}

.list-item-info {
  display: grid;
  gap: 8px;
  justify-items: start;
}

.list-item-actions {
  display: grid;
  gap: 8px;
}

/* A small centered dialog, used to pick a list */

.modal {
  width: min(440px, calc(100vw - 32px));
  padding: 0;
  border: 0;
  border-radius: var(--radius-card);
  box-shadow: 0 4px 24px rgba(0, 0, 0, .35);
}

.modal::backdrop {
  background: rgba(0, 0, 0, .5);
}

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px 10px 20px;
  border-bottom: 1px solid var(--rule);
  background: #f0f2f2;
}

.modal-head h2 {
  font-size: 16px;
  font-weight: 400;
}

.modal-head .drawer-close {
  color: var(--text);
}

.modal-body {
  display: grid;
  gap: 12px;
  padding: 16px 20px 20px;
}

.picker-lists {
  display: grid;
  gap: 8px;
}

.picker-list {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-tile);
  background: #fff;
  text-align: left;
}

.picker-list:hover {
  background: #f7fafa;
}

.picker-new {
  margin: 4px 0 -4px;
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
}

/* Login & security */

.profile {
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
}

.profile-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
}

.profile-row + .profile-row {
  border-top: 1px solid var(--rule);
}

.profile-row > div {
  display: grid;
  gap: 4px;
  flex: 1;
}

.profile-row h2 {
  font-size: 16px;
  font-weight: 400;
}

.badge-linked {
  padding: 4px 12px;
  border-radius: 100px;
  background: #e8f5ee;
  color: var(--in-stock);
}

/* Balance */

.wallet {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.wallet > section {
  display: grid;
  gap: 14px;
  align-content: start;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
}

.wallet h2 {
  font-size: 16px;
  font-weight: 400;
}

.wallet-how {
  grid-column: 1 / -1;
}

.wallet-how ol {
  padding-left: 20px;
  list-style: decimal;
}

.wallet-how li + li {
  margin-top: 6px;
}

.amounts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.amounts legend {
  margin-bottom: 8px;
}

.amount {
  display: flex;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-tile);
}

.amounts:disabled .amount {
  opacity: .6;
}

.amount input {
  position: absolute;
  opacity: 0;
}

.wallet-soon {
  color: var(--muted);
}

/* Checkout */

.checkout-head {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 60px;
  padding: 0 20px;
  background: var(--nav-belt);
}

.checkout-logo img {
  width: 110px;
}

.checkout-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 auto;
  color: #fff;
  font-size: 24px;
}

.checkout-title .icon {
  width: 20px;
  height: 20px;
  color: #ccc;
}

.checkout {
  max-width: 1150px;
  margin: 0 auto;
  padding: 20px 20px 40px;
}

.checkout-heading {
  margin-bottom: 16px;
  font-size: 24px;
  font-weight: 400;
}

.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 24px;
  align-items: start;
}

.checkout-step {
  margin-bottom: 16px;
  padding: 16px 20px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
}

.checkout-step h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 16px;
  font-weight: 400;
}

.checkout-step-number {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--nav-main);
  color: #fff;
  font-size: 12px;
}

.checkout-step-body {
  display: grid;
  gap: 12px;
  justify-items: start;
}

.checkout-step-body > * {
  max-width: 100%;
}

.address-options {
  display: grid;
  gap: 8px;
  width: 100%;
}

.address-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-tile);
  cursor: pointer;
}

.address-option:has(input:checked) {
  border-color: #e77600;
  background: #fcf5ee;
}

.address-option-text {
  display: grid;
  gap: 2px;
}

.address-option input {
  margin: 1px 0 0;
  accent-color: #e77600;
}

.checkout-bank {
  display: flex;
  align-items: center;
  gap: 8px;
}

.checkout-arrives {
  color: var(--in-stock);
}

.checkout-lines {
  width: 100%;
}

.checkout-lines li {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  gap: 14px;
  padding: 12px 0;
  border-top: 1px solid var(--rule);
}

.checkout-lines li > div {
  display: grid;
  gap: 6px;
  justify-items: start;
}

.order-item-name {
  color: var(--link);
}

.checkout-summary {
  position: sticky;
  top: 20px;
  display: grid;
  gap: 12px;
  padding: 16px 20px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
}

.checkout-summary h2 {
  font-size: 16px;
  font-weight: 400;
}

.checkout-summary dl div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 4px 0;
}

.checkout-summary dd {
  margin: 0;
}

.checkout-summary .checkout-total {
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px solid var(--rule);
  color: var(--low-stock);
  font-size: 16px;
}

.checkout-total .price {
  color: var(--low-stock);
}

.checkout-terms {
  color: var(--muted);
  text-align: center;
}

.checkout-done {
  display: grid;
  gap: 14px;
  justify-items: start;
  max-width: 640px;
  margin: 40px auto;
}

.checkout-done h1 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 400;
}

.checkout-done h1 .icon {
  width: 24px;
  height: 24px;
  color: var(--in-stock);
}

.checkout-foot {
  padding: 30px 20px 40px;
  border-top: 1px solid var(--rule);
  background: var(--surface);
  color: var(--muted);
  text-align: center;
}

.not-found {
  padding: 0 20px;
}

.not-found .btn {
  width: auto;
  padding: 0 24px;
}

.checkout-foot .footer-legal a {
  color: var(--link);
}

@media (max-width: 760px) {
  .order-body,
  .lists-layout,
  .wallet,
  .checkout-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .order-number {
    margin-left: 0;
    text-align: left;
  }

  /* The status is already the heading above, on a phone the bars alone show how far along it is */
  .tracker span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .list-item {
    grid-template-columns: 80px minmax(0, 1fr);
  }

  .list-item-actions {
    grid-column: 2;
  }

  .profile-row {
    flex-wrap: wrap;
  }

  .checkout-summary {
    position: static;
  }

  .checkout-title {
    font-size: 16px;
  }
}

/* Admin */

.admin-head {
  flex-wrap: wrap;
  height: auto;
  min-height: 60px;
  padding: 8px 20px;
  gap: 8px 20px;
}

.admin-badge {
  padding: 2px 10px;
  border-radius: 100px;
  background: var(--orange);
  color: var(--text);
}

.admin-nav {
  display: flex;
  gap: 4px;
  min-width: 0;
  margin-right: auto;
  overflow-x: auto;
  scrollbar-width: none;
}

.admin-nav a {
  flex: none;
  padding: 8px 12px;
  white-space: nowrap;
  border-radius: var(--radius-tile);
  color: #fff;
}

.admin-nav a:hover {
  background: rgba(255, 255, 255, .1);
  color: #fff;
  text-decoration: none;
}

.admin-nav a[aria-current] {
  background: var(--nav-main);
  box-shadow: inset 0 -3px 0 var(--orange);
}

.admin-account {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
  color: #ccc;
}

.admin {
  max-width: 1150px;
  margin: 0 auto;
  padding: 20px 20px 60px;
}

.admin-title {
  margin-bottom: 16px;
  font-size: 24px;
  font-weight: 400;
}

.admin-gate {
  display: grid;
  gap: 16px;
  max-width: 520px;
  margin: 40px auto;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
}

.admin-gate h1 {
  font-size: 24px;
  font-weight: 400;
}

.admin-gate-body {
  display: grid;
  gap: 16px;
  justify-items: start;
}

.admin-gate-body > .btn {
  width: auto;
  padding: 0 24px;
}

.admin-steps {
  display: grid;
  gap: 20px;
  padding-left: 20px;
  list-style: decimal;
}

.admin-steps li {
  display: grid;
  gap: 10px;
  justify-items: start;
}

.qr {
  width: 232px;
  height: 232px;
  border: 1px solid var(--rule);
  border-radius: var(--radius-tile);
}

.secret-key {
  padding: 8px 12px;
  border-radius: var(--radius-tile);
  background: #f0f2f2;
  font: 16px/1.5 var(--font-mc);
  letter-spacing: 1px;
  word-break: break-all;
  user-select: all;
}

.otp-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.otp-form .btn {
  width: auto;
  padding: 0 24px;
}

.otp-form .form-error {
  flex-basis: 100%;
}

.otp-input {
  width: 180px;
  height: 40px;
  font-size: 24px;
  letter-spacing: 4px;
  text-align: center;
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.stat {
  display: grid;
  gap: 6px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  color: var(--text);
}

.stat:hover {
  background: #f7fafa;
  color: var(--text);
  text-decoration: none;
}

.stat-value {
  font-size: 32px;
  line-height: 1;
}

.admin-panel {
  padding: 16px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
}

.admin-panel h2 {
  margin-bottom: 10px;
  font-size: 16px;
  font-weight: 400;
}

.admin-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
}

.admin-list li + li {
  border-top: 1px solid var(--rule);
}

.admin-address {
  margin: 10px 0;
}

.admin-product {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 200px auto;
  gap: 16px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
  scroll-margin-top: 16px;
}

.admin-product-info {
  display: grid;
  gap: 4px;
  justify-items: start;
}

.admin-product .stock {
  margin: 0;
}

.product-editor {
  display: grid;
  grid-column: 1 / -1;
  gap: 12px;
  max-width: 640px;
  padding: 16px;
  border-radius: var(--radius-card);
  background: #f7fafa;
}

.product-editor-price {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--rule);
  text-align: left;
  vertical-align: top;
  font-weight: 400;
}

.admin-table th {
  color: var(--muted);
}

.admin-table .is-warning td {
  background: #fff5f2;
  color: var(--low-stock);
}

@media (max-width: 760px) {
  .admin-account span {
    display: none;
  }

  .admin-nav {
    order: 1;
    flex-basis: 100%;
  }

  .admin-product {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .admin-product .stock,
  .admin-product > .btn {
    grid-column: 2;
    justify-self: start;
  }

  .product-editor-price {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-table {
    display: block;
    overflow-x: auto;
  }
}

/* Responsive */

/* The Minecraft font runs wide, so the header drops its least important parts early and keeps the search box usable */
@media (max-width: 1240px) {
  .nav-deliver {
    display: none;
  }
}

@media (max-width: 1100px) {
  .nav-orders,
  .nav-promo {
    display: none;
  }
}

@media (max-width: 960px) {
  .nav-belt {
    flex-wrap: wrap;
    height: auto;
    padding: 6px 8px 10px;
  }

  .nav-logo {
    margin-right: auto;
  }

  .nav-search {
    order: 1;
    flex-basis: 100%;
    margin: 6px 0 0;
  }

  .nav-account .nav-line-1,
  .nav-cart .nav-line-2 {
    display: none;
  }

  .nav-item {
    height: 44px;
    padding: 0 6px;
  }

  .flyout-account {
    right: -70px;
  }
}

@media (max-width: 1200px) {
  .home-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dp-grid {
    grid-template-columns: minmax(240px, 1fr) minmax(0, 1fr);
  }

  .dp-grid .buybox {
    grid-column: 2;
  }

  .dp-image {
    grid-row: span 2;
  }
}

@media (max-width: 1000px) {
  .hero-inner {
    padding: 0 70px;
  }

  .hero-title {
    font-size: 32px;
  }
}

@media (max-width: 760px) {
  .nav-logo img {
    width: 84px;
  }

  .nav-links {
    overflow-x: auto;
    scrollbar-width: none;
  }

  .nav-links::-webkit-scrollbar {
    display: none;
  }

  .hero {
    height: 420px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    height: 280px;
    padding: 24px 56px 0;
    align-items: start;
  }

  .hero-title {
    font-size: 24px;
  }

  .hero-text {
    font-size: 12px;
  }

  .hero-art {
    position: absolute;
    right: 8px;
    bottom: 150px;
    width: 180px;
    height: 150px;
    opacity: .9;
  }

  .hero-art-main { width: 120px; }
  .hero-art-side,
  .hero-art-back { width: 70px; }

  .hero-nav {
    width: 48px;
    height: 200px;
  }

  .home-grid,
  .panel {
    margin: 12px 12px 0;
    gap: 12px;
  }

  .home-grid--overlap {
    margin-top: -150px;
  }

  .card {
    min-height: 0;
  }

  .shelf-item {
    width: 150px;
  }

  .shelf-btn {
    display: none;
  }

  .dp {
    padding: 10px 16px 32px;
  }

  .dp-grid,
  .dp-info,
  .results-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .results-filters ul {
    display: flex;
    gap: 8px;
    overflow-x: auto;
  }

  .results-filters li {
    flex: none;
    margin: 0;
    padding: 6px 12px;
    border: 1px solid var(--border);
    border-radius: 100px;
  }

  .home > .home-grid,
  .home > .panel {
    width: calc(100% - 24px);
  }

  .dp-grid .buybox {
    grid-column: auto;
  }

  .dp-image {
    max-width: 420px;
    margin: 0 auto;
  }

  .footer-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }

  .footer-line {
    flex-direction: column;
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .flyout-anchor:has(.nav-account) {
    display: none;
  }

  .home-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-art {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0s !important;
    transition-duration: 0s !important;
  }
}
