/* === COOKIE CONSENT ==================================== */

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

.cookie-consent {
  position: fixed;
  left: 50%;
  bottom: max(16px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 2000;

  width: min(760px, calc(100% - 32px));
  padding: 14px 16px;

  color: #1f2924;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(31, 41, 36, 0.14);
  border-radius: 16px;
  box-shadow: 0 12px 35px rgba(20, 30, 25, 0.16);

  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.cookie-consent-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.cookie-consent-text {
  flex: 1;
  margin: 0;

  color: #4f5c55;
  font-size: 0.82rem;
  line-height: 1.5;
  text-align: left;
}

.cookie-consent-actions {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 8px;
}

.cookie-btn {
  min-height: 40px;
  padding: 9px 14px;

  border: 1px solid transparent;
  border-radius: 10px;

  font: inherit;
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;

  cursor: pointer;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.cookie-btn:hover {
  transform: translateY(-1px);
}

.cookie-btn:focus-visible {
  outline: 3px solid rgba(55, 91, 69, 0.22);
  outline-offset: 2px;
}

.cookie-btn-primary {
  color: #fff;
  background: #375b45;
  border-color: #375b45;
}

.cookie-btn-primary:hover {
  background: #294a36;
  border-color: #294a36;
}

.cookie-btn-secondary {
  color: #375b45;
  background: transparent;
  border-color: rgba(55, 91, 69, 0.35);
}

.cookie-btn-secondary:hover {
  background: rgba(55, 91, 69, 0.07);
  border-color: rgba(55, 91, 69, 0.55);
}

/* === MOBIL ============================================= */

@media (max-width: 640px) {
  .cookie-consent {
    bottom: max(10px, env(safe-area-inset-bottom));
    width: calc(100% - 20px);
    padding: 14px;
    border-radius: 14px;
  }

  .cookie-consent-inner {
    display: block;
  }

  .cookie-consent-text {
    font-size: 0.78rem;
  }

  .cookie-consent-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-top: 12px;
  }

  .cookie-btn {
    width: 100%;
    min-height: 42px;
    padding: 9px 10px;
    white-space: normal;
  }
}

@media (max-width: 360px) {
  .cookie-consent-actions {
    grid-template-columns: 1fr;
  }
}