.cookie-consent-banner,
.cookie-consent-modal,
.cookie-consent-trigger,
.cookie-consent-placeholder {
  box-sizing: border-box;
  font-family: Lato, Arial, sans-serif;
}

.cookie-consent-banner {
  position: fixed;
  left: max(16px, env(safe-area-inset-left));
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 2147483000;
  display: none;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  max-width: 1120px;
  margin: 0 auto;
  padding: 16px;
  color: #1f1f1f;
  background: #fff;
  border: 1px solid #d7d7d7;
  border-radius: 6px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.22);
}

.cookie-consent-banner.is-visible {
  display: flex;
}

.cookie-consent-copy {
  min-width: 0;
  font-size: 14px;
  line-height: 1.45;
}

.cookie-consent-copy strong {
  display: block;
  margin-bottom: 4px;
  font-size: 16px;
}

.cookie-consent-copy a {
  color: #006fae;
  text-decoration: underline;
}

.cookie-consent-actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.cookie-consent-button,
.cookie-consent-trigger,
.cookie-consent-placeholder button {
  min-height: 40px;
  padding: 9px 14px;
  color: #1f1f1f;
  background: #fff;
  border: 2px solid #666;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
}

.cookie-consent-button:hover,
.cookie-consent-trigger:hover,
.cookie-consent-placeholder button:hover {
  background: #f1f1f1;
}

.cookie-consent-button:focus,
.cookie-consent-trigger:focus,
.cookie-consent-placeholder button:focus,
.cookie-consent-switch input:focus + span {
  outline: 3px solid #1b75bb;
  outline-offset: 2px;
}

.cookie-consent-button-primary {
  color: #fff;
  background: #1f6f43;
  border-color: #1f6f43;
}

.cookie-consent-button-primary:hover {
  background: #185936;
}

.cookie-consent-button-secondary {
  color: #fff;
  background: #555;
  border-color: #555;
}

.cookie-consent-button-secondary:hover {
  background: #3f3f3f;
}

.cookie-consent-trigger {
  position: fixed;
  right: max(14px, env(safe-area-inset-right));
  bottom: max(14px, env(safe-area-inset-bottom));
  z-index: 2147482500;
  display: none;
  padding: 8px 12px;
  font-size: 13px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

.cookie-consent-trigger.is-visible {
  display: inline-flex;
}

.cookie-consent-modal {
  position: fixed;
  inset: 0;
  z-index: 2147483100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.48);
}

.cookie-consent-modal.is-visible {
  display: flex;
}

.cookie-consent-dialog {
  width: min(680px, 100%);
  max-height: min(760px, calc(100vh - 40px));
  overflow: auto;
  color: #1f1f1f;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.28);
}

.cookie-consent-dialog-header,
.cookie-consent-dialog-body,
.cookie-consent-dialog-actions {
  padding: 18px;
}

.cookie-consent-dialog-header {
  border-bottom: 1px solid #e5e5e5;
}

.cookie-consent-dialog-header h2 {
  margin: 0 0 6px;
  font-size: 22px;
  line-height: 1.25;
}

.cookie-consent-dialog-header p,
.cookie-consent-category p {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
}

.cookie-consent-category {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid #e9e9e9;
}

.cookie-consent-category h3 {
  margin: 0 0 4px;
  font-size: 16px;
  line-height: 1.3;
}

.cookie-consent-switch {
  align-self: center;
  cursor: pointer;
}

.cookie-consent-switch input {
  position: absolute;
  opacity: 0;
}

.cookie-consent-switch span {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 28px;
  background: #777;
  border-radius: 999px;
}

.cookie-consent-switch span::after {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 20px;
  height: 20px;
  content: "";
  background: #fff;
  border-radius: 50%;
}

.cookie-consent-switch input:checked + span {
  background: #1f6f43;
}

.cookie-consent-switch input:checked + span::after {
  transform: translateX(20px);
}

.cookie-consent-switch input:disabled + span {
  opacity: 0.55;
  cursor: not-allowed;
}

.cookie-consent-dialog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  border-top: 1px solid #e5e5e5;
}

.cookie-consent-placeholder {
  display: flex;
  min-height: 180px;
  align-items: center;
  justify-content: center;
  padding: 18px;
  color: #1f1f1f;
  text-align: center;
  background: #f4f4f4;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.cookie-consent-placeholder p {
  max-width: 520px;
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.45;
}

iframe.consent-managed-embed.cookie-consent-blocked {
  display: none;
}

.weatherwidget-io.cookie-consent-blocked {
  display: none !important;
}

@media (max-width: 700px) {
  .cookie-consent-banner {
    align-items: stretch;
    flex-direction: column;
  }

  .cookie-consent-actions,
  .cookie-consent-dialog-actions {
    justify-content: stretch;
  }

  .cookie-consent-actions .cookie-consent-button,
  .cookie-consent-dialog-actions .cookie-consent-button {
    flex: 1 1 100%;
  }
}

@media (max-width: 360px) {
  .cookie-consent-banner,
  .cookie-consent-modal {
    left: 8px;
    right: 8px;
    bottom: 8px;
    padding: 10px;
  }

  .cookie-consent-dialog-header,
  .cookie-consent-dialog-body,
  .cookie-consent-dialog-actions {
    padding: 14px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .cookie-consent-switch span::after {
    transition: transform 0.16s ease;
  }
}
