.brclt-root,
.brclt-root * ,
.brclt-panel,
.brclt-panel * {
  box-sizing: border-box;
}

.brclt-root.brclt-edge {
  position: fixed;
  right: 0;
  top: var(--brclt-pillow-top, 24vh);
  z-index: 99980;
  display: flex;
  align-items: center;
  transform: translateX(calc(100% - 54px));
  transition: transform .22s ease;
  font-family: inherit;
}

.brclt-root.brclt-edge.is-open {
  transform: translateX(0);
}

.brclt-tab {
  appearance: none;
  border: 1px solid rgba(15, 15, 20, .14);
  border-right: 0;
  background: rgba(255, 255, 255, .96);
  color: #111;
  min-width: 54px;
  min-height: 42px;
  border-radius: 18px 0 0 18px;
  padding: 7px 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .13);
  font-weight: 900;
  line-height: 1;
}

.brclt-tab-flag,
.brclt-lang-flag {
  font-size: 18px;
  line-height: 1;
}

.brclt-tab-code,
.brclt-lang-code {
  font-size: 11px;
  letter-spacing: .08em;
}

.brclt-menu {
  min-width: 178px;
  padding: 8px;
  background: rgba(255, 255, 255, .98);
  border: 1px solid rgba(15, 15, 20, .12);
  border-right: 0;
  border-radius: 18px 0 0 18px;
  box-shadow: 0 18px 46px rgba(0, 0, 0, .16);
}

.brclt-lang {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 13px;
  color: #111 !important;
  text-decoration: none !important;
  font-size: 13px;
  font-weight: 800;
}

.brclt-lang:hover,
.brclt-lang:focus {
  background: rgba(0, 0, 0, .055);
  outline: none;
}

.brclt-lang.is-active {
  background: #111;
  color: #fff !important;
}

.brclt-lang-label {
  white-space: nowrap;
}

.brclt-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: min(420px, calc(100vw - 24px));
  height: 100vh;
  z-index: 100010;
  transform: translateX(104%);
  transition: transform .22s ease;
  background: #fff;
  border-left: 1px solid rgba(0, 0, 0, .11);
  box-shadow: -18px 0 48px rgba(0, 0, 0, .18);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #111;
}

.brclt-panel.is-open {
  transform: translateX(0);
}

.brclt-panel.is-left {
  left: 0;
  right: auto;
  transform: translateX(-104%);
  border-left: 0;
  border-right: 1px solid rgba(0, 0, 0, .11);
  box-shadow: 18px 0 48px rgba(0, 0, 0, .18);
}

.brclt-panel.is-left.is-open {
  transform: translateX(0);
}

.brclt-panel.is-compact {
  width: min(310px, calc(100vw - 24px));
}

.brclt-panel.is-temporarily-hidden {
  transform: translateX(104%) !important;
}

.brclt-panel.is-left.is-temporarily-hidden {
  transform: translateX(-104%) !important;
}

body.brclt-editor-selecting::after {
  content: "Clicca il testo da tradurre";
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 100011;
  transform: translateX(-50%);
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(17, 17, 17, .94);
  color: #fff;
  font: 800 13px/1.2 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  box-shadow: 0 14px 30px rgba(0, 0, 0, .22);
  pointer-events: none;
}

.brclt-panel-head {
  min-height: 58px;
  padding: 16px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(0, 0, 0, .08);
}

.brclt-panel-head strong {
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.brclt-panel-tools {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-left: 12px;
}

.brclt-panel-tool,
.brclt-panel-close {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, .14);
  background: #fff;
  color: #111;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}

.brclt-panel-tool {
  font-size: 15px;
}

.brclt-panel-tool:hover,
.brclt-panel-tool:focus,
.brclt-panel-close:hover,
.brclt-panel-close:focus {
  background: #f3f4f6;
  outline: none;
}

.brclt-panel-close {
  font-size: 24px;
}

.brclt-panel-body {
  padding: 16px 18px 28px;
  height: calc(100vh - 58px);
  overflow: auto;
}

.brclt-help {
  margin: 0 0 14px;
  color: #666;
  font-size: 13px;
}

.brclt-panel.is-compact .brclt-help {
  margin-bottom: 10px;
}

.brclt-panel.is-compact .brclt-original,
.brclt-panel.is-compact .brclt-field textarea {
  font-size: 13px;
  min-height: 66px;
}

.brclt-label,
.brclt-field label {
  display: block;
  margin: 13px 0 6px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #222;
}

.brclt-original,
.brclt-field textarea {
  width: 100%;
  max-width: 100%;
  border: 1px solid rgba(0, 0, 0, .18);
  border-radius: 14px;
  padding: 10px 12px;
  background: #fff;
  color: #111;
  font-size: 14px;
  line-height: 1.45;
  resize: vertical;
}

.brclt-original {
  background: #f7f7f8;
  color: #333;
}

.brclt-scope-row {
  margin: 14px 0 4px;
  padding: 10px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  border-radius: 14px;
  background: #f7f7f8;
  font-size: 13px;
}

.brclt-scope-row > span {
  font-weight: 900;
  margin-right: 4px;
}

.brclt-scope-row label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin: 0;
}


