.khek-csatolmanyok {
  container-type: inline-size;
}

.khek-csatolmanyok__cim {
  margin-bottom: 16px;
}

.khek-csatolmanyok__lista {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.khek-csatolmanyok__elem {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.khek-csatolmanyok__link {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 4px 0;
  border: none;
  border-radius: 0;
  text-decoration: none;
  color: inherit;
  font-size: 17px;
  transition: color 0.15s;
}

.khek-csatolmanyok__link:hover {
  background-color: transparent;
  border-color: transparent;
  color: var(--wp--preset--color--green);
}

/* box-shadow-kent adjuk hozza, nem border-bottom-kent, hogy ne foglaljon
   helyet/mozditsa el a sortavolsagot, es a bongeszo pixel-kerekitese se
   vekonyitse el 2px alattinak (lasd ugyanezt a fejlec nav-jaban). */
.khek-csatolmanyok__link:hover .khek-csatolmanyok__nev {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
}

.khek-csatolmanyok__ikon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 28px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
  flex-shrink: 0;
  line-height: 1;
}

.khek-csatolmanyok__nev {
  flex: 1;
  font-weight: 600;
  line-height: 1;
}

.khek-csatolmanyok__ext {
  display: none;
}

/* Szerkesztő nézet */
.khek-csatolmanyok__placeholder {
  color: #718096;
  font-style: italic;
}

/* Szerkesztő: a sor (.khek-csatolmanyok__elem--editor) a frontend sorral
   (.khek-csatolmanyok__elem) MEGEGYEZO elrendezest hasznalja (mindkettot
   megkapja az elem) - keret/hatterszin nelkul, hogy nyugalmi allapotban
   pontosan ugyanugy nezzen ki, mint a kesz oldalon. A nev-mezo is a
   frontend szoveggel (.khek-csatolmanyok__nev) azonos betumeretet/
   -vastagsagot kapja, csak hover/fokusz eseten jelenik meg egy finom
   keret, jelezve a szerkeszthetoseget. */
.khek-csatolmanyok__nev-input {
  flex: 1;
  border: 1px solid transparent;
  border-radius: 3px;
  padding: 0;
  font-size: 17px;
  font-weight: 600;
  line-height: 1;
  font-family: inherit;
  color: inherit;
  background: transparent;
  min-width: 0;
}

.khek-csatolmanyok__nev-input:hover,
.khek-csatolmanyok__nev-input:focus {
  border-color: #ccc;
  outline: none;
  padding: 4px 6px;
}

.khek-csatolmanyok__mozgat {
  flex-shrink: 0;
}

.khek-csatolmanyok__torol {
  flex-shrink: 0;
}

/* Szerkesztő: hozzáadás toolbar */
.khek-csatolmanyok__toolbar {
  margin-top: 12px;
}

.khek-csatolmanyok__hozzaad {
  gap: 6px;
}
