.product-chat-button {
    margin: 18px 0;
}

.product-chat-modal-open {
    overflow: hidden;
}

.product-chat-button__button {
    min-width: 180px;
}

.product-chat-button__message {
    margin-top: 8px;
    color: #666;
    font-size: 13px;
}

.product-chat-button__message--error {
    color: #b00020;
}

.product-chat-button__modal[hidden] {
    display: none;
}

.product-chat-button__modal {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.product-chat-button__overlay {
    position: absolute;
    inset: 0;
    background: rgba(22, 26, 32, 0.52);
}

.product-chat-button__dialog {
    position: relative;
    width: min(560px, 100%);
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.28);
    padding: 26px;
}

.product-chat-button__close {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 32px;
    height: 32px;
    border: 0;
    background: transparent;
    color: #777;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.product-chat-button__modal-title {
    margin-right: 32px;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.25;
}

.product-chat-button__modal-subtitle {
    margin-top: 8px;
    color: #666;
    line-height: 1.45;
}

.product-chat-button__textarea {
    width: 100%;
    min-height: 132px;
    margin-top: 18px;
    padding: 12px 14px;
    border: 1px solid #d8d8d8;
    border-radius: 4px;
    resize: vertical;
    font: inherit;
    line-height: 1.45;
}

.product-chat-button__textarea:focus {
    outline: none;
    border-color: #87b94d;
    box-shadow: 0 0 0 3px rgba(135, 185, 77, 0.16);
}

.product-chat-button__modal-error {
    min-height: 18px;
    margin-top: 8px;
    color: #b00020;
    font-size: 13px;
}

.product-chat-button__actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 18px;
}

@media (max-width: 560px) {
    .product-chat-button__modal {
        align-items: flex-end;
        padding: 0;
    }

    .product-chat-button__dialog {
        width: 100%;
        border-radius: 8px 8px 0 0;
        padding: 22px 16px 18px;
    }

    .product-chat-button__actions {
        flex-direction: column-reverse;
    }

    .product-chat-button__actions .btn {
        width: 100%;
    }
}
