/* BerqWP settings app */

.bwp-app {
    --bwp-text: #0F172A;
    --bwp-text-2: #334155;
    --bwp-muted: #64748B;
    --bwp-faint: #94A3B8;
    --bwp-line: #E2E8F0;
    --bwp-line-soft: #F1F5F9;
    --bwp-soft: #F8FAFC;
    --bwp-blue: #1F6FFF;
    --bwp-blue-dark: #1A5ED9;
    --bwp-blue-soft: #EEF4FF;
    --bwp-blue-tint: #F5F9FF;
    --bwp-green: #0CCE6B;
    --bwp-green-text: #008800;
    --bwp-red: #FF4E42;
    --bwp-red-text: #EB0F00;

    max-width: 1060px;
    padding: 25px 50px 80px;
    box-sizing: border-box;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    font-size: 14px;
    color: var(--bwp-text);
    -webkit-font-smoothing: antialiased;
}

#wpcontent:has(.bwp-app) {
    padding-left: 0;
}

#wpbody-content:has(.bwp-app) {
    background: #FFFFFF;
}

.bwp-app *,
.bwp-app *::before,
.bwp-app *::after {
    box-sizing: border-box;
}

.bwp-app [hidden] {
    display: none !important;
}

.bwp-app a {
    color: var(--bwp-blue);
    text-decoration: none;
}

.bwp-app a:hover {
    color: var(--bwp-blue-dark);
}

.bwp-app a:focus,
.bwp-app button:focus {
    box-shadow: none;
}

.bwp-app :focus-visible {
    outline: 2px solid var(--bwp-blue);
    outline-offset: 2px;
}

.bwp-num {
    font-variant-numeric: tabular-nums;
}

/* Header */

.bwp-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 46px;
}

.bwp-header img {
    display: block;
    height: 35px;
    width: auto;
}

.bwp-header-actions {
    display: flex;
    gap: 10px;
}

/* Buttons */

.bwp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 35px;
    padding: 0 15px;
    border-radius: 6px;
    border: 1px solid transparent;
    font: inherit;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    white-space: nowrap;
    transition: background .15s, border-color .15s, opacity .15s;
}

.bwp-btn:disabled,
.bwp-btn.is-busy {
    opacity: .6;
    cursor: default;
}

.bwp-btn-primary,
.bwp-app a.bwp-btn-primary {
    background: var(--bwp-blue);
    color: #FFFFFF;
}

.bwp-btn-primary:hover:not(:disabled),
.bwp-app a.bwp-btn-primary:hover {
    background: var(--bwp-blue-dark);
    color: #FFFFFF;
}

.bwp-btn-ghost,
.bwp-app a.bwp-btn-ghost {
    background: #FFFFFF;
    border-color: var(--bwp-line);
    color: var(--bwp-text);
}

.bwp-btn-ghost:hover:not(:disabled),
.bwp-app a.bwp-btn-ghost:hover {
    border-color: var(--bwp-faint);
    color: var(--bwp-text);
}

.bwp-btn-text {
    background: transparent;
    color: var(--bwp-muted);
    padding: 0 12px;
}

.bwp-btn-text:hover {
    color: var(--bwp-text);
}

.bwp-btn-sm {
    height: 34px;
    padding: 0 14px;
    font-size: 13px;
}

.bwp-btn-block {
    width: 100%;
    height: 32px;
    font-size: 12px;
    font-weight: 500;
}

.bwp-link {
    border: 0;
    background: transparent;
    padding: 0;
    font: inherit;
    font-size: 13px;
    color: var(--bwp-blue);
    cursor: pointer;
}

/* Layout */

.bwp-body {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.bwp-nav {
    flex: 0 0 195px;
    display: flex;
    flex-direction: column;
    gap: 22px;
    position: sticky;
    top: 52px;
}

.bwp-nav > a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--bwp-text);
}

.bwp-nav > a:hover,
.bwp-nav > a[aria-current="page"] {
    color: var(--bwp-blue);
}

.bwp-ic {
    flex: none;
    width: 16px;
    height: 16px;
    background-color: currentColor;
    -webkit-mask: var(--bwp-ic) center / 16px 16px no-repeat;
    mask: var(--bwp-ic) center / 16px 16px no-repeat;
}

.bwp-nav .bwp-plan {
    margin-top: 10px;
    padding-top: 20px;
    border-top: 1px solid var(--bwp-line);
    font-size: 13px;
    font-weight: 500;
    color: var(--bwp-text);
}

.bwp-plan-card {
    margin-top: 10px;
    padding: 16px 14px 14px;
    border-radius: 10px;
    background: var(--bwp-soft);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bwp-plan-card-title {
    font-size: 13px;
    font-weight: 500;
}

.bwp-plan-card ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 7px;
    font-size: 12px;
    color: #475569;
}

.bwp-plan-card li {
    margin: 0;
    padding-left: 20px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='2.2'%3E%3Crect x='5' y='11' width='14' height='10' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E") left center / 12px no-repeat;
}

.bwp-views {
    flex: 1;
    min-width: 0;
}

.bwp-view {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.bwp-main {
    flex: 1 1 520px;
    min-width: 0;
    max-width: 555px;
    display: flex;
    flex-direction: column;
}

.bwp-main-wide {
    max-width: 600px;
}

.bwp-sub .bwp-main {
    max-width: 640px;
    gap: 20px;
    animation: bwp-slide-in .25s ease-out;
}

@keyframes bwp-slide-in {
    from { transform: translateX(32px); opacity: 0; }
    to { transform: none; opacity: 1; }
}

.bwp-aside {
    flex: 0 0 175px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.bwp-aside-title {
    font-size: 15px;
    font-weight: 500;
}

.bwp-app .bwp-aside a {
    color: var(--bwp-muted);
}

.bwp-app .bwp-aside a:hover {
    color: var(--bwp-text);
}

/* Page text */

.bwp-h1 {
    margin: 0 0 6px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 17px;
    font-weight: 500;
    line-height: 1.4;
    color: var(--bwp-text);
}

.bwp-h1 .bwp-ic {
    color: var(--bwp-text);
}

.bwp-h1-sub {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--bwp-text);
}

.bwp-intro {
    margin: 0 0 8px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--bwp-muted);
}

