/* ====================================================================
   БЪРЗ ПОДБОР (themes/clarity/templates/swipe.html, swipe.js)

   Имотите един по един като карти. На телефон страницата е на цял екран
   върху шапката и футъра: горе лента и филтри, по средата картата, долу
   бутоните. На компютър е колона под шапката на сайта.

   Цветовете са от темата (--accent, --ink, --line), затова върви с всеки
   скин. Двата знака върху картата: „харесвам“ в акцента, „не“ в червено.
==================================================================== */
/* променливите важат и за листовете - <dialog> стои извън .ct-swipe */
.ct-swipe,
.ct-swipe-sheet {
  --sw-nope: #d64545;
  --sw-radius: 22px;
  --sw-bg: color-mix(in srgb, var(--accent) 7%, #f5f6f8);
}
.ct-swipe {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 460px;
  margin: 0 auto;
  padding: 18px 14px 28px;
  color: var(--ink);
}

/* --- горната лента --- */
.ct-swipe-top { display: flex; align-items: center; gap: 10px; }
.ct-swipe-heading { flex: 1 1 auto; min-width: 0; }
.ct-swipe-heading h1 { margin: 0; font-size: 1.15rem; font-weight: 800; line-height: 1.2; letter-spacing: -.01em; }
.ct-swipe-heading p { margin: 2px 0 0; font-size: .8rem; line-height: 1.3; color: var(--ink-2); }
.ct-swipe-round {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(16, 24, 32, .12);
  cursor: pointer;
  text-decoration: none;
  transition: background .15s, color .15s;
}
.ct-swipe-round:hover { background: var(--accent-soft); color: var(--accent); }
.ct-swipe-round .material-icons,
.ct-swipe-round .material-icons-outlined { font-size: 21px; }

/* --- филтрите: на компютър се пренасят на втори ред, на телефон са един ред, който се плъзга настрани --- */
.ct-swipe-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.ct-swipe-filters::-webkit-scrollbar { display: none; }
.ct-swipe-deal {
  flex: 0 0 auto;
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line);
}
.ct-swipe-deal label { margin: 0; cursor: pointer; }
.ct-swipe-deal input { position: absolute; opacity: 0; pointer-events: none; }
.ct-swipe-deal span {
  display: block;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: .86rem;
  font-weight: 700;
  color: var(--ink-2);
  white-space: nowrap;
  transition: background .15s, color .15s;
}
.ct-swipe-deal input:checked + span { background: var(--ink); color: #fff; }
.ct-swipe-deal input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.ct-swipe-select { flex: 0 0 auto; margin: 0; }
.ct-swipe-select select {
  max-width: 180px;
  height: 40px;
  padding: 0 30px 0 14px;
  border: 0;
  border-radius: 999px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2344525c' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 12px center;
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--ink);
  font: inherit;
  font-size: .86rem;
  font-weight: 600;
  text-overflow: ellipsis;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}
.ct-swipe-select select.is-set { box-shadow: inset 0 0 0 2px var(--accent); }
.ct-swipe-select select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* --- сцената с картите --- */
.ct-swipe-stage { position: relative; display: flex; flex-direction: column; }
.ct-swipe-deck {
  position: relative;
  width: 100%;
  /* на компютър картата се свива, докато бутоните под нея останат в екрана под шапката на сайта */
  height: min(600px, max(360px, calc(100vh - 462px)));
}
.ct-swipe-card {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: var(--sw-radius);
  background: #1b232b;
  color: #fff;
  box-shadow: 0 2px 6px rgba(16, 24, 32, .08), 0 24px 44px -24px rgba(16, 24, 32, .55);
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  cursor: grab;
  will-change: transform;
}
.ct-swipe-card.is-dragging { cursor: grabbing; }
.ct-swipe-card.is-moving { transition: transform .32s cubic-bezier(.2, .8, .3, 1), opacity .32s; }
.ct-swipe-card.is-leaving { z-index: 5; pointer-events: none; }
.ct-swipe-card.is-next { transform: scale(.955) translateY(12px); pointer-events: none; }
.ct-swipe-card.is-next .ct-swipe-info,
.ct-swipe-card.is-next .ct-swipe-bars { opacity: .6; }

