/* Custom TurnSheet icon button on actor sheet headers */
.window-header .bw-import-turnsheet {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.window-header .bw-import-turnsheet .bw-ts-icon {
  width: 1em;
  height: 1em;
  display: block;
  object-fit: contain;
  border: none;
  background: none;
  vertical-align: middle;
}

/* Brand logos in context menus, rendered as an <i> so they inherit the menu's
   icon-column metrics and line up with the FontAwesome rows. */
.bw-mp-ctx-icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  background-image: url("modules/baileywiki-content/assets/importer/madprops.svg");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  vertical-align: middle;
}
.bw-bg-ctx-icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  background-image: url("modules/baileywiki-content/assets/importer/batlgrid.svg");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  vertical-align: middle;
}
.bw-ts-ctx-icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  background-image: url("modules/baileywiki-content/assets/importer/turnsheet.svg");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  vertical-align: middle;
}

/* Floating bag button — shown only on the viewed scene when it has a bag */
#bw-scene-props-btn {
  position: fixed;
  top: 90px;            /* near the top, aligned with the sidebar */
  right: 396px;         /* just left of the right sidebar, over the canvas */
  z-index: 70;          /* over the canvas, under app windows/dialogs */
  width: 40px;
  height: 40px;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  opacity: 0.65;
  cursor: pointer;
  transition: opacity 0.15s ease, transform 0.15s ease;
}
#bw-scene-props-btn:hover {
  opacity: 1;
  transform: scale(1.06);
}
#bw-scene-props-btn img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

/* GM toggle pip on the floating bag button — enables player access to the scene's bag */
.bw-bag-access-toggle {
  position: absolute;
  top: -7px;
  right: -7px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  line-height: 1;
  background: rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #bbb;
  cursor: pointer;
  transition: transform 0.12s ease;
}
.bw-bag-access-toggle.on {
  background: #2e7d32;
  border-color: #66bb6a;
  color: #fff;
}
.bw-bag-access-toggle:hover { transform: scale(1.15); }
