.cs-pvc-dialog {
    box-sizing: border-box;
    width: min(960px, calc(100vw - 32px));
    max-width: 960px;
    max-height: calc(100vh - 32px);
    padding: 24px;
    overflow: auto;
    color: #222;
    background: #fff;
    border: 1px solid #777;
    border-radius: 8px;
    box-shadow: 0 16px 48px rgb(0 0 0 / 28%);
    font: inherit;
}

.cs-pvc-dialog::backdrop {
    background: rgb(0 0 0 / 58%);
}

.cs-pvc-dialog[open] {
    margin: auto;
}

.cs-pvc-dialog *,
.cs-pvc-dialog *::before,
.cs-pvc-dialog *::after {
    box-sizing: border-box;
}

.cs-pvc-dialog__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.cs-pvc-dialog__header h2 {
    margin: 0 0 12px;
    color: inherit;
}

.cs-pvc-close {
    flex: 0 0 auto;
    padding: 0 8px;
    color: #222;
    background: transparent;
    border: 0;
    font: inherit;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
}

.cs-pvc-disclaimer {
    margin: 0 0 10px;
    color: #9b2c2c;
}

.cs-pvc-form label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 0;
}

.cs-pvc-form input,
.cs-pvc-form select,
.cs-pvc-submit {
    min-height: 40px;
    padding: 7px 9px;
    color: #222;
    font: inherit;
}

.cs-pvc-form input[type="checkbox"] {
    width: 18px;
    min-height: 18px;
    margin: 0;
}

.cs-pvc-form .cs-pvc-accept {
    flex-direction: row;
    align-items: center;
    gap: 9px;
    margin: 10px 0 14px;
}

.cs-pvc-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 18px;
}

.cs-pvc-shell {
    margin: 18px 0;
    padding: 12px;
}

.cs-pvc-shell__inputs {
    margin-top: 10px;
}

.cs-pvc-submit {
    color: #fff;
    background: #174f7a;
    border: 1px solid #174f7a;
    border-radius: 4px;
    cursor: pointer;
}

.cs-pvc-submit:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.cs-pvc-error {
    padding: 10px;
    color: #7a1010;
    background: #fff0f0;
    border-left: 4px solid #9b2c2c;
}

.cs-pvc-results {
    margin-top: 18px;
    overflow-x: auto;
}

.cs-pvc-results__summary {
    font-weight: 700;
}

.cs-pvc-results table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9em;
}

.cs-pvc-results th,
.cs-pvc-results td {
    padding: 7px;
    border: 1px solid #bbb;
    text-align: right;
    white-space: nowrap;
}

.cs-pvc-results th:first-child {
    text-align: left;
}

.cs-pvc-footer,
.cs-pvc-copyright {
    color: #9b2c2c;
    text-align: center;
}

.cs-pvc-links {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.cs-pvc-links a {
    color: #0563c1;
}

.cs-pvc-copyright {
    margin-bottom: 0;
}

@media (max-width: 620px) {
    .cs-pvc-dialog {
        width: calc(100vw - 16px);
        max-height: calc(100vh - 16px);
        padding: 16px;
    }

    .cs-pvc-grid {
        grid-template-columns: 1fr;
    }

    .cs-pvc-links {
        flex-direction: column;
        align-items: center;
        gap: 6px;
    }
}
