.archive-notice-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.72);
}

.archive-notice-modal {
  width: min(760px, 100%);
  max-height: 90vh;
  overflow: auto;
  background: #ffffff;
  color: #101828;
  border-radius: 14px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
  border: 1px solid #d0d5dd;
}

.archive-notice-content {
  padding: 28px;
}

.archive-notice-hero {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 10px;
}

.archive-notice-icon-wrap {
  width: clamp(74px, 12vw, 106px);
  height: clamp(74px, 12vw, 106px);
  border-radius: 22px;
  background: linear-gradient(160deg, #fff7ed 0%, #ffedd5 100%);
  border: 1px solid #fed7aa;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.archive-notice-headline {
  min-width: 0;
}

.archive-notice-badge {
  display: inline-block;
  margin: 0 0 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #fff4e5;
  color: #92400e;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.archive-notice-emoji {
  font-size: clamp(44px, 7vw, 62px);
  line-height: 1;
  display: block;
  filter: saturate(0.7) sepia(0.12) hue-rotate(10deg);
}

.archive-notice-title {
  margin: 0;
  font-size: clamp(26px, 3.6vw, 38px);
  line-height: 1.1;
  color: #111827;
}

.archive-notice-text {
  margin: 4px 0 0;
  font-size: 18px;
  line-height: 1.55;
  color: #374151;
}

.archive-notice-actions {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.archive-notice-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 12px 18px;
  font-size: 16px;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: none;
  transition: all 120ms ease;
}

.archive-notice-btn-primary {
  background: #16a34a;
  color: #ffffff;
  font-weight: 700;
}

.archive-notice-btn-primary:hover,
.archive-notice-btn-primary:focus {
  background: #15803d;
}

.archive-notice-btn-primary::after {
  content: "\2192";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35em;
  line-height: 1;
}

.archive-notice-btn-secondary {
  background: #f8f9fb;
  border-color: #d0d5dd;
  color: #344054;
  font-weight: 500;
}

.archive-notice-btn-secondary:hover,
.archive-notice-btn-secondary:focus {
  background: #eef1f5;
}

.archive-notice-footnote {
  margin-top: 14px;
  font-size: 13px;
  color: #667085;
}

body.archive-notice-open {
  overflow: hidden;
}

@media (max-width: 640px) {
  .archive-notice-content {
    padding: 20px;
  }

  .archive-notice-hero {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .archive-notice-icon-wrap {
    width: 68px;
    height: 68px;
    border-radius: 16px;
  }

  .archive-notice-emoji {
    font-size: 40px;
  }

  .archive-notice-headline {
    width: 100%;
  }

  .archive-notice-text {
    font-size: 16px;
  }

  .archive-notice-actions {
    flex-direction: column;
  }

  .archive-notice-btn {
    width: 100%;
    text-align: center;
  }
}

/* ── Archived contact-form overlay ─────────────────────────────── */

.cb_form_wrapper,
.archived-overlay-host {
  position: relative !important;
}

.archived-form-overlay {
  position: absolute;
  inset: 0;
  background: rgba(100, 100, 100, 0.55);
  backdrop-filter: blur(2px);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  box-sizing: border-box;
  border-radius: 4px;
  pointer-events: all;
  cursor: not-allowed;
}

.archived-search-overlay {
  position: fixed;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  box-sizing: border-box;
  background: rgba(100, 100, 100, 0.55);
  backdrop-filter: blur(2px);
  border-radius: inherit;
  pointer-events: all;
  cursor: not-allowed;
}

.archived-search-overlay[hidden] {
  display: none;
}

.archived-search-overlay > .archived-search-badge {
  display: inline-block;
  max-width: min(100%, 520px);
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 4px;
  background: rgba(40, 40, 40, 0.82);
  color: #fff;
  font-size: clamp(0.72rem, 1.25vw, 0.86rem);
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
}

.archived-search-note {
  display: block;
  margin-top: 6px;
  font-size: 0.92em;
  font-weight: 400;
}

.archived-search-link {
  display: inline-block;
  margin-top: 8px;
  color: #fff;
  text-decoration: underline;
  font-weight: 700;
}

.archived-form-stamp {
  transform: none;
  padding: clamp(8px, 2vw, 14px) clamp(10px, 3vw, 18px);
  border: 2px solid rgba(255, 255, 255, 0.75);
  border-radius: 6px;
  background: rgba(40, 40, 40, 0.7);
  color: #fff;
  font-size: clamp(0.78rem, 1.7vw, 0.95rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-align: center;
  line-height: 1.4;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  user-select: none;
  pointer-events: auto;
  width: min(92%, 520px);
  max-height: 92%;
  overflow: auto;
  box-sizing: border-box;
}

.archived-form-note {
  margin-top: 8px;
  font-size: clamp(0.75rem, 1.5vw, 0.9rem);
  font-weight: 400;
  letter-spacing: 0;
  white-space: normal;
  overflow-wrap: anywhere;
}

.archived-form-link {
  display: inline-block;
  margin-top: 12px;
  padding: clamp(6px, 1.4vw, 8px) clamp(8px, 2vw, 12px);
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  color: #fff;
  text-decoration: none;
  font-size: clamp(0.72rem, 1.35vw, 0.88rem);
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  cursor: pointer;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.archived-form-link:hover,
.archived-form-link:focus {
  background: rgba(255, 255, 255, 0.18);
}