.bwp-group {
    margin: 0;
    padding: 32px 0 4px;
    font-size: 12px;
    font-weight: 600;
    color: var(--bwp-faint);
    text-transform: uppercase;
    letter-spacing: .06em;
}

/* Rows */

.bwp-row {
    display: flex;
    justify-content: space-between;
    gap: 32px;
    padding: 20px 0;
    border-bottom: 1px solid var(--bwp-line);
}

/* The last row on a page, hidden rows after it don't count */
.bwp-main > .bwp-row:not(:has(~ .bwp-row:not([hidden]))) {
    border-bottom: 0;
}

.bwp-row-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.bwp-row-title {
    font-size: 15px;
    font-weight: 500;
    color: var(--bwp-text);
}

.bwp-row-desc {
    font-size: 14px;
    line-height: 1.6;
    color: var(--bwp-muted);
}

/* A short notice under a setting, like a paused feature */
.bwp-note {
    font-size: 13px;
    line-height: 1.5;
    color: #92400E;
}

.bwp-row-count {
    padding-top: 2px;
    font-size: 13px;
    color: var(--bwp-faint);
}

.bwp-row-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 13px;
    color: var(--bwp-faint);
}

.bwp-row-meta strong {
    font-weight: 500;
    color: var(--bwp-text-2);
}

.bwp-row-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    padding-top: 2px;
    font-size: 13px;
}

.bwp-link-button {
    border: 0;
    background: transparent;
    padding: 0;
    font: inherit;
    color: var(--bwp-muted);
    cursor: pointer;
}

.bwp-link-button:hover {
    color: var(--bwp-text);
}

.bwp-row-value {
    flex: none;
    align-self: flex-start;
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
}

.bwp-confirm {
    margin-top: 6px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 8px;
    background: #FEF2F2;
    font-size: 13px;
    line-height: 1.5;
    color: #7F1D1D;
}

.bwp-confirm-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.bwp-confirm .bwp-btn {
    height: 30px;
    padding: 0 12px;
    font-size: 13px;
}

.bwp-btn-danger {
    background: #DC2626;
    color: #FFFFFF;
}

.bwp-btn-danger:hover:not(:disabled) {
    background: #B91C1C;
}

.bwp-confirm .bwp-btn-ghost {
    border-color: #FECACA;
    color: var(--bwp-text-2);
}

.bwp-row > .bwp-btn,
.bwp-row > .bwp-switch,
.bwp-row > .bwp-select,
.bwp-row > .bwp-lock {
    flex: none;
    align-self: flex-start;
}

.bwp-configure {
    align-self: flex-start;
    display: flex;
    gap: 6px;
    padding-top: 2px;
    font-size: 13px;
}

.bwp-configure-summary {
    color: var(--bwp-faint);
}

.bwp-configure:hover .bwp-configure-label {
    text-decoration: underline;
}

.bwp-save {
    align-self: flex-start;
    margin-top: 30px;
    height: 34px;
}

.bwp-muted {
    color: #475569 !important;
}

.bwp-faded {
    color: var(--bwp-faint) !important;
}

/* Switch */

.bwp-switch {
    position: relative;
    display: inline-flex;
    cursor: pointer;
}

.bwp-switch input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}

.bwp-switch-track {
    display: flex;
    align-items: center;
    width: 34px;
    height: 18px;
    padding: 2px;
    border-radius: 999px;
    background: #FFFFFF;
    border: 1px solid #CBD5E1;
    transition: background .15s;
}

.bwp-switch-track::after {
    content: "";
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: var(--bwp-text);
    transition: transform .15s, width .15s, height .15s;
}

.bwp-switch input:checked + .bwp-switch-track {
    background: var(--bwp-blue);
    border-color: var(--bwp-blue);
    justify-content: flex-end;
}

.bwp-switch input:checked + .bwp-switch-track::after {
    width: 14px;
    height: 14px;
    background: #FFFFFF;
}

.bwp-switch input:focus-visible + .bwp-switch-track {
    outline: 2px solid var(--bwp-blue);
    outline-offset: 2px;
}

/* Locked Premium rows */

.bwp-row-locked .bwp-row-title {
    color: #475569;
}

.bwp-row-locked .bwp-row-desc {
    color: var(--bwp-faint);
}

.bwp-badge {
    margin-left: 8px;
    padding: 2px 7px;
    border-radius: 999px;
    background: var(--bwp-blue-soft);
    color: var(--bwp-blue);
    font-size: 11px;
    font-weight: 600;
    vertical-align: 2px;
}

.bwp-lock {
    border: 0;
    background: transparent;
    padding: 0;
    cursor: pointer;
}

.bwp-lock .bwp-switch-track {
    background: var(--bwp-line-soft);
    border-color: var(--bwp-line);
}

.bwp-lock .bwp-switch-track::after {
    background: #CBD5E1 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='7' height='7' viewBox='0 0 24 24' fill='%23FFFFFF'%3E%3Cpath d='M7 11V8a5 5 0 0 1 10 0v3h1v11H6V11h1Zm3 0h4V8a2 2 0 0 0-4 0v3Z'/%3E%3C/svg%3E") center / 7px no-repeat;
}

.bwp-upgrade-note {
    margin-top: 6px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    background: var(--bwp-blue-tint);
    font-size: 13px;
    color: var(--bwp-text-2);
}

.bwp-upgrade-note a {
    flex: none;
    font-weight: 500;
}

/* Select */

.bwp-select select,
.bwp-app input[type="number"],
.bwp-app input[type="text"],
.bwp-app input[type="password"] {
    height: 34px;
    padding: 0 10px;
    border-radius: 6px;
    border: 1px solid var(--bwp-line);
    background-color: #FFFFFF;
    font: inherit;
    font-size: 13px;
    color: var(--bwp-text);
    box-shadow: none;
}

