/* Лист «Давайте проверим заказ» по кнопке «Оформить заказ» в корзине (js/cutlery.js →
   #co-confirm в body): на телефоне — шторка снизу, на ПК (.co-confirm--desktop) — окно
   по центру, как «Адрес доставки». */
/* Над корзиной ПК (9998), подложкой (10005) и окнами витрины (10010) */
.co-confirm { position: fixed; inset: 0; z-index: 10030; }
.co-confirm[hidden], .co-confirm-page[hidden] { display: none; }
.co-confirm-backdrop {
  position: absolute; inset: 0; background: rgba(0, 0, 0, .4);
  animation: coConfirmFade .2s ease;
}
.co-confirm-box {
  position: absolute; left: 0; right: 0; bottom: 0;
  max-height: 90vh; overflow-y: auto;
  padding: 10px 16px calc(16px + env(safe-area-inset-bottom));
  border-radius: 20px 20px 0 0; background: rgba(var(--white), 1);
  animation: coConfirmUp .3s cubic-bezier(.32, .72, 0, 1);
}
.co-confirm-pill { width: 36px; height: 4px; margin: 0 auto 12px; border-radius: 3px; background: rgba(0, 0, 0, .15); }
.co-confirm-title {
  margin: 0 44px 14px; font-size: 20px; font-weight: 700; line-height: 1.25;
  text-align: center; color: rgba(var(--dark-text), 1);
}
.co-confirm-sub { margin: -6px 0 14px; font-size: 13px; text-align: center; color: rgba(var(--light-text), 1); }
.co-confirm-pay-note { margin: 14px 0 8px; }
.co-confirm-row {
  display: flex; align-items: flex-start; gap: 12px;
  margin-bottom: 8px; padding: 12px 14px; border-radius: 14px;
  background: rgba(var(--box-bg), 1);
}
.co-confirm-row i { font-size: 20px; line-height: 1.2; color: rgba(var(--theme-color), 1); }
.co-confirm-row b { display: block; font-size: 14px; font-weight: 600; color: rgba(var(--dark-text), 1); }
.co-confirm-row span { font-size: 12px; color: rgba(var(--light-text), 1); }
.co-confirm-edit {
  display: block; width: 100%; margin: 14px 0 8px; padding: 12px;
  border: 0; border-radius: 12px; background: rgba(var(--box-bg), 1);
  font-size: 14px; font-weight: 600; color: rgba(var(--dark-text), 1); cursor: pointer;
}
.co-confirm-main { margin: 0; }
.co-confirm-back, .co-confirm-x {
  position: absolute; top: 22px; z-index: 1;
  width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: #f4f2ef; color: rgba(var(--dark-text), 1); font-size: 20px; cursor: pointer;
}
.co-confirm-back { left: 12px; }
.co-confirm-x { right: 16px; top: 16px; }
.co-confirm-dots { display: flex; justify-content: center; gap: 6px; margin-top: 12px; }
.co-confirm-dots i { width: 22px; height: 3px; border-radius: 2px; background: #e5e7eb; }
.co-confirm-dots i.is-active { background: rgba(var(--theme-color), 1); }

/* Экран 2 — плитки те же, что в корзине (квадратные, checkout-cutlery.css); фон «3+» — серый,
   т.к. лист белый */
.co-confirm .co-cut-more { background: rgba(var(--box-bg), 1); }
.co-confirm .co-cut-step button { background: rgba(var(--white), 1); }

/* ПК */
.co-confirm--desktop .co-confirm-box {
  left: 50%; right: auto; top: 50%; bottom: auto;
  width: 460px; max-width: calc(100vw - 64px); max-height: calc(100vh - 64px);
  padding: 20px 22px 18px; border-radius: 18px;
  transform: translate(-50%, -50%);
  box-shadow: 0 24px 62px rgba(0, 0, 0, .24);
  animation: coConfirmPop .2s ease;
}
.co-confirm--desktop .co-confirm-back { top: 16px; left: 16px; }

@keyframes coConfirmFade { from { opacity: 0; } }
@keyframes coConfirmUp { from { transform: translateY(100%); } }
@keyframes coConfirmPop { from { opacity: 0; transform: translate(-50%, -46%); } }
