.guest-edit-form,
.guest-delete-form,
.guest-secret-form {
  background:#f8f9fa;
  padding:20px;
  border:1px solid #dee2e6;
  border-radius:5px;
  margin:15px 0;
}

.guest-edit-form .form-group,
.guest-delete-form .form-group,
.guest-secret-form .form-group {
  margin-bottom:15px;
}

.guest-edit-form label,
.guest-delete-form label,
.guest-secret-form label {
  display:block;
  margin-bottom:5px;
  font-weight:700;
  color:#495057;
}

.guest-edit-form .form-control,
.guest-delete-form .form-control,
.guest-secret-form .form-control {
  width:100%;
  padding:8px 12px;
  border:1px solid #ced4da;
  border-radius:4px;
  box-sizing:border-box;
  font-size:14px;
}

.guest-edit-form .form-control:read-only {
  background-color:#e9ecef;
  color:#6c757d;
  cursor:not-allowed;
}

.guest-edit-form .form-buttons,
.guest-delete-form .form-buttons,
.guest-secret-form .form-buttons {
  text-align:right;
  margin-top:20px;
  padding-top:15px;
  border-top:1px solid #dee2e6;
}

.guest-edit-form .btn,
.guest-delete-form .btn,
.guest-secret-form .btn {
  padding:8px 20px;
  border:none;
  border-radius:4px;
  cursor:pointer;
  font-size:14px;
  font-weight:700;
  margin-left:10px;
}

.guest-edit-form .btn-cancel,
.guest-delete-form .btn-cancel,
.guest-secret-form .btn-cancel {
  background:#6c757d;
  color:#fff;
}

.guest-edit-form .btn-cancel:hover,
.guest-delete-form .btn-cancel:hover,
.guest-secret-form .btn-cancel:hover {
  background:#5a6268;
}

.guest-edit-form .btn-submit,
.guest-secret-form .btn-submit {
  background:#28a745;
  color:#fff;
}

.guest-edit-form .btn-submit:hover,
.guest-secret-form .btn-submit:hover {
  background:#218838;
}

.guest-delete-form .btn-delete {
  background:#dc3545;
  color:#fff;
}

.guest-delete-form .btn-delete:hover {
  background:#bd2130;
}

.guest-edit-form .btn-submit:disabled,
.guest-delete-form .btn-delete:disabled,
.guest-secret-form .btn-submit:disabled {
  background:#6c757d;
  cursor:not-allowed;
}
.comment-body.secret {
  background:var(--g5-secret-comment-bg, #f6f2fb);
  border:1px solid var(--g5-secret-comment-border, #d8cbea);
  border-radius:8px;
  padding:16px;
  transition:background-color .2s ease, border-color .2s ease;
}

.comment-body.secret .wr_content {
  color:var(--g5-secret-comment-color, inherit);
}

.comment-secret-option {
  margin:12px 0 4px;
}

.comment-secret-option label {
  display:inline-flex;
  align-items:center;
  gap:7px;
  cursor:pointer;
  font-weight:600;
}

.comment-secret-option input[type="checkbox"] {
  width:16px;
  height:16px;
  margin:0;
}

.comment-secret-notice {
  display:block;
  margin-top:6px;
  font-size:13px;
  opacity:.75;
}

.g5-secret-comment-trigger {
  padding:0;
  border:0;
  background:none;
  color:inherit;
  font:inherit;
  text-decoration:underline;
  cursor:pointer;
}

.g5-secret-comment-trigger:hover,
.g5-secret-comment-trigger:focus {
  text-decoration:none;
}


.g5c-flash {
  outline: 2px solid rgba(40,167,69,0.6);
  outline-offset: 6px;
  transition: outline-color 0.3s ease;
}

/* =========================================================
 * 댓글 AJAX 알림
 * ========================================================= */

#g5c-toast-host {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1200000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.g5c-toast {
    min-width: 220px;
    max-width: 340px;
    padding: 12px 14px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
    color: #fff;
    font-size: 14px;
    line-height: 1.35;
    opacity: 0;
    transform: translateY(10px);
    transition:
        opacity 0.18s ease,
        transform 0.18s ease;
    pointer-events: auto;
    word-break: break-word;
}

.g5c-toast.is-show {
    opacity: 1;
    transform: translateY(0);
}

.g5c-toast--success {
    background: #28a745;
}

.g5c-toast--error {
    background: #dc3545;
}

.g5c-toast--info {
    background: #343a40;
}

/* 새로 등록되거나 수정된 댓글 강조 */
.g5c-flash {
    outline: 2px solid rgba(40, 167, 69, 0.6);
    outline-offset: 6px;
    transition: outline-color 0.3s ease;
}

@media screen and (max-width: 639px) {
    #g5c-toast-host {
        right: 12px;
        bottom: 12px;
        left: 12px;
    }

    .g5c-toast {
        width: 100%;
        min-width: 0;
        max-width: none;
        box-sizing: border-box;
    }
}
