.cookie-consent-banner,
.cookie-consent-settings {
  box-sizing: border-box;
  font-family: inherit;
}

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

.cookie-consent-banner {
  position: fixed;
  z-index: 1000;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom));
  left: 16px;
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: 960px;
  margin-inline: auto;
  padding: 18px 20px;
  border: 1px solid #d7e2df;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 36px rgb(15 23 42 / 18%);
  color: #334155;
}

.cookie-consent-text {
  flex: 1;
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
}

.cookie-consent-text a {
  color: #047857;
  text-decoration: underline;
  text-underline-offset: 2px;
}

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

.cookie-consent-actions button {
  min-width: 105px;
  min-height: 40px;
  padding: 9px 14px;
  border: 1px solid #047857;
  border-radius: 6px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
}

.cookie-consent-accept {
  background: #047857;
  color: #fff;
}

.cookie-consent-accept:hover {
  background: #065f46;
}

.cookie-consent-reject {
  background: #fff;
  color: #065f46;
}

.cookie-consent-reject:hover {
  background: #ecfdf5;
}

.cookie-consent-actions button:focus-visible,
.cookie-consent-settings:focus-visible,
.cookie-consent-text a:focus-visible {
  outline: 3px solid #0d9488;
  outline-offset: 2px;
}

.cookie-consent-settings {
  position: fixed;
  z-index: 999;
  bottom: calc(16px + env(safe-area-inset-bottom));
  left: 16px;
  padding: 8px 11px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 4px 18px rgb(15 23 42 / 12%);
  color: #334155;
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
  cursor: pointer;
}

.cookie-consent-settings:hover {
  color: #047857;
}

@media (max-width: 700px) {
  .cookie-consent-banner {
    display: block;
    padding: 16px;
  }

  .cookie-consent-actions {
    margin-top: 14px;
  }

  .cookie-consent-actions button {
    flex: 1;
  }
}
