
/* BORNA LIVE MEDIA UX v6.3.6-r27 */

.borna-consent-dialog {
  position: fixed !important;
  top: 50% !important;
  left: 50% !important;
  right: auto !important;
  bottom: auto !important;
  z-index: 2147483000 !important;
  width: min(92vw, 460px) !important;
  max-width: 460px !important;
  max-height: min(84vh, 660px) !important;
  margin: 0 !important;
  padding: 24px !important;
  overflow: auto !important;
  transform: translate(-50%, -50%) !important;
  direction: rtl !important;
  text-align: right !important;
  isolation: isolate;
  border: 1px solid rgba(145, 144, 144, 0.20) !important;
  border-radius: 24px !important;
  background: #ffffff !important;
  box-shadow:
    0 0 0 100vmax rgba(18, 18, 18, 0.34),
    0 28px 80px rgba(18, 18, 18, 0.20) !important;
}

.borna-consent-dialog h1,
.borna-consent-dialog h2,
.borna-consent-dialog h3,
.borna-consent-dialog strong {
  color: #303030 !important;
}

.borna-consent-dialog p,
.borna-consent-dialog span {
  line-height: 1.8;
}

.borna-consent-dialog button {
  min-height: 46px !important;
  border-radius: 14px !important;
  font-weight: 700 !important;
}

.borna-consent-dialog .primary-button,
.borna-consent-dialog button[type="submit"] {
  border-color: #ffdd33 !important;
  background: #ffdd33 !important;
  color: #303030 !important;
}

.borna-consent-dialog .secondary-button {
  border-color: rgba(145, 144, 144, 0.30) !important;
  background: #ffffff !important;
  color: #919090 !important;
}

.borna-multi-webcam-stage {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: #f7f7f5;
}

.borna-active-webcams {
  display: grid;
  grid-template-columns:
    repeat(auto-fit, minmax(min(250px, 100%), 1fr));
  gap: 12px;
  align-content: center;
  width: 100%;
  height: 100%;
  min-height: 100%;
  padding: 12px;
  overflow: auto;
  direction: rtl;
}

.borna-active-webcams[data-count="1"] {
  grid-template-columns: minmax(0, 1fr);
}

.borna-webcam-tile {
  position: relative;
  min-width: 0;
  min-height: 190px;
  overflow: hidden;
  border: 1px solid rgba(145, 144, 144, 0.18);
  border-radius: 18px;
  background: #202020;
  box-shadow: 0 8px 28px rgba(18, 18, 18, 0.10);
}

.borna-webcam-tile.is-local {
  border-color: #ffdd33;
  box-shadow:
    0 0 0 1px #ffdd33,
    0 8px 28px rgba(18, 18, 18, 0.10);
}

.borna-webcam-video {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 190px;
  object-fit: cover;
  background: #202020;
}

.borna-webcam-tile.is-local .borna-webcam-video {
  transform: scaleX(-1);
}

.borna-webcam-meta {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: calc(100% - 20px);
  min-height: 34px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(24, 24, 24, 0.74);
  color: #ffffff;
  direction: rtl;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.borna-webcam-live-dot {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #ffdd33;
  box-shadow: 0 0 0 3px rgba(255, 221, 51, 0.18);
}

.borna-webcam-person {
  display: flex;
  min-width: 0;
  flex-direction: column;
  line-height: 1.25;
}

.borna-webcam-person strong,
.borna-webcam-person small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.borna-webcam-person strong {
  font-size: 12px;
  font-weight: 700;
}

.borna-webcam-person small {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 10px;
}

@media (max-width: 720px) {
  .borna-consent-dialog {
    width: calc(100vw - 28px) !important;
    max-height: calc(100vh - 44px) !important;
    padding: 20px !important;
    border-radius: 20px !important;
  }

  .borna-active-webcams {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 8px;
  }

  .borna-webcam-tile,
  .borna-webcam-video {
    min-height: 210px;
  }
}
