.ztr-typo-notice {
    margin-top: 28px;
    font-size: 14px;
    line-height: 1.5;
    opacity: .85;
}

.ztr-typo-notice em {
    font-style: italic;
}

.ztr-modal[hidden] {
    display: none !important;
}

.ztr-modal {
    position: fixed;
    inset: 0;
    z-index: 999998;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    font-family: roboto, sans-serif;
}

.ztr-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(18, 24, 38, .62);
}

.ztr-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 560px);
    max-height: calc(100dvh - 48px);
    overflow: auto;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 24px 80px rgba(0, 0, 0, .28);
}

.ztr-form {
    padding: 28px;
    margin: 0;
}

.ztr-modal__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin: 0 0 22px;
}

.ztr-modal__header h2 {
    margin: 0;
    font-size: 26px;
    line-height: 1.2;
    font-weight: 700;
    color: #1f2438;
}

.ztr-modal__close {
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #6b7280;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.ztr-modal__close:hover,
.ztr-modal__close:focus {
    color: #1f2438;
    background: rgba(0, 0, 0, .06);
}

.ztr-form label {
    display: block;
    margin: 0 0 8px;
    font-size: 15px;
    line-height: 1.4;
    font-weight: 700;
    color: #1f2438;
}

.ztr-form textarea {
    width: 100%;
    min-height: 92px;
    margin: 0 0 18px;
    padding: 12px 14px;
    border: 1px solid #d8dce7;
    border-radius: 8px;
    background: #fff;
    color: #1f2438;
    font-size: 15px;
    font-family: inherit;
    line-height: 1.45;
    resize: vertical;
    box-sizing: border-box;
}

.ztr-form textarea::placeholder {
    color: #6b7280;
    opacity: .6;
    font-size: 13px;
    line-height: 1.45;
}

.ztr-form textarea[readonly] {
    background: #fafafa;
}

#ztr-selected-text {
    resize: none;
    cursor: default;
}

.ztr-form textarea:invalid {
    border-color: #d8dce7;
    box-shadow: none;
}

.ztr-form textarea:focus {
    outline: none;
    border-color: #d8dce7;
    box-shadow: 0 0 0 3px rgba(31, 36, 56, .08);
}

.ztr-submit-btn {
    width: 100%;
    min-height: 48px;
    padding: 12px 18px;
    border: 0;
    border-radius: 8px;
    background: #00b077;
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.ztr-submit-btn:disabled {
    opacity: .65;
    cursor: not-allowed;
}

.ztr-modal-open {
    overflow: hidden;
}

.ztr-toast {
    position: fixed;
    top: 20px;
    left: 50%;
    z-index: 999999;
    width: calc(100% - 32px);
    max-width: 520px;
    padding: 14px 18px;
    border-radius: 8px;
    color: #fff;
    font-family: roboto, sans-serif;
    font-size: 14px;
    line-height: 1.45;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .18);
    opacity: 0;
    transform: translate(-50%, -10px);
    transition: opacity .2s ease, transform .2s ease;
}

.ztr-toast.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

.ztr-toast--success {
    background: #00b077;
}

.ztr-toast--error {
    background: #d71920;
}

@media (max-width: 600px) {
    .ztr-modal {
        padding: 16px;
    }

    .ztr-form {
        padding: 22px;
    }

    .ztr-modal__header h2 {
        font-size: 22px;
    }
}
