/* EPI-NO - filtro operatori sanitari */
html.epinohcp-lock,
html.epinohcp-lock body {
  overflow: hidden !important;
}

.epinohcp-overlay {
  position: fixed;
  inset: 0;
  top: 0; right: 0; bottom: 0; left: 0;
  z-index: 2147483000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(20, 20, 30, .72);
}

.epinohcp-box {
  width: 100%;
  max-width: 560px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  padding: 32px 28px 24px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .25);
  text-align: center;
  color: #232323;
}

.epinohcp-title {
  margin: 0 0 16px;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.3;
}

.epinohcp-text p { margin: 0 0 10px; }

.epinohcp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin: 24px 0 16px;
}

.epinohcp-actions .epinohcp-btn {
  flex: 1 1 200px;
  white-space: normal;
  padding: 12px 16px;
  text-transform: none;
}

.epinohcp-actions .epinohcp-btn[disabled] { opacity: .6; cursor: wait; }

.epinohcp-note {
  margin: 0;
  font-size: .8rem;
  color: #666;
}

.epinohcp-note a { text-decoration: underline; }

.epinohcp-error {
  margin: 12px 0 0;
  color: #b00020;
  font-size: .9rem;
}

.epinohcp-notice {
  position: relative;
  z-index: 1000;
  padding: 12px 48px 12px 16px;
  background: #fff4e5;
  border-bottom: 1px solid #f0c58a;
  color: #5a3b00;
  text-align: center;
  font-size: .95rem;
}

.epinohcp-notice button {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  color: inherit;
}

.epinohcp-footer-link {
  padding: 8px 0;
  font-size: .85rem;
  text-align: center;
}

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

/* Popup riaperto: pulsante di chiusura e scelta attuale (v1.2) */
.epinohcp-overlay[hidden] { display: none !important; }

.epinohcp-box { position: relative; }

.epinohcp-close {
  position: absolute;
  top: 8px;
  right: 12px;
  border: 0;
  background: transparent;
  font-size: 1.6rem;
  line-height: 1;
  color: #666;
  cursor: pointer;
}

.epinohcp-actions .epinohcp-btn.epinohcp-current {
  box-shadow: 0 0 0 3px rgba(46, 125, 140, .45);
}

/* Widget per modificare la scelta (v1.3): stessa forma del pulsante Iubenda.
   Le misure qui sotto sono il fallback; in modalità "auto" il JS copia
   dimensioni, angoli, ombra e posizione dal pulsante Iubenda reale. */
.epinohcp-widget {
  position: fixed;
  bottom: 0;
  z-index: 99990; /* sopra il tema, sotto il banner Iubenda e il popup */
  width: 38px;
  height: 38px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 6px 6px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .15);
  cursor: pointer;
  transition: filter .15s ease;
  -webkit-tap-highlight-color: transparent;
}

.epinohcp-widget--auto { left: 62px; }   /* 16 + 38 + 8: accanto a Iubenda */
.epinohcp-widget--left { left: 16px; }
.epinohcp-widget--right { right: 16px; }

.epinohcp-widget--pending { visibility: hidden; }

.epinohcp-widget-icon {
  width: 55%;
  height: 55%;
  flex: 0 0 auto;
  pointer-events: none;
}

.epinohcp-widget:hover { filter: brightness(1.12); }

.epinohcp-widget:focus { outline: none; }
.epinohcp-widget:focus-visible { outline: 2px solid #232323; outline-offset: 2px; }

.epinohcp-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@media print { .epinohcp-widget { display: none; } }
