.feedback-dialog-layer,
.error-root {
  --ink: #171c25;
  --muted: #677184;
  --line: #dfe3e8;
  --line-strong: #b9c0cb;
  --success: #148343;
  --success-soft: #eaf7ef;
  --warning-soft: #fff0ef;
  box-sizing: border-box;
  color: var(--ink);
  font-family: var(--fa-font-sans);
  font-size: 16px;
  line-height: normal;
  font-synthesis: none;
  text-align: left;
}

.feedback-dialog-layer *,
.feedback-dialog-layer *::before,
.feedback-dialog-layer *::after,
.error-root *,
.error-root *::before,
.error-root *::after {
  box-sizing: border-box;
}

.feedback-dialog-layer button {
  margin: 0;
  font: inherit;
  cursor: pointer;
}

.feedback-dialog-layer button:focus-visible,
.feedback-dialog:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.feedback-dialog-layer {
  position: fixed;
  /* Global feedback sits above the mobile configuration drawer (100100). */
  z-index: 100200;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(20, 27, 38, .43);
  backdrop-filter: blur(2px);
}

.feedback-dialog-layer:global(.is-open) {
  animation: feedback-backdrop-enter 180ms ease both;
}

.feedback-dialog-layer:not(:global(.is-open)):not(:global(.is-closing)) {
  visibility: hidden;
}

.feedback-dialog-layer:global(.is-open) .feedback-dialog {
  animation: feedback-dialog-enter 220ms cubic-bezier(.22, 1, .36, 1) both;
}

.feedback-dialog-layer:global(.is-closing) {
  pointer-events: none;
  animation: feedback-backdrop-exit 180ms ease both;
}

.feedback-dialog-layer:global(.is-closing) .feedback-dialog {
  animation: feedback-dialog-exit 180ms cubic-bezier(.4, 0, 1, 1) both;
}

@keyframes feedback-backdrop-enter {
  from { background-color: rgba(20, 27, 38, 0); }
}

@keyframes feedback-backdrop-exit {
  to { background-color: rgba(20, 27, 38, 0); }
}

@keyframes feedback-dialog-enter {
  from { opacity: 0; transform: translate3d(0, 10px, 0) scale(.985); }
  to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}

@keyframes feedback-dialog-exit {
  from { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
  to { opacity: 0; transform: translate3d(0, 7px, 0) scale(.99); }
}

.feedback-dialog-layer.is-contained { position: absolute; }

.feedback-dialog-layer.is-scoped-backdrop {
  background: transparent;
  backdrop-filter: none;
}

.feedback-blur-target {
  filter: blur(2px) brightness(.7);
}

.error-root {
  position: fixed;
  z-index: 260;
  inset: var(--wp-admin--admin-bar--height, 0) 0 0;
  min-width: 0;
  min-height: 0;
}

.error-root[hidden] { display: none; }
.error-root.is-fullscreen { z-index: 100200; }

.feedback-dialog {
  position: relative;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 0 13px;
  width: min(440px, 100%);
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 22px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #c7cdd6;
  border-radius: 11px;
  box-shadow: 0 24px 64px rgba(18, 25, 36, .26);
}

.feedback-dialog-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: #536175;
  background: #f1f3f6;
  border-radius: 50%;
}

.feedback-dialog:has(> :global(.fotogenic-ai-update-notes)) .feedback-dialog-icon {
  grid-row: 1 / 3;
  align-self: start;
}
.feedback-dialog:has(> :global(.fotogenic-ai-update-notes)) .feedback-dialog-copy {
  align-self: start;
  gap: 0;
}
.feedback-dialog:has(> :global(.fotogenic-ai-update-notes)) .feedback-dialog-copy p:empty { display: none; }
.feedback-dialog:has(> :global(.fotogenic-ai-update-notes)) .feedback-dialog-actions { margin-top: 12px; }

.is-success .feedback-dialog-icon { color: var(--success); background: var(--success-soft); }
.is-warning .feedback-dialog-icon { color: #a7660d; background: #fff6e8; }
.is-danger .feedback-dialog-icon { color: #b23b33; background: var(--warning-soft); }

.feedback-dialog-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 1px 28px 0 0;
}

.feedback-dialog-copy > span {
  color: #727d8d;
  font-size: 9px;
  font-weight: 850;
  line-height: 13px;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.feedback-dialog-copy h2 {
  margin: 0;
  font-size: 19px;
  font-weight: 700;
  line-height: 25px;
  letter-spacing: -.025em;
}

.feedback-dialog-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 17px;
}

.feedback-dialog-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  color: #657083;
  background: transparent;
  border: 0;
  border-radius: 6px;
}

