/* Dually Studio portrait/landscape control options. */

.control-orientation-property[hidden] {
  display: none !important;
}

.control-orientation-checkbox {
  min-height: 34px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px 8px;
  border: 1px solid #4b4b50;
  border-radius: 5px;
  background: #202024;
  color: #f3f3f3;
  cursor: pointer;
}

.control-orientation-checkbox input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: #1688d4;
}

.dashboard-widget.dually-control-portrait:has(.volume-slider-widget) .widget-content {
  overflow: hidden;
}

.dashboard-widget.dually-control-portrait .volume-slider-widget {
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  gap: 5px;
  padding: 9px 6px;
}

.dashboard-widget.dually-control-portrait .volume-slider-icon {
  flex: 0 0 auto;
  font-size: clamp(18px, 28%, 30px);
  line-height: 1;
}

.dashboard-widget.dually-control-portrait .volume-slider-control {
  flex: 1 1 auto;
  width: 42px !important;
  min-width: 42px !important;
  min-height: 80px;
  height: 100%;
  margin: 0;
  writing-mode: vertical-lr;
  direction: rtl;
}

.dashboard-widget.dually-control-portrait .volume-slider-value {
  flex: 0 0 auto;
  min-width: 0;
  width: 100%;
  text-align: center;
}

.dashboard-widget.dually-control-portrait .runtime-preset-widget {
  grid-template-columns: minmax(0, 1fr) !important;
  grid-auto-flow: row !important;
  align-content: stretch;
  justify-content: stretch;
  padding: 0 !important;
}

.dashboard-widget.dually-control-portrait .runtime-preset-count-4 {
  grid-template-rows: repeat(4, minmax(0, 1fr)) !important;
}

.dashboard-widget.dually-control-portrait .runtime-preset-count-8 {
  grid-template-rows: repeat(8, minmax(0, 1fr)) !important;
}

.dashboard-widget.dually-control-portrait .runtime-preset-button {
  width: 100% !important;
  height: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
}
