.tpe-enquiry-button {
    margin-top: 15px;
}

.tpe-modal[hidden] {
    display: none;
}

.tpe-modal {
    position: fixed;
    z-index: 999999;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.tpe-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.tpe-modal__dialog {
    position: relative;
    width: min(560px, 100%);
    max-height: calc(100vh - 48px);
    overflow: auto;
    background: #fff;
    padding: 24px;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.24);
}

.tpe-modal__dialog h2 {
    margin: 0 36px 20px 0;
    font-size: 22px;
}

.tpe-modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    border: 0;
    background: transparent;
    color: #333;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
}

.tpe-form p {
    margin: 0 0 16px;
}

.tpe-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.tpe-form input,
.tpe-form textarea {
    width: 100%;
}

.tpe-form__actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.tpe-form__message {
    min-height: 20px;
}

.tpe-form__message.is-error {
    color: #b32d2e;
}

.tpe-form__message.is-success {
    color: #1d7f36;
}

body.tpe-hide-old-enquiry #woo_catalog .wcce_send_enquiry,
body.tpe-hide-old-enquiry #woo_catalog .wcce-enquiry-cart {
    display: none !important;
}
