/*
  Copyright (c) Microsoft Corporation.

  Licensed under the Apache License, Version 2.0 (the "License");
  you may not use this file except in compliance with the License.
  You may obtain a copy of the License at

      http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
*/

.snapshot-tab {
  display: flex;
  flex: auto;
  flex-direction: column;
  align-items: stretch;
  outline: none;
}

.snapshot-controls {
  flex: none;
  color: var(--toolbar-color);
  display: flex;
  box-shadow: var(--box-shadow);
  background-color: var(--toolbar-bg-color);
  height: 32px;
  align-items: center;
  justify-content: center;
}

.snapshot-toggle {
  margin-top: 4px;
  padding: 4px 8px;
  cursor: pointer;
  border-radius: 20px;
  margin-left: 4px;
  width: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.snapshot-toggle:hover {
  background-color: #ededed;
}

.snapshot-toggle.toggled {
  background: var(--gray);
  color: white;
}

.snapshot-tab:focus .snapshot-toggle.toggled {
  background: var(--blue);
}

.snapshot-wrapper {
  flex: auto;
  margin: 1px;
  padding: 10px;
}

.snapshot-url {
  background-color: var(--background);
  margin: 10px;
  padding: 4px;
  border-radius: 3px;
  height: 28px;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  display: block;
  flex: none;
}

.snapshot-container {
  display: block;
  background: white;
  box-shadow: rgb(0 0 0 / 15%) 0px 0.1em 4.5em;
}

iframe#snapshot {
  width: 100%;
  height: 100%;
  border: none;
}

.no-snapshot {
  text-align: center;
  padding: 50px;
}
