/* Clyro Kit – „Stwórz swój zestaw” (karta produktu). Styl dopasowany do wielopaku (.clyro-mp-*). */

.ckit {
  margin: 0 0 14px;
}

.ckit__label {
  font-size: 13.5px;
  font-weight: 700;
  line-height: 18px;
  letter-spacing: -0.01em;
  color: var(--clyro-text-dark, #111417);
  margin: 0 0 8px;
}

.ckit__list {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

/* Ramka rysowana NAD wierszami – tło wiersza przy najechaniu nie może jej przykryć */
.ckit__list::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1.5px solid var(--clyro-line, #dfe3e8);
  border-radius: inherit;
  pointer-events: none;
  z-index: 1;
}

.ckit__slot {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  margin: 0;
  padding: 12px 14px;
  border: 0;
  background: #fff;
  color: var(--clyro-text-dark, #111417);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.ckit__slot + .ckit__slot {
  border-top: 1px solid #eceef1;
}

.ckit__slot:hover {
  background: #fafbfc;
}

.ckit__slot:focus-visible {
  outline: 2px solid var(--clyro-accent-lime, #c7ff2e);
  outline-offset: -2px;
}

.ckit__thumb {
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ckit__thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.ckit__slot.is-empty .ckit__thumb img {
  opacity: 0.45;
  filter: grayscale(1);
}

.ckit__info {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.ckit__name {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ckit__sub {
  font-size: 12.5px;
  color: var(--clyro-muted, #667085);
  margin-top: 2px;
}

.ckit__slot.is-filled .ckit__sub {
  color: var(--clyro-text-dark, #111417);
  font-weight: 500;
  font-size: 13px;
}

.ckit__act {
  flex: none;
  border: 1.5px solid var(--clyro-line, #dfe3e8);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  background: #fff;
  transition: border-color 0.15s ease;
}

.ckit__slot:hover .ckit__act {
  border-color: var(--clyro-text-dark, #111417);
}

@media (max-width: 575px) {
  .ckit__slot { gap: 12px; padding: 12px; }
  .ckit__thumb { flex-basis: 48px; width: 48px; height: 48px; }
  .ckit__name { font-size: 13.5px; }
  .ckit__act { padding: 7px 12px; }
}

/* ---------- Szuflada wyboru (przeniesiona do <body>) ---------- */

.ckit-shade {
  position: fixed;
  inset: 0;
  background: rgba(17, 20, 23, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 2147483000;
}

.ckit-shade.is-open {
  opacity: 1;
  pointer-events: auto;
}

.ckit-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(440px, 94vw);
  background: #fff;
  color: var(--clyro-text-dark, #111417);
  z-index: 2147483001;
  display: flex;
  flex-direction: column;
  box-shadow: -14px 0 40px rgba(0, 0, 0, 0.12);
  transform: translateX(102%);
  visibility: hidden;
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0s linear 0.3s;
  font-family: inherit;
}

.ckit-drawer.is-open {
  transform: none;
  visibility: visible;
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0s;
}

.ckit-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 22px;
  border-bottom: 1px solid #eceef1;
}

.ckit-drawer__title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.ckit-drawer__close {
  flex: none;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #f3f4f6;
  color: inherit;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.ckit-drawer__body {
  flex: 1 1 auto;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-bottom: 8px;
}

.ckit-drawer__group {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--clyro-muted, #667085);
  padding: 16px 22px 4px;
}

.ckit-opt {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 22px;
  cursor: pointer;
}

.ckit-opt:hover {
  background: #fafbfc;
}

.ckit-opt:focus-visible {
  outline: 2px solid var(--clyro-accent-lime, #c7ff2e);
  outline-offset: -2px;
}

.ckit-opt__thumb {
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ckit-opt__thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.ckit-opt__info {
  flex: 1 1 auto;
  min-width: 0;
}

.ckit-opt__name {
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.3;
}

.ckit-opt__foot {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-top: 6px;
}

.ckit-opt__price {
  font-size: 14px;
  font-weight: 700;
}

.ckit-opt__more {
  font-size: 12.5px;
  color: var(--clyro-muted, #667085);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: #c3c9d0;
}

.ckit-opt__more:hover {
  color: var(--clyro-text-dark, #111417);
}

.ckit-opt__pick {
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1.5px solid #c3c9d0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.ckit-opt:hover .ckit-opt__pick {
  border-color: var(--clyro-text-dark, #111417);
}

.ckit-opt.is-selected .ckit-opt__pick {
  background: var(--clyro-text-dark, #111417);
  border-color: var(--clyro-text-dark, #111417);
}

.ckit-opt.is-selected .ckit-opt__pick::after {
  content: '';
  width: 10px;
  height: 5px;
  border: 2px solid #fff;
  border-top: 0;
  border-right: 0;
  transform: translateY(-1px) rotate(-45deg);
}

.ckit-drawer__foot {
  padding: 12px 22px 18px;
  border-top: 1px solid #eceef1;
  text-align: center;
}

.ckit-drawer__foot[hidden] {
  display: none;
}

.ckit-drawer__clear {
  border: 0;
  background: none;
  padding: 4px;
  color: var(--clyro-muted, #667085);
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}


/* Telefon: arkusz od dołu, wysokość wg treści */
@media (max-width: 767px) {
  .ckit-drawer {
    top: auto;
    left: 0;
    width: 100%;
    max-height: 85vh;
    max-height: 85dvh;
    border-radius: 18px 18px 0 0;
    transform: translateY(102%);
    box-shadow: 0 -14px 40px rgba(0, 0, 0, 0.12);
  }
  .ckit-drawer__head { padding: 18px 16px; }
  .ckit-drawer__group { padding: 14px 16px 4px; }
  .ckit-opt { padding: 12px 16px; gap: 12px; }
  .ckit-opt__thumb { flex-basis: 56px; width: 56px; height: 56px; }
  .ckit-drawer__foot { padding: 10px 16px calc(14px + env(safe-area-inset-bottom)); }
}

/* Przycisk „Do koszyka” w trakcie dokładania dodatków */
.ckit-busy {
  opacity: 0.7;
  pointer-events: none;
}
