.ccq-open-quote,
.ccq-submit {
    background: #d71920 !important;
    border-color: #d71920 !important;
    color: #fff !important;
    cursor: pointer;
    border-radius: 4px;
    font-weight: 700;
    text-transform: none;
}

.ccq-open-quote:hover,
.ccq-open-quote:focus,
.ccq-submit:hover,
.ccq-submit:focus {
    background: #111 !important;
    border-color: #111 !important;
    color: #fff !important;
}

.ccq-single-wrap { margin: 18px 0; }
.ccq-single-wrap .ccq-open-quote { min-height: 48px; padding: 12px 24px; }

.ccq-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.ccq-modal.is-open { display: flex; }
.ccq-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .72);
    backdrop-filter: blur(2px);
}
.ccq-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(680px, 100%);
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    background: #fff;
    color: #111;
    border-radius: 10px;
    box-shadow: 0 24px 80px rgba(0,0,0,.3);
    padding: 30px;
}
.ccq-modal__close {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 38px;
    height: 38px;
    border: 0;
    background: transparent;
    color: #111;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
}
.ccq-modal__brand {
    display: inline-block;
    background: #d71920;
    color: #fff;
    font-weight: 800;
    font-size: 12px;
    letter-spacing: 1.2px;
    padding: 6px 9px;
    margin-bottom: 10px;
}
.ccq-modal h2 { margin: 0 42px 6px 0; font-size: 28px; color: #111; }
.ccq-modal__product { margin: 0 0 22px; color: #555; font-weight: 600; }
.ccq-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}
.ccq-field { min-width: 0; }
.ccq-field--full { grid-column: 1 / -1; }
.ccq-field label {
    display: block;
    margin: 0 0 6px;
    font-size: 14px;
    font-weight: 700;
    color: #111;
}
.ccq-field label span { color: #d71920; }
.ccq-field input,
.ccq-field textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #d2d2d2;
    background: #fff;
    color: #111;
    border-radius: 4px;
    padding: 11px 12px;
    font: inherit;
    outline: none;
}
.ccq-field input:focus,
.ccq-field textarea:focus { border-color: #111; box-shadow: 0 0 0 1px #111; }
.ccq-submit {
    width: 100%;
    margin-top: 18px;
    padding: 13px 20px;
    min-height: 48px;
    border: 1px solid transparent;
    font-size: 16px;
}
.ccq-submit:disabled { opacity: .65; cursor: wait; }
.ccq-status { display: none; margin-top: 15px; padding: 11px 12px; border-radius: 4px; }
.ccq-status.is-success { display: block; background: #edf8ef; color: #176b2c; border: 1px solid #b8dec1; }
.ccq-status.is-error { display: block; background: #fff0f0; color: #9c1717; border: 1px solid #efbcbc; }
.ccq-hp { position: absolute !important; left: -99999px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
body.ccq-modal-open { overflow: hidden; }

@media (max-width: 640px) {
    .ccq-modal { padding: 10px; align-items: flex-end; }
    .ccq-modal__dialog {
        width: 100%;
        max-height: calc(100vh - 20px);
        border-radius: 10px 10px 0 0;
        padding: 22px 18px 20px;
    }
    .ccq-modal h2 { font-size: 24px; }
    .ccq-grid { grid-template-columns: 1fr; gap: 13px; }
    .ccq-field--full { grid-column: auto; }
}

/* Quote-only products: never show a public price.
   PHP removes standard WooCommerce price HTML; these selectors are a fallback for
   themes/builders that render a price element independently. */
.ccq-quote-only .price,
.ccq-quote-only .woocommerce-Price-amount,
body.ccq-quote-only-product .product .summary .price,
body.ccq-quote-only-product .product .summary .woocommerce-Price-amount {
    display: none !important;
}
