/* Base layout shell — config hook, footer chrome (extracted from base.html inline styles) */

#base-config {
  display: none;
}

.site-footer-powered {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.site-footer-powered__label {
  font-size: var(--font-size-sm);
  color: var(--color-text-faint);
}

.site-footer-powered__logo {
  max-height: 42px;
  height: auto;
  width: auto;
  vertical-align: middle;
}

.push-denied-guide-link {
  font-size: inherit;
  vertical-align: baseline;
}

/* Shared public footer (web/_partials/site_footer.html, default skin) */
.site-footer .footer-links-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer .footer-heading {
  margin-top: 0;
}

.site-footer .footer-link {
  display: inline-flex;
  align-items: center;
  min-height: var(--control-height-sm);
}

.site-footer .footer-link:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: var(--radius-xs);
}

.site-footer .footer-bottom {
  align-items: center;
}

.site-footer .footer-copyright {
  margin: 0;
}

/* Phone app: no footer at all. The report button and the legal links live in Altro (staff) and
   the profile menu (customers), so nothing sits under the page content. */
@media (max-width: 768px) {
  body .app-legal-strip-wrap {
    display: none;
  }
}

/* Slim legal strip for signed-in pages (web/_partials/app_legal_strip.html) */
.app-legal-strip {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1) var(--space-4);
  align-items: center;
  justify-content: space-between;
  margin-top: var(--space-12);
  padding: var(--space-4) 0 var(--space-2);
  border-top: 1px solid var(--color-border-alt);
  color: var(--color-text-muted);
  font-size: var(--font-size-xs);
}

.app-legal-strip ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1) var(--space-4);
  margin: 0;
  padding: 0;
  list-style: none;
}

.app-legal-strip a,
.app-legal-strip .footer-cookie-btn {
  display: inline-flex;
  align-items: center;
  min-height: var(--control-height-sm);
  color: inherit;
  text-decoration: none;
}

.app-legal-strip a:hover,
.app-legal-strip .footer-cookie-btn:hover {
  color: var(--emerald);
  text-decoration: underline;
}

.app-legal-strip a:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: var(--radius-xs);
}

.app-legal-strip__copy {
  margin: 0;
}

/* Quick-report trigger: custom button on .btn geometry (pill, control height). */
.app-legal-strip__report {
  display: inline-flex;
  gap: var(--space-2);
  align-items: center;
  min-height: var(--control-height-sm);
  padding: 0 var(--space-4);
  color: var(--brand-green-strong);
  font-size: var(--font-size-sm);
  font-weight: 600;
  background: var(--color-surface);
  border: 1px solid var(--color-border-alt);
  border-radius: var(--radius-pill);
  cursor: pointer;
}

.app-legal-strip__report:hover {
  border-color: var(--brand-green);
}

.app-legal-strip__report:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

/* Legal pages: Terms / Privacy / AI / Cookie switcher reuses the .ae-section-nav pill. */
.legal-docs-switch.ae-section-nav {
  display: flex;
  flex-wrap: wrap;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto var(--space-6);
}

/* Quick report modal (web/_partials/feedback_modal.html): the Problema/Suggerimento
   switch reuses the Automazioni pill (.ae-section-nav) with <button>s. */
.feedback-kind-row {
  display: flex;
  justify-content: center;
  margin-bottom: var(--space-3);
}

.feedback-kind.ae-section-nav {
  margin-bottom: 0;
}

button.ae-section-nav__link {
  background: transparent;
  border: 0;
  cursor: pointer;
}

button.ae-section-nav__link:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.feedback-modal .feedback-message {
  resize: vertical;
}

.feedback-hint {
  margin: var(--space-2) 0 0;
  color: var(--color-text-muted);
  font-size: var(--font-size-xs);
}

.feedback-error {
  margin: var(--space-2) 0 0;
  font-size: var(--font-size-sm);
}
