.patch-maker-page {
  background: #fff;
}

.patch-maker-hero {
  padding-bottom: 58px;
}

.patch-maker-page .section-head.vertical {
  max-width: 780px;
  margin: 0 auto 32px;
  text-align: center;
}

.patch-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.patch-item {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 16px 35px rgba(7, 26, 51, .07);
  transition: transform .24s ease, border-color .24s ease, box-shadow .24s ease;
}

.patch-item:hover,
.patch-item.active {
  transform: translateY(-3px);
  border-color: var(--gold);
  box-shadow: 0 20px 42px rgba(7, 26, 51, .12);
}

.patch-item img {
  width: 100%;
  aspect-ratio: 1.18;
  object-fit: cover;
  background: #f6f7f9;
}

.patch-item h3 {
  min-height: 58px;
  margin: 0;
  padding: 18px 18px 10px;
  font-size: 17px;
}

.patch-item-empty {
  justify-content: flex-end;
  min-height: 236px;
  background:
    linear-gradient(135deg, rgba(249, 197, 37, .24), transparent 44%),
    linear-gradient(145deg, #112033, #27435e);
  color: #fff;
}

.patch-select-btn,
.delivery-card,
.option-item {
  cursor: pointer;
}

.patch-select-btn {
  width: calc(100% - 36px);
  margin: auto 18px 18px;
  border: 0;
  border-radius: 8px;
  padding: 12px 16px;
  background: var(--gold);
  color: #071a33;
  font-weight: 800;
}

.maker-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: start;
}

.maker-panel,
.order-summary {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(7, 26, 51, .08);
}

.maker-panel {
  padding: 30px;
}

.maker-panel > p {
  color: var(--muted);
}

.maker-section {
  margin-top: 30px;
}

.maker-section h3 {
  margin-bottom: 16px;
  font-size: 20px;
}

.size-row,
.form-grid.two-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.size-row {
  grid-template-columns: 1.1fr 1fr auto 1fr;
  align-items: end;
  margin-top: 24px;
}

.multiply {
  display: grid;
  place-items: center;
  height: 48px;
  color: var(--muted);
  font-size: 22px;
  font-weight: 800;
}

.maker-form label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 700;
}

.maker-form input,
.maker-form select,
.maker-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 14px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.delivery-options,
.option-grid {
  display: grid;
  gap: 14px;
}

.delivery-options {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.option-grid.three-cols {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.option-grid.two-cols {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.delivery-card,
.option-item {
  min-height: 86px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px;
  background: #fff;
  color: var(--ink);
  text-align: left;
  transition: transform .22s ease, border-color .22s ease, background .22s ease, box-shadow .22s ease;
}

.delivery-card {
  display: grid;
  gap: 8px;
}

.delivery-card span {
  color: var(--muted);
}

.option-item {
  display: grid;
  place-items: center;
  text-align: center;
}

.option-item img {
  width: 86px;
  height: 68px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 12px;
}

.option-item > span {
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  margin-bottom: 10px;
  border-radius: 50%;
  background: #f7f0cf;
  color: #071a33;
  font-weight: 800;
}

.option-item h4 {
  margin: 0;
  font-size: 15px;
}

.delivery-card:hover,
.option-item:hover,
.delivery-card.active,
.option-item.active {
  transform: translateY(-2px);
  border-color: var(--gold);
  background: #fffbed;
  box-shadow: 0 14px 28px rgba(7, 26, 51, .08);
}

.custom-quantity-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  margin-top: 14px;
}

.terms {
  display: grid;
  gap: 10px;
}

.terms label {
  display: flex;
  grid-template-columns: none;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-weight: 600;
}

.terms input {
  width: auto;
}

.maker-submit {
  width: 100%;
  margin-top: 30px;
  justify-content: center;
}

.order-summary {
  position: sticky;
  top: 96px;
  padding: 26px;
}

.order-summary h2 {
  margin-bottom: 18px;
  font-size: 25px;
}

.summary-group {
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.summary-group:first-of-type {
  border-top: 0;
}

.summary-group h3 {
  margin-bottom: 10px;
  font-size: 16px;
}

.summary-group p {
  margin: 8px 0 0;
  color: var(--muted);
}

.summary-group strong {
  color: var(--ink);
}

@media (max-width: 1050px) {
  .patch-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .maker-layout {
    grid-template-columns: 1fr;
  }

  .order-summary {
    position: static;
  }
}

@media (max-width: 760px) {
  .patch-grid,
  .option-grid.three-cols,
  .option-grid.two-cols,
  .delivery-options,
  .size-row,
  .form-grid.two-cols,
  .custom-quantity-box {
    grid-template-columns: 1fr;
  }

  .maker-panel {
    padding: 22px;
  }

  .multiply {
    height: auto;
  }
}

.maker-response-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: #f7f9fc;
}

.response-card {
  max-width: 620px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 42px;
  background: #fff;
  text-align: center;
  box-shadow: 0 22px 55px rgba(7, 26, 51, .1);
}

.response-card h1 {
  margin-bottom: 14px;
}

.response-card p {
  color: var(--muted);
}

.response-card .btn {
  margin: 20px 6px 0;
}
