/**
 * YOOAdmin — confirm modal (shared with posts/pages delete popup pattern).
 *
 * @package YOOAdmin
 */

.yoo-delete-popup-overlay,
.yoo-confirm-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 110000;
  opacity: 0;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(2px);
}

.yoo-delete-popup-overlay.visible,
.yoo-confirm-popup-overlay.visible {
  opacity: 1;
}

.yoo-delete-popup,
.yoo-confirm-popup {
  background: #fff;
  border-radius: 12px;
  padding: 32px;
  max-width: 480px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transform: scale(0.9) translateY(20px);
  transition: transform 0.3s ease, opacity 0.3s ease;
  opacity: 0;
}

.yoo-delete-popup-overlay.visible .yoo-delete-popup,
.yoo-confirm-popup-overlay.visible .yoo-confirm-popup {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.yoo-delete-popup-icon,
.yoo-confirm-popup-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  background: #fff8e5;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.yoo-confirm-popup-icon--danger {
  background: #fde8e8;
}

.yoo-confirm-popup-icon--danger .dashicons {
  color: #d63638;
}

.yoo-delete-popup-icon .dashicons,
.yoo-confirm-popup-icon .dashicons {
  font-size: 32px;
  width: 32px;
  height: 32px;
  color: var(--_yp-primary, #eda934);
}

.yoo-delete-popup h3,
.yoo-confirm-popup h3 {
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 600;
  color: var(--yp-text, #1d2327);
  text-align: center;
}

.yoo-delete-popup p,
.yoo-confirm-popup p {
  margin: 0 0 24px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--yp-text, #1d2327);
  text-align: center;
}

.yoo-delete-popup-actions,
.yoo-confirm-popup-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.yoo-popup-btn {
  padding: 10px 24px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  min-width: 100px;
}

.yoo-popup-cancel {
  background: #f6f7f7;
  color: var(--yp-text, #1d2327);
}

.yoo-popup-cancel:hover {
  background: #e5e7eb;
}

.yoo-popup-delete {
  background: #d63638;
  color: #fff;
}

.yoo-popup-delete:hover:not(:disabled) {
  background: #b32d2e;
}

.yoo-popup-primary-action {
  background: var(--_yp-primary, #eda934);
  color: #1a1a1a;
}

.yoo-popup-primary-action:hover:not(:disabled) {
  filter: brightness(0.95);
}

.yoo-popup-delete:disabled,
.yoo-popup-primary-action:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Compact confirm (settings, small actions) */
.yoo-confirm-popup--compact {
  padding: 18px 20px 16px;
  max-width: 360px;
}

.yoo-confirm-popup--compact .yoo-confirm-popup-icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 10px;
}

.yoo-confirm-popup--compact .yoo-confirm-popup-icon .dashicons {
  font-size: 22px;
  width: 22px;
  height: 22px;
}

.yoo-confirm-popup--compact h3 {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 600;
}

.yoo-confirm-popup--compact p {
  margin: 0 0 16px;
  font-size: 13px;
  line-height: 1.5;
}

.yoo-confirm-popup--compact .yoo-confirm-popup-actions {
  gap: 8px;
}

.yoo-confirm-popup--compact .yoo-confirm-popup-actions .yp-yoo-btn {
  min-width: 0;
  font-size: 13px;
  padding: 6px 14px;
}
