/* Feedback widget styles, contract version 1, section 4. Every class carries the prefix vfb-; no global rule.
   Copied byte for byte into each app's public/feedback-widget.css by scripts/copy-widget.mjs. */

.vfb-slot {
  display: inline-flex;
  align-items: center;
  margin-inline-end: 0.75rem;
}

.vfb-slot[hidden] {
  display: none;
}

.vfb-link {
  box-sizing: border-box;
  min-height: 44px;
  padding: 0 1rem;
  font: inherit;
  color: inherit;
  background: transparent;
  border: 1px solid currentColor;
  border-radius: 999px;
  cursor: pointer;
}

.vfb-link:hover {
  background: rgba(127, 127, 127, 0.18);
}

.vfb-link:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 2px;
}

.vfb-dialog {
  box-sizing: border-box;
  width: min(32rem, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  padding: 0;
  overflow: auto;
  color: #1a2d4a;
  background: #ffffff;
  border: 0;
  border-radius: 14px;
  box-shadow: 0 20px 80px rgba(26, 45, 74, 0.27);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.45;
}

@supports (height: 100dvh) {
  .vfb-dialog {
    max-height: calc(100dvh - 2rem);
  }
}

.vfb-dialog::backdrop {
  background: rgba(15, 29, 51, 0.45);
}

.vfb-dialog *,
.vfb-dialog *::before,
.vfb-dialog *::after {
  box-sizing: border-box;
}

.vfb-dialog [hidden] {
  display: none;
}

.vfb-panel {
  padding: 1.25rem;
}

.vfb-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.vfb-title {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.3;
}

.vfb-close {
  flex: none;
  width: 44px;
  height: 44px;
  margin: -0.5rem -0.5rem 0 0;
  font: inherit;
  font-size: 1.5rem;
  line-height: 1;
  color: inherit;
  background: transparent;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
}

.vfb-close:hover {
  background: #f4ecdc;
}

.vfb-fieldset {
  margin: 0 0 1rem;
  padding: 0;
  border: 0;
  min-width: 0;
}

.vfb-legend {
  margin: 0 0 0.25rem;
  padding: 0;
  font-weight: 600;
}

.vfb-radio {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 44px;
  cursor: pointer;
}

.vfb-radio-input {
  flex: none;
  width: 1.25rem;
  height: 1.25rem;
  margin: 0;
  accent-color: #1a2d4a;
}

.vfb-field {
  margin-bottom: 1rem;
}

.vfb-label {
  display: block;
  margin-bottom: 0.25rem;
  font-weight: 600;
}

.vfb-textarea {
  display: block;
  width: 100%;
  min-height: 9rem;
  padding: 0.625rem 0.75rem;
  font: inherit;
  color: inherit;
  background: #ffffff;
  border: 1px solid #8a949d;
  border-radius: 8px;
  resize: vertical;
}

.vfb-counter {
  margin: 0.25rem 0 0;
  font-size: 0.875rem;
  color: #5c6975;
  text-align: right;
}

.vfb-warning {
  margin: 0 0 0.5rem;
  padding: 0.625rem 0.75rem;
  background: #f4ecdc;
  border-radius: 8px;
}

.vfb-note {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  color: #5c6975;
}

.vfb-error,
.vfb-file-error {
  margin: 0 0 1rem;
  padding: 0.625rem 0.75rem;
  color: #7a2a23;
  background: #fbeceb;
  border: 1px solid #a14138;
  border-radius: 8px;
}

.vfb-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.75rem;
}

.vfb-btn {
  min-height: 44px;
  padding: 0 1.25rem;
  font: inherit;
  font-weight: 600;
  border-radius: 999px;
  cursor: pointer;
}

.vfb-send {
  color: #ffffff;
  background: #1a2d4a;
  border: 1px solid #1a2d4a;
}

.vfb-send:hover {
  background: #2c4368;
}

.vfb-send:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.vfb-cancel {
  color: #1a2d4a;
  background: transparent;
  border: 1px solid #1a2d4a;
}

.vfb-cancel:hover {
  background: #f4ecdc;
}

.vfb-done-heading {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
}

.vfb-done-heading:focus {
  outline: none;
}

.vfb-done-text,
.vfb-done-number,
.vfb-done-mine {
  margin: 0 0 0.75rem;
}

.vfb-mine {
  display: inline-block;
  padding: 0.75rem 0;
  color: inherit;
}

.vfb-dialog button:focus-visible,
.vfb-dialog a:focus-visible,
.vfb-dialog input:focus-visible,
.vfb-dialog textarea:focus-visible {
  outline: 3px solid #2c4368;
  outline-offset: 2px;
}

.vfb-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 399.98px) {
  .vfb-actions {
    flex-direction: column-reverse;
  }

  .vfb-btn {
    width: 100%;
  }
}

/* Attachments (addendum 2026-11-11): only built when the app's probe says bijlagen: true. */
.vfb-attach {
  margin-bottom: 1rem;
}

.vfb-attach-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
}

.vfb-attach-btn {
  color: #1a2d4a;
  background: transparent;
  border: 1px solid #1a2d4a;
}

.vfb-attach-btn:hover {
  background: #f4ecdc;
}

.vfb-attach-btn:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.vfb-attach-hint {
  font-size: 0.875rem;
  color: #5c6975;
}

.vfb-files {
  margin: 0.5rem 0 0;
}

.vfb-file {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.375rem 0;
  border-top: 1px solid #e3ded3;
}

.vfb-thumb,
.vfb-pdf {
  flex: none;
  width: 3rem;
  height: 3rem;
  border-radius: 6px;
  background: #f4ecdc;
}

.vfb-thumb {
  object-fit: cover;
}

.vfb-pdf {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #7a2a23;
}

.vfb-file-main {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-width: 0;
}

.vfb-file-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vfb-file-meta {
  font-size: 0.875rem;
  color: #5c6975;
}

.vfb-file-remove {
  flex: none;
  min-height: 44px;
  padding: 0 0.75rem;
  color: #1a2d4a;
  background: transparent;
  border: 1px solid #8a949d;
  font-weight: 400;
}

.vfb-file-remove:hover {
  background: #f4ecdc;
}

.vfb-file-remove:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.vfb-file-error {
  margin: 0.5rem 0 0.5rem;
}

.vfb-attach-warning {
  margin: 0.5rem 0 0;
}