.bwp-select select {
    min-width: 150px;
    padding-right: 28px;
}

.bwp-select select:focus,
.bwp-app input:focus,
.bwp-app textarea:focus {
    border-color: var(--bwp-line);
    outline: 2px solid var(--bwp-blue);
    outline-offset: 1px;
    box-shadow: none;
}

/* Sub pages */

.bwp-back {
    align-self: flex-start;
    display: flex;
    align-items: center;
    gap: 6px;
    height: 30px;
    padding: 0 10px 0 6px;
    border-radius: 6px;
    background: var(--bwp-line-soft);
    font-size: 13px;
}

.bwp-app .bwp-back {
    color: var(--bwp-text-2);
}

.bwp-sub-head {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.bwp-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
    padding: 0;
    border: 0;
    min-width: 0;
}

.bwp-field-label {
    padding: 0;
    font-size: 14px;
    font-weight: 500;
    color: var(--bwp-text);
}

.bwp-field-hint {
    margin-top: -2px;
    font-size: 13px;
    line-height: 1.5;
    color: var(--bwp-muted);
}

.bwp-field textarea {
    width: 100%;
    resize: vertical;
    padding: 10px 12px;
    border-radius: 6px;
    border: 1px solid var(--bwp-line);
    font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 13px;
    line-height: 1.7;
    color: var(--bwp-text);
    box-shadow: none;
}

.bwp-sub-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 4px;
}

.bwp-sub-actions .bwp-save {
    margin-top: 0;
}

.bwp-sub .bwp-row {
    padding: 16px 0;
    border-top: 1px solid var(--bwp-line);
    border-bottom: 0;
}

.bwp-checks {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--bwp-line);
    border-radius: 8px;
    overflow: hidden;
}

.bwp-checks .bwp-check {
    padding: 12px 16px;
    border-top: 1px solid var(--bwp-line-soft);
}

.bwp-checks .bwp-check:first-child {
    border-top: 0;
}

.bwp-check {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    cursor: pointer;
}

.bwp-check input[type="checkbox"] {
    margin: 0;
    width: 16px;
    height: 16px;
    border-radius: 4px;
    border: 1.5px solid #CBD5E1;
    box-shadow: none;
}

.bwp-check input[type="checkbox"]:checked {
    background: var(--bwp-blue);
    border-color: var(--bwp-blue);
}

.bwp-check input[type="checkbox"]:checked::before {
    content: "";
    display: block;
    margin: 1px 0 0 4px;
    width: 4px;
    height: 8px;
    border: solid #FFFFFF;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.bwp-check-meta {
    margin-left: auto;
    font-size: 12px;
    color: var(--bwp-faint);
    font-variant-numeric: tabular-nums;
}

/* Plugin, theme and service picker */

.bwp-sources {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--bwp-line);
    border-radius: 8px;
    overflow: hidden;
}

.bwp-sources-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    flex-wrap: wrap;
}

.bwp-sources-bar .bwp-search {
    flex: 1;
    min-width: 220px;
}

.bwp-chips {
    display: flex;
    gap: 4px;
}

.bwp-chip {
    height: 30px;
    padding: 0 12px;
    border: 0;
    border-radius: 999px;
    background: var(--bwp-line-soft);
    color: #475569;
    font: inherit;
    font-size: 13px;
    cursor: pointer;
}

.bwp-chip[aria-pressed="true"] {
    background: var(--bwp-text);
    color: #FFFFFF;
}

.bwp-sources-head {
    display: flex;
    justify-content: space-between;
    padding: 9px 16px;
    background: var(--bwp-line-soft);
    font-size: 12px;
    color: #475569;
}

.bwp-source {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    height: 48px;
    padding: 0 16px;
    border-top: 1px solid var(--bwp-line-soft);
}

.bwp-source:hover {
    background: var(--bwp-soft);
}

.bwp-source-name {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    font-size: 14px;
}

.bwp-source-initial {
    flex: none;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: var(--bwp-line-soft);
    color: #475569;
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bwp-source-tag {
    padding: 1px 6px;
    border: 1px solid var(--bwp-line);
    border-radius: 4px;
    font-size: 11px;
    color: var(--bwp-muted);
}

.bwp-source-found {
    font-size: 11px;
    color: var(--bwp-green-text);
}

.bwp-chips {
    flex-wrap: wrap;
}

.bwp-sources-empty {
    padding: 20px 16px;
    border-top: 1px solid var(--bwp-line-soft);
    font-size: 13px;
    color: var(--bwp-muted);
}

.bwp-sources-summary {
    padding: 12px 16px;
    border-top: 1px solid var(--bwp-line);
    background: var(--bwp-soft);
    font-size: 13px;
    color: var(--bwp-text-2);
}

/* Search box */

.bwp-search {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 38px;
    padding: 0 12px;
    border-radius: 6px;
    border: 1px solid var(--bwp-line);
    color: var(--bwp-muted);
}

.bwp-search input[type="search"] {
    flex: 1;
    min-width: 0;
    height: 100%;
    border: 0;
    outline: 0;
    padding: 0;
    background: transparent;
    font: inherit;
    font-size: 14px;
    color: var(--bwp-text);
    box-shadow: none;
}

.bwp-search:focus-within {
    outline: 2px solid var(--bwp-blue);
    outline-offset: 1px;
}

.bwp-search input[type="search"]:focus {
    outline: 0;
}

/* Dashboard */

.bwp-dash-block {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 36px 0;
    border-bottom: 1px solid var(--bwp-line);
}

.bwp-dash-block:first-of-type {
    padding-top: 16px;
}

.bwp-queue {
    gap: 16px;
}

.bwp-dash-last {
    padding: 0;
    border-bottom: 0;
    gap: 0;
}

.bwp-dash-last .bwp-row {
    padding: 36px 0 0;
    border-bottom: 0;
}

.bwp-dash-head {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.bwp-dash-head-row {
    flex-direction: row;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
}

.bwp-dash-title {
    margin: 0;
    font-size: 15px;
    font-weight: 500;
    color: var(--bwp-text);
}

.bwp-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--bwp-muted);
}

