.ac-editor-auth {
  flex-shrink: 0;
  align-self: center;
  z-index: 2;
}

.ac-editor-auth--bottom {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: .75rem 1rem;
  background: rgba(251, 250, 243, 0.96);
  border-top: 1px solid rgba(17, 17, 17, 0.1);
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.06);
  z-index: 100000;
}

.ac-editor-auth--bottom [data-ll-nav-auth] {
  margin-left: 0;
}

body:has(.ac-editor-auth--bottom) {
  padding-bottom: 3.5rem;
}

.ac-editor-auth [data-ll-nav-auth],
.site-header__end [data-ll-nav-auth] {
  display: flex;
  align-items: center;
  gap: .35rem;
  margin-left: .35rem;
}

.ac-editor-auth [data-ll-nav-auth] a,
.ac-editor-auth [data-ll-nav-auth] button,
.site-header__end [data-ll-nav-auth] a,
.site-header__end [data-ll-nav-auth] button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  padding: .35rem .65rem;
  border: 1px solid rgba(17, 17, 17, 0.12);
  border-radius: 999px;
  background: transparent;
  color: #444;
  font: 500 .78rem/1.2 Manrope, system-ui, sans-serif;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.ac-editor-auth [data-ll-nav-auth] a:hover,
.ac-editor-auth [data-ll-nav-auth] button:hover,
.site-header__end [data-ll-nav-auth] a:hover,
.site-header__end [data-ll-nav-auth] button:hover {
  color: #111;
  background: rgba(255, 255, 255, 0.72);
}

.ac-editor-auth [data-ll-nav-auth] .ll-nav-status,
.site-header__end [data-ll-nav-auth] .ll-nav-status {
  padding: .2rem .35rem;
  color: #666;
  font-size: .72rem;
  font-weight: 500;
}

body.ll-editing [data-edit],
body.ll-editing [data-edit-image] {
  outline: 1px solid rgba(17, 17, 17, 0.14);
  outline-offset: 3px;
  cursor: text;
}

body.ll-editing [data-edit-image] {
  cursor: pointer;
}

body.ll-editing button[data-edit]:not([data-ll-nav-auth] *),
body.ll-editing a[data-edit].wp-block-button__link,
body.ll-editing button[data-edit].wp-block-button__link,
body.ll-editing button[data-edit].ac-buy,
body.ll-editing a[data-edit].ac-simple-link,
body.ll-editing a[data-edit].ac-whatsapp-proof,
body.ll-editing a[data-edit].ac-feedback-link {
  pointer-events: auto;
  cursor: text;
}

body.ll-editing a:has(> [data-edit]),
body.ll-editing button:has(> [data-edit]) {
  pointer-events: none;
}

body.ll-editing a:has([data-edit]),
body.ll-editing button:has([data-edit]) {
  pointer-events: none;
}

body.ll-editing a [data-edit],
body.ll-editing button [data-edit] {
  pointer-events: auto;
}

body.ll-editing [data-edit]:focus {
  outline-color: rgba(17, 17, 17, 0.34);
  background: rgba(255, 255, 255, 0.72);
}

.ll-media-panel {
  position: fixed;
  top: 4.5rem;
  right: 1rem;
  z-index: 100001;
  width: min(520px, calc(100vw - 2rem));
  max-height: min(560px, calc(100vh - 5rem));
  overflow: auto;
  padding: 12px;
  border: 1px solid rgba(17, 17, 17, 0.12);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.14);
  color: #111;
  font: 13px/1.35 Manrope, system-ui, sans-serif;
}

.ll-media-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.ll-media-panel-head strong {
  font-size: .82rem;
  font-weight: 600;
}

.ll-media-upload {
  display: inline-flex;
  align-items: center;
  padding: .35rem .65rem;
  border: 1px solid rgba(17, 17, 17, 0.12);
  border-radius: 999px;
  background: rgba(247, 247, 245, 0.95);
  color: #111;
  font-size: .78rem;
  font-weight: 500;
  cursor: pointer;
}

.ll-media-upload:hover {
  background: #fff;
}

.ll-media-upload input {
  display: none;
}

.ll-media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 8px;
}

.ll-media-grid button {
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.ll-media-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
}
