/*
  FILE: /assets/css/components/brodlin-link.css
  OWNER: shared "Link" window (assets/js/components/brodlin-link.js), Create PDF and PDF Editor. 21.11.2026.
  LOOK: the site window of confirm.css (card 8 px, padding 32 / 24 on a phone, title 16/600, buttons 36 px);
        fields 33 px, 14 px text, radius 6, graphite focus; the types are grey, the chosen one grey too;
        the main button blue #4D6EF0, 500. Logical properties, so he / ar mirror by themselves.
*/
.brodlin-link {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  font-family: Inter, "Noto Sans Hebrew", "Noto Sans Arabic", "Noto Sans Devanagari", "Noto Sans SC", "Noto Sans JP", "Noto Sans KR", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: #14171c;
}
.brodlin-link[hidden],
.brodlin-link [hidden] {
  display: none !important;
}
.brodlin-link__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 26, 26, 0.4);
}
.brodlin-link__card {
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: calc(100vh - 40px);
  overflow: auto;
  box-sizing: border-box;
  padding: 32px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}
.brodlin-link__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-block-end: 16px;
}
.brodlin-link__title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.25;
  color: #1a1a1a;
}
.brodlin-link__x {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-inline-end: -8px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #5b6470;
  cursor: pointer;
}
.brodlin-link__x:hover {
  background: rgba(0, 0, 0, 0.04);
}
.brodlin-link__x .material-symbols-outlined {
  font-size: 20px;
}
.brodlin-link__types {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-block-end: 16px;
}
.brodlin-link__type {
  height: 30px;
  padding: 0 12px;
  border: 1px solid #e3e7eb;
  border-radius: 6px;
  background: #fff;
  color: #14171c;
  font-family: inherit;
  font-size: 13px;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
}
.brodlin-link__type:hover {
  background: #f3f5f7;
}
.brodlin-link__type.is-active {
  background: #e9ecef;
  border-color: #e9ecef;
  font-weight: 500;
}
.brodlin-link__type:focus-visible,
.brodlin-link__button:focus-visible,
.brodlin-link__x:focus-visible {
  outline: 2px solid #34465b;
  outline-offset: 1px;
}
.brodlin-link__field {
  display: block;
}
.brodlin-link__field + .brodlin-link__field {
  margin-block-start: 12px;
}
.brodlin-link__label {
  display: block;
  margin-block-end: 6px;
  font-size: 13px;
  font-weight: 500;
  color: #5b6470;
}
.brodlin-link__input {
  display: block;
  width: 100%;
  height: 33px;
  box-sizing: border-box;
  padding: 0 10px;
  border: 1px solid #c7cdd4;
  border-radius: 6px;
  background: #fff;
  color: #14171c;
  font-family: inherit;
  font-size: 14px;
  outline: none;
}
.brodlin-link__input:focus {
  border-color: #34465b;
  box-shadow: 0 0 0 1px #34465b;
}
.brodlin-link__input[aria-invalid="true"] {
  border-color: #ed1a38;
}
.brodlin-link__select {
  padding-inline-end: 6px;
}
.brodlin-link__hint {
  margin-block-start: 8px;
  font-size: 12px;
  line-height: 1.45;
  color: #5b6470;
}
.brodlin-link__error {
  margin-block-start: 8px;
  font-size: 13px;
  line-height: 1.45;
  color: #c4122d;
}
.brodlin-link__error:empty {
  display: none;
}
.brodlin-link__footer {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-block-start: 24px;
}
.brodlin-link__spacer {
  flex: 1 1 auto;
}
.brodlin-link__button {
  height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
}
html body .brodlin-link .brodlin-link__button--apply {
  background: #4d6ef0;
  color: #fff;
  font-weight: 500;
}
html body .brodlin-link .brodlin-link__button--apply:hover {
  background: #3f5fdc;
}
html body .brodlin-link .brodlin-link__button--cancel {
  background: #fff;
  border: 1px solid #c7cdd4;
  color: #666;
  font-weight: 400;
}
html body .brodlin-link .brodlin-link__button--cancel:hover {
  background: rgba(0, 0, 0, 0.03);
}
html body .brodlin-link .brodlin-link__button--remove {
  padding: 0 4px;
  background: transparent;
  color: #ed1a38;
  font-weight: 400;
}
html body .brodlin-link .brodlin-link__button--remove:hover {
  color: #d0102c;
}
@media (max-width: 480px) {
  .brodlin-link {
    padding: 16px;
  }
  .brodlin-link__card {
    padding: 24px;
    max-height: calc(100vh - 32px);
  }
  .brodlin-link__footer {
    flex-wrap: wrap;
  }
  .brodlin-link__button--remove {
    order: 3;
    width: 100%;
    text-align: start;
  }
}
