/* Reliable Visual Site Editor */
.rvse-editing .rvse-editable:hover,
.rvse-editing .rvse-editable-bg:hover {
  outline: 2px dashed #0b6ff7 !important;
  outline-offset: 3px !important;
}

.rvse-selected {
  outline: 4px solid #0b6ff7 !important;
  outline-offset: 4px !important;
  box-shadow: 0 0 0 8px rgba(11, 111, 247, 0.16) !important;
}

.rvse-toolbar {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 999999;
  display: flex;
  align-items: center;
  gap: 7px;
  width: auto;
  max-width: 600px;
  background: #061b4a;
  color: #ffffff;
  border-radius: 14px;
  padding: 8px 10px;
  box-shadow: 0 14px 34px rgba(0,0,0,.28);
  font-family: Arial, sans-serif;
}

.rvse-toolbar strong {
  font-size: 13px;
  white-space: nowrap;
}

.rvse-status {
  display: inline-block;
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #dbeafe;
  font-size: 12px;
}

.rvse-toolbar button,
.rvse-panel button {
  border: none;
  border-radius: 999px;
  padding: 8px 10px;
  min-height: 32px;
  line-height: 1;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.rvse-logo {
  background: #c9a142;
  color: #061b4a;
}

.rvse-save,
.rvse-apply-image,
.rvse-apply-bg,
.rvse-apply-link,
.rvse-apply-text,
.rvse-save-global-logo {
  background: #0b6ff7;
  color: white;
}

.rvse-reset {
  background: #f59e0b;
  color: #111827;
}

.rvse-exit {
  background: #ffffff;
  color: #061b4a;
}

.rvse-panel {
  position: fixed;
  top: 78px;
  right: 14px;
  z-index: 999999;
  width: 330px;
  max-width: calc(100vw - 28px);
  display: none;
  background: #ffffff;
  color: #061b4a;
  border: 1px solid #dbe7f7;
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 18px 44px rgba(0,0,0,.24);
  font-family: Arial, sans-serif;
}

.rvse-panel-open {
  display: block;
}

.rvse-panel h3 {
  margin: 0 0 10px;
  font-size: 17px;
}

.rvse-panel label {
  display: block;
  font-weight: 900;
  margin: 8px 0 4px;
}

.rvse-panel input,
.rvse-panel textarea {
  box-sizing: border-box;
  width: 100%;
  border: 1px solid #dbe7f7;
  border-radius: 10px;
  padding: 9px 10px;
  margin: 6px 0 10px;
  color: #061b4a;
  font-size: 13px;
}

.rvse-panel textarea {
  min-height: 110px;
  resize: vertical;
}

.rvse-row {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.rvse-choose-image {
  background: #eaf2ff;
  color: #061b4a;
}

.rvse-save-global-logo {
  width: 100%;
  margin-top: 4px;
}

.rvse-close {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 30px;
  height: 30px;
  min-height: 30px !important;
  padding: 0 !important;
  background: #f1f5f9;
  color: #061b4a;
  font-size: 16px;
}

@media (max-width: 760px) {
  .rvse-toolbar {
    left: 10px;
    right: 10px;
    bottom: 10px;
    max-width: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .rvse-toolbar strong,
  .rvse-status {
    display: none;
  }

  .rvse-toolbar button {
    width: 100%;
  }

  .rvse-panel {
    left: 10px;
    right: 10px;
    width: auto;
    top: 62px;
  }
}
