/* Редактор Page Builder */
.pb-editor {
  width: 90vw;
  max-width: 1200px;
  margin: 2vh auto;
  background: #f9f9f9;
  font-family: sans-serif;
  box-shadow: 0 0 0.3vw rgba(0,0,0,0.1);
  min-height: 90vh;
}

/* стили рядов и колонок */
.pb-row {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
}
.pb-column {
  flex: 1;
  border: 1px dashed #aaa;
  padding: 12px;
  min-height: 100px;
  background-color: #fefefe;
  position: relative;
}
.pb-column-add-block-btn {
  display: block;
  margin-bottom: 8px;
  background: #e0e0e0;
  border: none;
  padding: 4px 8px;
  cursor: pointer;
  font-size: 12px;
}
.pb-block {
  margin: 8px 0;
  position: relative;
}
.pb-block-delete {
  position: absolute;
  top: 0;
  right: 0;
  background: rgba(255,0,0,0.7);
  color: white;
  width: 20px;
  height: 20px;
  text-align: center;
  line-height: 18px;
  cursor: pointer;
  font-size: 12px;
  border-radius: 50%;
  display: none;
}
.pb-block:hover .pb-block-delete {
  display: block;
}
.pb-text-block {
  background: #fff;
  border: 1px solid #ddd;
  padding: 8px;
  outline: none;
}
.pb-text-block:focus {
  outline: 1px solid #007bff;
}
.pb-image-block img {
  max-width: 100%;
  height: auto;
}
.pb-change-image-btn {
  margin-top: 4px;
  background: #007bff;
  color: white;
  border: none;
  padding: 2px 6px;
  cursor: pointer;
  font-size: 12px;
}
.pb-button-block button {
  padding: 8px 16px;
  background: #007bff;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}
.pb-button-block button:focus {
  outline: 1px solid #0056b3;
}
/* Модальное окно */
.pb-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}
.pb-modal {
  background: white;
  border-radius: 8px;
  width: 400px;
  max-width: 90%;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
.pb-modal-header {
  padding: 12px 16px;
  background: #f1f1f1;
  border-bottom: 1px solid #ddd;
  font-weight: bold;
}
.pb-modal-body {
  padding: 16px;
}
.pb-modal-body label {
  display: block;
  margin: 10px 0 5px;
}
.pb-modal-body select, .pb-modal-body input {
  width: 100%;
  padding: 6px;
  margin-bottom: 10px;
}
.pb-modal-footer {
  padding: 12px;
  text-align: right;
  border-top: 1px solid #ddd;
}
.pb-modal-footer button {
  margin-left: 8px;
  padding: 6px 12px;
}
.pb-global-toolbar {
  margin-bottom: 16px;
}
.pb-global-toolbar button {
  background: #28a745;
  color: white;
  border: none;
  padding: 6px 12px;
  margin-right: 8px;
  cursor: pointer;
}