.cart-list {
  display: grid;
  gap: 12px;
}

[data-clear-cart] {
  margin-top: -2px;
}

.cart-item {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(79, 95, 47, .14);
  border-radius: var(--radius-md);
  background: var(--color-surface);
}

.cart-item__media {
  overflow: hidden;
  width: 68px;
  height: 68px;
  border-radius: var(--radius-md);
  background: var(--color-stone-light);
}

.cart-item__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item__body {
  display: grid;
  min-width: 0;
  gap: 2px;
  align-content: start;
}

.cart-item__body strong,
.cart-item__body small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cart-item__body small {
  color: var(--color-muted);
  font-weight: 800;
}

.cart-item__body span {
  color: var(--color-purple-deep);
  font-weight: 900;
}

.cart-item__actions {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 42px 1fr 42px 42px;
  align-items: center;
  gap: 8px;
}

.cart-item__actions strong {
  text-align: center;
}

.cart-total-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border-radius: var(--radius-md);
  background: var(--color-stone-light);
  color: var(--color-green-deep);
  font-weight: 900;
}

.cart-summary-stack {
  display: grid;
  gap: 10px;
}

.cart-track-card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  border: 1px solid rgba(79, 95, 47, .14);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  color: var(--color-green-deep);
  padding: 10px 14px;
  font-weight: 900;
  text-align: center;
}

.cart-summary-stack .cart-total-line {
  background: color-mix(in srgb, var(--color-green-deep) 7%, var(--color-surface));
}

.cart-invoice {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(79, 95, 47, .14);
  border-radius: var(--radius-md);
  background: var(--color-surface);
}

.cart-invoice .cart-total-line {
  padding: 10px;
}

.weight-rule-note {
  display: grid;
  gap: 3px;
  margin: -2px 2px 2px;
  color: var(--color-muted);
  font-size: .78rem;
  font-weight: 800;
  line-height: 1.35;
}

.weight-rule-note a {
  color: var(--color-purple-deep);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cart-total-line strong {
  color: var(--color-purple-deep);
}

.cart-total-line--final {
  border: 2px solid color-mix(in srgb, var(--color-purple-main) 18%, transparent);
}

.delivery-method {
  display: grid;
  gap: 8px;
  padding: 0;
  border: 0;
}

.delivery-method legend {
  margin-bottom: 2px;
  color: var(--color-muted);
  font-weight: 900;
}

.delivery-option {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 10px 12px;
  border: 1px solid rgba(79, 95, 47, .18);
  border-radius: var(--radius-md);
  background: var(--color-surface);
}

.delivery-option input {
  width: 18px;
  height: 18px;
  accent-color: var(--color-purple-main);
}

.delivery-option span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.delivery-option strong {
  color: var(--color-green-deep);
}

.delivery-option small {
  color: var(--color-purple-deep);
  font-weight: 900;
}

.delivery-option.is-disabled {
  opacity: .48;
}

.stopdesk-hint {
  display: grid;
  gap: 3px;
  line-height: 1.45;
}

.location-input {
  position: relative;
  display: block;
}

.location-input .input {
  padding-inline-end: 54px;
}

.location-input__button {
  position: absolute;
  top: 50%;
  right: 7px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--color-purple-main);
  color: #fff;
  transform: translateY(-50%);
}

.location-input__button .icon {
  color: #fff;
}

[dir="rtl"] .location-input .input {
  padding-inline: 54px 14px;
}

[dir="rtl"] .location-input__button {
  right: auto;
  left: 7px;
}

.location-input__button:disabled {
  opacity: .62;
}

.location-status {
  margin-top: -4px;
  color: var(--color-green-deep);
  font-weight: 900;
}

.location-status.is-error {
  color: var(--color-danger);
}

.map-picker {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 12px;
  background: rgba(43, 42, 34, .58);
}

.map-picker[hidden] {
  display: none;
}

.map-picker__dialog {
  display: grid;
  width: min(100%, 440px);
  max-height: calc(100vh - 24px);
  gap: 10px;
  overflow: auto;
  padding: 12px;
  border-radius: var(--radius-md);
  background: var(--color-surface);
  box-shadow: 0 18px 44px rgba(43, 42, 34, .28);
}

.map-picker__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.map-picker__head h2 {
  font-size: 1.15rem;
  line-height: 1.1;
}

.map-picker__search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.map-picker__canvas {
  width: 100%;
  height: min(56vh, 430px);
  min-height: 320px;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--color-stone-light);
}

.map-picker__status {
  margin: 0;
  font-weight: 900;
}

.map-picker__status.is-error {
  color: var(--color-danger);
}

.map-picker__actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
}

.has-modal-open {
  overflow: hidden;
}

.checkout-form {
  margin-bottom: calc(var(--bottom-nav-height) + 10px);
}

.copy-field {
  display: grid;
  gap: 6px;
  text-align: left;
}

.copy-field span {
  color: var(--color-muted);
  font-weight: 900;
}

[dir="rtl"] .copy-field span {
  text-align: right;
}

.copy-field .input {
  color: var(--color-purple-deep);
  font-weight: 900;
}

.confirmation-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.tracking-card,
.tracking-list,
.tracking-step {
  display: grid;
  gap: 10px;
}

.tracking-card {
  padding: 14px;
  border-radius: var(--radius-md);
  background: var(--color-surface);
  box-shadow: var(--shadow-soft);
}

.tracking-card div,
.tracking-step {
  display: grid;
  gap: 3px;
}

.tracking-card span,
.tracking-step span,
.tracking-step small {
  color: var(--color-muted);
  font-weight: 800;
}

.tracking-card strong,
.tracking-step strong {
  color: var(--color-green-deep);
}

.tracking-step {
  padding: 12px;
  border: 1px solid rgba(79, 95, 47, .14);
  border-radius: var(--radius-md);
  background: var(--color-surface);
}
