.cookie-consent {
  position: fixed;
  z-index: 1000;
  right: 20px;
  bottom: 20px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px 26px;
  width: min(680px, calc(100% - 40px));
  padding: 20px;
  border-radius: 14px;
  color: #3f3f3f;
  background: #ffffff;
  box-shadow: 0 18px 46px rgba(63, 38, 25, 0.2);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Arial, sans-serif;
}

.cookie-consent[hidden] {
  display: none;
}

.cookie-consent__text {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}

.cookie-consent__actions {
  display: flex;
  gap: 8px;
}

.cookie-consent__button {
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid rgba(63, 63, 63, 0.22);
  border-radius: 12px;
  color: #3f3f3f;
  background: #ffffff;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
}

.cookie-consent__button--accept {
  border-color: #b90e2b;
  color: #ffffff;
  background: #b90e2b;
}

.cookie-consent__button:focus-visible {
  outline: 3px solid #b90e2b;
  outline-offset: 3px;
}

@media (hover: hover) {
  .cookie-consent__button {
    transition: border-color 180ms ease, background-color 180ms ease, color 180ms ease;
  }

  .cookie-consent__button:not(.cookie-consent__button--accept):hover {
    border-color: #891428;
    color: #891428;
  }

  .cookie-consent__button--accept:hover {
    border-color: #891428;
    background: #891428;
  }
}

@media (max-width: 600px) {
  .cookie-consent {
    right: 12px;
    bottom: 12px;
    grid-template-columns: 1fr;
    width: calc(100% - 24px);
    gap: 16px;
    padding: 18px;
  }

  .cookie-consent__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cookie-consent__button {
    transition: none;
  }
}
