.modal.wide.office-price-editor {
  max-width: 1280px;
}
.office-price-editor .op-selectors {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.office-price-editor .op-layout {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
.office-price-editor .op-settings,
.office-price-editor .op-preview-area {
  min-width: 0;
}
.office-price-editor .op-preview-area {
  position: sticky;
  top: 0;
}
.office-price-editor .op-settings > details {
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 10px;
}
.office-price-editor summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
}
.office-price-editor .op-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.office-price-editor .field {
  min-width: 0;
  margin: 0;
}
.office-price-editor .field label {
  font-size: 12px;
  line-height: 1.4;
}
.office-price-editor .field .inp {
  width: 100%;
  min-width: 0;
}
.office-price-editor .op-color {
  display: flex;
  gap: 5px;
  align-items: center;
}
.office-price-editor .op-color input[type="color"] {
  width: 30px;
  min-width: 30px;
  height: 34px;
  padding: 2px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
}
.office-price-editor .op-color input[type="text"] {
  font-family: ui-monospace, monospace;
  font-size: 12px;
  padding: 7px;
  min-width: 0;
}
.office-price-editor .op-check {
  margin-top: 10px;
  font-size: 12px;
  align-items: flex-start;
}
.office-price-editor [aria-invalid="true"] {
  border-color: var(--danger) !important;
}
.office-price-editor .op-style-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.office-price-editor .op-style-actions .btn {
  flex: 1;
  white-space: normal;
  justify-content: center;
}
.office-price-editor .op-settings > p {
  margin: 10px 0 0;
}
.office-price-editor #op_format_hint {
  margin: 0 0 10px;
  min-height: 34px;
}
.office-price-editor #op_preview {
  width: 100%;
  height: 540px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  display: block;
}
.office-price-editor #op_error[hidden] {
  display: none;
}
.office-price-editor #op_source_panel {
  margin-top: 14px;
}
.office-price-editor #op_source {
  width: 100%;
  height: 180px;
  margin-top: 6px;
  font:
    12px/1.4 ui-monospace,
    monospace;
  resize: vertical;
}
.office-price-editor .modal-foot .btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
@media (max-width: 850px) {
  .office-price-editor .op-preview-area {
    position: static;
  }
  .office-price-editor .op-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .office-price-editor .op-selectors {
    grid-template-columns: minmax(0, 1fr);
  }
  .office-price-editor .op-settings {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .office-price-editor .op-settings > details {
    margin: 0;
  }
  .office-price-editor .op-settings > p,
  .office-price-editor .op-style-actions {
    grid-column: 1/-1;
  }
  .office-price-editor #op_preview {
    height: 440px;
  }
}
@media (max-width: 560px) {
  .office-price-editor .op-settings {
    display: block;
  }
  .office-price-editor .op-settings > details {
    margin-bottom: 10px;
  }
  .office-price-editor .modal-foot {
    gap: 6px;
  }
  .office-price-editor .modal-foot .btn {
    flex: 1 1 calc(50% - 6px);
    justify-content: center;
    font-size: 12px;
  }
  .office-price-editor #op_preview {
    height: 420px;
  }
}