.ct-swipe-photo,
.ct-swipe-photo img { position: absolute; inset: 0; width: 100%; height: 100%; }
.ct-swipe-photo { background-size: cover; background-position: center; }
.ct-swipe-photo img { object-fit: cover; opacity: 0; transition: opacity .25s; pointer-events: none; -webkit-user-drag: none; }
.ct-swipe-photo img.is-ready { opacity: 1; }
.ct-swipe-card::after {              /* тъмнее отгоре за лентичките и отдолу за текста */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 14, 18, .5) 0, rgba(10, 14, 18, 0) 16%, rgba(10, 14, 18, 0) 44%, rgba(10, 14, 18, .88) 100%);
  pointer-events: none;
}

/* имот без снимка: светъл фон в цвета на сайта, голяма икона на типа имот и „Без снимка“;
   долу картата пак тъмнее, за да се четат цената и данните */
.ct-swipe-card.is-nophoto { background: linear-gradient(165deg, color-mix(in srgb, var(--accent) 16%, #fff) 0%, color-mix(in srgb, var(--accent) 6%, #eef0f3) 100%); }
.ct-swipe-card.is-nophoto::after { background: linear-gradient(180deg, rgba(16, 24, 32, 0) 0, rgba(16, 24, 32, 0) 46%, rgba(16, 24, 32, .86) 100%); }
.ct-swipe-nophoto {
  position: absolute;
  inset: 0 0 46% 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: color-mix(in srgb, var(--accent) 62%, #44525c);
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .02em;
}
.ct-swipe-nophoto .material-icons-outlined {
  display: grid !important;
  place-items: center;
  width: 104px;
  height: 104px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .7);
  font-size: 54px;
}

/* лентичките на снимките: по една на снимка, запълнени са минатите и сегашната */
.ct-swipe-bars { position: absolute; z-index: 2; top: 10px; left: 12px; right: 12px; display: flex; gap: 4px; pointer-events: none; }
.ct-swipe-bars i { flex: 1 1 0; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .38); }
.ct-swipe-bars i.is-on { background: #fff; }

.ct-swipe-badges { position: absolute; z-index: 2; top: 24px; left: 12px; right: 60px; display: flex; flex-wrap: wrap; gap: 6px; pointer-events: none; }
.ct-swipe-badges span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(16, 24, 32, .72);
  color: #fff;
  font-size: .76rem;
  font-weight: 700;
  line-height: 1.2;
  backdrop-filter: blur(6px);
}
.ct-swipe-badges .material-icons { font-size: 15px; }

/* „Харесвам“ / „Не“ - появяват се, докато картата се тегли натам */
.ct-swipe-stamp {
  position: absolute;
  z-index: 3;
  top: 58px;
  padding: 6px 14px;
  border: 3px solid currentColor;
  border-radius: 12px;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: .02em;
  text-transform: uppercase;
  opacity: 0;
  pointer-events: none;
  background: rgba(16, 24, 32, .28);
}
.ct-swipe-stamp.is-like { left: 16px; color: #fff; border-color: #fff; background: var(--accent); transform: rotate(-12deg); }
.ct-swipe-stamp.is-nope { right: 16px; color: #fff; border-color: #fff; background: var(--sw-nope); transform: rotate(12deg); }

.ct-swipe-info { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: 18px 64px 18px 18px; pointer-events: none; }
.ct-swipe-price { display: block; font-size: 1.7rem; font-weight: 800; line-height: 1.15; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.ct-swipe-price small { font-size: .9rem; font-weight: 600; opacity: .85; }
.ct-swipe-info h2 { margin: 6px 0 0; font-size: 1.05rem; font-weight: 700; line-height: 1.3; color: #fff; }
.ct-swipe-sub { margin: 2px 0 0; font-size: .86rem; line-height: 1.35; opacity: .9; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ct-swipe-place { display: flex; align-items: center; gap: 4px; margin: 6px 0 0; font-size: .86rem; opacity: .92; }
.ct-swipe-place .material-icons-outlined { font-size: 17px; }
.ct-swipe-facts { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; padding: 0; list-style: none; }
.ct-swipe-facts li {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .16);
  font-size: .8rem;
  font-weight: 600;
  backdrop-filter: blur(6px);
}
.ct-swipe-facts .material-icons-outlined { font-size: 15px; }
.ct-swipe-more {
  position: absolute;
  z-index: 4;
  right: 14px;
  bottom: 18px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .2);
  color: #fff;
  backdrop-filter: blur(6px);
  transition: background .15s;
}
.ct-swipe-more:hover { background: rgba(255, 255, 255, .34); color: #fff; }
.ct-swipe-more .material-icons-outlined { font-size: 22px; }

/* --- зареждане и край на списъка --- */
.ct-swipe-state {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 24px;
  border-radius: var(--sw-radius);
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line);
  text-align: center;
}
.ct-swipe-state[hidden] { display: none; }
.ct-swipe-state h2 { margin: 0; font-size: 1.25rem; font-weight: 800; }
.ct-swipe-state p { margin: 0; max-width: 30ch; color: var(--ink-2); font-size: .92rem; line-height: 1.45; }
.ct-swipe-state-ico { font-size: 44px; color: var(--accent); }
.ct-swipe-state-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 8px 20px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}
.ct-swipe-state-btn.is-main { margin-top: 6px; background: var(--accent); color: #fff; text-decoration: none; }
.ct-swipe-state-btn.is-main .material-icons { font-size: 19px; }
.ct-swipe-state-btn[hidden] { display: none; }

/* краят на подбора: покана към брокера. Двата празни края центрират съдържанието, а когато
   то не се побира (нисък телефон), кутията се превърта отгоре, без да реже заглавието. */
.ct-swipe-end { justify-content: flex-start; gap: 8px; padding: 18px 20px; overflow-y: auto; }
.ct-swipe-end::before,
.ct-swipe-end::after { content: ""; flex: 1 1 0; }
.ct-swipe-end > * { flex: 0 0 auto; }
.ct-swipe-end p { max-width: 34ch; }
.ct-swipe-end .ct-swipe-state-btn.is-main,
.ct-swipe-state-btn.is-line { width: min(100%, 300px); }
.ct-swipe-state-btn.is-line { box-shadow: inset 0 0 0 2px var(--accent); color: var(--accent); text-decoration: none; }
.ct-swipe-state-btn.is-line:hover { background: var(--accent-soft); }
.ct-swipe-state-btn .material-icons { font-size: 19px; }
.ct-swipe-state p.ct-swipe-end-sub { font-size: .82rem; color: var(--ink-3); }
.ct-swipe-end-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 4px; }
.ct-swipe-end-links .ct-swipe-state-btn { min-height: 40px; padding: 6px 12px; font-size: .88rem; font-weight: 600; color: var(--ink-2); }

.ct-swipe-spin { width: 34px; height: 34px; border: 3px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: ctSwipeSpin .8s linear infinite; }
@keyframes ctSwipeSpin { to { transform: rotate(360deg); } }
.ct-swipe-keys { margin: 12px 0 0; text-align: center; font-size: .8rem; color: var(--ink-3); }

/* --- „Кажете ни защо не“: за няколко секунди над бутоните, върху долния край на картата --- */
.ct-swipe-why {
  position: absolute;             /* над бутоните, без да мести картата */
  z-index: 6;
  left: 0;
  right: 0;
  bottom: calc(100% + 12px);
  width: max-content;
  max-width: 100%;
  margin: 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 6px 16px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font: inherit;
  font-size: .86rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 24px -12px rgba(16, 24, 32, .7);
  animation: ctSwipeUp .25s ease;
}
.ct-swipe-why[hidden] { display: none; }
.ct-swipe-why .material-icons-outlined { font-size: 18px; }
@keyframes ctSwipeUp { from { opacity: 0; transform: translateY(8px); } }

/* --- бутоните: върни, не, ИСКАМ ОГЛЕД, сърце, брояч --- */
.ct-swipe-actions { position: relative; display: flex; align-items: center; justify-content: center; gap: 10px; }
.ct-swipe-btn {
  position: relative;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--ink-2);
  box-shadow: 0 1px 3px rgba(16, 24, 32, .1), 0 10px 22px -14px rgba(16, 24, 32, .5);
  cursor: pointer;
  text-decoration: none;
  transition: transform .12s, background .15s, color .15s;
}
.ct-swipe-btn .material-icons,
.ct-swipe-btn .material-icons-outlined { font-size: 26px; }
.ct-swipe-btn:active { transform: scale(.92); }
.ct-swipe-btn:disabled { opacity: .45; cursor: default; box-shadow: none; }
.ct-swipe-btn.is-undo,
.ct-swipe-btn.is-count { width: 44px; height: 44px; }
.ct-swipe-btn.is-undo .material-icons,
.ct-swipe-btn.is-count .material-icons-outlined { font-size: 21px; }
.ct-swipe-btn.is-nope { color: var(--sw-nope); }
.ct-swipe-btn.is-nope:hover { background: var(--sw-nope); color: #fff; }
.ct-swipe-btn.is-like { color: var(--accent); }
.ct-swipe-btn.is-like:hover { background: var(--accent); color: #fff; }
.ct-swipe-btn.is-count { color: var(--ink); }
.ct-swipe-btn.is-count.has-favorites { color: var(--accent); }
.ct-swipe-btn.is-count b {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: .72rem;
  font-weight: 800;
  line-height: 20px;
  text-align: center;
}
.ct-swipe-btn.is-count b[hidden] { display: none; }
.ct-swipe-cta {
  flex: 1 1 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  min-height: 54px;
  padding: 8px 18px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-size: 1rem;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 14px 26px -14px var(--accent);
  transition: transform .12s, filter .15s;
}
.ct-swipe-cta:hover { filter: brightness(.94); }
.ct-swipe-cta:active { transform: scale(.97); }
.ct-swipe-cta:disabled { opacity: .5; cursor: default; }
.ct-swipe-cta .material-icons { font-size: 21px; }
.ct-swipe-btn:focus-visible,
.ct-swipe-cta:focus-visible,
.ct-swipe-round:focus-visible,
.ct-swipe-why:focus-visible,
.ct-swipe-more:focus-visible,
.ct-swipe-state-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.ct-swipe-card:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* --- листовете: „Искам оглед“ и „Как работи“ --- */
.ct-swipe-sheet {
  width: min(420px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  padding: 22px 20px 20px;
  border: 0;
  border-radius: 22px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 30px 70px -30px rgba(16, 24, 32, .7);
  overflow-y: auto;
}
.ct-swipe-sheet::backdrop { background: rgba(16, 24, 32, .55); backdrop-filter: blur(2px); }
.ct-swipe-sheet h2 { display: flex; align-items: center; gap: 8px; margin: 0 40px 6px 0; font-size: 1.25rem; font-weight: 800; }
.ct-swipe-sheet h2 .material-icons { color: var(--accent); }
.ct-swipe-sheet-x { position: absolute; top: 12px; right: 12px; box-shadow: none; background: var(--paper-2); }
.ct-swipe-sheet-ad { margin: 0 0 6px; font-weight: 700; }
.ct-swipe-sheet-ad:empty { display: none; }
.ct-swipe-sheet-lead { margin: 0 0 14px; color: var(--ink-2); font-size: .92rem; line-height: 1.45; }
.ct-swipe-sheet form label { display: block; margin: 12px 0 6px; font-size: .86rem; font-weight: 700; }
.ct-swipe-sheet form label small { font-weight: 500; color: var(--ink-2); }
.ct-swipe-sheet form input[type="tel"],
.ct-swipe-sheet form input[type="text"] {
  width: 100%;
  height: 50px;
  padding: 0 14px;
  border: 0;
  border-radius: 12px;
  background: var(--paper-2);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--ink);
  font: inherit;
  font-size: 16px;                /* под 16px iOS приближава страницата при фокус */
}
.ct-swipe-sheet form input:focus { outline: none; background: #fff; box-shadow: inset 0 0 0 2px var(--accent); }
.ct-swipe-sheet-check { display: flex !important; align-items: flex-start; gap: 8px; font-weight: 500 !important; line-height: 1.4; }
.ct-swipe-sheet-check input { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 1px; accent-color: var(--accent); }
.ct-swipe-sheet-error { margin: 14px 0 0; padding: 10px 12px; border-radius: 10px; background: color-mix(in srgb, var(--sw-nope) 10%, #fff); color: #9c2b2b; font-size: .9rem; font-weight: 600; }
.ct-swipe-sheet-error[hidden] { display: none; }
.ct-swipe-sheet .ct-swipe-cta { width: 100%; margin-top: 18px; }
.ct-swipe-sheet-ok { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 18px 8px 8px; text-align: center; font-weight: 600; }
.ct-swipe-sheet-ok[hidden] { display: none; }
.ct-swipe-sheet-ok .material-icons { font-size: 46px; color: var(--accent); }
.ct-swipe-sheet-ok p { margin: 0; }
.ct-swipe-sheet-ok .ct-swipe-state-btn { margin-top: 4px; }

/* --- листът в края на подбора: „Опиши мечтания имот“ / „Обсъди любимите с брокер“ --- */
.ct-swipe-wish-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 44px 10px 0;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.ct-swipe-wish-kicker .material-icons { font-size: 14px; }
.ct-swipe-wish h2 { margin-right: 0; }
/* надписът, под него големият бутон за диктуване, под него полето за писане */
.ct-swipe-wish-head { display: flex; flex-direction: column; gap: 8px; margin: 0 0 8px; }
.ct-swipe-sheet form .ct-swipe-wish-head label { margin: 0; }
.ct-swipe-wish-head > span:empty { display: none; }   /* браузър без разпознаване на реч: бутон няма */
.ct-swipe-wish-mic {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  min-height: 46px;
  padding: 6px 16px 6px 12px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-size: .88rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 10px 18px -12px var(--accent);
  transition: background .15s, transform .15s;
}
.ct-swipe-wish-mic:active { transform: scale(.97); }
.ct-swipe-wish-mic:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.ct-swipe-wish-mic .material-icons { font-size: 20px; }
.ct-swipe-wish-mic .when-on { display: none; }
.ct-swipe-wish-mic.is-on { background: var(--sw-nope); box-shadow: none; animation: ctSwipeMic 1.2s ease-in-out infinite; }
.ct-swipe-wish-mic.is-on .when-on { display: inline; }
.ct-swipe-wish-mic.is-on .when-off { display: none; }
@keyframes ctSwipeMic { 50% { box-shadow: 0 0 0 7px color-mix(in srgb, var(--sw-nope) 22%, transparent); } }
.ct-swipe-sheet form textarea,
.ct-swipe-sheet form input[type="email"] {
  width: 100%;
  border: 0;
  border-radius: 12px;
  background: var(--paper-2);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--ink);
  font: inherit;
  font-size: 16px;                /* под 16px iOS приближава страницата при фокус */
}
.ct-swipe-sheet form input[type="email"] { height: 50px; padding: 0 14px; }
.ct-swipe-sheet form textarea { display: block; min-height: 96px; padding: 12px 14px; line-height: 1.4; resize: vertical; }
.ct-swipe-sheet form textarea:focus { outline: none; background: #fff; box-shadow: inset 0 0 0 2px var(--accent); }
/* какво тръгва заедно с написаното: харесаните и филтрите на подбора */
.ct-swipe-wish-goes { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; font-size: .78rem; color: var(--ink-2); }
.ct-swipe-wish-goes ul { display: contents; margin: 0; padding: 0; list-style: none; }
.ct-swipe-wish-goes li { padding: 3px 10px; border-radius: 999px; background: var(--paper-2); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); font-weight: 600; }
.ct-swipe-wish-goes li.is-fav { background: var(--accent-soft); box-shadow: none; color: var(--accent); }
.ct-swipe-wish-channel { min-width: 0; margin: 14px 0 0; padding: 0; border: 0; }
.ct-swipe-wish-channel legend { float: none; width: auto; margin: 0 0 8px; padding: 0; font-size: .86rem; font-weight: 700; }
.ct-swipe-wish-channel > div { display: flex; flex-wrap: wrap; gap: 6px; }
.ct-swipe-sheet form .ct-swipe-wish-channel label { display: block; margin: 0; cursor: pointer; }
.ct-swipe-wish-channel input { position: absolute; opacity: 0; pointer-events: none; }
.ct-swipe-wish-channel span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 40px;
  padding: 6px 13px;
  border-radius: 999px;
  background: var(--paper-2);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--ink-2);
  font-size: .86rem;
  font-weight: 700;
  white-space: nowrap;
  transition: background .15s, color .15s;
}
.ct-swipe-wish-channel span .material-icons { font-size: 17px; }
.ct-swipe-wish-channel input:checked + span { background: var(--ink); box-shadow: none; color: #fff; }
.ct-swipe-wish-channel input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.ct-swipe-wish .ct-swipe-cta .material-icons { font-size: 19px; }
/* листът е дълъг - полетата са малко по-сбити, за да се вижда и бутонът за изпращане на обикновен телефон */
.ct-swipe-wish .ct-swipe-sheet-lead { margin-bottom: 10px; font-size: .88rem; }
.ct-swipe-wish form label { margin-top: 10px; }
.ct-swipe-wish form input[type="tel"],
.ct-swipe-wish form input[type="text"],
.ct-swipe-wish form input[type="email"] { height: 46px; }
.ct-swipe-wish form textarea { min-height: 84px; }
.ct-swipe-wish .ct-swipe-cta { margin-top: 14px; }
.ct-swipe-intro ul { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.ct-swipe-intro li { display: flex; align-items: flex-start; gap: 12px; font-size: .9rem; line-height: 1.4; color: var(--ink-2); }
.ct-swipe-intro li b { display: block; color: var(--ink); font-size: .98rem; }
.ct-swipe-intro li > .material-icons,
.ct-swipe-intro li > .material-icons-outlined {
  flex: 0 0 auto;
  display: grid !important;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 21px;
}
.ct-swipe-intro li > .is-nope { background: color-mix(in srgb, var(--sw-nope) 12%, #fff); color: var(--sw-nope); }

/* --- телефон и таблет: на цял екран, върху шапката и футъра --- */
@media (max-width: 991.98px) {
  body.ct-swipe-page { overflow: hidden; }
  .ct-swipe {
    position: fixed;
    inset: 0;
    z-index: 1040;
    max-width: none;
    height: 100vh;
    height: 100dvh;
    padding: max(10px, env(safe-area-inset-top)) 14px max(12px, env(safe-area-inset-bottom));
    background: var(--sw-bg);
  }
  .ct-swipe-heading p { display: none; }
  .ct-swipe-filters {
    flex: 0 0 auto;
    flex-wrap: nowrap;
    margin: 0 -14px;
    padding: 2px 14px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .ct-swipe-select select { max-width: 46vw; }
  .ct-swipe-stage { flex: 1 1 auto; min-height: 0; align-items: center; }
  .ct-swipe-deck { flex: 1 1 auto; height: auto; max-width: 460px; }
  .ct-swipe-state { left: 50%; right: auto; width: min(100%, 460px); transform: translateX(-50%); }
  .ct-swipe-keys { display: none; }
  .ct-swipe-actions { flex: 0 0 auto; width: 100%; max-width: 460px; margin: 0 auto; }
}
@media (max-width: 419.98px) {
  .ct-swipe-actions { gap: 8px; }
  .ct-swipe-btn { width: 50px; height: 50px; }
  .ct-swipe-btn.is-undo { width: 40px; height: 40px; }
  .ct-swipe-btn.is-count { width: 42px; height: 42px; }
  .ct-swipe-actions .ct-swipe-cta { padding: 8px 10px; }
  .ct-swipe-actions .ct-swipe-cta .material-icons { display: none; }
}
/* нисък екран: краят на подбора остава без иконата и допълнителния ред, за да се виждат всички бутони */
@media (max-height: 640px) {
  .ct-swipe-end .ct-swipe-state-ico,
  .ct-swipe-state p.ct-swipe-end-sub { display: none; }
}
@media (max-width: 359.98px) {
  .ct-swipe-actions { gap: 6px; }
  .ct-swipe-btn { width: 46px; height: 46px; }
  .ct-swipe-btn.is-undo { width: 36px; height: 36px; }
  .ct-swipe-btn.is-count { width: 40px; height: 40px; }
  .ct-swipe-actions .ct-swipe-cta { padding: 8px 6px; font-size: .86rem; }
  .ct-swipe-actions .ct-swipe-cta .material-icons { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .ct-swipe-card.is-moving, .ct-swipe-photo img, .ct-swipe-btn, .ct-swipe-cta, .ct-swipe-round { transition: none; }
  .ct-swipe-why, .ct-swipe-spin, .ct-swipe-wish-mic.is-on { animation: none; }
}
