.spab-wrap,
.spab-wrap * {
    box-sizing: border-box;
}

.spab-wrap {
    --spab-accent: #d7190f;
    width: 100%;
    color: #fff;
    font-family: inherit;
}

.spab-heading {
    margin: 0;
    padding: 0 0 13px;
    border-bottom: 1px solid #c9d4df;
    font-family: "Hanken Grotesk", Sans-serif;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 22px;
    color: #FFFFFF;
}

.spab-list {
    padding: 9px 0 14px;
    border-bottom: 1px solid #c9d4df;
}

.spab-item {
    display: grid;
    grid-template-columns: 24px 58px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    min-height: 72px;
    padding: 7px 0;
    cursor: pointer;
}
input.spab-qty-input{
    width: 30px;
}
.spab-item.is-disabled {
    opacity: .55;
    cursor: not-allowed;
}

.spab-check-wrap {
    position: relative;
    align-self: center;
    width: 18px;
    height: 18px;
}

.spab-checkbox {
    position: absolute;
    inset: 0;
    width: 18px;
    height: 18px;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}

.spab-check-ui {
    display: block;
    width: 18px;
    height: 18px;
    border: 1px solid #bfc4c8;
    background: #fff;
    transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease;
}

.spab-checkbox:focus-visible + .spab-check-ui {
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--spab-accent) 24%, transparent);
}

.spab-checkbox:checked + .spab-check-ui {
    border-color: var(--spab-accent);
    background: var(--spab-accent);
}

.spab-checkbox:checked + .spab-check-ui::after {
    content: '';
    display: block;
    width: 8px;
    height: 4px;
    margin: 4px 0 0 4px;
    border: solid #fff;
    border-width: 0 0 2px 2px;
    transform: rotate(-45deg);
}

.spab-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    overflow: hidden;
}

.spab-image img {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    object-fit: contain;
}

.spab-copy {
    display: block;
    min-width: 0;
    line-height: 1.25;
}

.spab-name {
    display: block;
    margin-bottom: 2px;
    font-size: 15px;
    font-weight: 500;
    color: #fff;
}

.spab-description {
    display: block;
    max-width: 520px;
    font-size: 12px;
    line-height: 1.28;
    color: #4b5563;
}

.spab-unavailable {
    display: inline-block;
    margin-top: 3px;
    font-size: 11px;
    font-weight: 700;
    color: #8a1c1c;
    text-transform: uppercase;
}

.spab-item-purchase {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    min-width: 0;
}

.spab-quantity {
    display: inline-flex;
    align-items: center;
    height: 32px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 3px;
    background: rgba(255, 255, 255, .04);
}

.spab-qty-button,
.spab-qty-input {
    height: 30px;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #fff !important;
    box-shadow: none !important;
    font-family: inherit;
    font-size: 14px;
    line-height: 30px;
    text-align: center;
}

.spab-qty-button {
    width: 28px;
    min-width: 28px;
    padding: 0 !important;
    cursor: pointer;
    transition: color .18s ease, background-color .18s ease, opacity .18s ease;
}

.spab-qty-button:hover:not(:disabled),
.spab-qty-button:focus-visible:not(:disabled) {
    background: var(--spab-accent) !important;
    color: #fff !important;
    outline: none;
}

.spab-qty-input {
    width: 34px;
    min-width: 34px;
    padding: 0 2px !important;
    border-right: 1px solid rgba(255, 255, 255, .22) !important;
    border-left: 1px solid rgba(255, 255, 255, .22) !important;
    appearance: textfield;
    -moz-appearance: textfield;
}

.spab-qty-input::-webkit-outer-spin-button,
.spab-qty-input::-webkit-inner-spin-button {
    margin: 0;
    -webkit-appearance: none;
}

.spab-qty-button:disabled,
.spab-qty-input:disabled {
    opacity: .38;
    cursor: not-allowed;
}

.spab-price {
    min-width: 78px;
    padding-left: 0;
    color: var(--spab-accent);
    font-size: 18px;
    font-weight: 500;
    line-height: 1;
    text-align: right;
    white-space: nowrap;
}

.spab-price .woocommerce-Price-amount,
.spab-total .woocommerce-Price-amount,
.spab-was-price .woocommerce-Price-amount {
    color: inherit;
}

.spab-footer {
    display: grid;
    grid-template-columns: minmax(135px, 1fr) auto minmax(212px, auto);
    align-items: center;
    gap: 24px;
    padding-top: 26px;
}

