/* Scoped fresh confirmation dialog */

.pg-fresh-confirm {
  max-width: min(420px, 100vw - 24px);
  width: 100%;
  border: 1px solid var(--line, #2b3138);
  border-radius: 12px;
  padding: 0;
  background: var(--panel, #171b20);
  color: var(--text, #edf0f2);
  box-sizing: border-box;
}

.pg-fresh-confirm::backdrop {
  background: rgba(0, 0, 0, 0.55);
}

.pg-fresh-confirm * {
  box-sizing: border-box;
  max-width: 100%;
}

.pg-fresh-confirm-form {
  margin: 0;
  padding: 18px 16px 16px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.pg-fresh-confirm-title {
  margin: 0 0 10px;
  font-size: 1.15rem;
  font-weight: 600;
}

.pg-fresh-confirm-summary {
  margin: 0 0 10px;
  color: var(--text, #edf0f2);
}

.pg-fresh-confirm-note {
  margin: 0 0 14px;
  font-size: 0.9rem;
}

.pg-fresh-confirm .muted {
  color: var(--muted, #a4acb6);
}

.pg-fresh-confirm-label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0 0 12px;
  font-size: 0.9rem;
  color: var(--muted, #a4acb6);
}

.pg-fresh-confirm-label input {
  font: inherit;
  padding: 10px 12px;
  min-height: 44px;
  border-radius: 8px;
  border: 1px solid var(--line, #2b3138);
  background: var(--bg, #0d1013);
  color: var(--text, #edf0f2);
  width: 100%;
}

.pg-fresh-confirm-status {
  margin: 0 0 12px;
  color: var(--muted, #a4acb6);
  font-size: 0.9rem;
}

.pg-fresh-confirm-status--error {
  color: #e8a0a0;
}

.pg-fresh-confirm-status--loading {
  color: var(--muted, #a4acb6);
}

.pg-fresh-confirm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pg-fresh-confirm-actions button {
  font: inherit;
  cursor: pointer;
  min-height: 44px;
  min-width: 44px;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid var(--gold, #d9bd83);
  background: transparent;
  color: var(--text, #edf0f2);
}

.pg-fresh-confirm-actions button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pg-fresh-confirm-submit {
  background: rgba(217, 189, 131, 0.12);
}

@media (max-width: 520px) {
  .pg-fresh-confirm-actions button {
    width: 100%;
  }
}
