/* ==========================================================================
   Esthetix Professional — B2B věrnostní dárky (sloty) v košíku
   loyalty-gifts.css  |  Webotvůrci.cz
   Styl v duchu eshopu: Mulish, monochrom (#2e2e2e), ostré rohy.
   FTP:  /upload/webotvurci/loyalty-gifts.css
   ========================================================================== */
#wt-loyalty { font-family: var(--template-font, "Mulish"), sans-serif; color: #000; margin: 1.5rem 0; }
#wt-loyalty * { box-sizing: border-box; }

/* Přehled slotů */
.wtl-head {
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem;
  padding: 1rem 1.25rem; background: #f5f5f5; border: 1px solid #ededed;
}
.wtl-tier {
  display: inline-block; font-size: .72rem; letter-spacing: .03em; text-transform: none;   /* názvy hladin přesně dle klienta ("Základní partner", "GOLD partner") */
  color: #fff; background: var(--color-primary, #2e2e2e); padding: .35em .8em;
}
.wtl-slots { font-size: .95rem; }
.wtl-slots b { font-weight: 700; }
.wtl-next { font-size: .85rem; color: #666; margin-left: auto; }

/* Mřížka dárků */
.wtl-gifts {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: .75rem; margin-top: .75rem;
}
.wtl-gift {
  display: flex; flex-direction: column; padding: .75rem;
  border: 1px solid #ededed; background: #fff; transition: border-color .15s, box-shadow .15s;
}
.wtl-gift.is-picked {
  border-color: var(--color-primary, #2e2e2e);
  box-shadow: inset 0 0 0 1px var(--color-primary, #2e2e2e);
}
.wtl-gift.is-disabled { opacity: .45; }

.wtl-thumb {
  aspect-ratio: 1 / 1; background: #f2f2f2; margin-bottom: .6rem; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.wtl-thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }
.wtl-noimg { width: 40px; height: 40px; border: 1px dashed #ccc; }

.wtl-name { font-size: .9rem; font-weight: 500; line-height: 1.3; margin-bottom: .25rem; }
.wtl-meta { font-size: .8rem; color: #666; margin-bottom: .6rem; }
.wtl-cat { text-transform: uppercase; letter-spacing: .04em; font-size: .72rem; }

.wtl-act { margin-top: auto; }
.wtl-btn {
  width: 100%; font-family: inherit; font-size: .85rem; font-weight: 500;
  padding: .6em 1em; border: 1px solid var(--color-primary, #2e2e2e); border-radius: 0;
  cursor: pointer; background: var(--color-primary, #2e2e2e); color: #fff; transition: background .15s;
}
.wtl-btn.wtl-add[disabled] { opacity: .4; cursor: not-allowed; }
.wtl-btn.wtl-remove { background: transparent; color: var(--color-primary, #2e2e2e); }
.wtl-btn.wtl-remove:hover { background: var(--color-primary, #2e2e2e); color: #fff; }

/* Dárky v rekapitulaci objednávky (read-only, řádky jako položky u zboží) */
.wtl-summary { margin: .25rem 0 1rem; font-family: var(--template-font, "Mulish"), sans-serif; color: #000; }
.wtl-summary__t { margin: .6rem 0 .3rem; font-weight: 500; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: #666; }
.wtl-summary__row { display: flex; justify-content: space-between; align-items: baseline; gap: .75rem; padding: .3rem 0; border-bottom: 1px solid #ededed; font-size: .85rem; }
.wtl-summary__name { line-height: 1.35; }
.wtl-summary__price { white-space: nowrap; font-weight: 500; }

@media (max-width: 560px) {
  .wtl-next { margin-left: 0; width: 100%; }
  .wtl-gifts { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}