.spab-add-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 13px;
    width: auto;
    background: var(--spab-accent);
    box-shadow: 0 6px 14px color-mix(in srgb, var(--spab-accent) 25%, transparent);
    text-align: center;
    transition: all .3s;
    font-family: "Hanken Grotesk", Sans-serif;
    font-size: 16px;
    font-weight: 700;
    fill: #fff;
    color: #fff;
    background-color: var(--spab-accent);
    border-style: solid;
    border-width: 1px 1px 1px 1px;
    border-color: var(--spab-accent);
    padding: 16px 32px 16px 32px;
    line-height: 1;
    border-radius: 3px;
	font-family: "Hanken Grotesk", Sans-serif;
    font-size: 16px;
    font-weight: 600;
    border-style: solid;
    border-width: 1px 1px 1px 1px;
    border-radius: 3px 3px 3px 3px;
    padding: 12px 24px 12px 24px;
    color: #4F1800;
    background-color: #F26522;
    border-color: #F26522;
    transition: all 0.2s;
	width:fit-content;
}
.spab-add-button:focus:not(:disabled),
.spab-add-button:hover:not(:disabled) {
    background:white;
    border-color:white;
    fill: #4F1800;
    color: #4F1800;
}

.spab-add-button:disabled {
    opacity: .62;
    cursor: not-allowed;
}

.spab-add-button.is-loading {
    cursor: wait;
}

.spab-button-copy strong {
    font-size: 14px;
    line-height: 1.1;
    text-transform: uppercase;
}

.spab-button-copy small {
    font-size: 12px;
    font-weight: 700;
    line-height: 1.1;
    text-transform: uppercase;
}

.spab-was-price {
    color: #6b7280;
    font-size: 15px;
    white-space: nowrap;
}

.spab-was-price.is-hidden {
    display: none;
}

.spab-total-area {
    min-width: 145px;
    text-align: right;
}

.spab-total {
    color: #fff;
    font-size: clamp(26px, 4vw, 38px);
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.spab-price-note {
    max-width: 180px;
    margin: 5px 0 0 auto;
    color: #6b7280;
    font-size: 11px;
    line-height: 1.2;
}

.spab-message {
    display: none;
    margin-top: 14px;
    padding: 11px 13px;
    font-size: 14px;
}

.spab-message.is-success,
.spab-message.is-error {
    display: block;
}

.spab-message.is-success {
    border: 1px solid #acd5b4;
    color: #175b25;
    background: #effaf1;
}

.spab-message.is-error {
    border: 1px solid #efb6b6;
    color: #8c1d1d;
    background: #fff1f1;
}

.spab-empty {
    margin: 12px 0;
    color: #6b7280;
}

@media (max-width: 640px) {
    .spab-item {
        grid-template-columns: 22px 52px minmax(0, 1fr) auto;
        gap: 8px;
        min-height: 66px;
    }

    .spab-image {
        width: 52px;
        height: 52px;
    }

    .spab-name {
        font-size: 14px;
    }

    .spab-description {
        font-size: 11px;
    }

    .spab-item-purchase {
        gap: 8px;
    }

    .spab-quantity {
        height: 30px;
    }

    .spab-qty-button,
    .spab-qty-input {
        height: 28px;
        line-height: 28px;
    }

    .spab-qty-button {
        width: 25px;
        min-width: 25px;
    }

    .spab-qty-input {
        width: 30px;
        min-width: 30px;
    }

    .spab-price {
        min-width: 70px;
        font-size: 16px;
    }

    .spab-footer {
        gap: 14px;
        padding-top: 20px;
        display: flex;
        flex-direction: column;
    }

    .spab-add-button {
		width: 100%;
        order: 3;
    }

    .spab-was-price {
        justify-self: start;
    }

    .spab-total-area {
        justify-self: end;
    }
}

@media (max-width: 420px) {
    .spab-item {
        grid-template-columns: 20px 46px minmax(0, 1fr);
        align-items: start;
        padding: 9px 0;
    }

    .spab-image {
        width: 46px;
        height: 46px;
    }

    .spab-item-purchase {
        grid-column: 3;
        justify-content: flex-start;
        padding-top: 3px;
    }

    .spab-price {
        min-width: 0;
        font-size: 15px;
    }
}

/* Single-product (Elementor add-ons-only) mode: quantity controls select add-ons. */
.spab-wrap.spab-quantity-only .spab-item {
    grid-template-columns: 58px minmax(0, 1fr) auto;
    cursor: default;
}
