/**
 * "Site Sections" blocks – editor UI only (not loaded on the website).
 */

.editor-styles-wrapper,
.editor-styles-wrapper .editor-post-title,
.editor-styles-wrapper .editor-post-title__input,
.editor-styles-wrapper .wp-block-post-title {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
}

.editor-styles-wrapper .editor-post-title__input,
.editor-styles-wrapper .wp-block-post-title {
  color: #111412;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
}

.c2-block {
  --c2-ink: #111412;
  --c2-red: #e50121;
  --c2-line: #dcdcde;

  margin: 16px 0;
  background: #fff;
  border: 1px solid var(--c2-line);
  border-radius: 8px;
  overflow: hidden;
  color: #1e1e1e;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
  font-size: 13px;
  line-height: 1.4;
}

.c2-block *,
.c2-block *::before,
.c2-block *::after {
  box-sizing: border-box;
}

.c2-block.is-selected,
.c2-block.has-child-selected {
  border-color: var(--c2-ink);
  box-shadow: 0 0 0 1px var(--c2-ink);
}

.c2-block__head {
  appearance: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  margin: 0;
  padding: 14px 18px;
  background: var(--c2-ink);
  border: 0;
  border-left: 4px solid var(--c2-red);
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-align: left;
  text-transform: uppercase;
  cursor: pointer;
}

.c2-block__head:hover,
.c2-block__head:focus {
  background: #2a2e2b;
  color: #fff;
}

.c2-block__toggle {
  flex: none;
  color: #ff5a6e;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.c2-block__body {
  display: grid;
  gap: 20px;
  padding: 18px;
}

.c2-block__desc {
  margin: 0;
  color: #50575e;
  font-size: 13px;
}

.c2-field__label {
  display: block;
  margin-bottom: 8px;
  color: #1e1e1e;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.c2-field__help {
  margin: 6px 0 0;
  color: #757575;
  font-size: 12px;
}

.c2-field__pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.c2-media__img {
  display: block;
  max-width: 200px;
  max-height: 140px;
  margin-bottom: 10px;
  border: 1px solid var(--c2-line);
  border-radius: 6px;
  object-fit: cover;
}

.c2-media__file,
.c2-media__note {
  margin: 0 0 10px;
  color: #50575e;
  font-size: 13px;
  word-break: break-all;
}

.c2-media__buttons {
  display: flex;
  align-items: center;
  gap: 14px;
}

.c2-repeater__row {
  margin-bottom: 12px;
  background: #f6f7f7;
  border: 1px solid var(--c2-line);
  border-radius: 6px;
}

.c2-repeater__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 6px 6px 14px;
  border-bottom: 1px solid var(--c2-line);
  font-size: 13px;
}

.c2-repeater__actions {
  display: inline-flex;
  gap: 2px;
}

.c2-repeater__body {
  display: grid;
  gap: 16px;
  padding: 14px;
}

.c2-repeater > .c2-field__help {
  margin: 0 0 10px;
}

.c2-repeater__actions .components-button:not(.is-destructive) {
  font-size: 15px;
}

.c2-repeater__add {
  margin-top: 4px;
}
