/* =========================================================
   Redesigned destructive Swal modals (Delete + Clear All).
   Activated via customClass on Swal.fire — see script.js
   handlers for ".file-info .del-file" and ".clear-all-designs".
   ========================================================= */

/* ── Shared backdrop ─────────────────────────────────────── */
.swal2-container.gs-del-modal,
.swal2-container.gs-clear-modal {
  background: rgba(20, 24, 40, 0.55) !important;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* ── Shared popup card ──────────────────────────────────── */
.swal2-popup.gs-del-modal-popup,
.swal2-popup.gs-clear-modal-popup {
  border-radius: 20px !important;
  padding: 28px 26px 22px !important;
  max-width: calc(100vw - 32px) !important;
  box-shadow:
    0 24px 60px rgba(15, 18, 35, 0.25),
    0 2px 8px rgba(15, 18, 35, 0.08) !important;
  border: 1px solid rgba(108, 67, 224, 0.08) !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}
.swal2-popup.gs-del-modal-popup   { width: 400px !important; }
.swal2-popup.gs-clear-modal-popup { width: 380px !important; }

/* ── Design preview header (delete only) ────────────────── */
.gs-del-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 12px;
  background: #f8f7ff;
  border-radius: 12px;
  margin-bottom: 16px;
  border: 1px solid #eee8ff;
}
.gs-del-thumb {
  width: 54px; height: 54px;
  border-radius: 10px;
  background: #09031a;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.gs-del-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gs-del-name {
  font-size: 13px;
  font-weight: 600;
  color: #09031a;
  line-height: 1.35;
  word-break: break-word;
  text-align: left;
}
.gs-del-subtext {
  font-size: 11.5px;
  color: #888;
  margin-top: 3px;
  text-align: left;
}

/* ── Trash icon (peach circle + red glyph) ──────────────── */
.gs-del-icon,
.gs-clear-icon {
  border-radius: 50%;
  background: linear-gradient(135deg, #fff0ef 0%, #ffe4e1 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  box-shadow:
    0 4px 14px rgba(231, 76, 60, 0.18),
    inset 0 0 0 1px rgba(231, 76, 60, 0.12);
}
.gs-del-icon { width: 56px; height: 56px; }
.gs-clear-icon { width: 64px; height: 64px; margin-bottom: 18px; }
.gs-del-icon svg   { width: 26px; height: 26px; color: #e74c3c; }
.gs-clear-icon svg { width: 30px; height: 30px; color: #e74c3c; }

/* ── Title ─────────────────────────────────────────────── */
.gs-del-modal-popup .swal2-title,
.gs-clear-modal-popup .swal2-title {
  font-weight: 700 !important;
  color: #09031a !important;
  text-align: center !important;
  padding: 0 0 4px !important;
  line-height: 1.3 !important;
  letter-spacing: -0.2px !important;
}
.gs-del-modal-popup .swal2-title   { font-size: 18px !important; }
.gs-clear-modal-popup .swal2-title { font-size: 19px !important; padding-bottom: 6px !important; }

/* ── Body message ──────────────────────────────────────── */
.gs-del-message,
.gs-clear-message {
  text-align: center;
  color: #6b7280;
  font-size: 13px;
  line-height: 1.5;
  margin: 0 0 20px;
}
.gs-clear-message { font-size: 13.5px; margin-bottom: 22px; }
.gs-clear-count {
  color: #6c43e0;
  font-weight: 700;
}

/* ── Action buttons ────────────────────────────────────── */
.gs-del-modal-popup .swal2-actions,
.gs-clear-modal-popup .swal2-actions {
  display: flex !important;
  flex-direction: row !important;
  gap: 10px !important;
  width: 100% !important;
  margin: 4px 0 0 !important;
  padding: 0 !important;
}
.gs-del-modal-popup .swal2-actions > button,
.gs-clear-modal-popup .swal2-actions > button {
  flex: 1 1 0 !important;
  width: auto !important;
  min-width: 0 !important;
  padding: 12px 18px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  border-radius: 11px !important;
  border: none !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  line-height: 1.2 !important;
  cursor: pointer !important;
  font-family: inherit !important;
  box-shadow: none !important;
  transition: transform 0.12s ease, background 0.15s ease, box-shadow 0.15s ease !important;
}
.gs-del-modal-popup .swal2-actions > button:hover,
.gs-clear-modal-popup .swal2-actions > button:hover {
  transform: translateY(-1px);
}
.gs-del-modal-popup .swal2-actions > button:focus,
.gs-clear-modal-popup .swal2-actions > button:focus {
  outline: none !important;
  box-shadow: none !important;
}
.gs-del-modal-popup .swal2-actions > button:focus-visible,
.gs-clear-modal-popup .swal2-actions > button:focus-visible {
  outline: 2px solid #6c43e0 !important;
  outline-offset: 2px !important;
}

/* Cancel (soft secondary) */
.gs-del-modal-popup .gs-del-cancel,
.gs-clear-modal-popup .gs-clear-cancel {
  background: #f3f1fa !important;
  color: #4a4458 !important;
}
.gs-del-modal-popup .gs-del-cancel:hover,
.gs-clear-modal-popup .gs-clear-cancel:hover {
  background: #e9e4f6 !important;
}

/* Confirm (destructive red) */
.gs-del-modal-popup .gs-del-confirm,
.gs-clear-modal-popup .gs-clear-confirm {
  background: #e74c3c !important;
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(231, 76, 60, 0.3) !important;
}
.gs-del-modal-popup .gs-del-confirm:hover,
.gs-clear-modal-popup .gs-clear-confirm:hover {
  background: #d63a2b !important;
  box-shadow: 0 6px 16px rgba(231, 76, 60, 0.36) !important;
}
