/* Mode commentaire : cadre autour du viewport */
#wp-cp-comment-mode {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 3px solid green;
  pointer-events: none;
  z-index: 9998;
  box-sizing: border-box;
}

/* Bouton d’ajout de commentaire */
#wp-cp-add-comment {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  background: rgb(7, 190, 83);
  color: #fff;
  border: 2px solid #fff;
  padding: 10px 15px;
  border-radius: 200px;
  cursor: pointer;
  pointer-events: all;
}

/* Formulaire de commentaire */
#wp-cp-form-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: all;
  z-index: 1000001;
}

#wp-cp-form {
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  width: 320px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  z-index: 1000002;
}
#wp-cp-form h3 {
  margin-top: 0;
  font-size: 18px;
  margin-bottom: 18px;
}
#wp-cp-form input,
#wp-cp-form textarea {
  width: 100%;
  margin-bottom: 10px;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
}
#wp-cp-form button {
  background: rgb(7, 190, 83);
  color: #fff;
  border: 2px solid #fff;
  padding: 10px 15px;
  border-radius: 200px;
  cursor: pointer;
}

#wp-cp-form #wp-cp-cancel-form {
  background: rgb(248, 29, 65);
}

#wp-cp-form .screenshot-preview p {
  margin-bottom: 16px;
}

#wp-cp-form .form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
}

/* Bouton annuler */
#wp-cp-cancel {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 10001;
  background: rgb(248, 29, 65);
  color: #fff;
  border: 2px solid #fff;
  padding: 10px 15px;
  border-radius: 150px;
  cursor: pointer;
  pointer-events: all;
}

#wp-cp-screenshot-preview-container {
  position: relative;
  display: block;
  overflow-x: hidden;
  overflow-y: scroll;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

#wp-cp-screenshot-preview-container ::-webkit-scrollbar {
  display: none;
}

#wp-cp-screenshot-preview-container:after {
  content: "";
  display: block;
  padding-bottom: 56%;
}

#wp-cp-screenshot-preview {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  min-height: 100%;
  object-fit: contain;
}

#wp-cp-screenshot-loading {
  position: absolute;
  top: 0px;
  left: 0px;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.6);
  z-index: 1000;
}

#wp-cp-screenshot-loading .spinner {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #4caf50;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
