:root {
  --white: #ffffff;
  --black: #050505;
  --line: rgba(0, 0, 0, 0.52);
  --muted: #858585;
  --counter-bg: #d9d9d9;
  --counter-text: #777777;

  --right-rail: clamp(42px, 5.8vw, 92px);
  --logo-gap: clamp(82px, 8.5vw, 104px);
  --cart-safe-width: 82px;

  --restid-logo-top: 55px;
  --restid-logo-width: clamp(96px, 7.6vw, 138px);
  --restid-header-height: 118px;
  --restid-page-bg: var(--white);
  --restid-page-color: var(--black);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  background: var(--restid-page-bg);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--restid-page-bg);
  color: var(--restid-page-color);
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

a,
button {
  color: inherit;
  font: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

button {
  border: 0;
  background: transparent;
  cursor: pointer;
}

a:focus,
button:focus {
  outline: none;
}

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

.brand-mark,
.shop-logo,
.site-logo {
  position: absolute;
  top: var(--restid-logo-top);
  left: 50%;
  width: var(--restid-logo-width);
  line-height: 0;
  transform: translate(-50%, -50%);
}

.brand-mark {
  z-index: 12;
}

.shop-logo,
.site-logo {
  z-index: 3;
}

.shop-header-title {
  position: absolute;
  top: 84%;
  left: calc(50% + 3px);
  z-index: 3;
  color: var(--black);
  font-size: 18px;
  line-height: 1;
  pointer-events: none;
  white-space: nowrap;
  transform: translateX(-50%);
}

.shop-header-title strong {
  display: block;
  color: var(--black);
  font-size: 1em;
  font-weight: 900;
  letter-spacing: -0.08em;
  line-height: 1;
  white-space: nowrap;
}

.shop-header-title span {
  position: absolute;
  top: 1px;
  left: calc(100% + 23px);
  color: rgba(0, 0, 0, 0.42);
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 9px;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1;
  transform: translateX(-50%);
}

.brand-mark img,
.shop-logo img,
.site-logo img {
  width: 100%;
  height: auto;
}

.shop-logo img,
.site-logo img {
  filter: invert(1);
}

.shop-header,
.site-header {
  position: relative;
  width: 100%;
  height: var(--restid-header-height);
  background: var(--white);
  z-index: var(--restid-header-z, 10);
}

.header-line {
  position: absolute;
  top: var(--restid-logo-top);
  z-index: 1;
  height: 1.5px;
  background: var(--line);
  transform: translateY(-50%);
}

.header-line-left {
  left: 37px;
  right: calc(50% + var(--logo-gap));
}

.header-line-right {
  left: calc(50% + var(--logo-gap));
  right: calc(var(--right-rail) + var(--cart-safe-width));
}

.cart-link {
  position: absolute;
  top: var(--restid-logo-top);
  right: var(--right-rail);
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: var(--black);
  transform: translateY(-50%);
}

.cart-main-icon {
  width: 35px;
  height: 35px;
  display: block;
}

.cart-count {
  min-width: 15px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border-radius: 5px;
  background: var(--counter-bg);
  color: var(--counter-text);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.back-link {
  position: absolute;
  top: 68px;
  left: 48px;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--black);
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
  opacity: 0.72;
}

.back-link:hover {
  opacity: 1;
}

.add-button.is-added {
  background: #151515;
}

.add-button[hidden],
.product-bag-control[hidden] {
  display: none;
}

.add-button,
.product-bag-control {
  animation: product-action-soft-in 180ms ease both;
}

.product-bag-control {
  width: 190px;
  height: 41px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 82px;
  align-items: center;
  gap: 0;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(224, 224, 224, 0.98);
  color: rgba(0, 0, 0, 0.78);
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.055),
    0 1px 4px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.product-bag-label {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: rgba(0, 0, 0, 0.78);
  font-size: 16.5px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  text-transform: lowercase;
  white-space: nowrap;
}

.product-bag-stepper {
  height: 29px;
  display: grid;
  grid-template-columns: 23px minmax(18px, 1fr) 23px;
  align-items: center;
  justify-self: end;
  width: 82px;
  border-radius: 999px;
  background: rgba(202, 202, 202, 0.78);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.055);
}

