.b2c-main--loading {
  opacity: 0.55;
  pointer-events: none;
  transition: opacity 0.15s ease;
}

.b2c-pal-dock {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 1040;
  width: min(300px, calc(100vw - 1.5rem));
  filter: drop-shadow(0 18px 50px rgba(26, 35, 50, 0.18));
  font-family: Roboto, system-ui, sans-serif;
}

.b2c-pal-dock.live,
.b2c-pal-dock.results-open {
  width: min(340px, calc(100vw - 1.5rem));
}

.b2c-pal-panel {
  background: #0f1720;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.b2c-pal-idle {
  padding: 1.1rem 1rem 1.2rem;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.88rem;
  line-height: 1.45;
}

.b2c-pal-dock.live .b2c-pal-idle {
  display: none;
}

.b2c-pal-stage {
  display: none;
  position: relative;
  aspect-ratio: 3 / 4;
  background: #000;
}

.b2c-pal-dock.live .b2c-pal-stage {
  display: block;
}

.b2c-pal-dock.minimized .b2c-pal-stage {
  display: none;
}

.b2c-pal-stage video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #111;
}

.b2c-pal-waiting {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  padding: 1rem;
  text-align: center;
  background: #111;
}

.b2c-pal-waiting[hidden] {
  display: none;
}

.b2c-pal-tray {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  padding: 0.55rem 0.6rem;
  background: rgba(255, 255, 255, 0.06);
}

.b2c-pal-label {
  color: #fff;
  font-size: 0.8rem;
  font-weight: 650;
  min-width: 0;
}

.b2c-pal-label small {
  display: block;
  font-weight: 500;
  font-size: 0.7rem;
  opacity: 0.7;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.b2c-pal-label small.error {
  color: #ffb4a8;
  opacity: 1;
}

.b2c-pal-controls {
  display: flex;
  gap: 0.3rem;
  flex-shrink: 0;
}

.b2c-pal-controls button {
  appearance: none;
  border: 0;
  border-radius: 999px;
  width: 34px;
  height: 34px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 0.85rem;
  line-height: 1;
  display: grid;
  place-items: center;
}

.b2c-pal-controls button:hover {
  background: rgba(255, 255, 255, 0.2);
}

.b2c-pal-controls button.active {
  background: var(--primary-color, #0d6e5a);
}

.b2c-pal-controls button.danger {
  background: #b42318;
  width: auto;
  padding: 0 0.75rem;
  border-radius: 10px;
  font-size: 0.72rem;
  font-weight: 650;
}

.b2c-pal-controls button.primary {
  width: auto;
  padding: 0 0.85rem;
  border-radius: 10px;
  background: var(--primary-color, #ed7c17);
  font-size: 0.78rem;
  font-weight: 650;
  font-family: BebasNeue, sans-serif;
  letter-spacing: 0.04em;
}

.b2c-pal-controls button.ghost {
  width: auto;
  padding: 0 0.7rem;
  border-radius: 10px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.28);
  font-size: 0.72rem;
  font-weight: 650;
  font-family: BebasNeue, sans-serif;
  letter-spacing: 0.04em;
}

.b2c-pal-controls button:disabled {
  opacity: 0.5;
  cursor: wait;
}

.b2c-pal-dock:not(.live) .ctrl-live {
  display: none;
}

.b2c-pal-dock.live .ctrl-idle {
  display: none;
}

.b2c-pal-option-bar {
  padding: 0.6rem 0.75rem 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.b2c-pal-option-btn {
  width: 100%;
  border: 0;
  border-radius: 10px;
  padding: 0.55rem 0.75rem;
  background: var(--primary-color, #ed7c17);
  color: #fff;
  font-weight: 650;
  font-size: 0.78rem;
  cursor: pointer;
}

.b2c-pal-option-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.b2c-pal-option-hint {
  display: block;
  margin-top: 0.35rem;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.68rem;
  line-height: 1.35;
}

.b2c-pal-results {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #121a24;
  max-height: min(42vh, 360px);
  display: flex;
  flex-direction: column;
}

.b2c-pal-results[hidden] {
  display: none !important;
}

.b2c-pal-dock.minimized .b2c-pal-results {
  display: none !important;
}

.b2c-pal-results-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 0.75rem 0.25rem;
}

.b2c-pal-results-title {
  font-family: BebasNeue, sans-serif;
  letter-spacing: 0.06em;
  font-size: 1.05rem;
  color: var(--primary-color, #ed7c17);
}

.b2c-pal-results-close {
  appearance: none;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 0.2rem;
}

.b2c-pal-results-search {
  display: flex;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem 0.5rem;
}

.b2c-pal-results-search input {
  flex: 1;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 0.78rem;
  padding: 0.4rem 0.55rem;
}

.b2c-pal-results-search input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.b2c-pal-results-go {
  appearance: none;
  border: 0;
  border-radius: 8px;
  background: var(--primary-color, #ed7c17);
  color: #fff;
  font-family: BebasNeue, sans-serif;
  letter-spacing: 0.04em;
  font-size: 0.85rem;
  padding: 0 0.65rem;
  cursor: pointer;
}

.b2c-pal-results-meta {
  margin: 0;
  padding: 0 0.75rem 0.4rem;
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.55);
}

.b2c-pal-results-list {
  overflow: auto;
  padding: 0 0.6rem 0.7rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.b2c-pal-card {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: 10px;
  padding: 0.55rem 0.65rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.b2c-pal-card:hover {
  border-color: var(--primary-color, #ed7c17);
  background: rgba(255, 255, 255, 0.08);
}

.b2c-pal-card-title {
  font-family: BebasNeue, sans-serif;
  letter-spacing: 0.03em;
  font-size: 0.98rem;
  color: #fff;
  line-height: 1.15;
}

.b2c-pal-card-loc {
  margin-top: 0.15rem;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.65);
}

.b2c-pal-card-price {
  margin-top: 0.3rem;
  font-size: 0.78rem;
  font-weight: 650;
  color: var(--primary-color, #ed7c17);
}

.b2c-pal-card-meta {
  margin-top: 0.2rem;
  font-size: 0.66rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.3;
}
