/* Extra widget styles for Practice Lab */
.lab-hover-zone {
  position: relative;
  display: inline-block;
}
.lab-hover-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 180px;
  background: #fff;
  border: 1px solid var(--lab-line);
  border-radius: 8px;
  padding: 0.35rem;
  z-index: 20;
  box-shadow: 0 8px 20px rgba(16, 42, 50, 0.12);
}
.lab-hover-zone:hover .lab-hover-menu,
.lab-hover-zone:focus-within .lab-hover-menu,
.lab-hover-menu.is-open { display: block; }
.lab-hover-menu a,
.lab-hover-menu button {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 0.55rem 0.7rem;
  border-radius: 6px;
  font: inherit;
  cursor: pointer;
  color: var(--lab-ink);
  text-decoration: none;
}
.lab-hover-menu a:hover,
.lab-hover-menu button:hover { background: #f0f4f6; }

.lab-tooltip-wrap { position: relative; display: inline-block; }
.lab-tooltip {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: #102a32;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.4rem 0.65rem;
  border-radius: 6px;
  white-space: nowrap;
  transition: opacity 0.15s;
  pointer-events: none;
  z-index: 15;
}
.lab-tooltip-wrap:hover .lab-tooltip,
.lab-tooltip-wrap:focus-within .lab-tooltip { visibility: visible; opacity: 1; }

.lab-context-target {
  border: 1px dashed #9db5bb;
  border-radius: 10px;
  padding: 1.5rem;
  text-align: center;
  background: #f3f8f8;
  user-select: none;
}
.lab-context-menu {
  display: none;
  position: fixed;
  z-index: 60;
  background: #fff;
  border: 1px solid var(--lab-line);
  border-radius: 8px;
  min-width: 160px;
  padding: 0.3rem;
  box-shadow: 0 10px 28px rgba(16, 42, 50, 0.18);
}
.lab-context-menu.is-open { display: block; }
.lab-context-menu button {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 0.55rem 0.7rem;
  border-radius: 6px;
  font: inherit;
  cursor: pointer;
}
.lab-context-menu button:hover { background: #f0f4f6; }

.lab-dnd-board {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 700px) { .lab-dnd-board { grid-template-columns: 1fr; } }
.lab-dnd-col {
  min-height: 220px;
  background: #f3f7f7;
  border: 1px solid var(--lab-line);
  border-radius: 10px;
  padding: 0.75rem;
}
.lab-dnd-col h3 { margin: 0 0 0.65rem; font-size: 0.92rem; }
.lab-dnd-item {
  background: #fff;
  border: 1px solid var(--lab-line);
  border-radius: 8px;
  padding: 0.7rem 0.8rem;
  margin-bottom: 0.5rem;
  cursor: grab;
  font-weight: 600;
  font-size: 0.9rem;
}
.lab-dnd-item.dragging { opacity: 0.45; }
.lab-dnd-col.drag-over { outline: 2px dashed var(--lab-teal); }

.lab-suggest-wrap { position: relative; max-width: 420px; }
.lab-suggest-list {
  display: none;
  position: absolute;
  left: 0; right: 0; top: 100%;
  background: #fff;
  border: 1px solid var(--lab-line);
  border-radius: 0 0 8px 8px;
  max-height: 220px;
  overflow: auto;
  z-index: 25;
}
.lab-suggest-list.is-open { display: block; }
.lab-suggest-list button {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 0.55rem 0.75rem;
  font: inherit;
  cursor: pointer;
}
.lab-suggest-list button:hover,
.lab-suggest-list button.is-active { background: #eef6f5; }

.lab-nested-frames {
  display: grid;
  gap: 0.75rem;
}
.lab-frame-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
@media (max-width: 700px) { .lab-frame-row { grid-template-columns: 1fr; } }

/* Shop E2E */
.shop-header-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.shop-cart-badge {
  background: var(--lab-amber);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  border-radius: 999px;
  min-width: 1.35rem;
  height: 1.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.35rem;
}
.shop-products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}
.shop-card {
  background: #fff;
  border: 1px solid var(--lab-line);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.shop-card-body { padding: 1rem; flex: 1; display: flex; flex-direction: column; gap: 0.45rem; }
.shop-card h3 { margin: 0; font-size: 1.02rem; }
.shop-card .price { color: var(--lab-teal-2); font-weight: 800; }
.shop-card .desc { color: var(--lab-muted); font-size: 0.86rem; margin: 0; flex: 1; }
.shop-card-actions { padding: 0 1rem 1rem; display: grid; gap: 0.5rem; }
.shop-thumb {
  height: 120px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.4rem;
  color: #fff;
  background: linear-gradient(135deg, #0f766e, #134e4a);
}
.shop-qty {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}
.shop-qty button {
  width: 36px; height: 36px;
  border-radius: 8px;
  border: 1px solid #c5d0d7;
  background: #fff;
  font-weight: 800;
  cursor: pointer;
}
.shop-summary-line {
  display: flex;
  justify-content: space-between;
  margin: 0.35rem 0;
  font-size: 0.95rem;
}
.shop-summary-line.total { font-weight: 800; font-size: 1.1rem; margin-top: 0.65rem; padding-top: 0.65rem; border-top: 1px solid var(--lab-line); }
.shop-coupon-row { display: flex; gap: 0.5rem; flex-wrap: wrap; margin: 0.75rem 0; }
.shop-coupon-row input { flex: 1; min-width: 140px; border: 1px solid #c5d0d7; border-radius: 8px; padding: 0.55rem 0.75rem; font: inherit; }