.product-bag-stepper button,
.product-bag-stepper span {
  height: 29px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(0, 0, 0, 0.72);
  line-height: 1;
}

.product-bag-stepper button {
  font-size: 0;
  font-weight: 600;
}

.product-bag-stepper button::before {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  font-weight: 300;
  line-height: 1;
  transform: translateY(-0.25px);
}

.product-bag-stepper [data-product-quantity-minus]::before {
  content: "−";
  font-size: 17px;
}

.product-bag-stepper [data-product-quantity-plus]::before {
  content: "+";
  font-size: 15.5px;
}

.product-bag-stepper span {
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0;
}

@keyframes product-action-soft-in {
  from {
    opacity: 0.72;
    filter: blur(1px);
    transform: scaleX(0.985);
  }

  to {
    opacity: 1;
    filter: blur(0);
    transform: scaleX(1);
  }
}

.empty-bag-toast {
  position: fixed;
  z-index: 90;
  min-width: 102px;
  padding: 10px 18px 11px;
  border-radius: 999px;
  background: rgba(238, 238, 238, 0.96);
  color: rgba(0, 0, 0, 0.62);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.09);
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.06em;
  text-transform: lowercase;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translate(-100%, -5px);
  transition: opacity 170ms ease, transform 170ms ease;
}

.empty-bag-toast.is-visible {
  opacity: 1;
  transform: translate(-100%, 0);
}

.bag-page {
  min-height: 100vh;
  background: var(--white);
  color: var(--black);
}

.bag-main {
  min-height: calc(100vh - var(--restid-header-height));
  padding: clamp(26px, 4.5vw, 62px) var(--right-rail) 88px;
}

.bag-layout {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.bag-title {
  width: max-content;
  margin-left: clamp(0px, 3vw, 44px);
  margin-bottom: clamp(32px, 5vw, 58px);
  color: var(--black);
  font-size: clamp(72px, 10vw, 142px);
  font-weight: 800;
  line-height: 0.78;
  letter-spacing: -0.075em;
  text-transform: uppercase;
}

.bag-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(288px, 360px);
  gap: clamp(36px, 5.6vw, 86px);
  align-items: start;
}

.bag-list-panel {
  min-width: 0;
}

.bag-items {
  display: grid;
  gap: 0;
}

.bag-empty {
  padding: 34px 0;
  color: rgba(0, 0, 0, 0.48);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bag-custom-note {
  max-width: 520px;
  margin: 20px 0 0;
  color: rgba(0, 0, 0, 0.58);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.55;
  letter-spacing: 0.02em;
}

.bag-custom-note-mark {
  display: block;
  margin-bottom: 1px;
  color: rgba(0, 0, 0, 0.64);
  font-size: 18px;
  font-weight: 500;
  line-height: 0.9;
}

.bag-custom-note p {
  margin: 0;
}

.bag-custom-note p + p {
  margin-top: 9px;
}

.bag-custom-note p span {
  display: block;
}

.bag-item {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) 116px 112px;
  gap: 20px;
  align-items: center;
  padding: 22px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}

.bag-item.is-custom-order {
  position: relative;
}

.bag-item.is-custom-order::before {
  content: "";
  position: absolute;
  inset: 12px -14px;
  z-index: 0;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.025);
  pointer-events: none;
}

.bag-item > * {
  position: relative;
  z-index: 1;
}

.bag-item-image {
  width: 92px;
  height: 112px;
  display: block;
  overflow: visible;
}

.bag-item-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.bag-item-main {
  min-width: 0;
}

.bag-item-name {
  display: inline-block;
  color: var(--black);
  font-size: clamp(18px, 1.65vw, 28px);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.07em;
  text-transform: uppercase;
}

.bag-item-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}

.bag-item-meta span,
.bag-item-meta strong {
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.07em;
  text-transform: none;
}

.bag-item-meta span {
  border: 1px solid rgba(0, 0, 0, 0.14);
  color: rgba(0, 0, 0, 0.56);
}

