/* Informacja o plikach cookies — pływająca karta w stylu nagłówka strony */
.ecp-notice {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 10000;
  width: min(420px, calc(100% - 48px));
  box-sizing: border-box;
  padding: 20px 22px 18px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-top: 3px solid #ff250f;
  border-radius: 18px;
  background: rgba(22, 22, 24, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(0, 0, 0, 0.3);
  color: #f5f5f5;
  font-family: "Poppins", sans-serif;

  opacity: 0;
  transform: translateY(24px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.ecp-notice.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.ecp-notice__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.ecp-notice__icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 37, 15, 0.12);
  color: #ff250f;
}

.ecp-notice__title {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
}

.ecp-notice__text,
.ecp-notice__more p {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.6;
  color: #b8b8bd;
}

/* Płynne rozwijanie szczegółów */
.ecp-notice__more {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s ease;
}

.ecp-notice.is-expanded .ecp-notice__more {
  grid-template-rows: 1fr;
}

.ecp-notice__more-inner {
  overflow: hidden;
}

.ecp-notice__more p {
  padding-top: 10px;
  font-size: 0.8rem;
}

.ecp-notice__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
}

.ecp-notice button {
  font-family: inherit;
  cursor: pointer;
}

.ecp-notice__toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 0;
  border: none;
  background: none;
  color: #f5f5f5;
  font-size: 0.82rem;
  text-decoration: underline;
  text-decoration-color: rgba(255, 37, 15, 0.6);
  text-underline-offset: 4px;
  transition: color 0.2s ease;
}

.ecp-notice__toggle:hover,
.ecp-notice__toggle:focus-visible {
  color: #ff250f;
}

.ecp-notice__toggle-less,
.ecp-notice.is-expanded .ecp-notice__toggle-more {
  display: none;
}

.ecp-notice.is-expanded .ecp-notice__toggle-less {
  display: inline;
}

.ecp-notice__chevron {
  transition: transform 0.3s ease;
}

.ecp-notice.is-expanded .ecp-notice__chevron {
  transform: rotate(180deg);
}

.ecp-notice__accept {
  padding: 10px 26px;
  border: none;
  border-radius: 999px;
  background: #ff250f;
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(255, 37, 15, 0.3);
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.ecp-notice__accept:hover {
  background: #e01f0b;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(255, 37, 15, 0.4);
}

.ecp-notice button:focus-visible {
  outline: 2px solid #ff250f;
  outline-offset: 3px;
}

/* Telefony: karta na całą szerokość, przycisk pod tekstem */
@media (max-width: 520px) {
  .ecp-notice {
    left: 12px;
    right: 12px;
    bottom: 12px;
    width: auto;
    padding: 18px 18px 16px;
  }

  .ecp-notice__actions {
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 6px;
  }

  .ecp-notice__accept {
    padding: 12px;
  }

  .ecp-notice__toggle {
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ecp-notice,
  .ecp-notice__more,
  .ecp-notice__chevron {
    transition: none;
  }
}
