/* =============================================================================
   Address Profile — "Look up another address" CTAs
   Three placements: breadcrumb trailing link (desktop only), end-of-content
   outro bookend, and mobile viewport-fixed pill bar.
   ============================================================================= */

/* -----------------------------------------------------------------------------
   Breadcrumb trailing link — right-aligned inside .breadcrumb (flex row).
   Desktop only. Mobile hides this (the sticky bar covers that flow).
   ----------------------------------------------------------------------------- */
.breadcrumb .coc-addr-cta-nav {
  margin-left: auto;
  color: var(--color-primary);
  font-weight: 600;
  white-space: nowrap;
}
.breadcrumb .coc-addr-cta-nav:hover {
  color: var(--color-primary-hover);
  text-decoration: underline;
}

@media (max-width: 640px) {
  .breadcrumb .coc-addr-cta-nav { display: none; }
}

/* -----------------------------------------------------------------------------
   End-of-content outro bookend — restrained, ghost button + text link.
   Sits in the .section rhythm below the last card, above the site footer.
   ----------------------------------------------------------------------------- */
.coc-addr-outro {
  text-align: center;
  padding: 32px 16px 8px;
}
.coc-addr-outro__prompt {
  margin: 0 0 14px;
  font-size: 1.05rem;
  color: var(--color-dark);
  font-weight: 600;
}
.coc-addr-outro__actions {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: center;
}
.coc-addr-outro__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border: 2px solid var(--color-primary);
  border-radius: 10px;
  background: transparent;
  color: var(--color-primary);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.15s, color 0.15s;
}
.coc-addr-outro__btn:hover {
  background: var(--color-primary);
  color: #fff;
}
.coc-addr-outro__sep {
  color: var(--color-slate);
  font-size: 0.9rem;
}
.coc-addr-outro__link {
  color: var(--color-muted);
  font-size: 0.95rem;
  text-decoration: underline;
}
.coc-addr-outro__link:hover { color: var(--color-primary); }

@media (max-width: 480px) {
  .coc-addr-outro__actions { flex-direction: column; gap: 10px; }
  .coc-addr-outro__sep { display: none; }
}

/* -----------------------------------------------------------------------------
   Mobile sticky pill bar — viewport-fixed, thumb-zone, hides on scroll-down.
   Desktop (>=768px) is served by the breadcrumb + outro; hide there.
   ----------------------------------------------------------------------------- */
.coc-addr-sticky {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  z-index: 90;
  display: flex;
  align-items: stretch;
  gap: 8px;
  background: var(--color-primary);
  color: #fff;
  border-radius: 999px;
  box-shadow: 0 6px 20px rgba(17, 17, 17, 0.18);
  transform: translateY(150%);
  transition: transform 0.24s ease-out, opacity 0.24s ease-out;
  opacity: 0;
  pointer-events: none;
}
.coc-addr-sticky.is-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.coc-addr-sticky[hidden] { display: none !important; }

.coc-addr-sticky__cta {
  flex: 1 1 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 20px;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 999px;
}
.coc-addr-sticky__cta:hover,
.coc-addr-sticky__cta:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  outline: none;
}
.coc-addr-sticky__icon {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
}

.coc-addr-sticky__dismiss {
  flex: 0 0 44px;
  width: 44px;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
  font-size: 1.4rem;
  line-height: 1;
  border-radius: 0 999px 999px 0;
  padding: 0;
}
.coc-addr-sticky__dismiss:hover,
.coc-addr-sticky__dismiss:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  outline: none;
}

/* When the sticky bar is present on mobile, add bottom padding to main so the
   final card isn't obscured by the bar. */
@media (max-width: 767px) {
  main.coc-address-page { padding-bottom: 88px; }
}

/* Hide the sticky bar on tablet+ — placements 1 and 3 cover desktop. */
@media (min-width: 768px) {
  .coc-addr-sticky { display: none !important; }
}

/* Print — no CTAs, no sticky. */
@media print {
  .coc-addr-outro,
  .coc-addr-sticky,
  .breadcrumb .coc-addr-cta-nav { display: none !important; }
}
