/* ===== Client Feedback / Edit Mode ===== */

 .fb-banner {
  position: sticky;
  top: 0;
  z-index: 9999;
  background: #071827;
  color: #ffffff;
  border-bottom: 3px solid #15c7d8;
  box-shadow: 0 6px 22px rgba(0,0,0,0.22);
  font-family: 'Nunito Sans', Arial, sans-serif;
}
.fb-brand-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 9px 16px;
}
.fb-brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.fb-brand-mark {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  border-radius: 13px;
  background: linear-gradient(135deg, #15c7d8 0%, #2b9b82 54%, #ffffff 55%, #e8fbff 100%);
  color: #071827;
  border: 1px solid rgba(255,255,255,0.48);
  box-shadow: 0 10px 24px rgba(21,199,216,0.26);
  font-weight: 1000;
  letter-spacing: -0.04em;
  font-size: 15px;
}
.fb-brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}
.fb-brand-name {
  font-weight: 1000;
  font-size: 15px;
  letter-spacing: 0.01em;
}
.fb-brand-url {
  color: #b9f6ff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.03em;
}
.fb-brand-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(21,199,216,0.14);
  border: 1px solid rgba(185,246,255,0.36);
  color: #e8fbff;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}
.fb-instruction-strip {
  background: #ffe45c;
  color: #102033;
  border-top: 1px solid rgba(255,255,255,0.2);
  border-bottom: 2px solid #f6c90e;
  padding: 10px 16px;
  text-align: center;
  font-size: 15px;
  line-height: 1.45;
  font-weight: 800;
}
.fb-instruction-strip strong { color: #075a64; }
@media (max-width: 720px) {
  .fb-brand-strip { align-items: flex-start; flex-direction: column; gap: 7px; padding: 8px 12px; }
  .fb-brand-pill { font-size: 11px; min-height: 24px; }
  .fb-instruction-strip { font-size: 13px; text-align: left; }
}


.fb-editable {
  outline: 1px dashed transparent;
  outline-offset: 3px;
  cursor: text;
  transition: outline-color .15s, background-color .15s;
  border-radius: 3px;
}
.fb-editable:hover {
  outline-color: rgba(43, 155, 130, 0.55);
  background-color: rgba(43, 155, 130, 0.06);
}
.fb-editable:focus {
  outline: 2px solid #2b9b82;
  background-color: rgba(43, 155, 130, 0.1);
}

.fb-img-wrap {
  display: contents;
}
.fb-img-host { position: relative; }
.fb-img-wrap img { display: block; max-width: 100%; }
.fb-img-btn {
  position: absolute;
  bottom: 8px;
  right: 8px;
  z-index: 10;
  background: rgba(31, 41, 55, 0.88);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 6px 10px;
  font-family: 'Nunito Sans', Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  opacity: 0;
  transition: opacity .15s;
  pointer-events: none;
}
.fb-img-host:hover .fb-img-btn,
.fb-img-host:focus-within .fb-img-btn,
.image-placeholder:hover .fb-img-btn,
.image-placeholder:focus-within .fb-img-btn {
  opacity: 1;
  pointer-events: auto;
}
.fb-img-btn.fb-loading {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.fb-bg-btn.fb-loading {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.fb-img-host.fb-replaced {
  outline: 2px solid #2b9b82;
  outline-offset: 2px;
}

[data-fb-bg] { position: relative; }
.fb-bg-btn {
  position: absolute;
  bottom: 18px;
  right: 18px;
  z-index: 5;
  background: rgba(31, 41, 55, 0.88);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 8px 12px;
  font-family: 'Nunito Sans', Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  opacity: 0;
  transition: opacity .15s;
}
[data-fb-bg]:hover .fb-bg-btn,
[data-fb-bg]:focus-within .fb-bg-btn {
  opacity: 1;
}
[data-fb-bg].fb-replaced {
  outline: 2px solid #2b9b82;
  outline-offset: -2px;
}

.fb-bar {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.22);
  padding: 8px 8px 8px 16px;
  font-family: 'Nunito Sans', Arial, sans-serif;
}
.fb-bar-status {
  font-size: 13px;
  color: #374151;
  max-width: 220px;
}
.fb-submit-btn {
  background: #2b9b82;
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}
.fb-submit-btn:hover { background: #24856f; }
.fb-submit-btn:disabled { background: #9ca3af; cursor: default; }
.fb-submit-btn.fb-sent { background: #1f7a58; }
.fb-submit-btn.fb-loading {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f6c90e;
  color: #102033;
}
.fb-spinner {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.45);
  border-top-color: #fff;
  animation: fb-spin 0.7s linear infinite;
  flex: none;
}
.fb-submit-btn.fb-loading .fb-spinner,
.fb-picker-card .fb-spinner {
  border-color: rgba(16,32,51,0.25);
  border-top-color: #102033;
}
@keyframes fb-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 600px) {
  .fb-bar { left: 12px; right: 12px; bottom: 12px; padding: 8px; }
  .fb-bar-status { display: none; }
  .fb-submit-btn { flex: 1; }
}

/* Extra download controls for replaced images and captured screenshots */
.fb-img-download,
.fb-bg-download,
.fb-shot-download {
  background: rgba(255, 255, 255, 0.94);
  color: #1f2937;
  border: 1px solid rgba(31, 41, 55, 0.16);
  border-radius: 6px;
  padding: 6px 10px;
  font-family: 'Nunito Sans', Arial, sans-serif;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(0,0,0,0.16);
}
.fb-img-download,
.fb-bg-download {
  position: absolute;
  right: 8px;
  bottom: 43px;
  z-index: 11;
  opacity: 0;
  transition: opacity .15s;
  pointer-events: none;
}
.fb-bg-download {
  right: 18px;
  bottom: 58px;
  z-index: 6;
}
.fb-img-host:hover .fb-img-download:not([hidden]),
.fb-img-host:focus-within .fb-img-download:not([hidden]),
.image-placeholder:hover .fb-img-download:not([hidden]),
.image-placeholder:focus-within .fb-img-download:not([hidden]),
[data-fb-bg]:hover .fb-bg-download:not([hidden]),
[data-fb-bg]:focus-within .fb-bg-download:not([hidden]) {
  opacity: 1;
  pointer-events: auto;
}
.fb-shot-download {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border-radius: 999px;
}
.fb-img-download[hidden],
.fb-bg-download[hidden] {
  display: none !important;
}


/* Client-clean controls: no manual download buttons, compact submit pill */
.fb-bar {
  padding: 8px;
}
.fb-bar-status,
.fb-shot-download,
.fb-img-download,
.fb-bg-download {
  display: none !important;
}
.fb-submit-btn {
  min-width: 150px;
}

.fb-picker-overlay {
  position: fixed;
  inset: 0;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 228, 92, 0.34);
  opacity: 0;
  pointer-events: none;
  transition: opacity .14s ease;
  font-family: 'Nunito Sans', Arial, sans-serif;
}
.fb-picker-overlay.fb-picker-visible {
  opacity: 1;
  pointer-events: auto;
}
.fb-picker-card {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #ffe45c;
  color: #102033;
  border: 2px solid #f6c90e;
  border-radius: 999px;
  box-shadow: 0 16px 44px rgba(0,0,0,0.28);
  padding: 13px 20px;
  font-size: 15px;
  font-weight: 900;
}
.fb-picker-card .fb-spinner {
  border-color: rgba(43,155,130,0.25);
  border-top-color: #2b9b82;
}


/* ===== Clearline Studio branded review controls ===== */
.fb-bar {
  background: #071827;
  border: 1px solid rgba(21,199,216,0.35);
  box-shadow: 0 14px 38px rgba(7,24,39,0.38);
}
.fb-submit-btn {
  background: linear-gradient(135deg, #15c7d8 0%, #2b9b82 100%);
  color: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.18), 0 8px 20px rgba(21,199,216,0.26);
  min-width: 175px;
}
.fb-submit-btn:hover { background: linear-gradient(135deg, #12b4c4 0%, #24856f 100%); }
.fb-submit-btn.fb-sent { background: #1f7a58; color: #ffffff; }
.fb-submit-btn.fb-loading {
  background: #ffe45c;
  color: #102033;
  box-shadow: 0 8px 24px rgba(246,201,14,0.32);
}
.fb-picker-overlay {
  background: rgba(7,24,39,0.54);
  backdrop-filter: blur(2px);
}
.fb-picker-card {
  background: #ffe45c;
  color: #102033;
  border: 3px solid #f6c90e;
  box-shadow: 0 18px 54px rgba(0,0,0,0.34), 0 0 0 7px rgba(255,228,92,0.25);
  padding: 14px 22px;
}
.fb-picker-brand {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #071827;
  color: #b9f6ff;
  font-size: 12px;
  font-weight: 1000;
  letter-spacing: -0.04em;
}
.fb-picker-card .fb-spinner,
.fb-submit-btn.fb-loading .fb-spinner {
  border-color: rgba(16,32,51,0.23);
  border-top-color: #071827;
}
.fb-bg-btn,
.fb-img-btn {
  background: #071827;
  color: #ffffff;
  border: 1px solid rgba(21,199,216,0.38);
  box-shadow: 0 8px 20px rgba(7,24,39,0.25);
}
.fb-bg-btn:hover,
.fb-img-btn:hover {
  background: #0c263e;
}
