:root {
  --clyro-consent-ink: #111214;
  --clyro-consent-muted: #505155;
  --clyro-consent-line: #e5e6e3;
  --clyro-consent-accent: #c7ff2e;
  --clyro-consent-surface: #ffffff;
}

.clyro-cookie-overlay,
.clyro-cookie-overlay *,
.clyro-cookie-panel,
.clyro-cookie-panel *,
.clyro-cookie-settings,
.clyro-cookie-settings * {
  box-sizing: border-box;
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.clyro-cookie-overlay {
  position: fixed;
  z-index: 10000000;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px;
  background: rgba(13, 15, 18, .72);
  backdrop-filter: blur(3px);
  animation: clyro-cookie-fade .25s ease-out;
}

.clyro-cookie-overlay[hidden],
.clyro-cookie-panel[hidden],
.clyro-cookie-settings[hidden] { display: none !important; }

@keyframes clyro-cookie-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes clyro-cookie-rise {
  from { opacity: 0; transform: translateY(20px) scale(.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.clyro-cookie-panel {
  display: flex;
  flex-direction: column;
  width: min(650px, 100%);
  max-height: min(720px, calc(100dvh - 40px));
  box-sizing: border-box;
  color: var(--clyro-consent-ink);
  background: var(--clyro-consent-surface);
  border: 0;
  border-radius: 18px;
  box-shadow: 0 24px 72px rgba(0, 0, 0, .3);
  overflow: hidden;
  animation: clyro-cookie-rise .3s cubic-bezier(.16, 1, .3, 1);
}

.clyro-cookie-panel__header {
  flex: 0 0 auto;
  padding: 30px 36px 0;
}
.clyro-cookie-panel__logo {
  display: block;
  width: 124px;
  height: auto;
  margin: 0 0 16px;
}
.clyro-cookie-panel__eyebrow {
  display: block;
  margin-bottom: 8px;
  color: #747474;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .1em;
  line-height: 1.2;
  text-transform: uppercase;
}
.clyro-cookie-panel h2 {
  margin: 0;
  color: #101113;
  font-size: clamp(24px, 3.2vw, 32px);
  font-weight: 600;
  letter-spacing: -.035em;
  line-height: 1.12;
}

.clyro-cookie-panel__body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 0 36px;
}

.clyro-cookie-panel__intro {
  margin: 14px 0 12px;
  color: var(--clyro-consent-muted);
  font-size: 13px;
  line-height: 1.55;
}
.clyro-cookie-panel__intro a {
  color: var(--clyro-consent-ink);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.clyro-cookie-panel__groups {
  padding: 4px 0 16px;
}
.clyro-cookie-group {
  padding: 14px 0;
  border-top: 1px solid var(--clyro-consent-line);
}
.clyro-cookie-group:first-child {
  border-top: 0;
}
.clyro-cookie-group__top {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}
.clyro-cookie-group__state {
  flex: 0 0 auto;
  color: #747474;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
.clyro-cookie-toggle {
  display: inline-flex;
  min-width: 0;
  gap: 11px;
  align-items: center;
  cursor: pointer;
}
.clyro-cookie-toggle input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}
.clyro-cookie-toggle__track {
  position: relative;
  flex: 0 0 36px;
  width: 36px;
  height: 21px;
  border-radius: 999px;
  background: #c7cbcd;
  transition: background .16s ease;
}
.clyro-cookie-toggle__track::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 15px;
  height: 15px;
  content: "";
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .18);
  transition: transform .16s ease;
}
.clyro-cookie-toggle input:checked + .clyro-cookie-toggle__track {
  background: var(--clyro-consent-ink);
}
.clyro-cookie-toggle input:checked + .clyro-cookie-toggle__track::after {
  transform: translateX(15px);
}
.clyro-cookie-toggle input:focus-visible + .clyro-cookie-toggle__track {
  outline: 3px solid rgba(199, 255, 46, .95);
  outline-offset: 2px;
}
.clyro-cookie-toggle input:disabled + .clyro-cookie-toggle__track {
  background: #4f5154;
}
.clyro-cookie-toggle__label {
  overflow: hidden;
  color: #202124;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
  text-overflow: ellipsis;
}
.clyro-cookie-group__description {
  margin: 9px 0 0;
  color: #67686b;
  font-size: 11.5px;
  line-height: 1.55;
}
.clyro-cookie-services {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 9px 0 0;
  padding: 0;
  list-style: none;
}
.clyro-cookie-services li {
  display: inline-flex;
  gap: 4px;
  align-items: baseline;
  padding: 4px 8px;
  color: #626367;
  background: #f4f4f2;
  border-radius: 5px;
  font-size: 10.5px;
  line-height: 1.25;
}
.clyro-cookie-services strong {
  color: #202124;
  font-weight: 800;
}
.clyro-cookie-services span {
  color: #737477;
}

.clyro-cookie-panel__actions {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  padding: 16px 36px 22px;
  background: var(--clyro-consent-surface);
  border-top: 1px solid var(--clyro-consent-line);
  box-shadow: 0 -4px 18px rgba(0, 0, 0, .04);
}

.clyro-cookie-btn {
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid #d2d2ce;
  border-radius: 12px;
  color: var(--clyro-consent-ink);
  font: inherit;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.clyro-cookie-btn:focus-visible,
.clyro-cookie-settings:focus-visible {
  outline: 3px solid rgba(199, 255, 46, .95);
  outline-offset: 2px;
}

.clyro-cookie-btn--reject {
  color: #111214;
  background: #f4f4f2;
  border-color: #d2d2ce;
}
.clyro-cookie-btn--reject:hover {
  background: #e6e6e2;
  border-color: #b8b8b3;
}

.clyro-cookie-btn--outline {
  color: #383a3d;
  background: #fff;
  border-color: #d2d2ce;
}
.clyro-cookie-btn--outline:hover {
  background: #f4f4f2;
  border-color: #b8b8b3;
}

.clyro-cookie-btn--primary {
  color: #fff;
  background: #111214;
  border-color: #111214;
}
.clyro-cookie-btn--primary:hover {
  background: #2a2c2f;
  border-color: #2a2c2f;
}

.clyro-cookie-settings {
  position: fixed;
  z-index: 9999;
  bottom: 18px;
  left: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  padding: 0;
  color: var(--clyro-consent-accent); /* Zielona tarcza #c7ff2e */
  background: #111214; /* Czarny box */
  border: none; /* Bez bordera */
  border-radius: 50%;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .35);
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, bottom .25s cubic-bezier(.16, 1, .3, 1);
}
.clyro-cookie-settings:hover {
  background: #23272b;
  color: #d5ff59;
  transform: translateY(-2px);
}
.clyro-cookie-settings svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

body.clyro-floating-bar-active .clyro-cookie-settings {
  bottom: calc(75px + env(safe-area-inset-bottom, 0px)) !important;
}

@media (max-width: 575px) {
  .clyro-cookie-overlay {
    align-items: flex-end;
    padding: 0;
  }
  .clyro-cookie-panel {
    width: 100%;
    max-width: 100%;
    max-height: min(85dvh, 620px);
    border-radius: 20px 20px 0 0;
    overflow-x: hidden;
  }
  .clyro-cookie-panel__header {
    padding: 18px 20px 0;
  }
  .clyro-cookie-panel__logo {
    width: 105px;
    margin-bottom: 10px;
  }
  .clyro-cookie-panel__eyebrow {
    font-size: 10.5px;
    margin-bottom: 4px;
  }
  .clyro-cookie-panel h2 {
    font-size: 21px;
    line-height: 1.15;
  }
  .clyro-cookie-panel__body {
    padding: 0 20px;
    overflow-x: hidden;
  }
  .clyro-cookie-panel__intro {
    margin: 8px 0 10px;
    font-size: 12px;
    line-height: 1.45;
  }
  .clyro-cookie-panel__groups {
    padding: 0 0 12px;
  }
  .clyro-cookie-group {
    padding: 10px 0;
  }
  .clyro-cookie-group__top {
    flex-wrap: wrap;
    gap: 6px;
  }
  .clyro-cookie-toggle {
    max-width: calc(100% - 85px);
  }
  .clyro-cookie-toggle__label {
    font-size: 12px;
  }
  .clyro-cookie-group__state {
    font-size: 10.5px;
  }
  .clyro-cookie-group__description {
    font-size: 11px;
    line-height: 1.45;
    margin: 6px 0 0;
  }
  .clyro-cookie-services {
    margin: 6px 0 0;
    gap: 4px;
  }
  .clyro-cookie-services li {
    padding: 3px 6px;
    font-size: 10px;
  }
  .clyro-cookie-panel__actions {
    box-sizing: border-box;
    width: 100%;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 12px 16px calc(14px + env(safe-area-inset-bottom, 0px));
  }
  .clyro-cookie-panel__actions button[data-clyro-consent="required"] {
    order: 1;
  }
  .clyro-cookie-panel__actions button[data-clyro-consent="all"] {
    order: 2;
  }
  .clyro-cookie-panel__actions button[data-clyro-consent="selected"] {
    grid-column: 1 / -1;
    order: 3;
    min-height: 38px;
    font-size: 11.5px;
    padding: 6px 8px;
  }
  .clyro-cookie-btn {
    box-sizing: border-box;
    width: 100%;
    min-height: 44px;
    font-size: 13px;
    border-radius: 10px;
  }
  .clyro-cookie-settings {
    bottom: calc(14px + env(safe-area-inset-bottom, 0px));
    left: 14px;
    width: 42px;
    height: 42px;
    border: none !important;
  }
  body.clyro-floating-bar-active .clyro-cookie-settings {
    bottom: calc(75px + env(safe-area-inset-bottom, 0px)) !important;
  }
}
