.util-btn--cart {
  padding: 0.35rem 0.55rem;
  color: #1a1a1a;
}

.util-btn--cart:hover {
  background: #9fd8cb;
  color: #1a1a1a;
  text-decoration: none;
}

.util-btn__count {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
  text-transform: none;
}

.cart-drawer[hidden] {
  display: none;
}

.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 90;
}

.cart-drawer__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  background: rgba(22, 22, 22, 0.72);
  cursor: pointer;
}

.cart-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(36rem, calc(100% - 2.5rem));
  display: flex;
  flex-direction: column;
  padding: 1.25rem 1.25rem 1.5rem;
  background: #fff;
  color: #1a1a1a;
  border-left: var(--rule);
  border-radius: 0;
  box-shadow: none;
  font-family: var(--font-sans);
}

.cart-drawer__bar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem;
  padding-bottom: 1rem;
  border-bottom: var(--rule);
}

.cart-drawer__mark,
.cart-drawer__title {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: #1a1a1a;
}

.cart-drawer__icon {
  position: relative;
  display: inline-flex;
}

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

.cart-drawer__count {
  position: absolute;
  top: -0.4rem;
  right: -0.55rem;
  min-width: 1.05rem;
  height: 1.05rem;
  padding: 0 0.2rem;
  border-radius: 999px;
  background: #1a1a1a;
  color: #fff;
  font-size: 0.625rem;
  font-weight: 600;
  line-height: 1.05rem;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.cart-drawer__close {
  margin-left: auto;
  border: 0;
  padding: 0;
  background: none;
  color: #1a1a1a;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 0;
  box-shadow: none;
}

.cart-drawer__body {
  flex: 1;
  min-height: 0;
  overflow: auto;
}

.cart-empty {
  margin: 1rem 0 0;
  color: #1a1a1a;
}

.cart-lines {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cart-line {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr);
  gap: 0.75rem 1rem;
  align-items: start;
  padding: 1rem 0;
  background: #fff;
  border-bottom: var(--rule);
  border-radius: 0;
  box-shadow: none;
}

.cart-line__photo {
  display: block;
  width: 4.5rem;
  aspect-ratio: 4 / 5;
  object-fit: contain;
  background: #fff;
  border-radius: 0;
}

.cart-line__photo--empty {
  border: var(--rule);
}

.cart-line__name {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 400;
  line-height: 1.25;
  color: #1a1a1a;
}

.cart-line__form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.drawer-lines {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
}

.drawer-line {
  display: grid;
  grid-template-columns: 7rem minmax(0, 1fr);
  gap: 0.9rem;
  align-items: start;
  padding: 0.85rem;
  background: #fff;
  border: 1px solid #e3e1d8;
  border-radius: 8px;
  box-shadow: none;
}

.drawer-line__photo {
  display: block;
  width: 7rem;
  aspect-ratio: 4 / 5;
  object-fit: contain;
  background: #fff;
  border-radius: 4px;
}

.drawer-line__photo--empty {
  border: var(--rule);
}

.drawer-line__form {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-width: 0;
}

.drawer-line__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.drawer-line__name {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 400;
  line-height: 1.25;
  color: #1a1a1a;
}

.drawer-line__trash {
  display: inline-flex;
  flex: 0 0 auto;
  border: 0;
  padding: 0;
  background: none;
  color: #1a1a1a;
  cursor: pointer;
  border-radius: 0;
  box-shadow: none;
}

.drawer-line__trash .icon {
  width: 18px;
  height: 18px;
}

.drawer-line__meta {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.45rem;
  color: #1a1a1a;
}

.drawer-line__details p {
  margin: 0;
}

.drawer-line__details p + p {
  margin-top: 0.2rem;
}

.drawer-line__total {
  margin: 0;
}

.cart-drawer__subtotal {
  margin: 1.15rem 0 0;
  color: #1a1a1a;
  font-weight: 700;
}

.cart-drawer__note {
  margin: 0.45rem 0 0;
  color: #1a1a1a;
  font-size: var(--text-sm);
  font-weight: 400;
  text-align: center;
}

.cart-drawer__actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.cart-drawer__actions .btn {
  width: 100%;
  min-height: 3.5rem;
  padding: 1.05rem 1.4rem;
  background: var(--color-ink);
  color: #fff;
  border-color: var(--color-ink);
  border-radius: 0;
  box-shadow: none;
  text-transform: none;
  letter-spacing: 0.04em;
}

.cart-drawer__actions .btn:hover {
  background: #9fd8cb;
  color: #1a1a1a;
  border-color: #9fd8cb;
}

.cart-line__step,
.cart-line__remove {
  border: 0;
  padding: 0;
  background: none;
  color: #1a1a1a;
  cursor: pointer;
  font-family: var(--font-sans);
}

.cart-line__step {
  width: 1.5rem;
  font-size: 1.25rem;
  line-height: 1;
}

.cart-line__qty,
.cart-line__total,
.cart-deal,
.cart-subtotal {
  color: #1a1a1a;
  font-weight: 400;
}

.cart-line__remove {
  font-size: var(--text-sm);
}

.cart-deal,
.cart-subtotal {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: 0;
  padding: 1rem 0 0;
}

.cart-subtotal {
  padding-bottom: 1rem;
  border-bottom: var(--rule);
}

.cart-page {
  padding: var(--space-8) 0 var(--space-9);
}

.cart-page__copy {
  max-width: 720px;
}

.cart-page h1 {
  margin-bottom: var(--space-5);
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: var(--text-h1);
  color: #1a1a1a;
}

.cart-continue {
  margin-top: var(--space-5);
}

.cart-page .form-grid {
  margin-top: var(--space-6);
}

.cart-page #checkout-card {
  border-bottom: 1px solid var(--color-ink);
  padding: 0.65rem 0 0.75rem;
}
