/* Navigation state belongs to the URL. Motion only reinforces the direction. */
#sheet-back {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding-inline: 0 12px;
  color: var(--pine);
  font-size: 13px;
}

#sheet-back[hidden] { display: none; }
#sheet-back:not([hidden]) + #drawer-tag { margin-right: auto; }

.bag-confirmation { padding-block: 9px 6px; }
.bag-confirm-mark {
  display: grid;
  place-items: center;
  width: 45px;
  height: 45px;
  margin-bottom: 21px;
  border: 1px solid #9eab96;
  border-radius: 50%;
  color: var(--pine);
  background: #edf0e5;
}
.bag-confirm-mark svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.bag-confirmation .sheet-title { margin-bottom: 21px; }
.bag-confirm-item {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-block: 18px;
  border-block: 1px solid var(--line);
}
.bag-confirm-item img {
  width: clamp(82px,25%,108px);
  aspect-ratio: 4/5;
  object-fit: cover;
}
.bag-confirm-item p {
  margin: 0 0 9px;
  font: 25px/1.05 var(--serif);
  letter-spacing: -.035em;
}
.bag-confirm-item span {
  display: block;
  margin-block: 3px;
  font-size: 13px;
  color: var(--muted);
}
.bag-confirm-item strong {
  display: block;
  margin-top: 9px;
  font-size: 15px;
  font-weight: 600;
}
.bag-confirm-actions {
  display: grid;
  gap: 10px;
  margin-top: 25px;
}
.bag-confirm-actions button { min-height: 46px; }
#bag-announcement {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
@media (prefers-reduced-motion: no-preference) {
  .bag-confirm-mark path {
    stroke-dasharray: 24;
    animation: lapera-check .35s ease-out both;
  }
}
@keyframes lapera-check {
  from { stroke-dashoffset: 24; }
  to { stroke-dashoffset: 0; }
}
