#cookie-note[hidden] {
  display: none !important;
}
#cookie-note {
  position: fixed;
  bottom: 18px;
  left: 18px;
  z-index: 10001;
  width: min(440px, calc(100vw - 36px));
  max-height: calc(100dvh - 36px);
  overflow: auto;
  box-sizing: border-box;
  padding: 20px;
  background: #fffdf9;
  color: #333;
  border: 1px solid #e9ded1;
  border-top: 3px solid #ef9d4d;
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(48, 82, 117, 0.18);
  font-family: inherit;
  text-align: left;
  line-height: 1.5;
}
#cookie-note h2 {
  margin: 0 0 8px;
  font: 700 18px/1.3 inherit;
  color: #305275;
  text-transform: none;
}
#cookie-note p {
  margin: 0 0 12px;
  font-size: 14px;
  color: #444;
}
#cookie-note a {
  color: #305275;
  text-decoration: underline;
  font-size: 13px;
}
#cookie-note .cookie-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}
#cookie-note button {
  flex: 1;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #305275;
  border-radius: 10px;
  background: #305275;
  color: white;
  font: 600 14px/1.3 inherit;
  cursor: pointer;
  transition: background 0.15s;
}
#cookie-note button:hover {
  background: #223e5c;
}
#cookie-note button:focus-visible,
.cookie-settings:focus-visible {
  outline: 3px solid #ef9d4d;
  outline-offset: 3px;
}
.cookie-settings {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  text-decoration: underline;
  cursor: pointer;
  padding: 6px 0;
}
@media (max-width: 480px) {
  #cookie-note {
    bottom: 12px;
    left: 12px;
    width: calc(100vw - 24px);
    padding: 16px;
  }
}
/* Szerszy, niższy banner na środku u dołu */
#cookie-note {
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);

  width: min(1080px, calc(100vw - 32px));
  padding: 5px 20px;

  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  column-gap: 24px;
  row-gap: 6px;
  align-items: center;
}

#cookie-note h2 {
  grid-column: 1;
  margin: 0;
  font-size: 16px;
}

#cookie-note p {
  grid-column: 1;
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
}

#cookie-note > a {
  grid-column: 1;
  justify-self: start;
  font-size: 12px;
}

#cookie-note .cookie-actions {
  grid-column: 2;
  grid-row: 1 / 4;
  margin: 0;
  gap: 10px;
}

#cookie-note button {
  min-height: 30px;
  padding: 10px 12px;
}

/* Na telefonie przyciski pod tekstem */
@media (max-width: 640px) {
  #cookie-note {
    left: 50%;
    bottom: 12px;
    width: calc(100vw - 24px);
    padding: 14px 16px;

    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  #cookie-note .cookie-actions {
    grid-column: 1;
    grid-row: auto;
    margin-top: 4px;
  }
}
