:root {
  color-scheme: light;
  --yellow: #ffdb00;
  --yellow-dark: #ccaf00;
  --ink: #111;
  --ink-2: #2d2d2d;
  --muted: #767676;
  --line: #dedede;
  --panel: #f7f7f7;
  --soft: #f1f1f1;
  --green: #198754;
  --danger: #dc3b3b;
  --font-display: FuturaPT, "Avenir Next Condensed", "Arial Black", Arial, sans-serif;
  --font-body: Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: var(--font-body);
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.topbar {
  align-items: center;
  background: #101010;
  color: #fff;
  display: flex;
  gap: 28px;
  height: 96px;
  padding: 0 28px;
}

.hamburger,
.icon-button,
.cart-button {
  align-items: center;
  background: transparent;
  border: 0;
  color: inherit;
  display: inline-flex;
  height: 42px;
  justify-content: center;
  min-width: 42px;
}

.hamburger span,
.hamburger::before,
.hamburger::after {
  background: currentColor;
  border-radius: 2px;
  content: "";
  display: block;
  height: 3px;
  position: absolute;
  width: 26px;
}

.hamburger {
  position: relative;
}

.hamburger::before {
  transform: translateY(-9px);
}

.hamburger::after {
  transform: translateY(9px);
}

.nav-link,
.utility-link {
  color: #f4f4f4;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: .5px;
  text-decoration: none;
}

.nav-link:hover,
.utility-link:hover {
  color: var(--yellow);
}

.brand {
  color: #fff;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -1px;
  line-height: .8;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  text-shadow: 2px 2px 0 #484848, 3px 3px 0 var(--yellow);
  transform: rotate(-4deg);
}

.utility {
  align-items: center;
  display: flex;
  gap: 18px;
  margin-left: auto;
}

.utility-sep {
  background: #484848;
  height: 24px;
  width: 1px;
}

.page {
  min-height: calc(100vh - 96px);
}

.breadcrumbs {
  color: #333;
  font-size: 15px;
  margin: 24px auto 0;
  max-width: 1380px;
  padding: 0 24px;
}

.breadcrumbs a {
  color: #1546a0;
}

.landing {
  display: grid;
  gap: 38px;
  grid-template-columns: minmax(0, 1.65fr) minmax(390px, .9fr);
  margin: 30px auto 70px;
  max-width: 1380px;
  padding: 0 24px;
}

.hero-media {
  align-items: center;
  background:
    radial-gradient(circle at 35% 40%, rgba(255, 219, 0, .45), transparent 18%),
    linear-gradient(145deg, #2a2a2a, #101010 70%);
  border-radius: 24px;
  display: flex;
  min-height: 620px;
  overflow: hidden;
  padding: 54px;
  position: relative;
}

.sample-sticker-pile {
  filter: drop-shadow(0 22px 24px rgba(0,0,0,.3));
  height: min(62vw, 560px);
  margin: auto;
  position: relative;
  width: min(62vw, 560px);
}

.sample-sticker {
  align-items: center;
  background: #fff;
  border: 10px solid #f6f6f6;
  border-radius: 28px;
  box-shadow: 0 16px 38px rgba(0,0,0,.3);
  color: #111;
  display: flex;
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 900;
  height: 170px;
  justify-content: center;
  position: absolute;
  text-align: center;
  width: 260px;
}

.sample-sticker:nth-child(1) {
  background: #ffdb00;
  left: 54px;
  top: 72px;
  transform: rotate(-16deg);
}

.sample-sticker:nth-child(2) {
  background: #52b6ff;
  right: 36px;
  top: 180px;
  transform: rotate(14deg);
}

.sample-sticker:nth-child(3) {
  background: #fff;
  bottom: 58px;
  left: 116px;
  transform: rotate(-4deg);
}

.dots {
  bottom: 28px;
  display: flex;
  gap: 10px;
  left: 50%;
  position: absolute;
  transform: translateX(-50%);
}

.dots span {
  background: rgba(255,255,255,.35);
  border-radius: 50%;
  height: 12px;
  width: 12px;
}

.dots span:first-child {
  background: #fff;
}

.copy h1 {
  font-family: var(--font-display);
  font-size: 46px;
  line-height: 1;
  margin: 0 0 12px;
}

.rating {
  color: #1b1b1b;
  font-size: 14px;
  margin-bottom: 18px;
}

.copy p {
  color: #333;
  font-size: 18px;
  line-height: 1.45;
}

.config-panel {
  align-self: start;
}

.section {
  margin-top: 24px;
}

.section h3 {
  font-family: var(--font-display);
  font-size: 23px;
  margin: 0 0 12px;
}

.select-like,
.choice-grid label,
.qty-grid label,
.summary-field,
.comment-box {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.select-like {
  align-items: center;
  display: flex;
  font-size: 17px;
  justify-content: space-between;
  padding: 17px 18px;
}

.choice-grid,
.qty-grid {
  display: grid;
  gap: 0;
  overflow: hidden;
}

.choice-grid {
  grid-template-columns: repeat(2, 1fr);
}

.material-grid {
  grid-template-columns: repeat(2, 1fr);
}

.qty-grid {
  grid-template-columns: repeat(3, 1fr);
}

.choice-grid label,
.qty-grid label {
  align-items: center;
  border-radius: 0;
  display: flex;
  gap: 10px;
  min-height: 62px;
  padding: 14px 16px;
  position: relative;
}

.choice-grid input,
.qty-grid input {
  height: 1px;
  opacity: 0;
  position: absolute;
  width: 1px;
}

.choice-grid label.selected,
.qty-grid label.selected {
  background: #efefef;
  box-shadow: inset 0 0 0 2px #c7c7c7;
  font-weight: 700;
}

.swatch {
  border: 1px solid rgba(0,0,0,.15);
  border-radius: 50%;
  display: inline-block;
  flex: 0 0 auto;
  height: 34px;
  width: 34px;
}

.material-name,
.qty-name {
  display: block;
}

.qty-price {
  color: #333;
  display: block;
  margin-top: 4px;
}

.qty-discount {
  color: var(--green);
  font-weight: 700;
}

.cta {
  align-items: center;
  background: var(--yellow);
  border: 0;
  border-radius: 8px;
  color: #111;
  display: inline-flex;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 900;
  height: 58px;
  justify-content: center;
  margin-top: 28px;
  width: 100%;
}

.cta:hover {
  background: var(--yellow-dark);
}

.uploader input {
  display: none;
}

.editor {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px 90px;
  height: calc(100vh - 96px);
  min-height: 720px;
}

.stage {
  background: #f8f8f8;
  overflow: hidden;
  position: relative;
}

.stage.dark {
  background: #252525;
}

.stage-controls {
  display: flex;
  left: 64px;
  position: absolute;
  top: 34px;
  z-index: 30;
}

.segmented {
  background: #efefef;
  border: 1px solid #ccc;
  border-radius: 6px;
  display: flex;
  overflow: hidden;
}

.segmented button {
  background: transparent;
  border: 0;
  color: #333;
  min-width: 100px;
  padding: 17px 28px;
}

.segmented button.active {
  background: #fff;
  font-weight: 800;
}

.edit-button {
  align-items: center;
  background: #333;
  border: 0;
  border-radius: 6px;
  color: #fff;
  display: flex;
  font-weight: 800;
  gap: 10px;
  padding: 18px 24px;
  position: absolute;
  right: 64px;
  top: 34px;
  z-index: 30;
}

.preview-wrap {
  align-items: center;
  display: flex;
  height: 100%;
  justify-content: center;
  padding: 120px 64px 140px;
  perspective: 1100px;
  perspective-origin: 50% 45%;
}

.sticker-object {
  cursor: grab;
  display: grid;
  height: min(68vmin, 680px);
  max-height: 86%;
  max-width: 86%;
  place-items: center;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 180ms cubic-bezier(.2,.8,.2,1), filter 180ms ease;
  width: min(68vmin, 680px);
  will-change: transform;
  z-index: 2;
}

.sticker-object.dragging {
  cursor: grabbing;
  filter: saturate(1.05) contrast(1.03);
  transition: none;
}

.sticker-svg {
  display: block;
  height: 100%;
  max-height: 100%;
  max-width: 100%;
  overflow: visible;
  width: 100%;
}

.sticker-shadow {
  filter: drop-shadow(0 18px 24px rgba(0,0,0,.18));
}

.cutline-edit-point {
  cursor: grab;
  fill: #fff;
  stroke: #222;
  stroke-width: 2;
}

.cutline-edit-point:active {
  cursor: grabbing;
}

.effect-panel {
  align-items: center;
  background: rgba(255,255,255,.9);
  border: 1px solid #d4d4d4;
  border-radius: 10px;
  bottom: 34px;
  display: flex;
  gap: 18px;
  left: 50%;
  min-height: 80px;
  padding: 14px 28px;
  position: absolute;
  transform: translateX(-50%);
  z-index: 5;
}

.dark .effect-panel {
  background: rgba(38,38,38,.88);
  border-color: #4a4a4a;
  color: #fff;
}

.effect-panel button {
  background: transparent;
  border: 0;
  border-left: 1px solid #d4d4d4;
  color: inherit;
  min-height: 50px;
  padding: 0 24px;
}

.effect-dot {
  background: conic-gradient(from 0deg, #111, #777, #fff, #111);
  border-radius: 50%;
  height: 20px;
  width: 20px;
}

.summary {
  border-left: 1px solid #e0e0e0;
  overflow: auto;
  padding: 28px 20px;
}

.summary h2 {
  font-family: var(--font-display);
  font-size: 24px;
  margin: 0 0 24px;
}

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

.summary-row {
  align-items: center;
  border: 0;
  border-bottom: 1px solid #e5e5e5;
  display: grid;
  grid-template-columns: 44px 1fr;
  text-align: left;
  width: 100%;
  min-height: 58px;
  padding: 8px 12px;
}

.summary-row:last-child {
  border-bottom: 0;
}

.summary-row.selected {
  background: #e8e8e8;
  font-weight: 800;
}

.summary-thumb {
  border-radius: 50%;
  height: 34px;
  width: 34px;
}

.summary-fields {
  border: 1px solid var(--line);
  border-radius: 4px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 14px;
}

.summary-field {
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  padding: 8px 10px;
}

.summary-field:last-child {
  border-right: 0;
}

.summary-field label {
  color: #555;
  display: block;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .8px;
  text-transform: uppercase;
}

.summary-field input {
  border: 0;
  font-size: 17px;
  outline: 0;
  width: 100%;
}

.comment-box {
  border-radius: 0 0 4px 4px;
  border-top: 0;
  display: block;
  padding: 10px;
  width: 100%;
}

.comment-box label {
  color: #555;
  display: block;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .8px;
  text-transform: uppercase;
}

.comment-box textarea {
  border: 0;
  min-height: 44px;
  outline: 0;
  resize: vertical;
  width: 100%;
}

.price-card {
  border: 1px solid var(--line);
  border-radius: 4px;
  margin-top: 14px;
  padding: 18px 22px;
}

.price-line,
.total-line {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.total-line {
  border-top: 1px solid var(--line);
  font-family: var(--font-display);
  font-weight: 900;
  margin-top: 18px;
  padding-top: 18px;
}

.total-price {
  font-size: 34px;
}

.toolbar {
  background: #333;
  display: grid;
  grid-auto-rows: 1fr;
}

.tool {
  align-items: center;
  background: #333;
  border: 0;
  border-bottom: 1px solid #4b4b4b;
  color: #d7d7d7;
  display: flex;
  flex-direction: column;
  font-size: 12px;
  gap: 8px;
  justify-content: center;
}

.tool.active {
  background: #f0f0f0;
  color: #333;
}

.tool-icon {
  font-size: 30px;
  line-height: 1;
}

.tool-panel {
  background: rgba(255,255,255,.96);
  border-left: 1px solid #d9d9d9;
  bottom: 0;
  box-shadow: -18px 0 40px rgba(0,0,0,.08);
  padding: 28px;
  position: absolute;
  right: 90px;
  top: 96px;
  width: 330px;
  z-index: 10;
}

.tool-panel-close {
  background: transparent !important;
  color: #333 !important;
  margin: 0 !important;
  padding: 0 !important;
  position: absolute;
  right: 18px;
  top: 14px;
}

.tool-panel h3 {
  font-family: var(--font-display);
  font-size: 24px;
  margin: 0 0 12px;
}

.tool-panel p {
  color: #555;
  line-height: 1.45;
}

.tool-panel button,
.small-btn {
  background: #2d2d2d;
  border: 0;
  border-radius: 32px;
  color: #fff;
  font-weight: 800;
  margin-top: 10px;
  padding: 10px 16px;
}

.notice {
  background: #222;
  border-radius: 6px;
  bottom: 84px;
  color: #fff;
  left: 50%;
  line-height: 1.35;
  max-width: 320px;
  padding: 16px 18px;
  position: absolute;
  text-align: center;
  transform: translateX(-50%);
  z-index: 8;
}

.processing {
  align-items: center;
  background: rgba(255,255,255,.8);
  bottom: 0;
  display: flex;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 900;
  justify-content: center;
  left: 0;
  position: fixed;
  right: 0;
  top: 96px;
  z-index: 50;
}

.hidden {
  display: none !important;
}

.sr-only {
  clip: rect(0, 0, 0, 0);
  border: 0;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
}

@media (max-width: 980px) {
  .topbar {
    gap: 14px;
    height: 76px;
    padding: 0 18px;
  }

  .nav-link,
  .utility {
    display: none;
  }

  .brand {
    font-size: 22px;
  }

  .landing {
    grid-template-columns: 1fr;
  }

  .hero-media {
    min-height: 390px;
    padding: 20px;
  }

  .sample-sticker-pile {
    transform: scale(.72);
  }

  .editor {
    grid-template-columns: 1fr;
    height: auto;
  }

  .stage {
    height: 68vh;
    min-height: 520px;
  }

  .summary {
    border-left: 0;
  }

  .toolbar {
    bottom: 0;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    height: 72px;
    left: 0;
    position: fixed;
    right: 0;
    z-index: 20;
  }

  .tool {
    border-bottom: 0;
    border-right: 1px solid #4b4b4b;
  }

  .tool-icon {
    font-size: 22px;
  }

  .tool-panel {
    bottom: 72px;
    left: 0;
    right: 0;
    top: auto;
    width: auto;
  }
}
