.cookie-card {
  position: fixed;
  z-index: 100;
  right: 1rem;
  bottom: 1rem;
  width: min(22rem, calc(100vw - 2rem));
  max-height: min(19rem, 45dvh);
  overflow-y: auto;
  padding: 1rem;
  border: 1px solid var(--line, #dbe4f4);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 36px rgba(15, 23, 42, .16);
  color: var(--ink-900, #0f172a);
  font: inherit;
}

.cookie-card[hidden] { display: none; }
.cookie-card-head { display: flex; align-items: center; gap: .55rem; }
.cookie-card-mascot {
  flex: none;
  display: block;
  width: 52px;
  height: 52px;
  overflow: hidden;
  border: 1px solid var(--line, #dbe4f4);
  border-radius: 50%;
  background: var(--surface-soft, #f6f9ff);
}
.cookie-card-mascot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1) scale(1.35);
}
.cookie-card-head strong { line-height: 1.25; }
.cookie-card p { margin: .55rem 0; font-size: .88rem; line-height: 1.4; }
.cookie-card-actions { display: flex; flex-wrap: wrap; gap: .4rem; }
.cookie-card-actions button {
  min-height: 2.5rem;
  padding: .4rem .65rem;
  border: 1px solid var(--primary, #1d4ed8);
  border-radius: 9px;
  background: #fff;
  color: var(--primary, #1d4ed8);
  font: inherit;
  font-size: .85rem;
  font-weight: 700;
  cursor: pointer;
}
.cookie-card-actions button[data-cookie-choice="accepted"] {
  background: var(--primary, #1d4ed8);
  color: #fff;
}
.cookie-card-actions button[data-cookie-choice="later"] {
  border-color: transparent;
  color: var(--ink-700, #334155);
}
.cookie-card a { display: inline-block; margin-top: .45rem; font-size: .8rem; }
.cookie-card button:focus-visible, .cookie-card a:focus-visible {
  outline: 3px solid var(--primary, #1d4ed8);
  outline-offset: 2px;
}

@media (max-width: 480px) {
  .cookie-card { right: .5rem; bottom: .5rem; width: calc(100vw - 1rem); padding: .75rem; }
  .cookie-card-mascot { width: 46px; height: 46px; }
}

@media print {
  .cookie-card { display: none; }
}
