/* Κεντρικό modal επιβεβαίωσης GNPC (Webmail, παραγγελίες, κ.λπ.) */

.so-confirm-dialog {
  border: none;
  padding: 0;
  margin: 0;
  position: fixed;
  inset: 0;
  width: min(26rem, calc(100vw - 2rem));
  max-width: min(26rem, calc(100vw - 2rem));
  height: fit-content;
  max-height: calc(100vh - 2rem);
  margin: auto;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.so-confirm-dialog:focus {
  outline: none;
}

.so-confirm-dialog::backdrop {
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(8px);
}

.so-confirm-shell {
  position: relative;
  padding: 1.5rem 1.35rem 1.25rem;
  text-align: center;
  border-radius: 1.15rem;
  background: #fff;
  border: 1px solid rgba(203, 213, 225, 0.9);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 24px 56px -14px rgba(15, 23, 42, 0.26),
    0 8px 24px -6px rgba(0, 95, 170, 0.1);
}

.so-confirm-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(ellipse 85% 55% at 50% 0%, rgba(0, 95, 170, 0.06), transparent 72%);
  pointer-events: none;
}

.so-confirm-dialog[data-gnpc-variant="warn"] .so-confirm-shell::before {
  background: radial-gradient(ellipse 85% 55% at 50% 0%, rgba(245, 158, 11, 0.12), transparent 72%);
}

.so-confirm-dialog[data-gnpc-variant="danger"] .so-confirm-shell::before {
  background: radial-gradient(ellipse 85% 55% at 50% 0%, rgba(239, 68, 68, 0.1), transparent 72%);
}

.so-confirm-icon-wrap {
  position: relative;
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto 1rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.so-confirm-icon-wrap .material-symbols-outlined {
  font-size: 1.75rem;
}

.so-confirm-icon-wrap--danger {
  background: linear-gradient(145deg, #fef2f2 0%, #fee2e2 100%);
  border: 1px solid rgba(248, 113, 113, 0.35);
  color: #dc2626;
  box-shadow: 0 8px 22px rgba(220, 38, 38, 0.12);
}

.so-confirm-icon-wrap--warn {
  background: linear-gradient(145deg, #fffbeb 0%, #fef3c7 100%);
  border: 1px solid rgba(251, 191, 36, 0.4);
  color: #d97706;
  box-shadow: 0 8px 22px rgba(217, 119, 6, 0.1);
}

.so-confirm-icon-wrap--info {
  background: linear-gradient(145deg, #eff6ff 0%, #dbeafe 100%);
  border: 1px solid rgba(96, 165, 250, 0.4);
  color: #005faa;
  box-shadow: 0 8px 22px rgba(0, 95, 170, 0.1);
}

.so-confirm-icon-wrap--trash {
  background: linear-gradient(145deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid rgba(148, 163, 184, 0.45);
  color: #64748b;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.so-confirm-icon-wrap--success {
  background: linear-gradient(145deg, #ecfdf5 0%, #d1fae5 100%);
  border: 1px solid rgba(52, 211, 153, 0.45);
  color: #059669;
  box-shadow: 0 8px 22px rgba(5, 150, 105, 0.12);
}

.so-confirm-dialog[data-gnpc-mode="alert"] .so-confirm-actions {
  justify-content: center;
}

.so-confirm-dialog[data-gnpc-mode="alert"] #gnpcConfirmOk {
  min-width: 8.5rem;
}

.so-confirm-title {
  position: relative;
  margin: 0 0 0.4rem;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #0f172a;
}

.so-confirm-message {
  position: relative;
  margin: 0 auto 1.35rem;
  max-width: 22rem;
  font-size: 0.875rem;
  line-height: 1.55;
  color: #64748b;
}

.so-confirm-actions {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}

.so-confirm-dialog[data-gnpc-mode="alert"] .so-confirm-actions {
  grid-template-columns: 1fr;
  justify-items: center;
}

.so-confirm-actions .so-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  width: 100%;
  min-width: 0;
  padding: 0.65rem 1rem;
  border-radius: 0.65rem;
  font-size: 0.875rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.so-confirm-actions .so-btn:focus {
  outline: none;
}

.so-confirm-actions .so-btn:focus-visible {
  outline: 2px solid rgba(0, 95, 170, 0.45);
  outline-offset: 2px;
}

.so-confirm-actions .so-btn--danger:focus-visible {
  outline-color: rgba(220, 38, 38, 0.55);
}

.so-confirm-actions .so-btn--ghost {
  background: #fff;
  border-color: rgba(148, 163, 184, 0.55);
  color: #475569;
}

.so-confirm-actions .so-btn--ghost:hover {
  background: #f8fafc;
  border-color: #94a3b8;
}

.so-confirm-actions .so-btn--primary {
  background: linear-gradient(135deg, #0078d4 0%, #005faa 100%);
  color: #fff;
  box-shadow: 0 3px 12px rgba(0, 95, 170, 0.28);
}

.so-confirm-actions .so-btn--primary:hover {
  filter: brightness(1.05);
}

.so-confirm-actions .so-btn--warn {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #fff;
  border: none;
  box-shadow: 0 3px 12px rgba(217, 119, 6, 0.28);
}

.so-confirm-actions .so-btn--warn:hover {
  filter: brightness(1.06);
}

.so-confirm-actions .so-btn--warn:focus-visible {
  outline-color: rgba(217, 119, 6, 0.55);
}

.so-confirm-actions .so-btn--danger {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #fff;
  border: none;
  box-shadow: 0 3px 12px rgba(220, 38, 38, 0.3);
}

.so-confirm-actions .so-btn--danger:hover {
  filter: brightness(1.06);
}

.so-confirm-actions .so-btn .material-symbols-outlined {
  font-size: 1.125rem;
}
