/* Included only by PanguOnline1, not a shared XenForo stylesheet. */
.pangu-width-trigger,
.pangu-width-panel {
  box-sizing: border-box;
  font-family: inherit;
}

.pangu-width-trigger {
  min-height: 36px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-left: 4px;
  border: 1px solid #285161;
  border-radius: 7px;
  padding: 0 11px;
  color: #bcdae5;
  background: #102b37;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.3;
  cursor: pointer;
}

.pangu-width-trigger svg {
  width: 17px;
  height: 17px;
}

.pangu-width-trigger:hover,
.pangu-width-trigger[aria-expanded="true"] {
  border-color: #58cde9;
  color: #ebf9fd;
  background: #174354;
}

.pangu-width-panel {
  position: fixed;
  z-index: 1000;
  width: 348px;
  max-width: calc(100vw - 24px);
  border: 1px solid #315969;
  border-radius: 10px;
  padding: 16px;
  color: #e9f3f7;
  background: #0b202c;
  box-shadow: 0 16px 42px rgba(0, 0, 0, .4);
  font-size: 14px;
  line-height: 1.5;
}

.pangu-width-panel[hidden],
.pangu-width-notice[hidden] {
  display: none !important;
}

.pangu-width-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.pangu-width-heading strong {
  color: #edf8fb;
  font-size: 14px;
  font-weight: 650;
}

.pangu-width-number {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #abc6d3;
  font-size: 12px;
}

.pangu-width-number input {
  box-sizing: border-box;
  width: 82px;
  min-height: 36px;
  border: 1px solid #315969;
  border-radius: 6px;
  padding: 6px 8px;
  color: #edf8fb;
  background: #071620;
  font: inherit;
  font-size: 14px;
  color-scheme: dark;
}

.pangu-width-range {
  box-sizing: border-box;
  width: 100%;
  height: 30px;
  margin: 12px 0 10px;
  padding: 0;
  accent-color: #5ad9f2;
  cursor: pointer;
}

.pangu-width-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pangu-width-actions button {
  min-height: 38px;
  flex: 1 1 auto;
  border: 1px solid #315969;
  border-radius: 6px;
  padding: 7px 10px;
  color: #c2dce6;
  background: #112e3b;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.pangu-width-actions button:hover,
.pangu-width-actions button[aria-pressed="true"] {
  border-color: #58cde9;
  color: #edf8fb;
  background: #174354;
}

.pangu-width-trigger:focus-visible,
.pangu-width-panel input:focus-visible,
.pangu-width-panel button:focus-visible {
  outline: 2px solid #73e1f5;
  outline-offset: 3px;
}

.pangu-width-notice {
  margin: 10px 0 0;
  color: #bbd1dc;
  font-size: 12px;
}

@media (min-width: 901px) {
  html.pangu-width-active .p-header-inner,
  html.pangu-width-active .p-nav-inner,
  html.pangu-width-active .p-staffBar-inner,
  html.pangu-width-active .p-body-inner,
  html.pangu-width-active .p-footer-inner {
    box-sizing: border-box;
    width: 100%;
    max-width: var(--pangu-forum-width) !important;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 900px) {
  .pangu-width-trigger,
  .pangu-width-panel {
    display: none !important;
  }
}

/* Prevent theme width transitions from fighting live pointer input and reset. */
@media (min-width: 901px) {
  html.pangu-width-ready .p-header-inner,
  html.pangu-width-ready .p-nav-inner,
  html.pangu-width-ready .p-staffBar-inner,
  html.pangu-width-ready .p-body-inner,
  html.pangu-width-ready .p-footer-inner {
    transition: none !important;
  }
}