.brclt-suggest-row {
  margin: 12px 0 8px;
  padding: 10px;
  border-radius: 14px;
  background: #fff7ed;
  border: 1px solid rgba(234, 88, 12, .18);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.brclt-suggest-row .button,
.brclt-suggest-one {
  border-radius: 999px !important;
  font-weight: 900 !important;
}

.brclt-suggest-note {
  color: #7c2d12;
  font-size: 12px;
  line-height: 1.35;
}

.brclt-field-head {
  display: flex !important;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.brclt-suggest-one {
  appearance: none;
  border: 1px solid rgba(234, 88, 12, .22);
  background: #fff7ed;
  color: #9a3412;
  min-height: 28px;
  padding: 6px 10px;
  font-size: 11px;
  line-height: 1;
  cursor: pointer;
}

.brclt-suggest-one:hover,
.brclt-suggest-one:focus,
.brclt-suggest-row .button:hover,
.brclt-suggest-row .button:focus {
  background: #ffedd5 !important;
  outline: none;
}

.brclt-suggest-one:disabled,
.brclt-suggest-one.is-loading,
.brclt-suggest-row .button:disabled,
.brclt-suggest-row .button.is-loading {
  opacity: .65;
  cursor: wait;
}

.brclt-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.brclt-actions .button {
  border-radius: 999px !important;
  font-weight: 800 !important;
}

.brclt-actions .brclt-copy-global,
.brclt-actions .brclt-promote-context {
  background: #f8fafc !important;
  border-color: rgba(15, 23, 42, .16) !important;
  color: #111 !important;
}

.brclt-panel.is-compact .brclt-suggest-row .button,
.brclt-panel.is-compact .brclt-actions .button {
  width: 100%;
  justify-content: center;
}

.brclt-status {
  min-height: 20px;
  margin-top: 12px;
  font-size: 13px;
  font-weight: 800;
  color: #166534;
}

.brclt-status.is-error {
  color: #b91c1c;
}

body.brclt-editor-on {
  cursor: crosshair;
}

body.brclt-editor-on .brclt-picked {
  outline: 3px solid rgba(255, 59, 48, .7) !important;
  outline-offset: 3px !important;
  border-radius: 8px;
}

body.brclt-editor-on a,
body.brclt-editor-on button,
body.brclt-editor-on input,
body.brclt-editor-on textarea,
body.brclt-editor-on label,
body.brclt-editor-on p,
body.brclt-editor-on span,
body.brclt-editor-on h1,
body.brclt-editor-on h2,
body.brclt-editor-on h3,
body.brclt-editor-on h4,
body.brclt-editor-on h5,
body.brclt-editor-on h6,
body.brclt-editor-on li,
body.brclt-editor-on td,
body.brclt-editor-on th,
body.brclt-editor-on figcaption,
body.brclt-editor-on small {
  cursor: crosshair;
}

@media (max-width: 900px), (hover: none) and (pointer: coarse) {
  .brclt-root.brclt-edge {
    top: var(--brclt-pillow-mobile-top, var(--brclt-pillow-top, 24vh)) !important;
  }
  .brclt-tab {
    min-width: 50px;
    min-height: 38px;
    padding: 6px 8px;
  }
  .brclt-menu {
    min-width: 162px;
  }
  .brclt-panel {
    width: calc(100vw - 12px);
  }
}

/* wpForo live message translation: on-demand only, never replaces/saves user content. */
.brclt-wpforo-live-controls,
.brclt-wpforo-live-box,
.brclt-wpforo-live-controls *,
.brclt-wpforo-live-box * {
  box-sizing: border-box;
}

.brclt-wpforo-live-controls {
  margin: 10px 0 6px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.brclt-wpforo-live-btn {
  appearance: none;
  border: 1px solid rgba(17, 17, 17, .12);
  border-radius: 999px;
  background: linear-gradient(180deg, #ffffff 0%, #f2f3f6 100%);
  color: #111111;
  min-height: 34px;
  padding: 8px 13px;
  font-size: 12px;
  line-height: 1;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(0, 0, 0, .08);
  transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}

.brclt-wpforo-live-btn:hover,
.brclt-wpforo-live-btn:focus {
  transform: translateY(-1px);
  box-shadow: 0 11px 22px rgba(0, 0, 0, .12);
  outline: none;
}

.brclt-wpforo-live-btn:disabled,
.brclt-wpforo-live-btn.is-loading {
  opacity: .66;
  cursor: wait;
  transform: none;
}

.brclt-wpforo-live-box {
  margin: 8px 0 14px;
  padding: 12px 14px;
  border: 1px solid rgba(20, 184, 166, .22);
  border-left: 4px solid rgba(20, 184, 166, .75);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(240, 253, 250, .96) 0%, rgba(255, 255, 255, .98) 100%);
  color: #111111;
  box-shadow: 0 10px 22px rgba(0, 0, 0, .06);
}

.brclt-wpforo-live-box[hidden] {
  display: none !important;
}

.brclt-wpforo-live-box.is-error {
  border-color: rgba(239, 68, 68, .28);
  border-left-color: rgba(239, 68, 68, .82);
  background: linear-gradient(180deg, rgba(254, 242, 242, .98) 0%, rgba(255, 255, 255, .98) 100%);
}

.brclt-wpforo-live-meta {
  margin: 0 0 7px;
  color: #0f766e;
  font-size: 11px;
  line-height: 1.2;
  font-weight: 1000;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.brclt-wpforo-live-box.is-error .brclt-wpforo-live-meta {
  color: #b91c1c;
}

.brclt-wpforo-live-text {
  color: #111111;
  font-size: 14px;
  line-height: 1.55;
  font-weight: 650;
  white-space: pre-wrap;
}

@media (max-width: 640px) {
  .brclt-wpforo-live-controls {
    margin-top: 8px;
  }
  .brclt-wpforo-live-btn {
    min-height: 32px;
    padding: 8px 12px;
    font-size: 11px;
  }
  .brclt-wpforo-live-box {
    padding: 11px 12px;
    border-radius: 14px;
  }
}
