.fc-site-editor-toolbar,
.fc-site-editor-panel,
.fc-site-editor-toast {
  font-family: "Trebuchet MS", sans-serif;
}

.fc-site-edit-mode body {
  padding-top: 76px !important;
}

.fc-site-editor-toolbar {
  position: fixed;
  z-index: 50000;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  min-height: 64px;
  align-items: center;
  gap: 16px;
  padding: 10px 20px;
  color: #fff;
  background: #2c211d;
  box-shadow: 0 8px 28px rgba(28, 18, 14, 0.22);
}

.fc-site-editor-toolbar strong {
  color: #fff;
  font-size: 1rem;
}

.fc-site-editor-toolbar > span {
  flex: 1;
  color: #f3e9e3;
  font-size: 0.88rem;
}

.fc-site-editor-toolbar label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: #fff;
  font-size: 0.85rem;
}

.fc-site-editor-toolbar select {
  min-width: 160px;
  min-height: 40px;
  padding: 7px 30px 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 10px;
  color: #2c211d;
  background: #fff;
}

.fc-site-edit-mode .fc-site-editor-editable {
  cursor: crosshair !important;
  outline: 1px dashed rgba(159, 29, 43, 0.36);
  outline-offset: 3px;
  transition: outline-color 160ms ease, box-shadow 160ms ease;
}

.fc-site-edit-mode .fc-site-editor-editable:hover,
.fc-site-edit-mode .fc-site-editor-selected {
  outline: 3px solid #9f1d2b !important;
  outline-offset: 4px;
  box-shadow: 0 0 0 7px rgba(159, 29, 43, 0.12);
}

.fc-site-editor-panel {
  position: fixed;
  z-index: 50010;
  top: 78px;
  right: 16px;
  width: min(390px, calc(100vw - 32px));
  max-height: calc(100vh - 96px);
  overflow-y: auto;
  padding: 24px;
  border: 1px solid #ead8d1;
  border-radius: 18px;
  background: #fffdfb;
  box-shadow: 0 24px 70px rgba(42, 23, 18, 0.28);
  transform: translateX(calc(100% + 40px));
  opacity: 0;
  pointer-events: none;
  transition: transform 180ms ease, opacity 180ms ease;
}

.fc-site-editor-panel.is-open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}

.fc-site-editor-panel-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  color: #34231d;
  background: #f5ebe7;
  font-size: 1.6rem;
  cursor: pointer;
}

.fc-site-editor-kicker {
  margin: 0 44px 4px 0;
  color: #9f1d2b;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.fc-site-editor-panel h2 {
  margin: 0 44px 18px 0;
  color: #2c211d;
  font-size: 1.35rem;
}

.fc-site-editor-field {
  display: grid;
  gap: 7px;
  margin: 0 0 14px;
  color: #3d2b24;
  font-size: 0.9rem;
  font-weight: 700;
}

.fc-site-editor-field input,
.fc-site-editor-field textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 12px;
  border: 1px solid #d9c6be;
  border-radius: 11px;
  color: #2c211d;
  background: #fff;
  font: inherit;
}

.fc-site-editor-field textarea {
  min-height: 128px;
  resize: vertical;
}

.fc-site-editor-image-preview {
  display: grid;
  min-height: 180px;
  margin-bottom: 16px;
  place-items: center;
  overflow: hidden;
  border: 1px solid #ead8d1;
  border-radius: 14px;
  background: #f8f1ed;
}

.fc-site-editor-image-preview img {
  width: 100%;
  max-height: 260px;
  object-fit: contain;
}

.fc-site-editor-help {
  margin: -4px 0 16px;
  color: #6f5a51;
  font-size: 0.82rem;
  line-height: 1.45;
}

.fc-site-editor-panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.fc-site-editor-toast {
  position: fixed;
  z-index: 50020;
  right: 20px;
  bottom: 20px;
  max-width: min(420px, calc(100vw - 40px));
  padding: 13px 17px;
  border-radius: 12px;
  color: #fff;
  background: #245e39;
  box-shadow: 0 14px 38px rgba(25, 17, 14, 0.24);
  transform: translateY(24px);
  opacity: 0;
  pointer-events: none;
  transition: transform 180ms ease, opacity 180ms ease;
}

.fc-site-editor-toast.is-error {
  background: #9f1d2b;
}

.fc-site-editor-toast.is-visible {
  transform: translateY(0);
  opacity: 1;
}

@media (max-width: 767px) {
  .fc-site-edit-mode body {
    padding-top: 128px !important;
  }

  .fc-site-editor-toolbar {
    min-height: 116px;
    flex-wrap: wrap;
    gap: 8px 12px;
    padding: 10px 12px;
  }

  .fc-site-editor-toolbar > span {
    order: 3;
    flex-basis: 100%;
    font-size: 0.78rem;
  }

  .fc-site-editor-toolbar label {
    margin-left: auto;
  }

  .fc-site-editor-toolbar select {
    min-width: 118px;
    max-width: 145px;
  }

  .fc-site-editor-panel {
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    max-height: 78vh;
    border-radius: 20px 20px 0 0;
    transform: translateY(105%);
  }

  .fc-site-editor-panel.is-open {
    transform: translateY(0);
  }
}
