/*
 * Custom styles for the Swellnet Multicam module.
 *
 * Add any overrides or new styles here. This file is loaded via the
 * module library, so adjustments will apply wherever the multicam widget
 * renders.
 */

.multicam-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}

.multicam-widget {
  position: relative;
}

.multicam-widget .multicam-edit-btn {
  // Had to increase specificity to override the default styles coming from main.css type=button
  align-items: center;
  background: rgba(255, 255, 255, 0.55);
  border: none;
  border-radius: 0.25rem;
  display: flex;
  height: 1.5rem;
  justify-content: center;
  margin: 0.5rem;
  padding: 0;
  position: absolute;
  right: 0;
  top: 0;
  width: 1.6875rem;
  z-index: 59;
}

.multicam-edit-btn .icon {
  color: #484848;
  font-size: 1.125rem;
  height: 100%;
  text-align: center;
  width: 100%;
}
.multicam-edit-btn .icon svg {
  padding-bottom: 0.25rem;
}

.multicam-widget .multicam-select {
  // Had to increase specificity to override the default styles coming from minified.css
  align-items: center;
  background-color: #b6b6b6;
  background-repeat: no-repeat;
  background-size: cover;
  display: flex;
  font-weight: 600;
  height: 100%;
  left: 0;
  padding: 20px;
  position: absolute;
  top: 0;
  width: 100%;
  z-index: 5;
}

.multicam-select__input {
  height: 2.5rem;
  margin: 0 auto;
  max-width: 25rem;
  width: 100%;
}

.sr-only {
  border: 0;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.multicam-select.is-open {
  z-index: 10;
}

.ts-dropdown {
  top: 1rem;
  max-width: 25rem;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 2.5rem);
}

.multicam-select__optgroup,
.multicam-select__option {
  font-size: 0.875rem;
  height: 2.5rem;
  padding-bottom: 0.6875rem;
  padding-top: 0.6875rem;
}

.multicam-select__optgroup {
  background: #ededed;
  color: #35495e;
  text-indent: 0.5rem;
}

.multicam-select__option {
  text-indent: 1rem;
}

.ts-dropdown .active {
  background-color: #00e5f5;
  color: #fff;
}

.dropdown-input:focus-visible {
  outline: none;
}

.ts-control {
  border-radius: 0;
  height: 2.5rem;
}

.multicam-select__item {
  font-size: 0.875rem;
  line-height: 1.6rem;
}

.ts-dropdown-content {
  max-height: 18rem;
}

.plyr__controls__item.plyr__control {
  background-color: transparent;
  padding: 0.5rem;
}

.plyr__controls__item.plyr__control[data-plyr="play"]:hover {
  background-color: #33333380;
}

.plyr__controls__item.plyr__control[data-plyr="fullscreen"] {
  display: none;
}

.multicam-premium-overlay {
  background: rgba(0, 0, 0, 0.3);
  color: #fff;
  font-size: 1.4375rem;
  height: calc(100% - 1rem);
  left: 0;
  padding: 1.25rem;
  position: absolute;
  text-align: center;
  top: 3.625rem;
  width: 100%;
  z-index: 59;
}

.multicam-premium-overlay-outer {
  background: rgba(0, 0, 0, 0.8);
}

.multicam-premium-overlay-inner {
  padding: 2rem 2rem 5rem;
}

.multicam-premium-overlay-inner h3 {
  color: #fff;
  margin-bottom: 1.25rem;
}

.multicam-premium-overlay-inner p {
  margin: 0 auto 1rem;
  max-width: 32rem;
}
.multicam-premium-overlay-inner .multicam-premium-overlay-btn {
  background: #ffa800;
  color: #fff;
  display: inline-block;
  margin: 0.625rem 0 1.25rem;
  padding: 0.625rem 1.5rem;
  text-decoration: none;
}

.multicam-premium-overlay-inner .multicam-premium-overlay-login-link a {
  color: #fff;
  text-decoration: underline;
}

/* Responsive styles */
@media (max-width: 768px) {
  .multicam-grid {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }

  .ts-dropdown-content {
    max-height: 16rem;
  }

  .multicam-premium-overlay-inner {
    padding: 1rem 1rem 2rem;
  }

  .multicam-premium-overlay-inner .multicam-premium-overlay-btn {
    margin: 0.5rem 0 1rem;
    padding: 0.5rem 1rem;
  }
}
