.atoope-step-controls [hidden] {
    display: none !important;
}


.atoope-participants [hidden],
.atoope-privacy-final[hidden] {
    display: none !important;
}

.atoope-responsibility,
.atoope-participants,
.atoope-signature,
.atoope-terms {
    margin: 1rem 0;
}

.atoope-responsibility {
    display: grid;
    gap: .75rem;
}

.atoope-participant-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr auto;
    gap: .5rem;
    margin: .5rem 0;
}

.atoope-participant-actions,
.atoope-step-controls {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: 1rem;
}

.atoope-signature canvas {
    width: min(100%, 600px);
    height: auto;
    border: 1px solid #999;
    background: #fff;
    touch-action: none;
}

[data-atoope-step][aria-hidden="true"] {
    display: none;
}

@media (max-width: 700px) {
    .atoope-participant-row {
        grid-template-columns: 1fr;
    }
}


.atoope-choice {
    display: block;
    padding: .85rem 1rem;
    border: 1px solid #dcdcde;
    border-radius: 8px;
    background: #fff;
}

.atoope-self-participant-note,
.atoope-prefill-status,
.atoope-terms-instruction,
.atoope-terms-read {
    padding: .75rem 1rem;
    border-radius: 6px;
    background: #f6f7f7;
}

.atoope-participant-editor {
    margin-top: 1rem;
    padding: 1rem;
    border: 1px solid #dcdcde;
    border-radius: 8px;
    background: #fff;
}

.atoope-participant-editor label {
    display: grid;
    gap: .35rem;
    margin-bottom: .75rem;
}

.atoope-participant-editor input {
    width: 100%;
}

.atoope-participant-editor-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: .75rem;
}

.atoope-participant-editor-error,
.atoope-participant-step-error {
    margin-top: .6rem;
    color: #b32d2e;
    font-weight: 600;
}

.atoope-participant-list {
    display: grid;
    gap: .5rem;
    margin: .75rem 0 0;
    padding: 0;
    list-style: none;
}

.atoope-participant-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: .75rem;
    border: 1px solid #dcdcde;
    border-radius: 6px;
    background: #fff;
}

.atoope-participant-item__text {
    font-weight: 600;
}

.atoope-terms-scroll {
    max-height: 340px;
    overflow-y: auto;
    padding: 1rem 1.2rem;
    border: 1px solid #8c8f94;
    border-radius: 6px;
    background: #fff;
    overscroll-behavior: contain;
}

.atoope-terms-scroll:focus {
    outline: 2px solid #2271b1;
    outline-offset: 2px;
}

.atoope-rules-acceptance input:disabled {
    cursor: not-allowed;
}

.atoope-rules-acceptance:has(input:disabled) {
    opacity: .6;
}

.atoope-privacy-final {
    margin: 1rem 0;
    padding: .85rem 1rem;
    border: 1px solid #dcdcde;
    border-radius: 6px;
    background: #f9f9f9;
}

.atoope-error-summary {
    margin: 0 0 1rem;
    padding: 1rem;
    border: 2px solid #b32d2e;
    border-radius: 6px;
    background: #fcf0f1;
    color: #8a2424;
}

.atoope-error-summary ul {
    margin-bottom: 0;
}

@media (max-width: 700px) {
    .atoope-participant-item {
        align-items: stretch;
        flex-direction: column;
    }

    .atoope-terms-scroll {
        max-height: 280px;
    }
}


.atoope-terms-expand {
    margin: 0 0 .65rem;
}

.atoope-terms-scroll--expanded {
    max-height: min(70vh, 760px);
}


.atoope-revision-prompt {
    margin: 16px 0;
    padding: 16px;
    border: 2px solid #dba617;
    border-radius: 6px;
    background: #fff8e5;
}

.atoope-revision-prompt p {
    margin-top: 0;
}

.atoope-revision-confirm {
    font-weight: 600;
}

.atoope-revision-warning {
    margin: .85rem 0 1rem;
    padding: 1rem;
    border: 2px solid #dba617;
    border-radius: 8px;
    background: #fff8e5;
    color: #3c2d00;
}

.atoope-revision-warning p {
    margin: 0 0 .65rem;
}

.atoope-revision-warning label {
    display: flex;
    gap: .55rem;
    align-items: flex-start;
    font-weight: 600;
}

.atoope-revision-warning input[type="checkbox"] {
    margin-top: .2rem;
}


.atoope-load-previous {
    display: inline-flex;
    margin-top: 10px;
}

.atoope-revision-verification {
    margin: 12px 0;
    padding: 14px;
    border: 1px solid #c3c4c7;
    border-radius: 6px;
    background: #fff;
}

.atoope-revision-verification p {
    margin-top: 0;
}

.atoope-revision-verification label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-right: 8px;
}

.atoope-revision-verification input {
    width: 9em;
    letter-spacing: 0.12em;
    text-align: center;
}


.atoope-duplicate-status {
    margin: .45rem 0 .8rem;
    font-size: .95rem;
    font-weight: 600;
}


.atoope-precheckout-gate {
    max-width: 980px;
    margin: 2rem auto;
}
.atoope-precheckout-gate__header,
.atoope-precheckout-requirement,
.atoope-precheckout-share,
.atoope-precheckout-ready,
.atoope-precheckout-waiting {
    border: 1px solid #dcdcde;
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin: 0 0 1rem;
    background: #fff;
}
.atoope-precheckout-ok,
.atoope-precheckout-ready {
    font-weight: 600;
}
.atoope-precheckout-share-url {
    width: min(100%, 720px);
    margin: 0 .5rem .5rem 0;
}
.atoope-precheckout-copy,
.atoope-precheckout-checkout {
    min-height: 42px;
}
