/* acknowledgment-banner.css — modal that appears on every browser
 * session for customers signed into the dashboard. Coral accent on
 * the modal border per the cinematic palette so the surface identity
 * matches the customer "do" zone. */

.concura-ack-locked {
  overflow: hidden;
}

/* All sizing below is in px (or em relative to .concura-ack-modal's own
 * font-size) so the modal is independent of mkdocs-material's html
 * base font-size (which is 24px on this site — rem-based sizing made
 * the modal balloon to ~2500px tall on phones and put the Accept
 * button below the fold with no way to scroll on iOS Safari). */

.concura-ack-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(15, 23, 42, 0.55);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 16px;
  padding-bottom: max(16px, env(safe-area-inset-bottom));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}

.concura-ack-modal {
  background: #ffffff;
  max-width: 560px;
  width: 100%;
  margin: auto;
  border-radius: 8px;
  border: 1px solid #e5e3dc;
  border-top: 4px solid #D85A30;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.25);
  padding: 24px 24px 20px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 15px;
  color: #1f2d2d;
  line-height: 1.5;
  box-sizing: border-box;
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.concura-ack-modal * {
  box-sizing: border-box;
}

.concura-ack-title {
  margin: 0 0 8px;
  font-size: 20px;
  line-height: 1.25;
  font-weight: 700;
  color: #993C1D;
  letter-spacing: -0.005em;
}

.concura-ack-lede {
  margin: 0 0 14px;
  font-size: 14px;
  color: #444;
}

.concura-ack-list {
  margin: 0 0 14px 18px;
  padding: 0;
  font-size: 14px;
}

.concura-ack-list li {
  margin: 6px 0;
  padding-left: 4px;
}

.concura-ack-list li strong {
  color: #1f2d2d;
}

.concura-ack-tos {
  margin: 0 0 16px;
  font-size: 13px;
  color: #6a6a6a;
}

.concura-ack-tos a {
  color: #008080;
  text-decoration: none;
  border-bottom: 1px dotted #008080;
}

.concura-ack-tos a:hover {
  color: #005959;
  border-bottom-style: solid;
}

.concura-ack-btnrow {
  display: flex;
  justify-content: flex-end;
  position: sticky;
  bottom: -20px;
  margin: 6px -24px -20px;
  padding: 12px 24px 20px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.85) 0%, #ffffff 40%);
}

.concura-ack-confirm {
  background: #D85A30;
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.005em;
  padding: 10px 20px;
  border: 1px solid #993C1D;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.15s, box-shadow 0.15s;
  box-shadow: 0 1px 2px rgba(216, 90, 48, 0.2);
  min-height: 44px;
}

.concura-ack-confirm:hover:not(:disabled) {
  background: #993C1D;
  box-shadow: 0 2px 6px rgba(216, 90, 48, 0.3);
}

.concura-ack-confirm:active:not(:disabled) {
  transform: translateY(1px);
}

.concura-ack-confirm:disabled {
  background: #c5c3bc;
  border-color: #c5c3bc;
  cursor: wait;
  box-shadow: none;
}

@media (max-width: 480px) {
  .concura-ack-modal {
    padding: 18px 18px 16px;
    font-size: 14px;
  }
  .concura-ack-title {
    font-size: 17px;
    margin-bottom: 6px;
  }
  .concura-ack-lede {
    font-size: 13px;
    margin-bottom: 10px;
  }
  .concura-ack-list {
    font-size: 13px;
    margin-left: 16px;
    margin-bottom: 10px;
  }
  .concura-ack-list li {
    margin: 4px 0;
  }
  .concura-ack-tos {
    font-size: 12px;
    margin-bottom: 12px;
  }
  .concura-ack-btnrow {
    justify-content: stretch;
    margin: 6px -18px -16px;
    padding: 10px 18px 16px;
    bottom: -16px;
  }
  .concura-ack-confirm {
    width: 100%;
    font-size: 14px;
  }
}
