.nexacore-qac-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
    box-sizing: border-box;
    font-family: var(--nexacore-font-family, inherit);
}
.nexacore-qac-modal.is-open { display: flex; }
.nexacore-qac-overlay {
    position: absolute;
    inset: 0;
    background: var(--nexacore-overlay-color, rgba(0,0,0,.55));
    backdrop-filter: blur(2px);
}
.nexacore-qac-dialog {
    position: relative;
    width: min(100%, var(--nexacore-popup-width, 520px));
    max-height: min(90vh, 720px);
    overflow: auto;
    background: #fff;
    border-radius: var(--nexacore-radius, 8px);
    box-shadow: 0 24px 80px rgba(0,0,0,.25);
    transform: translateY(0);
    opacity: 1;
    transition: transform .22s ease, opacity .22s ease;
}
.nexacore-qac-modal:not(.is-open) .nexacore-qac-dialog {
    transform: translateY(12px);
    opacity: 0;
}
.nexacore-qac-modal.animation-slide .nexacore-qac-dialog { transform: translateY(18px); }
.nexacore-qac-modal.animation-slide.is-open .nexacore-qac-dialog { transform: translateY(0); }
.nexacore-qac-modal.animation-none .nexacore-qac-dialog { transition: none; }
.nexacore-qac-close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 3;
    width: 42px;
    height: 42px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 8px;
    background: var(--nexacore-close-bg, #7b00ff);
    color: var(--nexacore-close-color, #fff);
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(123,0,255,.25);
}
.nexacore-qac-body {
    display: grid;
    grid-template-columns: 135px 1fr;
    gap: 20px;
    padding: 40px 26px 26px;
}
.nexacore-qac-media {
    display: flex;
    align-items: flex-start;
    justify-content: center;
}
.nexacore-qac-image {
    width: 135px;
    height: 135px;
    object-fit: cover;
    border-radius: 8px;
    background: #f5f5f7;
}
.nexacore-qac-content { min-width: 0; text-align: left; }
.nexacore-qac-badge {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 4px 11px;
    border-radius: 20px;
    background: var(--nexacore-badge-bg, #fff0fa);
    color: var(--nexacore-badge-color, #7b00ff);
    font-size: var(--nexacore-badge-font-size, 11px);
    font-weight: 800;
    letter-spacing: .2px;
    margin-bottom: 10px;
}
.nexacore-qac-title {
    margin: 0 42px 8px 0;
    color: var(--nexacore-title-color, #172033);
    font-size: var(--nexacore-title-font-size, 22px);
    line-height: 1.15;
    font-weight: var(--nexacore-title-font-weight, 800);
}
.nexacore-qac-price {
    color: var(--nexacore-price-color, #7b00ff);
    font-size: var(--nexacore-price-font-size, 20px);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 18px;
}
.nexacore-qac-price del {
    color: #333;
    opacity: .8;
    margin-right: 5px;
}
.nexacore-qac-price ins {
    color: var(--nexacore-price-color, #7b00ff);
    text-decoration: none;
}
.nexacore-qac-field { margin-bottom: 13px; text-align: left; }
.nexacore-qac-variations { text-align: left; }
.nexacore-qac-label,
.nexacore-qac-quantity-wrap > label {
    display: block;
    margin-bottom: 7px;
    text-align: left;
    color: var(--nexacore-label-color, #202738);
    font-size: var(--nexacore-label-font-size, 14px);
    font-weight: 800;
}
.nexacore-qac-select {
    width: 100%;
    min-height: 48px;
    padding: 0 13px;
    border: 1px solid var(--nexacore-field-border-color, #dce2ec);
    border-radius: 7px;
    background: var(--nexacore-field-bg-color, #fff);
    color: var(--nexacore-field-text-color, #202738);
    font-size: 14px;
    box-sizing: border-box;
}
.nexacore-qac-quantity-wrap { margin-top: 12px; text-align: left; }
.nexacore-qac-quantity {
    display: grid;
    grid-template-columns: 48px 1fr 48px;
    min-height: 48px;
    max-width: 220px;
    border: 1px solid var(--nexacore-qty-border-color, #dce2ec);
    border-radius: 7px;
    overflow: hidden;
    background: var(--nexacore-qty-bg-color, #fff);
}
.nexacore-qac-quantity button {
    border: 0;
    background: var(--nexacore-qty-bg-color, #fff);
    color: var(--nexacore-qty-text-color, #202738);
    font-size: 21px;
    cursor: pointer;
    transition: background .12s ease;
}
.nexacore-qac-quantity button:hover { background: var(--nexacore-qty-hover-bg-color, #f6f7fb); }
.nexacore-qac-quantity input {
    width: 100%;
    min-width: 0;
    border: 0;
    border-left: 1px solid var(--nexacore-qty-border-color, #dce2ec);
    border-right: 1px solid var(--nexacore-qty-border-color, #dce2ec);
    background: var(--nexacore-qty-bg-color, #fff);
    color: var(--nexacore-qty-text-color, #202738);
    text-align: center;
    font-size: 17px;
    font-weight: 700;
    outline: none;
    box-sizing: border-box;
}
.nexacore-qac-actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}
.nexacore-qac-add {
    flex: 1 1 0;
    min-height: 52px;
    border: 0;
    border-radius: var(--nexacore-button-radius, 7px);
    background: var(--nexacore-button-color, #7b00ff);
    color: var(--nexacore-button-text-color, #fff);
    font-family: var(--nexacore-button-font-family, inherit);
    font-size: var(--nexacore-button-font-size, 15px);
    font-weight: var(--nexacore-button-font-weight, 800);
    cursor: pointer;
    transition: background .15s ease, transform .15s ease, opacity .15s ease;
}
.nexacore-qac-add:hover { background: var(--nexacore-button-hover-color, var(--nexacore-button-color, #7b00ff)); transform: translateY(-1px); }
.nexacore-qac-add:disabled { opacity: .65; cursor: wait; transform: none; }
.nexacore-qac-buynow {
    flex: 1 1 0;
    min-height: 52px;
    border: 0;
    border-radius: var(--nexacore-button-radius, 7px);
    background: var(--nexacore-buynow-color, #172033);
    color: var(--nexacore-buynow-text-color, #fff);
    font-family: var(--nexacore-button-font-family, inherit);
    font-size: var(--nexacore-button-font-size, 15px);
    font-weight: var(--nexacore-button-font-weight, 800);
    cursor: pointer;
    transition: background .15s ease, transform .15s ease, opacity .15s ease;
}
.nexacore-qac-buynow:hover { background: var(--nexacore-buynow-hover-color, var(--nexacore-buynow-color, #172033)); transform: translateY(-1px); }
.nexacore-qac-buynow:disabled { opacity: .65; cursor: wait; transform: none; }
.nexacore-qac-buynow.is-hidden { display: none; }
.nexacore-qac-message {
    min-height: 18px;
    margin-top: 10px;
    font-size: 13px;
    font-weight: 700;
}
.nexacore-qac-message.is-error { color: #d92d20; }
.nexacore-qac-message.is-success { color: #16803c; }
.nexacore-qac-modal.is-loading .nexacore-qac-content { opacity: .72; pointer-events: none; }
body.nexacore-qac-open { overflow: hidden; }

@media (max-width: 600px) {
    .nexacore-qac-modal { padding: 10px; align-items: flex-end; }
    .nexacore-qac-dialog {
        width: 100%;
        max-height: 92vh;
        border-radius: 14px 14px 0 0;
    }
    .nexacore-qac-body {
        grid-template-columns: 90px 1fr;
        gap: 14px;
        padding: 28px 16px 18px;
    }
    .nexacore-qac-image {
        width: 90px;
        height: 90px;
    }
    .nexacore-qac-title { font-size: 18px; }
    .nexacore-qac-price { font-size: 17px; margin-bottom: 13px; }
    .nexacore-qac-close {
        top: 9px;
        right: 9px;
        width: 36px;
        height: 36px;
        font-size: 25px;
    }
}
