/* Wysuwany koszyk: pusty koszyk z propozycjami i wersja na telefon (panel od góry). */

/* ---------- Pusty koszyk ---------- */
.xs-drawer__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 12px 0 4px;
  text-align: center;
  font-size: 14px;
  color: var(--xs-muted);
}

.xs-drawer__empty strong {
  font-size: 18px;
  font-weight: 800;
  color: var(--xs-text);
}

.xs-drawer__empty-icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: var(--xs-bg);
}

.xs-drawer__suggest {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.xs-drawer__suggest-title {
  font-size: 15px;
  font-weight: 700;
}

.xs-drawer__suggest-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-top: 1px solid var(--xs-line-soft);
}

.xs-drawer__suggest-image {
  width: 56px;
  height: 56px;
  border-radius: var(--xs-radius);
}

.xs-drawer__suggest-name {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  line-height: 1.35;
}

.xs-drawer__suggest-name strong {
  display: block;
  margin-top: 2px;
  font-size: 15px;
}

.xs-drawer__suggest-cart {
  width: 40px;
  height: 40px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: var(--xs-radius);
  background: var(--xs-brand);
  color: var(--xs-text);
}

.xs-drawer a.added_to_cart.wc-forward {
  display: none;
}

/* ---------- Telefon: panel od góry, nachodzi na czarny pasek ---------- */
@media (max-width: 900px) {
  .xs-drawer {
    top: 8px;
    left: 8px;
    right: 8px;
    width: auto;
    max-width: none;
    max-height: calc(100vh - 16px);
    max-height: calc(100dvh - 16px);
    gap: 14px;
    padding: 18px 16px 20px;
    border-radius: 24px;
    transform: translateY(-24px);
  }

  .xs-drawer__handle {
    display: block;
    align-self: center;
    width: 44px;
    height: 5px;
    margin: -6px 0 2px;
    border-radius: 3px;
    background: #d6d4cf;
  }

  .xs-drawer__head h2 {
    font-size: 18px;
  }

  .xs-drawer__body {
    gap: 14px;
  }

  .xs-drawer__image {
    width: 72px;
    height: 84px;
  }

  .xs-drawer__name {
    font-size: 13px;
  }

  .xs-drawer__total strong {
    font-size: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .xs-drawer,
  .xs-drawer__backdrop {
    transition: none;
  }
}
