.bo-atc {
    /* Colors */
    --bo-text: var(--bde-body-text-color);
    --bo-muted: #555;
    --bo-placeholder: #aaa;
    --bo-border: #e5e5e5;
    --bo-background: #fff;
    --bo-button-bg: var(--bde-body-text-color);
    --bo-button-primary-bg: var(--bde-brand-primary-color);
    --bo-button-text: #fff;
    --bo-error: #d63638;
    --bo-success: #9ccc00;
    --bo-radius: 7px;

    /* Desktop font sizes */
    --bo-font-label: 18px;
    --bo-font-coupon-input: 18px;
    --bo-font-coupon-btn: 15px;
    --bo-font-coupon-msg: 14px;
    --bo-font-qty-btn: 26px;
    --bo-font-qty-input: 20px;
    --bo-font-total: 42px;
    --bo-font-vat: 15px;
    --bo-font-buy: 16px;

    /* Mobile font sizes */
    --bo-font-label-mobile: 16px;
    --bo-font-coupon-input-mobile: 16px;
    --bo-font-coupon-btn-mobile: 13px;
    --bo-font-qty-btn-mobile: 24px;
    --bo-font-qty-input-mobile: 18px;
    --bo-font-total-mobile: 36px;

    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
    color: var(--bo-text);
    font-family: inherit;
}

.bo-atc,
.bo-atc * {
    box-sizing: border-box;
}

.bo-atc__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.bo-atc__label {
    margin: 0;
    font-size: var(--bo-font-label);
    font-weight: 400;
    line-height: 1.3;
}

/* Coupon */
.bo-atc__row--coupon {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-bottom: 42px;
}

.bo-atc__coupon-wrap {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    min-width: 0;
    width: 100%;
}

.bo-atc__coupon {
    display: flex;
    align-items: stretch;
    gap: 12px;
    width: 100%;
    height: 60px;
}

.bo-atc .bo-atc__coupon-input {
    flex: 1 1 0;
    width: 0;
    min-width: 0;
    margin: 0;
    padding: 0 24px;
    border: 2px solid var(--bo-border);
    border-radius: var(--bo-radius);
    background: var(--bo-background);
    box-shadow: none;
    color: var(--bo-text);
    font-family: inherit;
    font-size: var(--bo-font-coupon-input);
    line-height: normal;
}

.bo-atc__coupon-input::placeholder {
    color: var(--bo-placeholder);
    opacity: 1;
}

.bo-atc .bo-atc__coupon-btn {
    flex: 0 0 195px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0 20px;
    border: 0;
    border-radius: var(--bo-radius);
    background: var(--bo-button-bg);
    box-shadow: none;
    color: var(--bo-button-text);
    font-family: inherit;
    font-size: var(--bo-font-coupon-btn);
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
    cursor: pointer;
}

.bo-atc__coupon-msg {
    font-size: var(--bo-font-coupon-msg);
    line-height: 1.4;
}

.bo-atc__coupon-msg:empty {
    display: none;
}

.bo-atc__coupon-msg--err {
    color: var(--bo-error);
}

.bo-atc__coupon-msg--ok {
    color: var(--bo-success);
}

/* Applied coupon chip */
.bo-atc__applied {
    display: flex;
    min-height: 0;
}

.bo-atc__applied:empty {
    display: none;
}

.bo-atc__chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px 6px 14px;
    border: 1px solid var(--bo-success);
    border-radius: 999px;
    background: rgba(0, 138, 0, 0.08);
    color: var(--bo-success);
    font-size: 13px;
    font-weight: 600;
}

.bo-atc__chip-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    margin-left: 2px;
    border: 0;
    border-radius: 50%;
    background: var(--bo-success);
    color: #fff;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
}

.bo-atc__chip-remove:hover {
    opacity: .8;
}

/* Quantity */
.bo-atc__row--qty {
    padding-bottom: 26px;
    border-bottom: 2px solid var(--bo-border);
}

.bo-atc__qty {
    display: flex;
    flex: 0 0 auto;
    align-items: stretch;
    gap: 0;
    height: 62px;
    overflow: hidden;
    border: 2px solid var(--bo-border);
    border-radius: var(--bo-radius);
    background: var(--bo-background);
}

.bo-atc .bo-atc__qty-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 60px;
    width: 60px;
    height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: var(--bo-text);
    font-family: inherit;
    font-size: var(--bo-font-qty-btn);
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
}

.bo-atc .bo-atc__qty-input {
    flex: 0 0 108px;
    width: 108px;
    min-width: 0;
    height: 100%;
    margin: 0;
    padding: 0 8px;
    border: 0;
    border-right: 2px solid var(--bo-border);
    border-left: 2px solid var(--bo-border);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: var(--bo-text);
    font-family: inherit;
    font-size: var(--bo-font-qty-input);
    font-weight: 400;
    line-height: normal;
    text-align: center;
}

/* Total */
.bo-atc__row--total {
    padding-top: 18px;
}

.bo-atc__total {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
}

.bo-atc__total-price {
    color: var(--bo-text);
    font-size: var(--bo-font-total);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1.5px;
    white-space: nowrap;
}

.bo-atc__total-price .amount,
.bo-atc__total-price bdi,
.bo-atc__total-price .woocommerce-Price-currencySymbol {
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
}

.bo-atc__vat {
    margin-top: 3px;
    color: var(--bo-muted);
    font-size: var(--bo-font-vat);
    line-height: 1.2;
}

/* Buy */
.bo-atc .bo-atc__buy {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 60px;
    margin: 24px 0 0;
    padding: 16px 24px;
    border: 0;
    border-radius: var(--bo-radius);
    background: var(--bo-button-primary-bg);
    box-shadow: none;
    color: var(--bo-text);
    font-family: inherit;
    font-size: var(--bo-font-buy);
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    text-transform: uppercase;
}

.bo-atc__buy:disabled {
    opacity: .6;
    cursor: not-allowed;
}

/* Keyboard focus */
.bo-atc input:focus-visible,
.bo-atc button:focus-visible {
    outline: 2px solid var(--bo-text);
    outline-offset: -4px;
}

/* Smaller screens */
@media (max-width: 480px) {
    .bo-atc {
        --bo-font-label: var(--bo-font-label-mobile);
        --bo-font-coupon-input: var(--bo-font-coupon-input-mobile);
        --bo-font-coupon-btn: var(--bo-font-coupon-btn-mobile);
        --bo-font-qty-btn: var(--bo-font-qty-btn-mobile);
        --bo-font-qty-input: var(--bo-font-qty-input-mobile);
        --bo-font-total: var(--bo-font-total-mobile);
    }

    .bo-atc__coupon {
        gap: 8px;
    }

    .bo-atc .bo-atc__coupon-input {
        padding-inline: 14px;
    }

    .bo-atc .bo-atc__coupon-btn {
        flex-basis: 125px;
        padding-inline: 12px;
    }

    .bo-atc__qty {
        height: 54px;
    }

    .bo-atc .bo-atc__qty-btn {
        flex-basis: 46px;
        width: 46px;
    }

    .bo-atc .bo-atc__qty-input {
        flex-basis: 70px;
        width: 70px;
    }
}