.bwp-status.is-done {
    color: var(--bwp-green-text);
}

.bwp-dot {
    flex: none;
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: var(--bwp-faint);
}

.bwp-dot.is-done {
    background: var(--bwp-green);
}

.bwp-dot.is-run {
    background: var(--bwp-blue);
    animation: bwp-pulse 1s ease-in-out infinite;
}

.bwp-dot.is-fail {
    background: var(--bwp-red);
}

@keyframes bwp-pulse {
    0%, 100% { opacity: .35; }
    50% { opacity: 1; }
}

.bwp-progress {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bwp-progress-text {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--bwp-muted);
}

.bwp-progress-text .bwp-num {
    font-weight: 500;
    color: var(--bwp-text);
}

.bwp-progress-track {
    /* The shine is sized against the whole track, not the filled part */
    container-type: inline-size;
    height: 8px;
    border-radius: 999px;
    background: var(--bwp-line-soft);
    overflow: hidden;
}

.bwp-progress-bar {
    position: relative;
    height: 100%;
    width: 0;
    border-radius: 999px;
    overflow: hidden;
    background: var(--bwp-blue);
    transition: width .6s ease, background .3s;
}

.bwp-progress-bar.is-done {
    background: var(--bwp-green);
}

.bwp-sweep {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 40cqw;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .2) 30%, rgba(255, 255, 255, .6) 55%, rgba(255, 255, 255, .2) 80%, rgba(255, 255, 255, 0));
    animation: bwp-sweep 2s cubic-bezier(.4, 0, .2, 1) infinite;
}

.bwp-progress-bar:not(.is-running) .bwp-sweep {
    display: none;
}

/* Crosses the whole track at one speed, the filled part shows the piece over it */
@keyframes bwp-sweep {
    0% { left: -40cqw; }
    70%, 100% { left: 100cqw; }
}

.bwp-stats {
    margin-top: 6px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.bwp-stat {
    padding: 14px 16px;
    border-radius: 8px;
    background: var(--bwp-soft);
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 13px;
    color: var(--bwp-muted);
}

.bwp-stat strong {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -.02em;
    color: var(--bwp-text);
}

.bwp-stat strong.is-zero {
    color: var(--bwp-faint);
}

.bwp-stat strong.is-bad {
    color: var(--bwp-red-text);
}

.bwp-stat-line {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
}

.bwp-segment {
    display: inline-flex;
    align-self: flex-start;
    gap: 2px;
    padding: 3px;
    border-radius: 8px;
    background: var(--bwp-line-soft);
}

.bwp-segment button,
.bwp-segment label {
    height: 30px;
    padding: 0 16px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--bwp-muted);
    font: inherit;
    font-size: 13px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

.bwp-segment input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.bwp-segment label:has(input:checked) {
    background: #FFFFFF;
    color: var(--bwp-text);
    box-shadow: 0 1px 2px rgba(15, 23, 42, .12);
}

.bwp-segment label:has(input:focus-visible) {
    outline: 2px solid var(--bwp-blue);
}

.bwp-segment-locked button {
    color: var(--bwp-faint);
}

.bwp-mode-desc {
    font-size: 14px;
    line-height: 1.6;
    color: var(--bwp-text-2);
}

/* Tables */

.bwp-table {
    font-size: 13px;
}

.bwp-table-head,
.bwp-table-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 120px 110px;
    gap: 12px;
    align-items: center;
    padding: 10px 12px;
}

.bwp-table-head {
    padding: 9px 12px;
    border-radius: 6px;
    background: var(--bwp-line-soft);
    color: #475569;
}

.bwp-table-head span:last-child,
.bwp-table-row span:last-child {
    text-align: right;
}

.bwp-table-row {
    border-bottom: 1px solid var(--bwp-line-soft);
}

.bwp-table-row:hover {
    background: var(--bwp-soft);
}

.bwp-table-row .bwp-path {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bwp-table-row .bwp-state {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--bwp-text-2);
}

.bwp-table-row span:last-child {
    color: var(--bwp-muted);
}

.bwp-table-empty {
    padding: 28px 12px;
    text-align: center;
    color: var(--bwp-muted);
}

.bwp-pager {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 13px;
    color: var(--bwp-muted);
}

.bwp-pager-buttons {
    display: flex;
    align-items: center;
    gap: 6px;
}

.bwp-pager-buttons button {
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    border-radius: 6px;
    border: 1px solid var(--bwp-line);
    background: #FFFFFF;
    color: var(--bwp-text-2);
    font: inherit;
    font-size: 13px;
    font-variant-numeric: tabular-nums;
    cursor: pointer;
}

.bwp-pager-buttons button[aria-current="page"] {
    border-color: var(--bwp-text);
    background: var(--bwp-text);
    color: #FFFFFF;
    font-weight: 500;
}

.bwp-pager-buttons button:disabled {
    color: #CBD5E1;
    cursor: default;
}

.bwp-pager-buttons .bwp-gap {
    min-width: 20px;
    text-align: center;
    color: var(--bwp-faint);
}

/* Database */

.bwp-db {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 20px 0;
    border-bottom: 1px solid var(--bwp-line);
}

.bwp-db-items {
    margin: 0;
    padding: 0;
    list-style: none;
    border: 1px solid var(--bwp-line);
    border-radius: 8px;
    overflow: hidden;
}

.bwp-db-items li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    padding: 10px 16px;
    border-top: 1px solid var(--bwp-line-soft);
}

.bwp-db-items li:first-child {
    border-top: 0;
}

.bwp-keep {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--bwp-muted);
}

.bwp-app .bwp-keep input[type="number"] {
    width: 56px;
    height: 28px;
    min-height: 0;
    padding: 0 6px;
    line-height: 1;
}

.bwp-db-count {
    margin-left: auto;
    font-size: 13px;
    color: #475569;
}

