:root {
  --t4lc-pink: #ff4da6;
  --t4lc-pink-hover: #e60073;
  --t4lc-cream: #fff9f5;
  --t4lc-white: #ffffff;
  --t4lc-ink: #24262b;
  --t4lc-muted: #62666f;
  --t4lc-line: #eadfe4;
}

.t4l-consent-root[hidden] { display: none !important; }
.t4l-consent-root { position: relative; z-index: 2147483000; font-family: inherit; color: var(--t4lc-ink); }
.t4l-consent-root,
.t4l-consent-root * { box-sizing: border-box; }

.t4l-consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2147483000;
  background: var(--t4lc-cream);
  color: var(--t4lc-ink);
  border-top: 2px solid var(--t4lc-pink);
  box-shadow: 0 -8px 28px rgba(34, 27, 31, .10);
}
.t4l-consent-banner__inner {
  width: min(1480px, calc(100% - 32px));
  margin: 0 auto;
  padding: 12px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.t4l-consent-banner__copy {
  position: relative;
  flex: 1 1 720px;
  min-width: 0;
  padding-left: 42px;
}
.t4l-consent-banner__copy::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 50%;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  transform: translateY(-50%);
  border-radius: 50%;
  background: var(--t4lc-pink);
  color: #fff;
  font-size: 17px;
  font-weight: 900;
  line-height: 1;
}
.t4l-consent-banner__text {
  margin: 0;
  color: var(--t4lc-ink);
  font-size: 13.5px;
  line-height: 1.5;
  font-weight: 500;
}
.t4l-consent-banner__actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}
.t4l-consent-btn {
  appearance: none;
  min-height: 40px;
  padding: 9px 15px;
  border-radius: 8px;
  border: 1px solid transparent;
  font: inherit;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}
.t4l-consent-btn--primary { background: var(--t4lc-pink); border-color: var(--t4lc-pink); color: #fff; }
.t4l-consent-btn--primary:hover { background: var(--t4lc-pink-hover); border-color: var(--t4lc-pink-hover); color: #fff; }
.t4l-consent-btn--secondary { background: #fff; border-color: var(--t4lc-pink); color: #d92b81; }
.t4l-consent-btn--secondary:hover { background: #fff1f7; border-color: var(--t4lc-pink-hover); color: var(--t4lc-pink-hover); }
.t4l-consent-btn--ghost { background: #fff; border-color: #d9d4d7; color: var(--t4lc-ink); }
.t4l-consent-btn--ghost:hover { border-color: var(--t4lc-pink); color: var(--t4lc-pink-hover); }
.t4l-consent-btn--decline { background: #fff; border-color: #c9c5c7; color: #4c4f55; }
.t4l-consent-btn--decline:hover { background: #f7f4f5; border-color: #8f8a8d; color: #24262b; }
.t4l-consent-btn:focus-visible { outline: 3px solid rgba(255,77,166,.28); outline-offset: 2px; }

.t4l-consent-modal[hidden] { display: none !important; }
.t4l-consent-modal { position: fixed; inset: 0; z-index: 2147483100; }
.t4l-consent-modal__backdrop { position: absolute; inset: 0; background: rgba(22,22,26,.55); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.t4l-consent-modal__panel {
  position: relative;
  z-index: 2;
  width: min(640px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  overflow: auto;
  margin: 24px auto;
  padding: 28px;
  border: 1px solid var(--t4lc-line);
  border-top: 4px solid var(--t4lc-pink);
  border-radius: 18px;
  background: #fff;
  color: var(--t4lc-ink);
  box-shadow: 0 28px 90px rgba(0,0,0,.28);
}
.t4l-consent-modal__panel h2 { margin: 0 42px 8px 0; color: var(--t4lc-ink); font-size: 24px; font-weight: 800; }
.t4l-consent-modal__panel > p { color: var(--t4lc-muted); line-height: 1.55; }
.t4l-consent-modal__close {
  position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; border: 1px solid #ebe6e8; border-radius: 50%;
  background: #fff9fb; color: var(--t4lc-ink); font-size: 27px; line-height: 1; cursor: pointer;
}
.t4l-consent-modal__close:hover { border-color: var(--t4lc-pink); color: var(--t4lc-pink-hover); }
.t4l-consent-categories { margin-top: 18px; border-top: 1px solid #ece7e9; }
.t4l-consent-category {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: 'copy toggle';
  align-items: center;
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid #ece7e9;
  cursor: pointer;
}
.t4l-consent-category > span:first-child { grid-area: copy; display: flex; flex-direction: column; gap: 3px; }
.t4l-consent-category strong { color: var(--t4lc-ink); font-size: 16px; }
.t4l-consent-category small { color: #737780; font-size: 13px; line-height: 1.45; }
.t4l-consent-category input { position: absolute; opacity: 0; pointer-events: none; }
.t4l-consent-toggle { grid-area: toggle; width: 46px; height: 26px; border-radius: 999px; background: #d9dadd; position: relative; transition: .2s ease; }
.t4l-consent-toggle::after { content: ''; position: absolute; width: 20px; height: 20px; border-radius: 50%; left: 3px; top: 3px; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.20); transition: .2s ease; }
.t4l-consent-category input:checked + .t4l-consent-toggle { background: var(--t4lc-pink); }
.t4l-consent-category input:checked + .t4l-consent-toggle::after { transform: translateX(20px); }
.t4l-consent-category--locked { cursor: default; }
.t4l-consent-policy { margin: 14px 0 0; }
.t4l-consent-policy a { color: var(--t4lc-pink-hover); font-weight: 700; }
.t4l-consent-modal__actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; }
html.t4l-consent-modal-open { overflow: hidden !important; }

@media (max-width: 900px) {
  .t4l-consent-banner__inner { width: min(100% - 28px, 760px); align-items: stretch; flex-direction: column; gap: 10px; padding: 12px 0; }
  .t4l-consent-banner__copy { flex-basis: auto; }
  .t4l-consent-banner__actions { width: 100%; justify-content: flex-end; }
}
@media (max-width: 560px) {
  .t4l-consent-banner__inner { width: calc(100% - 22px); padding: 11px 0; }
  .t4l-consent-banner__copy { padding-left: 36px; }
  .t4l-consent-banner__copy::before { width: 26px; height: 26px; font-size: 15px; }
  .t4l-consent-banner__text { font-size: 12.5px; line-height: 1.45; }
  .t4l-consent-banner__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
  .t4l-consent-btn { width: 100%; min-height: 40px; padding: 8px 8px; font-size: 12px; white-space: normal; }
  .t4l-consent-modal__panel { padding: 22px 18px; margin: 16px auto; max-height: calc(100vh - 32px); }
  .t4l-consent-modal__panel h2 { font-size: 21px; }
  .t4l-consent-modal__actions { flex-direction: column-reverse; }
}

/* v0.2.2 — link „Cookie” w kolumnie „Twoje konto” stopki PrestaShop */
#footer .t4l-consent-footer-cookie {
  appearance: none;
  -webkit-appearance: none;
  display: inline;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: inherit;
  line-height: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
#footer .t4l-consent-footer-cookie:hover,
#footer .t4l-consent-footer-cookie:focus-visible {
  color: #ff4da6;
  outline: 0;
  box-shadow: none;
}
