.site-edit-mode #siteLoader {
  display: none !important;
}

/* Legacy hero controls in customer profile — kept in DOM, hidden until reused */
.profile-menu-item--hero-color,
.profile-menu-item--edit-hero,
.profile-menu-item--reset-hero {
  display: none !important;
}

/* ——— Site Management editing mode (UI shell) ——— */
.site-edit-mode-banner {
  position: sticky;
  top: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.22rem 0.75rem;
  background: linear-gradient(90deg, #1a1510 0%, #2a2218 50%, #1a1510 100%);
  border-bottom: 1px solid rgba(212, 175, 95, 0.35);
  color: #f7ead0;
  font-size: 0.6875rem;
  line-height: 1.2;
}

.site-edit-mode-banner__text {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  width: 100%;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.site-edit-mode-banner__text > i {
  flex-shrink: 0;
  color: #d4af5f;
  font-size: 0.65rem;
}

.site-edit-mode-banner__label {
  flex-shrink: 0;
  font-weight: 600;
}

.site-edit-mode-banner__sep {
  flex-shrink: 0;
  color: rgba(247, 234, 208, 0.45);
}

.site-edit-mode-banner__hint {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  color: rgba(247, 234, 208, 0.68);
  font-weight: 400;
}

.site-edit-mode-banner__exit {
  flex-shrink: 0;
  padding: 0.12rem 0.55rem;
  border: 1px solid rgba(212, 175, 95, 0.45);
  border-radius: 5px;
  color: #f7ead0;
  font-size: 0.625rem;
  font-weight: 600;
  text-decoration: none;
  line-height: 1.2;
  white-space: nowrap;
}

.site-edit-mode-banner__exit:hover {
  background: rgba(212, 175, 95, 0.14);
  color: #fff8e8;
}

.site-section-edit-modal[hidden] {
  display: none !important;
}

.site-section-edit-modal {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.site-section-edit-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 8, 14, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.site-section-edit-modal__panel {
  position: relative;
  z-index: 1;
  width: min(520px, 94vw);
  max-height: min(88vh, 720px);
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  border: 1px solid rgba(212, 175, 95, 0.35);
  background: linear-gradient(180deg, #181b26 0%, #10131c 100%);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
}

.site-section-edit-modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1rem 0.75rem;
  border-bottom: 1px solid rgba(212, 175, 95, 0.16);
}

.site-section-edit-modal__title {
  margin: 0;
  color: #f7ead0;
  font-size: 1.05rem;
  font-weight: 600;
}

.site-section-edit-modal__sub {
  margin: 0.2rem 0 0;
  color: rgba(247, 234, 208, 0.62);
  font-size: 0.75rem;
}

.site-section-edit-modal__close {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(212, 175, 95, 0.35);
  border-radius: 8px;
  background: rgba(12, 14, 20, 0.85);
  color: #f7ead0;
  cursor: pointer;
}

.site-section-edit-modal__body {
  padding: 1rem;
  overflow: auto;
}

.site-section-edit-modal__placeholder {
  margin: 0;
  color: rgba(247, 234, 208, 0.72);
  font-size: 0.875rem;
  line-height: 1.5;
}

.site-section-edit-modal__foot {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  padding: 0.75rem 1rem 1rem;
  border-top: 1px solid rgba(212, 175, 95, 0.16);
}

body.site-section-edit-modal-open {
  overflow: hidden;
}

.site-edit-section {
  position: relative;
}

.site-edit-mode .site-edit-section {
  outline: 2px dashed rgba(212, 175, 95, 0.38);
  outline-offset: 6px;
  border-radius: 4px;
}

.site-edit-mode .site-edit-section.is-focused {
  z-index: 1250;
  outline-color: rgba(212, 175, 95, 0.85);
  outline-width: 2px;
}

.site-edit-mode .site-edit-section.is-editing {
  outline-color: rgba(244, 208, 111, 0.92);
  outline-style: solid;
  outline-width: 2px;
}

.site-edit-mode .site-edit-section.is-saved-flash {
  outline-color: rgba(34, 197, 94, 0.85) !important;
  outline-style: solid;
  transition: outline-color 0.25s ease;
}

.site-edit-toast {
  position: fixed;
  bottom: 1.25rem;
  left: 50%;
  z-index: 1400;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  max-width: min(92vw, 28rem);
  padding: 0.65rem 1rem;
  border-radius: 10px;
  background: rgba(12, 14, 20, 0.96);
  border: 1px solid rgba(212, 175, 95, 0.45);
  color: #f7ead0;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.35;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
  transform: translateX(-50%) translateY(0);
  animation: site-edit-toast-in 0.22s ease;
}

.site-edit-toast[hidden] {
  display: none !important;
}

.site-edit-toast i {
  flex-shrink: 0;
  font-size: 1rem;
}

.site-edit-toast--success {
  border-color: rgba(34, 197, 94, 0.55);
}

.site-edit-toast--success i {
  color: #4ade80;
}

.site-edit-toast--error {
  border-color: rgba(248, 113, 113, 0.55);
}

.site-edit-toast--error i {
  color: #f87171;
}

.site-edit-toast--loading i {
  color: #d4af5f;
}

.site-edit-toast--info i {
  color: #d4af5f;
}

.site-edit-menu button.is-saving {
  opacity: 0.65;
  pointer-events: none;
}

.site-edit-menu button.is-saving i {
  animation: fa-spin 0.8s linear infinite;
}

@keyframes site-edit-toast-in {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(0.5rem);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

.site-edit-save-notice[hidden] {
  display: none !important;
}

body.site-edit-save-notice-open {
  overflow: hidden;
}

.site-edit-save-notice {
  position: fixed;
  inset: 0;
  z-index: 10200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.site-edit-save-notice__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 8, 14, 0.62);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.site-edit-save-notice__panel {
  position: relative;
  z-index: 1;
  width: min(420px, 94vw);
  padding: 1.35rem 1.35rem 1.15rem;
  border-radius: 14px;
  border: 1px solid rgba(212, 175, 95, 0.5);
  background: linear-gradient(180deg, #1a1e28 0%, #10131c 100%);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(244, 208, 111, 0.08);
  text-align: center;
  animation: site-edit-save-notice-in 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.site-edit-save-notice__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  margin: 0 auto 0.75rem;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.14);
  color: #4ade80;
  font-size: 1.45rem;
}

.site-edit-save-notice__title {
  margin: 0 0 0.55rem;
  color: #f7ead0;
  font-size: 1.2rem;
  font-weight: 700;
}

.site-edit-save-notice__body {
  margin: 0 0 0.65rem;
  color: rgba(247, 234, 208, 0.9);
  font-size: 0.95rem;
  line-height: 1.5;
}

.site-edit-save-notice__next {
  margin: 0 0 1.1rem;
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  background: rgba(244, 208, 111, 0.1);
  border: 1px solid rgba(244, 208, 111, 0.28);
  color: #f4d06f;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.45;
}

.site-edit-save-notice__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
}

.site-edit-save-notice__publish,
.site-edit-save-notice__dismiss {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  padding: 0.55rem 1rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.site-edit-save-notice__publish {
  border: 1px solid rgba(244, 208, 111, 0.55);
  background: rgba(244, 208, 111, 0.18);
  color: #fff3c4;
}

.site-edit-save-notice__publish:hover {
  background: rgba(244, 208, 111, 0.28);
  color: #fff8e8;
}

.site-edit-save-notice__dismiss {
  border: 1px solid rgba(247, 234, 208, 0.22);
  background: rgba(8, 10, 16, 0.65);
  color: rgba(247, 234, 208, 0.88);
}

.site-edit-save-notice__dismiss:hover {
  background: rgba(247, 234, 208, 0.08);
  color: #f7ead0;
}

@keyframes site-edit-save-notice-in {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.site-edit-chrome {
  position: absolute;
  top: 4px;
  right: 10px;
  z-index: 1251;
  display: none;
}

.site-edit-dropdown {
  position: relative;
  z-index: 1252;
}

.site-edit-mode .site-edit-chrome {
  display: block;
}

.site-edit-mode .site-edit-section--announcement {
  outline-offset: 2px;
}

.site-edit-mode .site-edit-section--announcement .announcement {
  padding-right: 2.1rem;
}

.site-edit-section--announcement .site-edit-chrome {
  top: 50%;
  right: 6px;
  transform: translateY(-50%);
}

.site-edit-section--announcement .site-edit-more {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  background: #0c0e14;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
  font-size: 0.625rem;
}

.site-edit-section--announcement .site-edit-more:hover,
.site-edit-section--announcement .site-edit-more[aria-expanded="true"] {
  background: #161922;
  box-shadow: 0 0 0 1px rgba(212, 175, 95, 0.35), 0 4px 12px rgba(0, 0, 0, 0.35);
}

.site-edit-section--announcement .site-edit-more i {
  font-size: 0.7rem;
  line-height: 1;
}

.site-edit-section--header .site-edit-chrome {
  top: 8px;
  right: 8px;
  left: auto;
}

.site-edit-chrome--left .site-edit-menu {
  left: 0;
  right: auto;
}

.site-edit-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid rgba(212, 175, 95, 0.5);
  border-radius: 8px;
  background: #0c0e14;
  color: #f7ead0;
  cursor: pointer;
  opacity: 1;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease, color 0.15s ease;
}

.site-edit-more:hover,
.site-edit-more[aria-expanded="true"] {
  opacity: 1;
  background: #161922;
  border-color: #d4af5f;
  color: #fff8e8;
  box-shadow: 0 0 0 1px rgba(212, 175, 95, 0.35), 0 6px 18px rgba(0, 0, 0, 0.42);
}

.site-edit-more[aria-expanded="true"] {
  transform: scale(1.04);
  background: #1e222c;
  border-color: #f4d06f;
}

.site-edit-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 1253;
  min-width: 196px;
  padding: 0.35rem;
  border-radius: 10px;
  border: 1px solid rgba(212, 175, 95, 0.35);
  background: rgba(14, 16, 22, 0.98);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

.site-edit-menu[hidden] {
  display: none !important;
}

.site-edit-menu button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.55rem 0.7rem;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #f7ead0;
  font-size: 0.8125rem;
  text-align: left;
  cursor: pointer;
}

.site-edit-menu button:hover {
  background: rgba(212, 175, 95, 0.14);
}

.site-edit-menu button i {
  width: 14px;
  color: #d4af5f;
  text-align: center;
}

.site-edit-menu button[data-action="save"] {
  color: #b8f0c8;
}

.site-edit-menu button[data-action="save"] i {
  color: #6fd49a;
}

.site-edit-menu button[data-action="reset"]:disabled,
.site-edit-menu button[data-action="reset"].is-disabled {
  opacity: 0.4;
  color: rgba(247, 234, 208, 0.45);
  cursor: not-allowed;
}

.site-edit-menu button[data-action="reset"]:disabled:hover,
.site-edit-menu button[data-action="reset"].is-disabled:hover {
  background: transparent;
}

.site-edit-menu button[data-action="reset"]:disabled i,
.site-edit-menu button[data-action="reset"].is-disabled i {
  color: rgba(212, 175, 95, 0.35);
}

@media (max-width: 767.98px) {
  .site-edit-mode-banner {
    padding: 0.2rem 0.55rem;
    font-size: 0.625rem;
  }

  .site-edit-section--header .site-edit-chrome {
    top: 6px;
    right: 6px;
    left: auto;
  }
}
