/* TZ v5 — custom confirm modal styles (toast уже есть в global CSS). */

.cw-cf-modal[hidden] { display: none; }
.cw-cf-modal {
  position: fixed;
  inset: 0;
  z-index: 9500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.cw-cf-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 10, 16, 0.66);
}
.cw-cf-dialog {
  position: relative;
  width: min(420px, 100%);
  background: #181b22;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 12px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.60);
  padding: 18px 20px 16px;
}
.cw-cf-title {
  margin: 0 0 8px;
  font: 600 15px/1.3 "Playfair Display", Georgia, serif;
  color: rgba(255, 255, 255, 0.96);
}
.cw-cf-body {
  margin: 0 0 16px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.70);
  line-height: 1.5;
}
.cw-cf-foot {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
.cw-cf-btn-ghost {
  padding: 7px 14px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 7px;
  color: rgba(255, 255, 255, 0.78);
  font: 500 12.5px/1.2 inherit;
  cursor: pointer;
}
.cw-cf-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.96);
}
.cw-cf-btn-primary {
  padding: 7px 16px;
  background: linear-gradient(145deg, rgba(245, 158, 11, 0.88), rgba(217, 119, 6, 0.88));
  border: 0;
  border-radius: 7px;
  color: #fff;
  font: 600 12.5px/1.2 inherit;
  cursor: pointer;
}
.cw-cf-btn-primary:hover { filter: brightness(1.10); }
.cw-cf-btn-primary:focus-visible {
  outline: 2px solid rgba(245, 158, 11, 0.70);
  outline-offset: 2px;
}
.cw-cf-btn-danger {
  background: linear-gradient(145deg, rgba(239, 68, 68, 0.88), rgba(220, 38, 38, 0.88));
}
.cw-cf-btn-danger:hover { filter: brightness(1.08); }
body.cw-cf-modal-open { overflow: hidden; }
