
/* NexaCore Quick Add Cart - single product page purchase box.
   Same classes + same settings as the popup, so the design is identical. */
.nexacore-qac-box {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    margin: 0 0 20px;
    text-align: left;
    font-family: var(--nexacore-font-family, inherit);
}
.nexacore-qac-box *, .nexacore-qac-box *::before, .nexacore-qac-box *::after { box-sizing: border-box; }
.nexacore-qac-box .nexacore-qac-price:empty { display: none; }
.nexacore-qac-box .nexacore-qac-price { margin-bottom: 14px; }
.nexacore-qac-box .nexacore-qac-actions { margin-top: 16px; }
.nexacore-qac-box.is-loading .nexacore-qac-form { opacity: .72; pointer-events: none; }
html body .nexacore-qac-box .nexacore-qac-add:disabled,
html body .nexacore-qac-box .nexacore-qac-buynow:disabled { opacity: .55 !important; cursor: not-allowed !important; transform: none !important; }
html body .nexacore-qac-box .nexacore-qac-buynow.is-hidden { display: none !important; }

.nexacore-qac-box .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-box .nexacore-qac-price del {
    color: #333;
    opacity: .8;
    margin-right: 5px;
}
.nexacore-qac-box .nexacore-qac-price ins {
    color: var(--nexacore-price-color, #7b00ff);
    text-decoration: none;
}
.nexacore-qac-box .nexacore-qac-price .stock {
    display: inline-block;
    font-size: 15px;
    font-weight: 800;
    margin: 0;
}
.nexacore-qac-box .nexacore-qac-price .stock.out-of-stock { color: #d92d20;
}
.nexacore-qac-box .nexacore-qac-price .stock.available-on-backorder,
.nexacore-qac-box .nexacore-qac-price .stock.on-backorder { color: #b5760a;
}
.nexacore-qac-box .nexacore-qac-field { margin-bottom: 13px; text-align: left;
}
.nexacore-qac-box .nexacore-qac-variations { text-align: left;
}
.nexacore-qac-box .nexacore-qac-label,
.nexacore-qac-box .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-box .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-box .nexacore-qac-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.nexacore-qac-box .nexacore-qac-swatch {
    min-height: 44px;
    padding: 0 18px;
    border: 1px solid var(--nexacore-swatch-border, #dce2ec);
    border-radius: 8px;
    background: var(--nexacore-swatch-bg, #fff);
    color: var(--nexacore-swatch-text, #202738);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background .12s ease, color .12s ease, border-color .12s ease;
}
.nexacore-qac-box .nexacore-qac-swatch:hover {
    background: var(--nexacore-swatch-hover-bg, #fff3ec);
    color: var(--nexacore-swatch-hover-text, #202738);
}
.nexacore-qac-box .nexacore-qac-swatch.is-active {
    background: var(--nexacore-swatch-active-bg, #ff8a50);
    color: var(--nexacore-swatch-active-text, #fff);
    border-color: transparent;
}
.nexacore-qac-box .nexacore-qac-quantity-wrap { margin-top: 12px; text-align: left;
}
.nexacore-qac-box .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-box .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-box .nexacore-qac-quantity button:hover { background: var(--nexacore-qty-hover-bg-color, #f6f7fb);
}
.nexacore-qac-box .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-box .nexacore-qac-actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}
.nexacore-qac-box .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-box .nexacore-qac-add:hover { background: var(--nexacore-button-hover-color, var(--nexacore-button-color, #7b00ff)); transform: translateY(-1px);
}
.nexacore-qac-box .nexacore-qac-add:disabled { opacity: .65; cursor: wait; transform: none;
}
.nexacore-qac-box .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-box .nexacore-qac-buynow:hover { background: var(--nexacore-buynow-hover-color, var(--nexacore-buynow-color, #172033)); transform: translateY(-1px);
}
.nexacore-qac-box .nexacore-qac-buynow:disabled { opacity: .65; cursor: wait; transform: none;
}
.nexacore-qac-box .nexacore-qac-buynow.is-hidden { display: none;
}
.nexacore-qac-box .nexacore-qac-message {
    min-height: 18px;
    margin-top: 10px;
    font-size: 13px;
    font-weight: 700;
}
.nexacore-qac-box .nexacore-qac-message.is-error { color: #d92d20;
}
.nexacore-qac-box .nexacore-qac-message.is-success { color: #16803c;
}
html body .nexacore-qac-box .nexacore-qac-actions .nexacore-qac-add,
html body .nexacore-qac-box .nexacore-qac-actions .nexacore-qac-buynow {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-height: 52px !important;
    padding: 0 18px !important;
    border: 0 !important;
    border-radius: var(--nexacore-button-radius, 7px) !important;
    box-shadow: none !important;
    text-shadow: none !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    line-height: 1.2 !important;
    font-family: var(--nexacore-button-font-family, inherit) !important;
    font-size: var(--nexacore-button-font-size, 15px) !important;
    font-weight: var(--nexacore-button-font-weight, 800) !important;
}
html body .nexacore-qac-box .nexacore-qac-actions .nexacore-qac-add {
    background: var(--nexacore-button-color, #7b00ff) !important;
    color: var(--nexacore-button-text-color, #fff) !important;
}
html body .nexacore-qac-box .nexacore-qac-actions .nexacore-qac-add:hover:not(:disabled),
html body .nexacore-qac-box .nexacore-qac-actions .nexacore-qac-add:focus:not(:disabled),
html body .nexacore-qac-box .nexacore-qac-actions .nexacore-qac-add:active:not(:disabled) {
    background: var(--nexacore-button-hover-color, var(--nexacore-button-color, #7b00ff)) !important;
    color: var(--nexacore-button-text-color, #fff) !important;
}
html body .nexacore-qac-box .nexacore-qac-actions .nexacore-qac-buynow {
    background: var(--nexacore-buynow-color, #172033) !important;
    color: var(--nexacore-buynow-text-color, #fff) !important;
}
html body .nexacore-qac-box .nexacore-qac-actions .nexacore-qac-buynow:hover:not(:disabled),
html body .nexacore-qac-box .nexacore-qac-actions .nexacore-qac-buynow:focus:not(:disabled),
html body .nexacore-qac-box .nexacore-qac-actions .nexacore-qac-buynow:active:not(:disabled) {
    background: var(--nexacore-buynow-hover-color, var(--nexacore-buynow-color, #172033)) !important;
    color: var(--nexacore-buynow-text-color, #fff) !important;
}
html body .nexacore-qac-box .nexacore-qac-actions .nexacore-qac-buynow.is-hidden { display: none !important;
}
html body .nexacore-qac-box .nexacore-qac-actions button:focus-visible {
    outline: 2px solid var(--nexacore-button-color, #7b00ff);
    outline-offset: 2px;
}
html body .nexacore-qac-box .nexacore-qac-quantity {
    border: 1px solid var(--nexacore-qty-border-color, #dce2ec) !important;
    background: var(--nexacore-qty-bg-color, #fff) !important;
}
html body .nexacore-qac-box .nexacore-qac-quantity button {
    background: var(--nexacore-qty-bg-color, #fff) !important;
    color: var(--nexacore-qty-text-color, #202738) !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    min-height: 0 !important;
    font-size: 21px !important;
    line-height: 1 !important;
}
html body .nexacore-qac-box .nexacore-qac-quantity button:hover,
html body .nexacore-qac-box .nexacore-qac-quantity button:focus,
html body .nexacore-qac-box .nexacore-qac-quantity button:active {
    background: var(--nexacore-qty-hover-bg-color, #f6f7fb) !important;
    color: var(--nexacore-qty-text-color, #202738) !important;
}
html body .nexacore-qac-box .nexacore-qac-quantity input[type="number"] {
    background: var(--nexacore-qty-bg-color, #fff) !important;
    color: var(--nexacore-qty-text-color, #202738) !important;
    border: 0 !important;
    border-left: 1px solid var(--nexacore-qty-border-color, #dce2ec) !important;
    border-right: 1px solid var(--nexacore-qty-border-color, #dce2ec) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    -moz-appearance: textfield;
    appearance: textfield;
}
html body .nexacore-qac-box .nexacore-qac-quantity input[type="number"]::-webkit-outer-spin-button,
html body .nexacore-qac-box .nexacore-qac-quantity input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
html body .nexacore-qac-box select.nexacore-qac-select {
    background-color: var(--nexacore-field-bg-color, #fff) !important;
    color: var(--nexacore-field-text-color, #202738) !important;
    border: 1px solid var(--nexacore-field-border-color, #dce2ec) !important;
    box-shadow: none !important;
    height: auto !important;
}
html body .nexacore-qac-box .nexacore-qac-swatch {
    background: var(--nexacore-swatch-bg, #fff) !important;
    color: var(--nexacore-swatch-text, #202738) !important;
    border: 1px solid var(--nexacore-swatch-border, #dce2ec) !important;
    border-radius: 8px !important;
    box-shadow: none !important;
    text-transform: none !important;
}
html body .nexacore-qac-box .nexacore-qac-swatch:hover,
html body .nexacore-qac-box .nexacore-qac-swatch:focus {
    background: var(--nexacore-swatch-hover-bg, #fff3ec) !important;
    color: var(--nexacore-swatch-hover-text, #202738) !important;
}
html body .nexacore-qac-box .nexacore-qac-swatch.is-active,
html body .nexacore-qac-box .nexacore-qac-swatch.is-active:hover,
html body .nexacore-qac-box .nexacore-qac-swatch.is-active:focus {
    background: var(--nexacore-swatch-active-bg, #ff8a50) !important;
    color: var(--nexacore-swatch-active-text, #fff) !important;
    border-color: transparent !important;
}
html body .nexacore-qac-box .nexacore-qac-price,
html body .nexacore-qac-box .nexacore-qac-price .amount,
html body .nexacore-qac-box .nexacore-qac-price ins {
    color: var(--nexacore-price-color, #7b00ff) !important;
}
html body .nexacore-qac-box .nexacore-qac-label,
html body .nexacore-qac-box .nexacore-qac-quantity-wrap > label {
    color: var(--nexacore-label-color, #202738) !important;
}

/* No empty gap: the message line only takes space while it has text. */
html body .nexacore-qac-box .nexacore-qac-message { min-height: 0; margin-top: 0; }
html body .nexacore-qac-box .nexacore-qac-message:empty { display: none; }
html body .nexacore-qac-box .nexacore-qac-message:not(:empty) { margin-top: 10px; }
html body .nexacore-qac-box .nexacore-qac-actions { margin-top: 14px; }
.nexacore-qac-box.is-loading .nexacore-qac-form { opacity: .85; }
