.block[data-type="cta"] .cta-wrapper {
  padding: 20px;
  border-radius: 8px;
}

.block[data-type="cta"] .cta-title {
  margin: 0 0 12px;
  font-size: 24px;
  font-weight: bold;
}

.block[data-type="cta"] .cta-title[contenteditable]:not(.segment--active) {
  outline: 0px solid transparent;
}

.block[data-type="cta"] .cta-btn-div {
  text-align: left;
  width: 100%;
}

.block[data-type="cta"] .cta-button {
  background-color: #ffc107;
  border: none;
  padding: 10px 20px;
  font-size: 16px;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.2s;
  text-decoration: none;
  color: #000;
  display: inline-block;
}

.block[data-type="cta"] .cta-button:hover {
  background-color: #e0a800;
}

.block[data-type="cta"] .cta-button a {
  border: 0;
  background: none;
  cursor: pointer;
}

.cta-popup {
  position: absolute;
  background: #fff;
  border: 1px solid #ccc;
  padding: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-radius: 6px;
  z-index: 1000;
  min-width: 220px;
  font-size: 14px;
  user-select: none;
}

.cta-popup label {
  display: block;
  margin: 8px 0;
}

.cta-popup input {
  width: 100%;
  padding: 6px;
  font-size: 14px;
  margin-top: 4px;
  box-sizing: border-box;
}

.cta-popup .popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 15px;
  margin-bottom: 10px;
}

.cta-popup .popup-close {
  cursor: pointer;
  font-size: 16px;
}

.cta-popup label:has(.cta-target-checkbox) {
  display: flex;
  flex-direction: row;
  font-size: 14px;
  gap: 10px;
}

.cta-popup .cta-target-checkbox {
  width: auto;
  margin: 0;
  box-sizing: border-box;
}

.cta-popup input[type="color"] {
  padding: 0;
  width: 100%;
  height: 30px;
  border: none;
  background: none;
  cursor: pointer;
}
