body.cpq-modal-open {
    overflow: hidden;
}

.cpq-button-wrapper {
    margin: 20px 0;
}

.cpq-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cpq-helper-text {
    font-size: 12px;
    color: #777;
    margin-top: 6px;
}

/* Modal Layout */
.cpq-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(4px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
}

.cpq-modal-container {
    background: #fff;
    width: 100%;
    max-width: 460px;
    border-radius: 16px;
    padding: 24px;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    direction: rtl;
    text-align: right;
    box-sizing: border-box;
}

.cpq-modal-close {
    position: absolute;
    top: 14px;
    left: 14px;
background: #F5F5F5;
    border: none;
    font-size: 20px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #9F1C31;
    transition: background 0.2s;
}

.cpq-modal-close:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.cpq-modal-header {
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 14px;
    margin-bottom: 18px;
}

.cpq-modal-title {
    font-size: 17px;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: #1e293b;
}

.cpq-product-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

.cpq-product-name {
    color: #475569;
    font-weight: 600;
}

.cpq-product-price {
    color: #16a34a;
    font-weight: 700;
}

/* Form Styles */
.cpq-form-row {
    margin-bottom: 16px;
}

.cpq-form-row label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 6px;
}

.cpq-form-row input[type="number"],
.cpq-form-row textarea {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 14px;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.2s;
}

.cpq-form-row input[type="number"]:focus,
.cpq-form-row textarea:focus {
    border-color: #9F1C31;
}

.cpq-submit-btn {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    font-size: 15px;
    cursor: pointer;
}

/* Success View */
.cpq-success-wrap {
    text-align: center;
    padding: 15px 5px;
}

.cpq-success-icon {
    width: 54px;
    height: 54px;
    background: #dcfce7;
    color: #16a34a;
    border-radius: 50%;
    font-size: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
}

.cpq-success-wrap h4 {
    margin: 0 0 10px 0;
    font-size: 16px;
    color: #0f172a;
}

.cpq-order-badge {
    display: inline-block;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 14px;
    margin: 6px 0;
}

.cpq-info-note {
    font-size: 13px;
    color: #64748b;
    margin: 10px 0 18px;
}

.single_add_to_cart_button.cpq-hidden { display: none !important; }
.cpq-quote-selected .single-product-base-price-wrap,
.cpq-quote-selected .woocommerce-variation-price {
    display: none;
}

body:has(.variations_form.cpq-quote-selected) #mobile-sticky-atc {
  display: none !important;
}