.bag-item-meta strong {
  background: var(--black);
  color: var(--white);
}

.bag-item-quantity {
  width: 96px;
  height: 34px;
  justify-self: center;
  display: grid;
  grid-template-columns: 28px minmax(24px, 1fr) 28px;
  align-items: center;
  border: 1px solid rgba(0, 0, 0, 0.16);
  border-radius: 999px;
}

.bag-item-quantity button,
.bag-item-quantity span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: rgba(0, 0, 0, 0.7);
  line-height: 1;
}

.bag-item-quantity button {
  font-size: 15px;
  font-weight: 300;
}

.bag-item-quantity span {
  font-size: 12px;
  font-weight: 700;
}

.bag-item-price {
  justify-self: end;
  display: grid;
  gap: 7px;
  color: var(--black);
  text-align: right;
}

.bag-item-price strong {
  font-size: 15px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.01em;
}

.bag-item-price span {
  color: rgba(0, 0, 0, 0.42);
  font-size: 9px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.06em;
  text-transform: lowercase;
}

.bag-summary {
  position: sticky;
  top: 28px;
  width: 100%;
  padding: 22px 22px 24px;
  border: 1px solid rgba(0, 0, 0, 0.16);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.018);
}

.bag-summary.is-empty {
  opacity: 0.46;
}

.bag-total-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  color: var(--black);
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bag-total-row strong {
  font-size: 24px;
  font-weight: 300;
  letter-spacing: -0.005em;
  white-space: nowrap;
}

.bag-checkout-button {
  width: 100%;
  height: 44px;
  margin-top: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--black);
  color: var(--white);
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.035em;
  text-transform: lowercase;
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, 0.18),
    0 1px 4px rgba(0, 0, 0, 0.18);
}

.bag-checkout-button:disabled {
  opacity: 0.36;
  cursor: default;
}

.order-page {
  min-height: 100vh;
  background: var(--white);
  color: var(--black);
}

.order-main {
  min-height: calc(100vh - var(--restid-header-height));
  padding: clamp(4px, 2.6vw, 34px) var(--right-rail) 92px;
}

.order-layout {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.order-title {
  width: min(920px, 100%);
  margin-left: clamp(0px, 3vw, 44px);
  margin-bottom: clamp(34px, 4.6vw, 58px);
  color: var(--black);
  font-size: clamp(56px, 7.8vw, 116px);
  font-weight: 800;
  line-height: 0.82;
  letter-spacing: -0.075em;
  text-transform: lowercase;
}

.order-content {
  display: grid;
  grid-template-columns: minmax(0, 680px) minmax(302px, 380px);
  gap: clamp(38px, 6vw, 92px);
  align-items: start;
}

.order-form {
  min-width: 0;
}

.order-form-section {
  margin-bottom: 50px;
}

.order-section-title {
  margin-bottom: 24px;
  color: rgba(0, 0, 0, 0.82);
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}

.order-field-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.order-field {
  min-width: 0;
  display: grid;
  gap: 0;
}

.order-field-wide {
  grid-column: auto;
}

.order-field span {
  color: rgba(0, 0, 0, 0.48);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.035em;
  text-transform: lowercase;
}

.required-mark {
  color: rgba(0, 0, 0, 0.32);
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0;
}

.order-input {
  width: 100%;
  min-height: 30px;
  border: 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 0;
  background: transparent;
  color: var(--black);
  font: inherit;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.01em;
  -webkit-appearance: none;
  appearance: none;
}

.order-input:focus {
  border-bottom-color: rgba(0, 0, 0, 0.78);
  outline: none;
}

.order-textarea {
  min-height: 58px;
  padding-top: 8px;
  resize: vertical;
}

.order-contact-preferred {
  position: relative;
  max-width: 560px;
  margin-top: 34px;
}

.order-contact-title {
  display: inline-block;
  position: relative;
  margin-bottom: 15px;
  color: rgba(0, 0, 0, 0.48);
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.035em;
  text-transform: lowercase;
}

.order-contact-branch {
  position: relative;
  width: min(100%, 520px);
  display: grid;
  gap: 8px;
  padding-left: 0;
}

.order-contact-branch::before {
  content: none;
}

.order-contact-row {
  position: relative;
  display: grid;
  grid-template-columns: 104px minmax(0, 218px) auto;
  gap: 12px;
  align-items: end;
}

.order-contact-row::before {
  content: none;
}

.order-contact-check,
.order-same-toggle {
  display: inline-flex;
  align-items: center;
  color: rgba(0, 0, 0, 0.62);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: lowercase;
  cursor: pointer;
}

.order-contact-check {
  min-height: 30px;
  gap: 9px;
}

.order-contact-check input,
.order-same-toggle input {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  margin: 0;
  accent-color: var(--black);
}

.order-contact-input {
  min-height: 30px;
}

.order-contact-input.is-autofilled {
  color: rgba(0, 0, 0, 0.32);
}

.order-contact-input.is-contact-inactive {
  border-bottom-color: rgba(0, 0, 0, 0.12);
  color: rgba(0, 0, 0, 0.24);
}

.order-same-toggle {
  min-height: 30px;
  gap: 6px;
  padding-bottom: 6px;
  color: rgba(0, 0, 0, 0.44);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.order-contact-check input:disabled,
.order-same-toggle input:disabled {
  opacity: 0.34;
  cursor: default;
}

.order-contact-check.is-locked {
  cursor: default;
}

.order-flow-note {
  max-width: 430px;
  margin: 8px 0 18px;
  color: rgba(0, 0, 0, 0.25);
  font-size: 8px;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.order-submit {
  width: min(100%, 260px);
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--black);
  color: var(--white);
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.035em;
  text-transform: lowercase;
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, 0.18),
    0 1px 4px rgba(0, 0, 0, 0.18);
}

.order-submit:disabled {
  opacity: 0.36;
  cursor: default;
}

.order-status {
  width: min(100%, 430px);
  margin-top: 16px;
  padding: 12px 15px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.045);
  color: rgba(0, 0, 0, 0.58);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.02em;
  text-transform: lowercase;
}

