.qrcdr-btn-placeholder {
  display: inline-block;
  padding: 0.5rem 1rem;
  font-weight: 300;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
  margin-top: 1rem;
  margin-bottom: 1rem;
  pointer-events: none;
}

.qrcdr-input-placeholder {
  display: block;
  width: 100%;
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: #212529;
  background-color: #fff;
  min-height: 80px;
  background-clip: padding-box;
  border: 1px solid #ced4da;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  resize: none;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
  box-sizing: border-box;
  margin-bottom: 1rem;
  pointer-events: none;
}

.qrcdr-form-group {
  display: flex;
  width: 100%;
  flex-wrap: wrap;
}

.qrcdr-form-group * {
  box-sizing: border-box;
}

.qrcdr-form-group > div {
  padding-bottom: 10px;
  padding-right: 10px;
  min-width: 240px;
}

.qrcdr-pro-feature label {
  position: relative;
  display: inline-block;
}

.qrcdr-pro-feature label::after {
  background: red;
  position: relative;
  color: #fff;
  content: "PRO";
  font-family: sans-serif;
  font-size: 8px;
  margin-left: 4px;
  line-height: 1.2;
  padding: 2px 8px;
  pointer-events: none;
  border-radius: 3rem;
  height: 12px;
  display: inline-block;
  vertical-align: super;
}

.qrcdr-sortable-container {
  display: flex;
  flex-direction: column;
  padding: 10px 0;
}

.qrcdr-drop-zone {
  height: 30px;
  margin: -15px 0;
  position: relative;
  z-index: 10;
  transition: none;
}

.qrcdr-drop-zone.is-active {
  height: 30px;
  margin: -15px 0;
}

.qrcdr-drop-zone.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 8px; /* Spessore della linea visiva */
  background-color: #007cba; /* Colore blu di WordPress */
  border-radius: 2px;
  transform: translateY(-50%);
  box-shadow: 0 0 6px rgba(0, 124, 186, 0.4);
  opacity: 0.5;
}

/* 4. L'elemento che stai trascinando */
.qrcdr-sortable-item {
  background: #fff;
  border: 1px solid #ccc;
  margin: 4px 0;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: transform 0.2s ease, opacity 0.2s ease;
  z-index: 5;
  position: relative;
}

/* Feedback visivo sull'elemento in movimento */
.qrcdr-sortable-item.is-dragging {
  opacity: 0.4;
  border-style: dotted;
}

/* 5. Handle del Drag */
.qrcdr-drag-handle {
  cursor: grab;
  display: flex;
  align-items: center;
  padding: 5px;
  color: #757575;
}

.qrcdr-drag-handle:active {
  cursor: grabbing;
}

/* 6. Il Ghost (quello che vedi sotto il dito/mouse su mobile) */
.qrcdr-drag-ghost {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  background: #fff;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  opacity: 0.8;
  border: 1px solid #007cba;
  border-radius: 4px;
  box-sizing: border-box;
}
