/* Ieși — design original din paginile cu litere (alfabet-cards) */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@600&display=swap');

.ecp-exit {
  --ecp-exit-accent: #205eb5;
  position: fixed;
  top: 43.4px;
  left: 37.2px;
  z-index: 250;
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  padding: 12.4px 24.8px;
  gap: 12.4px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 1.55px 4.65px rgba(0, 0, 0, 0.1), 0 1.55px 3.1px -1.55px rgba(0, 0, 0, 0.1);
  border-radius: 24.8px;
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 600;
  font-size: 21.7px;
  line-height: 31px;
  letter-spacing: -0.233105px;
  color: var(--ecp-exit-accent);
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-sizing: border-box;
  white-space: nowrap;
}

.ecp-exit:hover {
  background: rgba(255, 255, 255, 0.92);
  color: var(--ecp-exit-accent);
}

.ecp-exit__icon {
  width: 27.9px;
  height: 27.9px;
  flex-shrink: 0;
  display: block;
}

.ecp-exit__icon path {
  stroke: currentColor;
}

/* Varianta vizibilă pe fișe (toolbar deschis / fundal deschis) */
.ecp-exit--solid {
  background: var(--ecp-exit-accent);
  color: #fff;
  box-shadow: 0 2px 8px rgba(32, 94, 181, 0.35);
}

.ecp-exit--solid:hover {
  background: #1a4f9a;
  color: #fff;
}

@media (max-width: 900px) {
  .ecp-exit {
    top: max(13px, env(safe-area-inset-top, 0px));
    right: 13px;
    left: auto;
    flex-direction: row-reverse;
    padding: 0;
    gap: 12px;
    min-height: 0;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    font-size: 14px;
    line-height: 31px;
  }

  .ecp-exit:hover {
    background: transparent;
    opacity: 0.85;
  }

  .ecp-exit__icon {
    width: 24px;
    height: 24px;
  }

  /* Pe mobile: același layout ca Citește litere (sus-dreapta) */
  .ecp-exit--solid {
    top: max(13px, env(safe-area-inset-top, 0px));
    right: 13px;
    left: auto;
    flex-direction: row-reverse;
    padding: 0;
    gap: 12px;
    min-height: 0;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    font-size: 14px;
    line-height: 31px;
    color: var(--ecp-exit-accent);
  }

  .ecp-exit--solid:hover {
    background: transparent;
    color: var(--ecp-exit-accent);
    opacity: 0.85;
  }
}