.order-status[data-tone="success"] {
  background: rgba(0, 0, 0, 0.08);
  color: var(--black);
}

.order-status[data-tone="error"] {
  background: rgba(0, 0, 0, 0.1);
  color: rgba(0, 0, 0, 0.78);
}

.order-summary {
  position: sticky;
  top: 28px;
  width: 100%;
  padding: 22px;
  border: 1px solid rgba(0, 0, 0, 0.16);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.018);
}

.order-summary-head,
.order-summary-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
}

.order-summary-head {
  margin-bottom: 16px;
}

.order-summary-head h2 {
  color: var(--black);
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.order-summary-head span,
.order-summary-total span {
  color: rgba(0, 0, 0, 0.45);
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.order-summary-items {
  display: grid;
}

.order-empty {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.12);
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
  color: rgba(0, 0, 0, 0.48);
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.order-empty a {
  color: var(--black);
}

.order-summary-item {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto auto;
  gap: 14px;
  align-items: center;
  padding: 15px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.order-summary-item.is-custom-order {
  margin: 6px -10px 0;
  padding-right: 10px;
  padding-left: 10px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.035);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.order-summary-image {
  width: 54px;
  height: 68px;
  display: block;
  overflow: visible;
}

.order-summary-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.order-summary-main {
  min-width: 0;
}

.order-summary-name {
  display: inline-block;
  color: var(--black);
  font-size: 13px;
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.055em;
  text-transform: uppercase;
}

.order-summary-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.order-summary-meta span,
.order-summary-meta strong {
  min-height: 19px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 8px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.07em;
  text-transform: none;
}

.order-summary-meta span {
  border: 1px solid rgba(0, 0, 0, 0.12);
  color: rgba(0, 0, 0, 0.52);
}

.order-summary-meta strong {
  background: rgba(0, 0, 0, 0.08);
  color: rgba(0, 0, 0, 0.74);
}

.order-summary-price {
  justify-self: end;
  color: var(--black);
  font-size: 12px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.005em;
  white-space: nowrap;
}

.order-summary-quantity {
  justify-self: end;
  color: rgba(0, 0, 0, 0.46);
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.order-summary-total {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(0, 0, 0, 0.16);
}

.order-summary-total strong {
  color: var(--black);
  font-size: 25px;
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.005em;
  white-space: nowrap;
}

.order-edit-link {
  min-height: 34px;
  width: max-content;
  margin: 16px auto 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border: 1px solid rgba(0, 0, 0, 0.16);
  border-radius: 999px;
  color: rgba(0, 0, 0, 0.64);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: lowercase;
}

.confirmation-page {
  min-height: 100vh;
  background: var(--white);
  color: var(--black);
}

.confirmation-main {
  min-height: calc(100vh - var(--restid-header-height));
  padding: clamp(6px, 3vw, 42px) var(--right-rail) 92px;
}

.confirmation-layout {
  width: min(980px, 100%);
  margin: 0 auto;
}

.confirmation-title {
  width: min(860px, 100%);
  margin-bottom: clamp(38px, 5vw, 68px);
  color: var(--black);
  font-size: clamp(58px, 8.2vw, 126px);
  font-weight: 800;
  line-height: 0.82;
  letter-spacing: -0.075em;
  text-transform: lowercase;
}

.confirmation-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: clamp(40px, 7vw, 118px);
  align-items: start;
}

.confirmation-copy {
  max-width: 530px;
  display: grid;
  gap: 18px;
  color: rgba(0, 0, 0, 0.62);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: -0.01em;
}

.confirmation-copy strong {
  color: var(--black);
  font-weight: 700;
}

.confirmation-note {
  margin-top: 16px;
  color: rgba(0, 0, 0, 0.34);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.confirmation-panel {
  padding: 22px;
  border: 1px solid rgba(0, 0, 0, 0.16);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.018);
}

.confirmation-panel h2 {
  margin-bottom: 22px;
  color: var(--black);
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.confirmation-facts {
  display: grid;
  gap: 14px;
}

.confirmation-fact {
  display: grid;
  gap: 5px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.confirmation-fact span {
  color: rgba(0, 0, 0, 0.42);
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.confirmation-fact strong {
  color: var(--black);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
  word-break: break-word;
}

.confirmation-actions {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.confirmation-action {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border: 1px solid rgba(0, 0, 0, 0.16);
  border-radius: 999px;
  color: rgba(0, 0, 0, 0.68);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: lowercase;
}

.shop-footer {
  width: 100%;
  padding: 24px 32px 30px;
  background: #050505;
  color: rgba(255, 255, 255, 0.34);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  column-gap: 24px;
  text-align: center;
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.08em;
}

.footer-beta,
.footer-credit,
.footer-email {
  display: block;
}

.footer-beta {
  grid-column: 2;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.12em;
}

.footer-credit {
  grid-column: 2;
  color: rgba(255, 255, 255, 0.22);
}

.footer-email {
  grid-column: 3;
  grid-row: 1 / span 2;
  align-self: center;
  justify-self: end;
  color: #ffffff;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.045em;
  text-decoration: none;
}

.footer-heart {
  display: inline-block;
  margin-left: 0.2em;
  font-size: 1.45em;
  line-height: 0;
  letter-spacing: 0;
  transform: translateY(0.12em);
}

@media (max-width: 1180px) {
  :root {
    --right-rail: clamp(34px, 5.6vw, 70px);
    --cart-safe-width: 76px;
    --restid-logo-top: 50px;
    --restid-logo-width: clamp(88px, 7.8vw, 100px);
    --restid-header-height: 112px;
  }

  .header-line-left {
    left: 30px;
    right: calc(50% + 82px);
  }

  .header-line-right {
    left: calc(50% + 82px);
  }

  .cart-main-icon {
    width: 32px;
    height: 32px;
  }

  .back-link {
    top: 62px;
    left: 44px;
  }
}

@media (max-width: 900px) {
  :root {
    --right-rail: clamp(30px, 5vw, 48px);
    --cart-safe-width: 70px;
    --restid-header-height: 108px;
  }

  .header-line-left {
    left: 22px;
    right: calc(50% + 76px);
  }

  .header-line-right {
    left: calc(50% + 76px);
  }

  .back-link {
    top: 62px;
    left: 58px;
  }

  .bag-content {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .order-content {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .confirmation-content {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .bag-summary {
    position: static;
    width: min(100%, 420px);
    margin-left: auto;
  }

  .order-summary {
    position: static;
    width: min(100%, 480px);
    margin-left: auto;
  }

  .confirmation-panel {
    width: min(100%, 480px);
    margin-left: auto;
  }
}

@media (max-width: 760px) {
  :root {
    --restid-logo-width: 84px;
    --restid-header-height: 104px;
  }

  .shop-header-title {
    top: 84%;
    left: calc(50% + 2px);
    font-size: 14px;
  }

  .shop-header-title strong {
    font-size: 1em;
  }

  .shop-header-title span {
    top: 0;
    left: calc(100% + 18px);
    font-size: 8px;
  }

  .header-line-left {
    left: 16px;
    right: calc(50% + 68px);
  }

  .header-line-right {
    display: block;
    left: calc(50% + 68px);
    right: 86px;
  }

  .cart-link {
    right: 24px;
  }

  .cart-main-icon {
    width: 30px;
    height: 30px;
  }

  .back-link {
    top: 69px;
    left: 22px;
  }

  .bag-main {
    padding: 18px 22px 64px;
  }

  .order-main {
    padding: 6px 22px 68px;
  }

  .confirmation-main {
    padding: 6px 22px 68px;
  }

  .bag-layout {
    width: auto;
  }

  .order-layout {
    width: auto;
  }

  .confirmation-layout {
    width: auto;
  }

  .bag-title,
  .bag-empty,
  .order-title,
  .confirmation-title {
    margin-left: 0;
  }

  .bag-title {
    margin-bottom: 28px;
    font-size: 68px;
  }

  .order-title {
    margin-bottom: 32px;
    font-size: 52px;
  }

  .confirmation-title {
    margin-bottom: 34px;
    font-size: 54px;
  }

  .order-field-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .order-field-wide {
    grid-column: auto;
  }

  .order-submit {
    width: 100%;
  }

  .order-contact-row {
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 8px 12px;
  }

  .order-contact-check {
    align-self: end;
  }

  .order-same-toggle {
    grid-column: 2;
    min-height: 20px;
    padding-bottom: 0;
  }

  .bag-items {
    gap: 0;
  }

  .bag-item {
    grid-template-columns: 76px minmax(0, 1fr) auto;
    grid-template-areas:
      "image main main"
      "image quantity price";
    gap: 12px 14px;
    align-items: center;
    padding: 18px 0;
  }

  .bag-item.is-custom-order::before {
    inset: 8px -9px;
  }

  .bag-item-image {
    grid-area: image;
    width: 76px;
    height: 94px;
  }

  .bag-item-name {
    font-size: 21px;
  }

  .bag-item-main {
    grid-area: main;
  }

  .bag-item-meta {
    margin-top: 9px;
  }

  .bag-item-quantity {
    grid-area: quantity;
    justify-self: start;
    width: 92px;
    height: 32px;
  }

  .bag-item-price {
    grid-area: price;
    justify-self: end;
    align-self: center;
  }

  .bag-summary {
    width: 100%;
    margin-top: 30px;
    padding: 18px;
  }

  .order-summary {
    width: 100%;
    padding: 18px;
  }

  .confirmation-panel {
    width: 100%;
    padding: 18px;
  }

  .order-summary-item {
    grid-template-columns: 48px minmax(0, 1fr) auto;
  }

  .order-summary-image {
    width: 48px;
    height: 60px;
  }

  .order-summary-quantity {
    grid-column: 3;
    grid-row: 1;
    align-self: end;
  }

  .order-summary-price {
    grid-column: 3;
    grid-row: 2;
    justify-self: end;
    margin-top: -6px;
  }

  .shop-footer {
    grid-template-columns: 1fr;
    justify-items: center;
    row-gap: 12px;
  }

  .footer-beta,
  .footer-credit,
  .footer-email {
    grid-column: 1;
  }

  .footer-email {
    justify-self: center;
  }

}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
