.ps9cc-root {
  --ps9cc-orange: #ef6b0b;
  --ps9cc-orange-hover: #d95e06;
  --ps9cc-ink: #222930;
  --ps9cc-muted: #596572;
  --ps9cc-border: #d8dfe6;
  --ps9cc-surface: #f3f5f7;
  position: relative;
  z-index: 2147483000;
  color: var(--ps9cc-ink);
  font-family: inherit;
  font-size: 14px;
  line-height: 1.5;
}

.ps9cc-root *,
.ps9cc-root *::before,
.ps9cc-root *::after {
  box-sizing: border-box;
}

.ps9cc-manage {
  position: fixed;
  z-index: 2147482999;
  bottom: 12px;
  left: 12px;
  border: 1px solid var(--ps9cc-orange);
  border-radius: 4px;
  padding: 10px 14px;
  background: var(--ps9cc-orange);
  color: var(--ps9cc-ink);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 3px 12px rgb(22 30 38 / 18%);
  transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.ps9cc-manage:hover,
.ps9cc-actions button[data-choice="all"]:hover {
  border-color: var(--ps9cc-orange-hover);
  background: var(--ps9cc-orange-hover);
}

.ps9cc-root button:focus-visible,
.ps9cc-root a:focus-visible,
.ps9cc-root input:focus-visible {
  outline: 3px solid rgb(239 107 11 / 45%);
  outline-offset: 3px;
}

.ps9cc-dialog[hidden],
.ps9cc-manage[hidden] {
  display: none;
}

.ps9cc-dialog {
  position: fixed;
  z-index: 2147483000;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgb(18 24 30 / 62%);
}

.ps9cc-card {
  width: min(560px, 100%);
  max-height: 90vh;
  overflow: auto;
  border: 1px solid var(--ps9cc-border);
  border-top: 4px solid var(--ps9cc-orange);
  border-radius: 7px;
  padding: 24px;
  background: #fff;
  color: var(--ps9cc-ink);
  box-shadow: 0 18px 54px rgb(17 25 33 / 28%);
}

.ps9cc-card h2 {
  margin: 0 0 10px;
  color: var(--ps9cc-ink);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
}

.ps9cc-card p {
  margin: 0 0 16px;
}

.ps9cc-options {
  border-top: 1px solid var(--ps9cc-border);
}

.ps9cc-option {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--ps9cc-border);
  padding: 13px 0;
  cursor: pointer;
}

.ps9cc-option span {
  display: block;
  min-width: 0;
}

.ps9cc-option strong {
  color: var(--ps9cc-ink);
  font-weight: 700;
}

.ps9cc-option small {
  display: block;
  margin-top: 4px;
  color: var(--ps9cc-muted);
  font-size: 13px;
  line-height: 1.45;
}

.ps9cc-option input {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  margin: 1px 0 0;
  accent-color: var(--ps9cc-orange);
  cursor: pointer;
}

.ps9cc-option input:disabled {
  cursor: not-allowed;
}

.ps9cc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 20px;
}

.ps9cc-actions button {
  min-height: 42px;
  border: 1px solid var(--ps9cc-ink);
  border-radius: 4px;
  padding: 9px 13px;
  background: #fff;
  color: var(--ps9cc-ink);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
}

.ps9cc-actions button:hover {
  border-color: var(--ps9cc-orange);
  background: var(--ps9cc-surface);
}

.ps9cc-actions button[data-choice="all"] {
  border-color: var(--ps9cc-orange);
  background: var(--ps9cc-orange);
  color: var(--ps9cc-ink);
  font-weight: 700;
}

.ps9cc-actions button[data-choice="all"]:hover {
  color: #111820;
}

.ps9cc-actions button:disabled {
  cursor: wait;
  opacity: .65;
}

.ps9cc-footer {
  margin-top: 13px;
  text-align: center;
  font-size: 13px;
}

.ps9cc-footer a {
  color: #b94f04;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ps9cc-footer a:hover {
  color: var(--ps9cc-orange-hover);
}

.ps9cc-error {
  margin-top: 12px !important;
  color: #a21d16;
}

.ps9cc-top-left .ps9cc-dialog,
.ps9cc-top-right .ps9cc-dialog,
.ps9cc-bottom-left .ps9cc-dialog,
.ps9cc-bottom-right .ps9cc-dialog {
  align-items: flex-start;
  justify-content: flex-start;
  inset: 12px auto auto 12px;
  padding: 0;
  background: transparent;
}

.ps9cc-top-right .ps9cc-dialog {
  right: 12px;
  left: auto;
}

.ps9cc-bottom-left .ps9cc-dialog {
  top: auto;
  bottom: 60px;
}

.ps9cc-bottom-right .ps9cc-dialog {
  top: auto;
  right: 12px;
  bottom: 60px;
  left: auto;
}

@media (max-width: 600px) {
  .ps9cc-dialog,
  .ps9cc-top-left .ps9cc-dialog,
  .ps9cc-top-right .ps9cc-dialog,
  .ps9cc-bottom-left .ps9cc-dialog,
  .ps9cc-bottom-right .ps9cc-dialog {
    align-items: flex-end;
    inset: 0;
    padding: 0;
    background: rgb(18 24 30 / 62%);
  }

  .ps9cc-card {
    width: 100%;
    max-height: 85vh;
    border-radius: 10px 10px 0 0;
    padding: 20px;
  }

  .ps9cc-card h2 {
    font-size: 21px;
  }

  .ps9cc-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .ps9cc-actions button {
    min-height: 46px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ps9cc-root *,
  .ps9cc-root *::before,
  .ps9cc-root *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