.bwp-db-count.is-zero {
    color: var(--bwp-faint);
}

/* Panels: Integration and License */

.bwp-row-flat {
    border-bottom: 0;
    padding-bottom: 12px;
}

.bwp-pill {
    margin-left: 8px;
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--bwp-line-soft);
    color: var(--bwp-muted);
    font-size: 12px;
    font-weight: 500;
    vertical-align: 1px;
}

.bwp-pill.is-on {
    background: var(--bwp-blue-soft);
    color: var(--bwp-blue);
}

.bwp-panel {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 20px;
    border: 1px solid var(--bwp-line);
    border-radius: 10px;
}

.bwp-integration .bwp-panel {
    margin-bottom: 8px;
}

.bwp-license {
    margin-top: 16px;
}

.bwp-steps {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: bwp-step;
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--bwp-text-2);
}

.bwp-steps li {
    counter-increment: bwp-step;
    position: relative;
    margin: 0;
    padding-left: 32px;
}

.bwp-steps li::before {
    content: counter(bwp-step);
    position: absolute;
    left: 0;
    top: 1px;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    background: var(--bwp-line-soft);
    color: #475569;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bwp-codes {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}

.bwp-codes code {
    padding: 2px 8px;
    border-radius: 4px;
    background: var(--bwp-line-soft);
    font-size: 12px;
    color: var(--bwp-text);
}

.bwp-panel .bwp-field input[type="password"] {
    width: 100%;
    height: 38px;
}

/* License */

.bwp-pill.is-good {
    background: rgba(12, 206, 107, .12);
    color: var(--bwp-green-text);
}

.bwp-pill.is-bad {
    background: #FEF2F2;
    color: var(--bwp-red-text);
}

.bwp-mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 13px;
}

.bwp-license-sites {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--bwp-muted);
}

.bwp-license-sites .bwp-num {
    font-weight: 500;
    color: var(--bwp-text);
}

.bwp-license-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bwp-license-field {
    display: flex;
    gap: 8px;
}

.bwp-license-field input {
    flex: 1;
    min-width: 0;
    height: 38px;
}

.bwp-panel-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.bwp-facts {
    margin: 0;
    display: flex;
    flex-direction: column;
}

.bwp-facts > div {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    padding: 12px 0;
    border-top: 1px solid var(--bwp-line-soft);
}

.bwp-facts > div:first-child {
    border-top: 0;
    padding-top: 0;
}

.bwp-facts dt {
    font-size: 13px;
    color: var(--bwp-muted);
}

.bwp-facts dd {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    text-align: right;
}

.bwp-ticks {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-weight: 400;
    font-size: 14px;
    color: var(--bwp-text-2);
}

.bwp-ticks span,
.bwp-ticks li {
    margin: 0;
    padding-left: 22px;
    text-align: left;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%230CCE6B' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") left center / 14px no-repeat;
}

.bwp-upsell {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding-top: 16px;
    border-top: 1px solid var(--bwp-line-soft);
}

.bwp-app .bwp-danger {
    color: var(--bwp-red-text);
}

/* Network admin */

.bwp-header-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bwp-header-brand .bwp-pill {
    margin: 0;
}

.bwp-network-stats {
    margin: 20px 0 8px;
}