.feedback-dialog-close:hover { color: var(--ink); background: #f2f4f7; }

.feedback-dialog:not(.is-promotion) > :where(:not(.feedback-dialog-icon, .feedback-dialog-copy, .feedback-dialog-close)) {
  grid-column: 2;
}

.feedback-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 18px;
}

.feedback-dialog:has(> :global(.fotogenic-ai-update-notes.is-unavailable)) {
  grid-template-columns: minmax(0, 1fr);
  text-align: center;
}
.feedback-dialog:has(> :global(.fotogenic-ai-update-notes.is-unavailable)) > * { grid-column: 1; }
.feedback-dialog:has(> :global(.fotogenic-ai-update-notes.is-unavailable)) .feedback-dialog-icon {
  grid-row: auto;
  justify-self: center;
  margin-bottom: 12px;
}
.feedback-dialog:has(> :global(.fotogenic-ai-update-notes.is-unavailable)) .feedback-dialog-copy {
  padding: 0;
  text-wrap: balance;
}
.feedback-dialog:has(> :global(.fotogenic-ai-update-notes.is-unavailable)) .feedback-dialog-actions { justify-content: center; }
.feedback-dialog > :global(.fotogenic-ai-update-notes.is-unavailable) {
  color: var(--muted);
  max-width: 34ch;
  justify-self: center;
  text-wrap: balance;
}

