:root {
    --cpx-domain-note-background-color: #f8fafc;
    --cpx-domain-note-border-color: #dfe5ec;
    --cpx-domain-note-error-color: #b42318;
    --cpx-domain-note-muted-color: #5f6b7a;
    --cpx-domain-note-success-color: #18794e;
}

.domain-note-preview[hidden] {
    display: none !important;
}

.domain-note-preview__link {
    display: block;
    max-width: 100%;
    overflow: hidden;
    color: inherit;
    cursor: pointer;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.domain-note-preview__link:hover,
.domain-note-preview__link:focus {
    color: inherit;
    text-decoration: underline;
}

.domain-note {
    padding: 20px;
    background: var(--cpx-domain-note-background-color);
    border: 1px solid var(--cpx-domain-note-border-color);
    border-radius: 6px;
}

.domain-note__title {
    margin-top: 0;
    margin-bottom: 6px;
}

.domain-note__description {
    margin-bottom: 14px;
    color: var(--cpx-domain-note-muted-color);
    font-size: 14px;
    line-height: 1.55;
}

.domain-note__value {
    width: 100%;
    min-height: 120px;
    margin-bottom: 12px;
    resize: vertical;
}

.domain-note__footer {
    display: flex;
    align-items: center;
    gap: 12px;
}

.domain-note__status {
    flex: 1 1 auto;
    color: var(--cpx-domain-note-muted-color);
    font-size: 13px;
}

.domain-note__status--success {
    color: var(--cpx-domain-note-success-color);
}

.domain-note__status--error {
    color: var(--cpx-domain-note-error-color);
}

.domain-note__save {
    flex: 0 0 auto;
}

@media (max-width: 575px) {
    .domain-note__footer {
        align-items: stretch;
        flex-direction: column;
    }

    .domain-note__save {
        width: 100%;
    }
}