.bwp-choices {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bwp-choice {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid var(--bwp-line);
    border-radius: 10px;
    cursor: pointer;
}

.bwp-choice:has(> input:checked),
.bwp-choice-nest:has(> .bwp-choice-main input:checked) {
    border: 1.5px solid var(--bwp-blue);
}

.bwp-choice input[type="radio"] {
    margin: 2px 0 0;
}

/* A choice with more settings inside it, shown while it's picked */
.bwp-choice-nest {
    flex-direction: column;
    gap: 0;
    cursor: default;
}

.bwp-choice-main {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
}

.bwp-format {
    display: none;
    margin: 12px 0 0 28px;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.bwp-choice-nest:has(> .bwp-choice-main input:checked) .bwp-format {
    display: flex;
}

.bwp-format-label {
    font-size: 13px;
    color: var(--bwp-text-2);
}

.bwp-segment-sm label {
    height: 26px;
    padding: 0 14px;
    font-size: 12px;
}

.bwp-choice-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.bwp-choice-text .bwp-row-title {
    font-size: 14px;
}

.bwp-choice-text .bwp-row-desc {
    font-size: 13px;
    line-height: 1.5;
}

.bwp-edit-network {
    align-self: flex-start;
    font-size: 13px;
}

.bwp-search-sm {
    width: 220px;
    height: 34px;
    padding: 0 10px;
}

.bwp-search-sm input[type="search"] {
    font-size: 13px;
}

.bwp-sites .bwp-table-head,
.bwp-sites .bwp-table-row {
    grid-template-columns: minmax(0, 1fr) 90px 54px 70px;
}

.bwp-site {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.bwp-site strong {
    font-size: 14px;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bwp-site span {
    font-size: 12px;
    color: var(--bwp-faint);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bwp-sites .bwp-table-row span:last-child {
    text-align: right;
}

/* A site whose settings the network admin manages, or that has BerqWP off */

.bwp-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: -22px 0 32px;
    padding: 12px 16px;
    border-radius: 8px;
    background: var(--bwp-blue-tint);
    font-size: 13px;
    color: var(--bwp-text-2);
}

.bwp-banner.is-off {
    background: #FFF4E5;
}

/* BerqWP's notices, above the settings */

.bwp-notices {
    margin: -22px 0 32px;
}

/* global.css styles notices for other admin pages. Here they match the settings: a flat
   card with a colored edge, like .bwp-banner. */
.bwp-notices .bwp-notice {
    display: block;
    margin: 0 0 12px !important;
    padding: 14px 16px !important;
    border: 1px solid var(--bwp-line) !important;
    border-left: 3px solid var(--bwp-blue) !important;
    border-radius: 8px;
    background: #fff !important;
    box-shadow: none !important;
}

.bwp-notices .bwp-notice.status-error {
    border-left-color: var(--bwp-red) !important;
    background: #FFF7F6 !important;
}

.bwp-notices .bwp-notice.status-warning {
    border-left-color: #F5A524 !important;
    background: #FFFBF2 !important;
}

.bwp-notices .bwp-notice.status-success {
    border-left-color: var(--bwp-green) !important;
    background: #F4FDF8 !important;
}

.bwp-notices .bwp-notice .icon {
    display: none;
}

.bwp-notices .bwp-notice .content h5 {
    margin: 0 0 4px;
    font-size: 14px;
    font-weight: 600;
    color: var(--bwp-text);
}

.bwp-notices .bwp-notice .content p {
    margin: 0 0 6px;
    font-size: 13px;
    line-height: 1.55;
    color: var(--bwp-text-2);
}

.bwp-notices .bwp-notice .content p:last-child {
    margin-bottom: 0;
}

.bwp-notices .bwp-notice .content .bwp-notice-btn {
    margin-top: 10px;
}

.bwp-fieldset {
    margin: 0;
    padding: 0;
    border: 0;
    min-width: 0;
}

.bwp-fieldset:disabled .bwp-save,
.bwp-fieldset:disabled .bwp-sub-actions {
    display: none;
}

/* Image settings and the CDN status */

.bwp-row .bwp-choices {
    margin-top: 6px;
}

.bwp-unit {
    flex: none;
    align-self: flex-start;
    display: flex;
    align-items: center;
    height: 34px;
    border: 1px solid var(--bwp-line);
    border-radius: 6px;
    overflow: hidden;
}

.bwp-app .bwp-unit input[type="number"] {
    width: 84px;
    height: 100%;
    min-height: 0;
    border: 0;
    border-radius: 0;
    font-variant-numeric: tabular-nums;
}

.bwp-unit span {
    height: 100%;
    padding: 0 10px;
    display: flex;
    align-items: center;
    background: var(--bwp-soft);
    border-left: 1px solid var(--bwp-line);
    font-size: 13px;
    color: var(--bwp-muted);
}

.bwp-range {
    flex: none;
    align-self: flex-start;
    display: flex;
    align-items: center;
    gap: 12px;
    height: 34px;
}

.bwp-range input[type="range"] {
    width: 120px;
    accent-color: var(--bwp-blue);
}

.bwp-range output {
    width: 28px;
    text-align: right;
    font-size: 14px;
    font-weight: 500;
}

.bwp-banner-inline {
    margin: 16px 0 0;
}

.bwp-banner.is-muted {
    background: var(--bwp-soft);
}

/* Web Vitals */

.bwp-vitals {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 24px 0;
    border-bottom: 1px solid var(--bwp-line);
}

.bwp-vitals-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.bwp-select-inline {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--bwp-muted);
}

.bwp-vitals [data-vitals-data] {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.bwp-vitals-assessment {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    font-size: 14px;
}

.bwp-vitals-assessment .is-good,
.bwp-vitals-value.is-good {
    color: var(--bwp-green-text);
}

.bwp-vitals-assessment .is-poor,
.bwp-vitals-value.is-poor {
    color: var(--bwp-red-text);
}

.bwp-vitals-value.is-improve {
    color: #C33300;
}

.bwp-vitals-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.bwp-vitals-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px 16px;
    border: 1px solid var(--bwp-line);
    border-radius: 10px;
}

.bwp-vitals-card-head {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.bwp-vitals-card-head strong {
    font-size: 13px;
    font-weight: 600;
}

.bwp-vitals-card-head span {
    font-size: 12px;
    color: var(--bwp-faint);
}

.bwp-vitals-value {
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -.02em;
}

.bwp-vitals-split {
    display: flex;
    gap: 2px;
    height: 6px;
    border-radius: 999px;
    overflow: hidden;
    background: var(--bwp-line-soft);
}

.bwp-vitals-split span {
    flex: 0 1 0;
}

.bwp-vitals-split .is-good {
    background: var(--bwp-green);
}

.bwp-vitals-split .is-improve {
    background: #FFA400;
}

.bwp-vitals-split .is-poor {
    background: var(--bwp-red);
}

.bwp-vitals-pages .bwp-table-head,
.bwp-vitals-pages .bwp-table-row {
    grid-template-columns: minmax(0, 1fr) 70px 70px 60px;
}

.bwp-vitals-pages .bwp-table-head span,
.bwp-vitals-pages .bwp-table-row span:not(.bwp-path) {
    text-align: right;
}

.bwp-vitals-pages .bwp-table-head span:first-child {
    text-align: left;
}

.bwp-vitals-empty {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 28px 16px;
    border-radius: 10px;
    background: var(--bwp-soft);
    text-align: center;
    font-size: 14px;
    color: var(--bwp-muted);
}

.bwp-vitals-empty strong {
    color: var(--bwp-text);
    font-weight: 500;
}

@media (max-width: 782px) {
    .bwp-vitals-cards {
        grid-template-columns: 1fr;
    }
}

/* Toast */

.bwp-toast {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 99999;
    display: flex;
    align-items: center;
    gap: 14px;
    max-width: 420px;
    padding: 12px 16px;
    border-radius: 8px;
    background: var(--bwp-text);
    color: #FFFFFF;
    font-size: 13px;
    line-height: 1.5;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .18);
}

.bwp-toast.is-error {
    background: var(--bwp-red-text);
}

.bwp-toast button {
    flex: none;
    border: 0;
    background: transparent;
    padding: 0;
    color: #8CB4FF;
    font: inherit;
    font-weight: 500;
    cursor: pointer;
}

/* Smaller screens */

@media (max-width: 1100px) {
    .bwp-aside {
        display: none;
    }
}

@media (max-width: 782px) {
    .bwp-app {
        padding: 16px 16px 60px 6px;
    }

    .bwp-header {
        margin-bottom: 24px;
    }

    .bwp-body {
        flex-direction: column;
        gap: 24px;
    }

    .bwp-nav {
        position: static;
        flex: none;
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 10px 18px;
    }

    .bwp-plan-card,
    .bwp-nav .bwp-plan {
        display: none;
    }

    .bwp-views,
    .bwp-main {
        width: 100%;
        max-width: none;
    }

    .bwp-stats {
        grid-template-columns: 1fr 1fr;
    }

    .bwp-table-head,
    .bwp-table-row {
        grid-template-columns: minmax(0, 1fr) 90px 80px;
    }

    .bwp-row {
        gap: 16px;
    }
}

/* Onboarding, the first run after installing */

#wpcontent:has(.bwp-onb) {
    padding-left: 0;
}

#wpbody-content:has(.bwp-onb) {
    background: #FFFFFF;
}

.bwp-onb {
    --onb-blue: #1F6FFF;
    min-height: calc(100vh - 32px);
    display: flex;
    flex-direction: column;
    background: #FFFFFF;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    color: #0F172A;
    -webkit-font-smoothing: antialiased;
}

.bwp-onb [hidden] {
    display: none !important;
}

.bwp-onb *,
.bwp-onb *::before,
.bwp-onb *::after {
    box-sizing: border-box;
}

.bwp-onb-bar {
    height: 2px;
    background: #F1F5F9;
}

.bwp-onb-bar span {
    display: block;
    height: 100%;
    width: 0;
    background: var(--onb-blue);
    transition: width .5s ease;
}

.bwp-onb-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 32px;
    font-size: 13px;
    color: #94A3B8;
}

