.tf-quote-modal {
    z-index: 1080;
}

.tf-quote-modal .qf-dialog {
    max-width: 520px;
    margin: 1.75rem auto;
}

.tf-quote-modal .qf-content {
    border: none;
    border-radius: 16px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, .12);
}

.tf-quote-modal .qf-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 20px 24px;
    border-bottom: 1px solid color-mix(in srgb, var(--tf-color-text, #1a1a18) 12%, transparent);
}

.tf-quote-modal .qf-header-left {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.tf-quote-modal .qf-product-thumb {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
}

.tf-quote-modal .qf-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    line-height: 1.3;
}

.tf-quote-modal .qf-product-name {
    font-size: 13px;
    color: var(--tf-color-textMuted, #888);
    margin: 2px 0 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 260px;
}

.tf-quote-modal .qf-close {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--tf-color-textMuted, #888);
    padding: 4px 8px;
    border-radius: 8px;
    flex-shrink: 0;
}

.tf-quote-modal .qf-body {
    padding: 20px 24px;
    overflow-y: auto;
    max-height: 85vh;
}

.tf-quote-modal .qf-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.tf-quote-modal .qf-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.tf-quote-modal .qf-field--wide {
    grid-column: 1 / -1;
}

.tf-quote-modal .qf-input {
    width: 100%;
    padding: 10px 14px;
    font-size: 14px;
    font-family: inherit;
    border: 1px solid color-mix(in srgb, var(--tf-color-text, #1a1a18) 14%, transparent);
    border-radius: 10px;
    background: #fafaf8;
    outline: none;
}

.tf-quote-modal .qf-input:focus {
    border-color: var(--tf-color-primary, #111);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--tf-color-primary, #111) 12%, transparent);
}

.tf-quote-modal .qf-input.has-error {
    border-color: #e53e3e;
    background: #fef5f5;
}

.tf-quote-modal .qf-textarea {
    resize: vertical;
    min-height: 72px;
}

.tf-quote-modal .qf-error {
    display: block;
    font-size: 12px;
    color: #e53e3e;
}

.tf-quote-modal .qf-error:empty {
    display: none;
}

.tf-quote-modal .qf-submit {
    margin-top: 16px;
}

.tf-quote-modal .qf-submit:disabled {
    opacity: .6;
    cursor: not-allowed;
}

.tf-quote-modal .qf-success {
    text-align: center;
    padding: 32px 16px;
}

.tf-quote-modal .qf-success-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #ecfdf5;
    display: grid;
    place-items: center;
    margin: 0 auto 16px;
    color: #16a34a;
    font-size: 24px;
}

.tf-quote-modal .qf-success-title {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 6px;
}

.tf-quote-modal .qf-success-sub {
    font-size: 13px;
    color: var(--tf-color-textMuted, #888);
    margin: 0;
}

.tf-product-offer-wrap {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.tf-product-offer-wrap .tf-btn-whatsapp,
.tf-btn.tf-btn-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #25d366 !important;
    border-color: #25d366 !important;
    color: #fff !important;
}

.tf-product-offer-wrap .tf-btn-whatsapp:hover,
.tf-btn.tf-btn-whatsapp:hover {
    background: #1ebe57 !important;
    border-color: #1ebe57 !important;
    color: #fff !important;
}

.tf-product-offer-wrap .tf-btn-whatsapp .bi-whatsapp {
    font-size: 1.15em;
    line-height: 1;
}

@media (max-width: 576px) {
    .tf-quote-modal .qf-dialog {
        max-width: 100%;
        margin: .5rem;
    }

    .tf-quote-modal .qf-grid {
        grid-template-columns: 1fr;
    }

    .tf-quote-modal .qf-header,
    .tf-quote-modal .qf-body {
        padding: 18px;
    }

    .tf-quote-modal .qf-product-name {
        max-width: 180px;
    }
}
