/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */

.panel-viewstack[viewtype="main"] > .panel-clickcapturer {
  pointer-events: none;
}

.panel-viewcontainer {
  overflow: hidden;
}

.panel-viewstack {
  transition: height var(--panelui-subview-transition-duration);
}

.panel-subviews {
  -moz-stack-sizing: ignore-horizontal;
  transform: translateX(0);
}

.panel-viewstack[viewtype="main"] > .panel-subviews {
  -moz-stack-sizing: ignore;
}

.panel-subviews[panelopen] {
  transition: transform var(--panelui-subview-transition-duration);
}

.panel-viewcontainer[panelopen]:-moz-any(:not([viewtype="main"]),[transitioning]) {
  transition-property: height;
  transition-timing-function: var(--animation-easing-function);
  transition-duration: var(--panelui-subview-transition-duration);
  will-change: height;
}

/* START photon adjustments */

photonpanelmultiview > .panel-viewcontainer > .panel-viewstack {
  overflow: visible;
}

photonpanelmultiview[transitioning] {
  pointer-events: none;
}

.panel-viewcontainer.offscreen {
  position: absolute;
  top: 100000px;
  left: 100000px;
}

.panel-viewcontainer.offscreen,
.panel-viewcontainer.offscreen > .panel-viewstack {
  margin: 0;
  padding: 0;
}

/* END photon adjustments */