.bwp-onb-header img {
    display: block;
    height: 30px;
    width: auto;
}

.bwp-onb-step {
    align-self: center;
    width: 100%;
    max-width: 680px;
    padding: 48px 24px 80px;
    display: flex;
    flex-direction: column;
    animation: bwp-onb-fade .4s ease-out;
}

@keyframes bwp-onb-fade {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: none; }
}

.bwp-onb-test,
.bwp-onb-done {
    align-items: center;
    text-align: center;
}

.bwp-onb-results {
    max-width: 808px;
}

.bwp-onb-narrow {
    max-width: 428px;
}

.bwp-onb h1 {
    margin: 10px 0 0;
    font-size: 34px;
    font-weight: 600;
    letter-spacing: -0.035em;
    line-height: 1.15;
    color: #0F172A;
}

.bwp-onb-narrow h1 {
    margin-top: 40px;
    font-size: 32px;
}

.bwp-onb-step > p {
    margin: 12px 0 0;
    font-size: 15px;
    line-height: 1.6;
    color: #64748B;
}

.bwp-onb-kicker {
    font-size: 13px;
    font-weight: 500;
    color: var(--onb-blue);
}

/* Score rings */

.bwp-onb-meters {
    margin-top: 52px;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.bwp-onb-meter {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.bwp-onb-ring {
    position: relative;
    width: 132px;
    height: 132px;
    margin-bottom: 8px;
    --ring: #E2E8F0;
    --ring-text: #0F172A;
    --ring-tint: #F8FAFC;
}

.bwp-onb-ring svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.bwp-onb-ring > span {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    color: var(--ring-text);
}

.bwp-onb-track {
    fill: var(--ring-tint);
    stroke: #F1F5F9;
    stroke-width: 6;
}

.bwp-onb-fill {
    fill: none;
    stroke: var(--ring);
    stroke-width: 6;
    stroke-dasharray: 276.46;
    stroke-dashoffset: 276.46;
    transition: stroke-dashoffset 1.2s cubic-bezier(.2, .8, .2, 1);
}

.bwp-onb-ring[data-band="good"] { --ring: #0CCE6B; --ring-text: #008800; --ring-tint: rgba(12, 206, 107, .1); }
.bwp-onb-ring[data-band="average"] { --ring: #FFA400; --ring-text: #C33300; --ring-tint: rgba(255, 164, 0, .1); }
.bwp-onb-ring[data-band="poor"] { --ring: #FF4E42; --ring-text: #EB0F00; --ring-tint: rgba(255, 78, 66, .1); }

.bwp-onb-meter.is-wait .bwp-onb-track {
    fill: none;
    stroke-dasharray: 3 6;
}

.bwp-onb-meter.is-wait .bwp-onb-ring > span {
    font-size: 32px;
    color: #E2E8F0;
}

.bwp-onb-meter.is-run .bwp-onb-fill {
    stroke: var(--onb-blue);
    stroke-dasharray: 60 216.46;
    stroke-dashoffset: 0;
    stroke-linecap: round;
    transform-origin: 50px 50px;
    animation: bwp-onb-spin 1.1s linear infinite;
}

@keyframes bwp-onb-spin {
    to { transform: rotate(360deg); }
}

.bwp-onb-meter-name {
    font-size: 15px;
    font-weight: 500;
}

.bwp-onb-meter-name.is-premium {
    color: var(--onb-blue);
}

.bwp-onb-meter-sub {
    font-size: 13px;
    color: #64748B;
}

.bwp-onb-pill {
    margin-top: 56px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: 999px;
    background: #F8FAFC;
    font-size: 13px;
    color: #64748B;
}

.bwp-onb-pill > span:first-child {
    flex: none;
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: var(--onb-blue);
    animation: bwp-onb-pulse 1s ease-in-out infinite;
}

.bwp-onb-pill.is-done {
    background: rgba(12, 206, 107, .1);
    color: #008800;
    font-weight: 500;
}

.bwp-onb-pill.is-done > span:first-child {
    background: #0CCE6B;
    animation: none;
}

@keyframes bwp-onb-pulse {
    0%, 100% { opacity: .35; }
    50% { opacity: 1; }
}

.bwp-onb-error {
    margin-top: 40px;
    color: #B42318;
    font-size: 14px;
}

/* Results */

.bwp-onb-table-wrap {
    margin-top: 32px;
    overflow-x: auto;
}

.bwp-onb-table {
    width: 100%;
    min-width: 600px;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 14px;
}

.bwp-onb-table th,
.bwp-onb-table td {
    padding: 12px 10px;
    border-top: 1px solid #F1F5F9;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.bwp-onb-table tbody th {
    text-align: left;
    font-weight: 400;
    color: #334155;
    padding-left: 0;
}

.bwp-onb-table thead th,
.bwp-onb-table thead td,
.bwp-onb-table tfoot td {
    border-top: 0;
}

.bwp-onb-table thead th {
    vertical-align: bottom;
    padding: 20px 10px 18px;
    font-size: 14px;
    font-weight: 600;
}

.bwp-onb-table thead th > span {
    display: block;
    margin: 0 auto 8px;
}

.bwp-onb-table .is-premium {
    background: #F5F9FF;
    border-left: 1.5px solid var(--onb-blue);
    border-right: 1.5px solid var(--onb-blue);
}

.bwp-onb-table thead .is-premium {
    border-top: 1.5px solid var(--onb-blue);
    border-radius: 16px 16px 0 0;
}

.bwp-onb-table tfoot .is-premium {
    border-bottom: 1.5px solid var(--onb-blue);
    border-radius: 0 0 16px 16px;
}

.bwp-onb-table .is-first-feature th,
.bwp-onb-table .is-first-feature td {
    padding-top: 24px;
}

.bwp-onb-table .is-yes {
    color: var(--onb-blue);
    font-weight: 600;
}

.bwp-onb-table .is-no {
    color: #CBD5E1;
}

.bwp-onb-ring.is-small {
    width: 72px;
    height: 72px;
    margin: 0 auto 8px;
}

.bwp-onb-ring.is-small > span {
    font-size: 24px;
}

.bwp-onb-ring.is-small .bwp-onb-track,
.bwp-onb-ring.is-small .bwp-onb-fill {
    stroke-width: 7;
}

.bwp-onb-badge {
    width: max-content;
    padding: 3px 9px;
    border-radius: 999px;
    background: var(--onb-blue);
    color: #FFFFFF;
    font-size: 11px;
}

.bwp-onb-price {
    font-size: 12px;
    font-weight: 400;
    color: #64748B;
}

/* Buttons and forms */

.bwp-onb-btn,
.bwp-onb-plan {
    width: 100%;
    height: 42px;
    border-radius: 10px;
    font: inherit;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: transform .12s, background .15s, border-color .15s;
}

.bwp-onb-btn {
    border: 0;
    background: var(--onb-blue);
    color: #FFFFFF;
}

.bwp-onb-btn:hover {
    background: #1A5FE0;
    color: #FFFFFF;
}

.bwp-onb-btn:active {
    transform: scale(.98);
}

.bwp-onb-btn.is-big {
    margin-top: 12px;
    height: 48px;
    font-size: 15px;
}

.bwp-onb-btn.is-pill {
    width: auto;
    height: 48px;
    margin-top: 40px;
    padding: 0 28px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    text-decoration: none;
}

.bwp-onb-btn:disabled {
    opacity: .6;
    cursor: default;
}

.bwp-onb-plan {
    border: 1.5px solid #E2E8F0;
    background: #FFFFFF;
    color: #0F172A;
}

.bwp-onb-plan:hover {
    border-color: #94A3B8;
}

.bwp-onb-link {
    margin-top: 32px;
    align-self: center;
    border: 0;
    background: none;
    padding: 4px;
    font: inherit;
    font-size: 13px;
    color: #94A3B8;
    cursor: pointer;
}

.bwp-onb-link:hover {
    color: #0F172A;
}

.bwp-onb-fine {
    margin-top: 16px;
    font-size: 12px;
    line-height: 1.5;
    color: #94A3B8;
    text-align: center;
}

.bwp-onb-fine a {
    color: #94A3B8;
}

.bwp-onb-form {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bwp-onb-form label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    color: #334155;
}

.bwp-onb-form input {
    height: 46px;
    padding: 0 14px;
    border-radius: 8px;
    border: 1px solid #C9D4E5;
    font: inherit;
    font-size: 15px;
    font-weight: 400;
    color: #0F172A;
}

.bwp-onb-form input:focus {
    outline: none;
    border-color: var(--onb-blue);
    box-shadow: 0 0 0 3px rgba(31, 111, 255, .12);
}

.bwp-onb-form-error {
    margin: 0;
    font-size: 13px;
    color: #B42318;
}

.bwp-onb-steps {
    margin: 36px 0 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.bwp-onb-steps li {
    display: grid;
    grid-template-columns: 24px 1fr;
    gap: 12px;
    margin: 0;
}

.bwp-onb-steps li > span:first-child {
    font-size: 14px;
    font-weight: 500;
    color: #CBD5E1;
}

.bwp-onb-steps li > span:last-child {
    display: flex;
    flex-direction: column;
    gap: 3px;
    font-size: 13px;
    line-height: 1.5;
    color: #64748B;
}

.bwp-onb-steps strong {
    font-size: 15px;
    font-weight: 500;
    color: #0F172A;
}

.bwp-onb-narrow .bwp-onb-btn.is-big {
    margin-top: 40px;
}

.bwp-onb-waiting {
    margin-top: 40px;
    height: 48px;
    border-radius: 10px;
    background: #F4F6F9;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 14px;
    color: #475569;
}

.bwp-onb-waiting > span {
    width: 14px;
    height: 14px;
    border-radius: 999px;
    border: 1.5px solid #CBD5E1;
    border-top-color: var(--onb-blue);
    animation: bwp-onb-spin .8s linear infinite;
}

/* Done */

.bwp-onb-check {
    width: 64px;
    height: 64px;
    margin-top: 48px;
    border-radius: 999px;
    background: rgba(12, 206, 107, .12);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 16px rgba(12, 206, 107, .06);
}

.bwp-onb-done h1 {
    margin-top: 36px;
    font-size: 36px;
}

.bwp-onb-done p {
    max-width: 400px;
    font-size: 16px;
}

@media (max-width: 760px) {
    .bwp-onb-meters {
        grid-template-columns: 1fr;
    }
}
