/* CottonCloud Owner Editor 2.51.3 launcher.
 * This is the only editor CSS loaded on a normal authenticated page view.
 */
html.cc-owner-editor-allowed,
body.cc-owner-editor-allowed {
  --wp-admin--admin-bar--height: 0px !important;
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.cc-owner-editor-allowed #wpadminbar,
html.cc-owner-editor-allowed #wpadminbar,
html body.cc-owner-editor-allowed #wpadminbar {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.kt-owner-lazy {
  position: fixed;
  top: calc(var(--wp-admin--admin-bar--height, 0px) + 38vh);
  right: 0;
  z-index: 2147482000;
  pointer-events: none;
  contain: layout style paint;
  isolation: isolate;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html body #cottoncloud-owner-editor-lazy.kt-owner-lazy[data-kt-owner-lazy-root] {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: none !important;
}

html body #cottoncloud-owner-editor-lazy.kt-owner-lazy[data-kt-owner-lazy-root] .kt-owner-pencil {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

.kt-owner-pencil {
  appearance: none;
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 58px;
  min-height: 58px;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-right: 0;
  border-radius: 22px 0 0 22px;
  padding: 10px 12px;
  pointer-events: auto;
  background: rgba(12, 38, 28, 0.96);
  color: #fff;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.28);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  font: inherit;
  cursor: pointer;
  touch-action: manipulation;
}

.kt-owner-pencil:hover,
.kt-owner-pencil:focus-visible {
  background: #164a35;
  outline: 3px solid rgba(242, 210, 143, 0.55);
  outline-offset: 2px;
}

.kt-owner-pencil:disabled {
  opacity: 0.68;
  cursor: progress;
}

.kt-owner-pencil-icon {
  display: grid;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 13px;
  background: #f2d28f;
  color: #10231a;
}

.kt-owner-pencil-text {
  display: grid;
  gap: 1px;
  text-align: left;
  line-height: 1.08;
}

.kt-owner-pencil-text strong {
  color: #f2d28f;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.kt-owner-pencil-text small {
  color: rgba(255, 255, 255, 0.76);
  font-size: 11px;
  font-weight: 750;
}

.kt-owner-lazy-status {
  position: absolute;
  top: 50%;
  right: 72px;
  width: max-content;
  max-width: min(340px, calc(100vw - 96px));
  transform: translateY(-50%);
  border-radius: 14px;
  padding: 10px 12px;
  pointer-events: none;
  background: rgba(12, 38, 28, 0.97);
  color: #fff;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.28);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.kt-owner-lazy-status[hidden] {
  display: none !important;
}

.kt-owner-lazy-status.is-error {
  background: #8a1f2d;
}

.cottoncloud-owner-editor-adminbar .ab-item {
  cursor: pointer !important;
}

#wp-admin-bar-cottoncloud-owner-editor > .ab-item::before {
  content: "✎";
  top: 1px;
}

@media (max-width: 782px) {
  .kt-owner-lazy {
    top: auto;
    right: 10px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  }

  .kt-owner-pencil {
    min-width: 58px;
    min-height: 58px;
    border-right: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 20px;
    padding: 10px;
  }

  .kt-owner-pencil-text {
    display: none;
  }

  .kt-owner-lazy-status {
    top: auto;
    right: 0;
    bottom: 70px;
    max-width: calc(100vw - 24px);
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .kt-owner-pencil {
    transition: none;
  }
}
