/* PNP_WEBINAR_ROOM_CAMERA_OPTIONS_CSS_V1 — panel opcji kamery w pokoju webinarowym */

/* ── Przycisk w bottom bar ── */
.pnp-camera-options-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 10px;
  background: rgba(255, 255, 255, .06);
  color: #e8eef2;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.25;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
  white-space: nowrap;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.pnp-camera-options-btn:hover {
  background: rgba(255, 255, 255, .12);
  color: #f8fafc;
  border-color: rgba(255, 255, 255, .22);
}

.pnp-camera-options-btn:focus-visible {
  outline: 2px solid #60a5fa;
  outline-offset: 2px;
}

.pnp-camera-options-btn--room {
  align-self: center;
  margin-left: 4px;
  flex-shrink: 0;
}

/* ── Modal root ── */
.pnp-camera-options {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.pnp-camera-options[hidden] {
  display: none !important;
}

.pnp-camera-options.is-open {
  display: flex;
}

.pnp-camera-options__backdrop {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(0, 0, 0, .62);
  cursor: pointer;
}

.pnp-camera-options__dialog {
  position: relative;
  z-index: 1;
  width: min(440px, 100%);
  max-height: calc(100vh - 32px);
  overflow: auto;
  padding: 22px 24px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, .14);
  background: #0f1e2e;
  color: #f0e6d0;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .55);
}

.pnp-camera-options__title {
  margin: 0 0 18px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  color: #f8fafc;
}

.pnp-camera-options__field {
  margin: 0 0 16px;
  font-size: 16px;
  line-height: 1.45;
  color: #c9d4dc;
}

.pnp-camera-options__field > label,
.pnp-camera-options__field > span:first-child,
.pnp-camera-options__label {
  display: block;
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 600;
  color: #e2e8f0;
}

.pnp-camera-options__field > p {
  margin: 8px 0 0;
  font-size: 16px;
  color: #a8b8c4;
}

.pnp-camera-options__select {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .2);
  background: rgba(255, 255, 255, .08);
  color: #f8fafc;
  font-size: 16px;
  line-height: 1.35;
  cursor: pointer;
}

.pnp-camera-options__select:focus-visible {
  outline: 2px solid #60a5fa;
  outline-offset: 2px;
}

.pnp-camera-options__select:disabled {
  opacity: .55;
  cursor: not-allowed;
}

.pnp-camera-options__quality {
  margin: 0;
  padding: 0;
  border: 0;
  display: grid;
  gap: 8px;
}

.pnp-camera-options__quality > label,
.pnp-camera-options__quality-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .04);
  color: #f1f5f9;
  font-size: 16px;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}

.pnp-camera-options__quality > label:hover,
.pnp-camera-options__quality-row:hover {
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .2);
}

.pnp-camera-options__quality input[type="radio"] {
  width: 20px;
  height: 20px;
  margin: 0;
  flex-shrink: 0;
  accent-color: #3b82f6;
}

/* PNP_WEBINAR_ROOM_CAMERA_OPTIONS_FLIP_VISUAL_V1 */
/* PNP_WEBINAR_ROOM_CAMERA_OPTIONS_FLIP_SPACING_V1 */
.pnp-camera-options__quality-row[for="pnpCameraOptionsFlip"] {
  min-height: 50px;
  padding: 12px 14px;
  gap: 20px;
  font-weight: 600;
}

#pnpCameraOptionsFlip {
  width: 24px;
  height: 24px;
  margin: 0;
  flex: 0 0 24px;
  accent-color: #3b82f6;
  cursor: pointer;
}

#pnpCameraOptionsFlip:focus-visible {
  outline: 2px solid #60a5fa;
  outline-offset: 3px;
}

.pnp-camera-options__quality-row[for="pnpCameraOptionsFlip"] > span {
  flex: 1 1 auto;
  line-height: 1.4;
}
/* /PNP_WEBINAR_ROOM_CAMERA_OPTIONS_FLIP_VISUAL_V1 */

.pnp-camera-options__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 18px;
}

.pnp-camera-options__actions > button,
.pnp-camera-options__action {
  min-width: 44px;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .08);
  color: #f8fafc;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}

.pnp-camera-options__actions > button:hover,
.pnp-camera-options__action:hover {
  background: rgba(255, 255, 255, .14);
}

.pnp-camera-options__actions > button:focus-visible,
.pnp-camera-options__action:focus-visible {
  outline: 2px solid #60a5fa;
  outline-offset: 2px;
}

.pnp-camera-options__actions > button:nth-of-type(2),
.pnp-camera-options__action--primary {
  background: #2563eb;
  border-color: #2563eb;
  color: #ffffff;
}

.pnp-camera-options__actions > button:nth-of-type(2):hover,
.pnp-camera-options__action--primary:hover {
  background: #1d4ed8;
  border-color: #1d4ed8;
}

.pnp-camera-options__status {
  min-height: 22px;
  margin: 4px 0 0;
  font-size: 16px;
  line-height: 1.4;
  color: #86efac;
}

.pnp-camera-options__status--error {
  color: #fca5a5;
}

@media (max-width: 768px) {
  .pnp-camera-options {
    padding: 12px;
    align-items: flex-end;
  }

  .pnp-camera-options__dialog {
    width: 100%;
    max-height: calc(100vh - 24px);
    padding: 18px 16px 20px;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
  }

  .pnp-camera-options-btn--room {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 14px;
    padding: 8px 10px;
  }

  .pnp-camera-options__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .pnp-camera-options__actions > button,
  .pnp-camera-options__action {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pnp-camera-options-btn,
  .pnp-camera-options__quality > label,
  .pnp-camera-options__quality-row,
  .pnp-camera-options__actions > button,
  .pnp-camera-options__action {
    transition: none;
  }
}

/* /PNP_WEBINAR_ROOM_CAMERA_OPTIONS_CSS_V1 */
