/* Qubea London — on-page editor toolbar and edit states */

.qa-bar{
  position:fixed;
  left:50%;
  bottom:18px;
  transform:translateX(-50%);
  z-index:1900;
  display:flex;
  align-items:center;
  gap:8px;
  width:max-content;
  max-width:calc(100% - 24px);
  padding:8px 8px 8px 16px;
  border-radius:999px;
  background:rgba(31,26,22,.94);
  color:#fbf6ef;
  font:500 12px/1.2 "Manrope",system-ui,sans-serif;
  box-shadow:0 20px 50px -20px rgba(31,26,22,.6);
  -webkit-backdrop-filter:blur(12px);
  backdrop-filter:blur(12px);
}

.qa-status{ display:flex; align-items:center; gap:10px; margin-right:6px; min-width:0; }
.qa-status i{ width:8px; height:8px; border-radius:50%; background:#c9b09a; flex:none; }
.qa-bar[data-tone="ok"] .qa-status i{ background:#9fcb8a; }
.qa-bar[data-tone="error"] .qa-status i{ background:#e08a72; }
.qa-status b{ font-weight:600; letter-spacing:.14em; text-transform:uppercase; font-size:10.5px; }
.qa-status small{ color:rgba(251,246,239,.7); font-size:12px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:320px; }

.qa-btn{
  display:inline-flex;
  align-items:center;
  min-height:38px;
  padding:0 16px;
  border-radius:999px;
  border:1px solid #8f7563;
  background:#8f7563;
  color:#fbf6ef;
  font:600 11px/1 "Manrope",system-ui,sans-serif;
  letter-spacing:.1em;
  text-transform:uppercase;
  text-decoration:none;
  cursor:pointer;
  white-space:nowrap;
}
.qa-btn:hover{ background:#7a6252; border-color:#7a6252; }
.qa-btn:disabled{ opacity:.45; cursor:default; }
.qa-btn[hidden]{ display:none; }
.qa-ghost{ background:transparent; border-color:rgba(251,246,239,.28); }
.qa-ghost:hover{ background:rgba(251,246,239,.1); border-color:rgba(251,246,239,.5); }

/* Edit mode */
.qa-editing [contenteditable][data-k]{
  outline:1px dashed rgba(143,117,99,.55);
  outline-offset:3px;
  border-radius:3px;
  cursor:text;
  transition:outline-color .2s;
}
.qa-editing [contenteditable][data-k]:hover{ outline-color:#8f7563; }
.qa-editing [contenteditable][data-k]:focus{ outline:2px solid #8f7563; background:rgba(143,117,99,.06); }
.qa-editing img[data-k]{ cursor:pointer; outline:2px dashed rgba(143,117,99,.7); outline-offset:-6px; }
.qa-editing img[data-k]:hover{ outline-color:#8f7563; filter:brightness(.92); }
.qa-changed{ box-shadow:inset 0 -2px 0 #c49a6c; }
img.qa-changed{ box-shadow:none; outline:3px solid #c49a6c !important; outline-offset:-6px; }

/* keep hidden-by-design copies hidden, but let the editor reach the mobile menu */
.qa-editing .floating-actions,
.qa-editing .floating-book{ opacity:.25; pointer-events:none; }

@media (max-width:640px){
  .qa-bar{ left:12px; right:12px; transform:none; width:auto; flex-wrap:wrap; border-radius:18px; padding:10px; }
  .qa-status{ width:100%; margin:0 0 4px 4px; }
  .qa-status small{ max-width:none; white-space:normal; }
  .qa-btn{ flex:1 1 auto; justify-content:center; }
}

/* ================= Cookie choice banner ================= */

.qc-banner{
  position:fixed;
  left:24px;
  bottom:24px;
  z-index:1800;
  display:grid;
  grid-template-columns:1fr auto;
  align-items:end;
  gap:22px;
  width:min(540px,calc(100% - 28px));
  padding:26px 26px 24px;
  border-radius:22px;
  background:#fcfaf6;
  color:#1f1a16;
  font:14px/1.6 "Manrope",system-ui,sans-serif;
  box-shadow:inset 0 1px 0 #fff,0 0 0 1px rgba(143,117,99,.14),0 28px 60px -28px rgba(40,28,20,.45);
  animation:qcRise .6s cubic-bezier(.32,.72,0,1) both;
}
.qc-eyebrow{ font-size:10.5px; font-weight:600; letter-spacing:.24em; text-transform:uppercase; color:#8f7563; }
.qc-banner h2{ font:500 30px/1.05 "Cormorant Garamond",serif; margin:8px 0 8px; }
.qc-banner p{ font-size:12.5px; color:#5a5048; margin:0; }
.qc-banner a{ display:inline-block; margin-top:10px; font-size:11.5px; color:#1f1a16; border-bottom:1px solid #8f7563; text-decoration:none; }
.qc-actions{ display:grid; gap:8px; min-width:150px; }
.qc-actions button{
  min-height:42px; padding:0 16px; border-radius:999px; cursor:pointer;
  font:600 10.5px/1 "Manrope",system-ui,sans-serif; letter-spacing:.14em; text-transform:uppercase;
  border:1px solid #8f7563; transition:background .3s,color .3s;
}
.qc-decline{ background:transparent; color:#1f1a16; }
.qc-decline:hover{ background:#f3ece3; }
.qc-accept{ background:#8f7563; color:#fbf6ef; }
.qc-accept:hover{ background:#7a6252; }
.qc-leaving{ opacity:0; transform:translateY(16px); transition:opacity .3s,transform .3s; }
@keyframes qcRise{ from{ opacity:0; transform:translateY(20px); } to{ opacity:1; transform:none; } }

@media (max-width:640px){
  .qc-banner{ left:12px; right:12px; bottom:12px; width:auto; grid-template-columns:1fr; padding:22px 20px; }
  .qc-actions{ grid-template-columns:1fr 1fr; }
}
