/* ================================================================= */
/* Overlay */
.csn-overlay {
  position: fixed; top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.3);
  z-index: 9998;
}

/* ================================================================= */
/* Modal container */
.csn-modal {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 90%; max-width: 600px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  overflow: hidden;
  z-index: 9999;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  animation: csn-pop-in 0.3s both;
}

/* ================================================================= */
/* Header */
.csn-modal-header {
  padding: 16px 24px;
}
.csn-modal-header strong {
  font-size: 22px;
  font-weight: 700;
  color: #000;
  margin: 0;
}

/* ================================================================= */
/* Body */
.csn-modal-body {
  padding: 16px 24px;
  font-size: 15px;
  line-height: 1.6;
  color: #333;
  max-height: 60vh;
  overflow-y: auto;
}

/* ================================================================= */
/* Footer */
.csn-modal-footer {
  display: flex;
  justify-content: flex-end;
  padding: 16px 24px;
  background: #fafafa;
}

/* Buttons: đồng đều kích thước */
.csn-close-btn,
.csn-dismiss {
  font-size: 14px;
  padding: 8px 20px;
  border-radius: 4px;
  margin-left: 8px;
  border: none;
  cursor: pointer;
  transition: background-color .2s, transform .1s;
  min-width: 100px;       /* đảm bảo hai nút cùng rộng */
  box-sizing: border-box;
}

/* “Đóng” */
.csn-close-btn {
  background: #e0e0e0;
  color: #333;
}
.csn-close-btn:hover {
  background: #d5d5d5;
}

/* “Không hiện nữa” */
.csn-dismiss {
  background: #4a56e2;
  color: #fff;
}
.csn-dismiss:hover {
  background: #3b44b3;
}
.csn-dismiss:active {
  transform: scale(0.97);
}

/* ================================================================= */
/* Animations */
@keyframes csn-pop-in {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

/* ================================================================= */
/* Responsive */
@media (max-width: 480px) {
  .csn-modal { width: 95%; }
  .csn-modal-body { padding: 12px 16px; font-size: 14px; }
  .csn-modal-footer { padding: 12px 16px; }
  .csn-close-btn,
  .csn-dismiss { flex: 1; margin-left: 4px; }
}
