.cookie-consent-banner,
.cookie-preferences-modal {
  position: fixed;
  z-index: 99999;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.cookie-consent-banner {
  left: 24px;
  right: 24px;
  bottom: 24px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 18px;
  border: 1px solid #dce3f3;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(32, 39, 54, 0.18);
  color: #252936;
}

.cookie-consent-banner p {
  margin: 0;
  color: #667085;
  font-size: 15px;
  line-height: 1.45;
}

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

.cookie-button {
  border: 1px solid #dce3f3;
  border-radius: 14px;
  padding: 11px 14px;
  background: #fff;
  color: #252936;
  font-weight: 800;
  cursor: pointer;
}

.cookie-button-primary {
  border-color: #3157ff;
  background: #3157ff;
  color: #fff;
}

.cookie-preferences-modal {
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(32, 39, 54, 0.55);
}

.cookie-preferences-dialog {
  width: min(560px, calc(100vw - 32px));
  padding: 26px;
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 24px 80px rgba(32, 39, 54, 0.25);
}

.cookie-preferences-dialog h2 {
  margin: 0 0 10px;
  font-size: 28px;
}

.cookie-preferences-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
  border-top: 1px solid #edf1f8;
}

.cookie-preferences-row strong {
  display: block;
  margin-bottom: 5px;
}

.cookie-preferences-row span {
  color: #667085;
}

.cookie-hidden {
  display: none !important;
}

.legal-update-modal {
  position: fixed;
  inset: 0;
  z-index: 99990;
}

.legal-update-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(32, 39, 54, 0.62);
}

.legal-update-dialog {
  position: relative;
  width: min(620px, calc(100vw - 32px));
  margin: 9vh auto 0;
  padding: 28px;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(32, 39, 54, 0.24);
}

.auth-legal-consent {
  display: grid;
  gap: 7px;
  color: #667085;
  font-size: 12px;
  line-height: 1.35;
  justify-items: start;
  text-align: left;
}

.auth-check {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px;
  align-items: center;
}

.auth-check input {
  width: 14px;
  height: 14px;
  margin: 0;
}

.auth-check a {
  color: #3157ff;
  font-weight: 800;
}

.auth-legal-note {
  margin: 0 0 0 22px;
  font-size: 11px;
  color: #7c8494;
}

.auth-flow-email .auth-legal-consent {
  width: min(100%, 520px);
  max-width: 520px;
}

.auth-flow-email .auth-check {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: flex-start;
  width: 100%;
  min-height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #667085;
  text-align: left;
}

.auth-flow-email .auth-check input[type="checkbox"] {
  flex: 0 0 14px;
  width: 14px !important;
  min-width: 14px;
  height: 14px !important;
  min-height: 14px !important;
  margin: 1px 0 0 !important;
}

.auth-flow-email .auth-check span {
  display: inline;
  flex: 1 1 auto;
}

.auth-flow-email .auth-check a {
  font-weight: 700;
}

.auth-flow-email .auth-legal-note {
  margin-left: 22px;
  text-align: left;
}

@media (max-width: 720px) {
  .cookie-consent-banner {
    grid-template-columns: 1fr;
    left: 12px;
    right: 12px;
    bottom: 12px;
  }

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

  .cookie-button {
    flex: 1 1 auto;
  }
}

.ama-support-button {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 9999;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 18px;
  border: 1px solid rgba(55, 91, 255, 0.18);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  color: #2563eb;
  font-family: Inter, Arial, sans-serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.10);
  backdrop-filter: blur(12px);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.ama-support-button:hover {
  transform: translateY(-2px);
  border-color: rgba(55, 91, 255, 0.32);
  box-shadow: 0 22px 54px rgba(15, 23, 42, 0.14);
}

.ama-support-button__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #eef3ff;
  color: #315cff;
  font-size: 15px;
  font-weight: 800;
}

.ama-support-button__text {
  white-space: nowrap;
}

@media (max-width: 640px) {
  .ama-support-button {
    right: 16px;
    bottom: 16px;
    padding: 13px;
    border-radius: 50%;
  }

  .ama-support-button__text {
    display: none;
  }
}
