/* CMS editor chrome — only applied when body.cms-editing */

.cms-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 20px;
  background: #B2D456;
  color: #1C1924;
  font-family: "Space Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.cms-bar-left,
.cms-bar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cms-bar .cms-status {
  font-weight: 500;
  opacity: 0.75;
}

.cms-bar button {
  font-family: inherit;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(28, 25, 36, 0.25);
  background: #1C1924;
  color: #FDFDFE;
  cursor: pointer;
}

.cms-bar button:hover {
  background: #2E2A3A;
}

.cms-bar a.cms-admin-link {
  color: #1C1924;
  text-decoration: underline;
  font-weight: 700;
}

body.cms-editing {
  padding-top: 52px;
}

body.cms-editing [data-edit] {
  outline: 1px dashed rgba(178, 212, 86, 0.35);
  outline-offset: 3px;
  cursor: text;
  transition: outline-color 0.15s, background 0.15s;
}

body.cms-editing [data-edit]:hover,
body.cms-editing [data-edit].cms-active {
  outline: 2px solid #B2D456;
  outline-offset: 3px;
  background: rgba(178, 212, 86, 0.08);
}

body.cms-editing [data-edit-type="image"],
body.cms-editing [data-edit][data-edit-type="image"] {
  cursor: pointer;
}

body.cms-editing [data-edit-type="url"] {
  cursor: pointer;
}

body.cms-editing [contenteditable="true"] {
  outline: 2px solid #B2D456 !important;
  outline-offset: 3px;
  min-width: 1ch;
}

.cms-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 10001;
  padding: 12px 18px;
  border-radius: 12px;
  background: #1C1924;
  color: #FDFDFE;
  border: 1px solid rgba(178, 212, 86, 0.5);
  font-family: "Space Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.2s, transform 0.2s;
}

.cms-toast.show {
  opacity: 1;
  transform: translateY(0);
}

.cms-file-input {
  display: none;
}

/* Collection add/delete controls */
body.cms-editing [data-collection] {
  position: relative;
}

body.cms-editing [data-collection-item].cms-card-wrap,
body.cms-editing [data-collection-item] {
  position: relative;
}

body.cms-editing .cms-card-controls {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 5;
  display: flex;
  gap: 6px;
}

body.cms-editing .cms-del-card {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(253, 253, 254, 0.25);
  background: #1C1924;
  color: #ff8a8a;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

body.cms-editing .cms-del-card:hover {
  background: #3a2030;
  border-color: #ff8a8a;
}

body.cms-editing .cms-add-card {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 72px;
  margin-top: 12px;
  border: 2px dashed rgba(178, 212, 86, 0.55);
  border-radius: var(--radius);
  background: rgba(178, 212, 86, 0.06);
  color: var(--lime);
  font-family: var(--display);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
}

body.cms-editing .cms-add-card:hover {
  background: rgba(178, 212, 86, 0.12);
}

body.cms-editing .marquee {
  flex-wrap: wrap;
  width: 100%;
  max-width: 100%;
  animation: none;
  justify-content: flex-start;
}

body.cms-editing .marquee .cms-add-card {
  width: 210px;
  flex-shrink: 0;
}

body.cms-editing .offers-teaser .cms-add-card,
body.cms-editing .proof-grid .cms-add-card,
body.cms-editing .problems-grid .cms-add-card,
body.cms-editing .contact-grid .cms-add-card,
body.cms-editing .track-grid .cms-add-card,
body.cms-editing .defs .cms-add-card,
body.cms-editing .offers-list .cms-add-card,
body.cms-editing .faq summary {
  cursor: pointer;
}

body.cms-editing .faq summary::after {
  pointer-events: none;
}

body.cms-editing .faq details[open] p[data-edit] {
  outline: 1px dashed rgba(178, 212, 86, 0.45);
  outline-offset: 4px;
}

body.cms-editing .client-card .handle img[data-platform-toggle] {
  cursor: pointer;
  outline: 1px dashed rgba(178, 212, 86, 0.55);
  outline-offset: 2px;
  border-radius: 2px;
}