.feedback-dialog.is-compact {
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 0 10px;
  padding: 24px;
}
.is-compact .feedback-dialog-icon {
  width: 24px;
  height: 26px;
  background: transparent;
}
.is-compact .feedback-dialog-copy { align-self: center; }
.feedback-dialog.is-compact > :where(:not(.feedback-dialog-icon, .feedback-dialog-copy, .feedback-dialog-close)) { grid-column: 1 / -1; }
.feedback-dialog-message {
  max-inline-size: 100%;
  margin: 22px 0 0;
  color: var(--ink);
  font-size: 13px;
  line-height: 20px;
  overflow-wrap: anywhere;
  text-wrap: balance;
}
.is-compact .feedback-dialog-actions {
  align-items: center;
  flex-wrap: wrap;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.feedback-dialog-footer-note {
  display: flex;
  flex: 1 1 140px;
  align-items: center;
  gap: 10px;
  min-width: 0;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 18px;
  overflow-wrap: anywhere;
}
.feedback-dialog-footer-note > :global(.fotogenic-ai-icon) { flex-shrink: 0; }
.feedback-dialog-footer-note[hidden] { display: none; }
.is-compact .feedback-dialog-actions > button { flex-shrink: 0; min-height: 44px; }
.feedback-dialog > :global(.fotogenic-ai-run-item-details) {
  grid-column: 1 / -1;
  display: grid;
  gap: 12px;
  margin-top: 14px;
  font-size: 12px;
  line-height: 18px;
  overflow-wrap: anywhere;
}

.feedback-dialog :global(.fotogenic-ai-run-item-details) :is(dl, dd) { margin: 0; }
.feedback-dialog :global(.fotogenic-ai-run-item-counts) { display: flex; flex-wrap: wrap; gap: 16px; }
.feedback-dialog :global(.fotogenic-ai-run-item-counts) > div { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.feedback-dialog :global(.fotogenic-ai-run-item-counts) dt { color: var(--muted); font-size: 12px; }
.feedback-dialog :global(.fotogenic-ai-run-item-counts) dd { font-size: 12px; font-weight: 600; line-height: 18px; }

.feedback-dialog-layer .primary,
.feedback-dialog-layer .secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 800;
  line-height: normal;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}

.primary { color: #fff; background: #171b23; border: 1px solid #171b23; }
.primary:hover:not(:disabled) { background: #303642; border-color: #303642; }
.primary:disabled { color: #9298a1; background: #e6e8eb; border-color: #e6e8eb; }
.secondary { color: #26303d; background: #fff; border: 1px solid var(--line-strong); }
.secondary:hover:not(:disabled) { background: #f5f6f8; border-color: #858e9b; }

.feedback-dialog-layer button:disabled { cursor: not-allowed; }

.feedback-benefits {
  display: grid;
  gap: 6px;
  margin: 14px 0 0;
  padding: 0;
  color: #4f5a6a;
  font-size: 10px;
  line-height: 15px;
  list-style: none;
}

.feedback-dialog:not(.is-promotion) .feedback-benefits li { position: relative; padding-left: 15px; }
.feedback-dialog:not(.is-promotion) .feedback-benefits li::before {
  content: "";
  position: absolute;
  top: 5px;
  left: 1px;
  width: 5px;
  height: 5px;
  background: var(--success);
  border-radius: 50%;
}

.feedback-support-id {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding: 9px 10px;
  color: #687386;
  background: #f5f6f8;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 9px;
}

.feedback-support-id code {
  display: block;
  flex: 0 1 auto;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  padding: 0;
  color: #313b49;
  background: transparent;
  border: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  font-weight: 700;
  line-height: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feedback-support-id > span {
  flex: 0 0 auto;
  line-height: 12px;
  white-space: nowrap;
}

.feedback-report-details {
  margin-top: 8px;
  color: #586477;
}

.feedback-report-details summary {
  min-height: 34px;
  padding: 10px 2px 6px;
  cursor: pointer;
  font-size: 10px;
  font-weight: 800;
  line-height: 16px;
}

.feedback-report-content { display: grid; gap: 9px; padding: 5px 0 2px; }
.feedback-report-content dl { display: grid; gap: 5px; margin: 0; }
.feedback-report-content dl > div {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 9px;
  font-size: 9px;
  line-height: 14px;
}
.feedback-report-content dt { color: #7a8493; }
.feedback-report-content dd { min-width: 0; margin: 0; overflow-wrap: anywhere; }
.feedback-report-content code {
  margin: 0;
  padding: 0;
  color: #313b49;
  background: transparent;
  border: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9px;
  font-weight: 700;
  line-height: inherit;
}
.feedback-report-content button {
  justify-self: start;
  min-height: 30px;
  margin: 0;
  padding: 0 9px;
  color: #3f4d62;
  background: #fff;
  border: 1px solid #c9cfd8;
  border-radius: 6px;
  font-size: 9px;
  font-weight: 800;
}
.feedback-report-content button:hover { color: var(--ink); background: #f4f6f8; }

@media (max-width: 540px) {
  .feedback-dialog-layer { align-items: end; padding: 8px; }
  .feedback-dialog { grid-template-columns: 34px minmax(0, 1fr); gap: 0 11px; padding: 15px; border-radius: 10px; }
  .feedback-dialog-icon { width: 34px; height: 34px; }
  .feedback-dialog-copy h2 { font-size: 16px; line-height: 21px; }
  .feedback-dialog-copy p { font-size: 10px; line-height: 15px; }
  .feedback-dialog:not(.is-compact) .feedback-dialog-actions { flex-direction: column-reverse; gap: 7px; margin-top: 14px; }
  .feedback-dialog:not(.is-compact) .feedback-dialog-actions .primary,
  .feedback-dialog:not(.is-compact) .feedback-dialog-actions .secondary { width: 100%; min-height: 38px; font-size: 10px; }
}

.feedback-dialog-layer.is-promotion-layer { align-items: center; padding: 20px; }
.feedback-dialog.is-promotion {
  --promotion-height: calc(100dvh - 40px);
  grid-template-columns: minmax(0, 46%) minmax(0, 1fr);
  gap: 0;
  width: min(1000px, 100%);
  max-height: var(--promotion-height);
  padding: 0;
  overflow: hidden;
  border-radius: 16px;
}
.promotion-viewport {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: inherit;
  min-height: 0;
  max-height: calc(var(--promotion-height) - 2px);
  overflow: auto;
}
.promotion-media { position: relative; min-width: 0; overflow: hidden; background: #e5e9e8; }
.promotion-media > img { position: absolute; display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.promotion-media.media-focus-center > img { object-position: 50% 50%; }
.promotion-media.media-focus-upper > img { object-position: 50% 25%; }
.promotion-media.media-focus-lower > img { object-position: 50% 68%; }
.promotion-product { position: absolute; bottom: 16px; left: 16px; width: clamp(76px, 24%, 112px); padding: 5px; border-radius: 8px; background: #fff; box-shadow: 0 2px 12px #0002; }
.promotion-product span { display: block; margin: 2px 0 6px; color: #171b23; font-size: 11px; font-weight: 600; line-height: 1.4; text-align: center; }
.promotion-product img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 4px; }
.promotion-body { display: flex; flex-direction: column; justify-content: center; min-width: 0; padding: 40px; }
.promotion-logo { display: block; width: 160px; height: auto; margin: 0 0 42px; }
.is-promotion .feedback-dialog-copy > span { display: block; margin-bottom: 14px; color: #59646a; font-size: 11px; line-height: 1.5; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; }
.is-promotion .feedback-dialog-copy h2 { margin: 0; color: #15191b; font-size: clamp(30px, 3vw, 38px); font-weight: 650; line-height: 1.08; letter-spacing: -.045em; text-wrap: balance; }
.is-promotion .feedback-dialog-copy p { margin: 20px 0 0; color: #566169; font-size: 15px; line-height: 1.6; text-wrap: balance; }
.is-promotion .feedback-benefits { display: grid; gap: 10px; margin: 24px 0 0; padding-left: 20px; color: #343e44; font-size: 14px; line-height: 1.5; list-style: decimal; }
.promotion-balance { margin: 28px 0 0; color: #323b41; font-size: 14px; font-weight: 600; line-height: 1.5; }
.promotion-qualification { margin: 24px 0 0; color: #59646a; font-size: 12px; line-height: 1.5; }
.is-promotion .feedback-dialog-actions { display: flex; flex-direction: row; gap: 10px; margin-top: 28px; }
.feedback-dialog.is-promotion .feedback-dialog-actions .primary,
.feedback-dialog.is-promotion .feedback-dialog-actions .secondary { flex: 1 1 0; min-width: 0; width: 50%; min-height: 48px; justify-content: center; border-radius: 7px; font-size: 14px; font-weight: 600; }
.is-promotion .feedback-dialog-actions .primary { color: #fff; background: #15191b; border-color: #15191b; }
.is-promotion .feedback-dialog-actions .primary:hover { background: #343d42; }
.is-promotion .feedback-dialog-actions .secondary { color: #343e44; background: #fff; border: 1px solid #cbd0d4; }
.is-promotion .feedback-dialog-actions .secondary:hover { background: #f4f6f7; }
.promotion-footer { margin: 20px 0 0; color: #626d74; font-size: 12px; line-height: 1.5; text-align: center; }
.is-promotion .feedback-dialog-close { z-index: 1; top: 10px; right: 10px; width: 44px; height: 44px; color: #4d5961; background: #fff; border-radius: 50%; }
@media (max-width: 900px), (max-height: 720px) {
  .promotion-body { padding: 32px; }
  .promotion-logo { margin-bottom: 28px; }
}
@media (max-width: 700px) {
  .feedback-dialog-layer.is-promotion-layer { padding: 12px; }
  .feedback-dialog.is-promotion { --promotion-height: calc(100dvh - 24px); grid-template-columns: minmax(0, 1fr); border-radius: 12px; }
  .promotion-media { height: clamp(164px, 32vw, 224px); }
  .promotion-media img { object-position: 50% 33%; }
  .promotion-body { padding: 26px 24px; }
  .promotion-logo { width: 140px; margin-bottom: 24px; }
  .is-promotion .feedback-dialog-copy h2 { font-size: 34px; }
  .is-promotion .feedback-dialog-copy p { margin-top: 16px; font-size: 14px; }
  .is-promotion .feedback-dialog-actions { flex-direction: column; margin-top: 24px; }
  .feedback-dialog.is-promotion .feedback-dialog-actions > button.primary,
  .feedback-dialog.is-promotion .feedback-dialog-actions > button.secondary { flex: auto; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .feedback-dialog-layer,
  .feedback-dialog-layer:global(.is-open),
  .feedback-dialog-layer:global(.is-closing),
  .feedback-dialog-layer:global(.is-open) .feedback-dialog,
  .feedback-dialog-layer:global(.is-closing) .feedback-dialog { animation: none; transition: none; }

  .feedback-dialog-icon :global(.fotogenic-ai-icon--spin) { animation: none; }
}
