/* Ukrywa kartę, ale pozostawia jej pola w formularzu BundleBoss. */
form.bundle-boss-form {
    margin-top: 0;
}

.bb-peek-row {
    display: none !important;
}

.sundose-bundle-ui:empty {
    display: none;
}

.bb-tiers {
    display: none;
}

/* Kontener przycisku i podsumowania. */
.bundle-boss-form .bb-tray-col,
.bundle-boss-form .bb-order-tray,
.bundle-boss-form .bb-tray-cta {
    position: static;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    margin: 0;
}

.bundle-boss-form .bb-tray-col {
    width: 100%;
    min-width: 0;
    max-width: none;
}

.bundle-boss-form .bb-tray-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* Ukryj zawartość panelu poza akcjami i komunikatami błędów. */
.bundle-boss-form .bb-order-tray > :not(.bb-tray-cta):not(.sundose-bundle-quantity):not(.bundle-boss-init-error):not(.awdr_discount_bar):not(noscript) {
    display: none !important;
}

/* W sekcji akcji pozostaw tylko przycisk dodawania zestawu. */
.bundle-boss-form .bb-tray-cta > :not(.bundle-add-to-cart) {
    display: none !important;
}

/* Ukryj dodatkowy, przyklejony pasek BB. */
.bundle-boss-form .bb-tray-peek {
    display: none !important;
}

#page form.bundle-boss-form .bb-tray-cta .bundle-add-to-cart {
    appearance: button;
    box-sizing: border-box;

    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1 0 0;

    width: 100%;
    min-width: 100%;
    margin: 0;
    padding: 13px 40px;

    background: #1f1f1f;
    color: #fff;
    border: 1px solid #000;
    border-radius: 8px;
    box-shadow: none;

    font-family: "ABC", sans-serif;
    font-size: 14px;
    font-weight: 600;
    font-style: normal;
    line-height: 20px;
    letter-spacing: normal;

    text-align: center;
    text-transform: uppercase;
    text-decoration: none;
    text-shadow: none;

    float: none;
    cursor: pointer;
    transition: background-color 0.3s ease,
                border-color 0.3s ease,
                opacity 0.3s ease ! important;
}

#page form.bundle-boss-form .bb-tray-cta .bundle-add-to-cart:not(:disabled):hover {
    background: #fff;
    border-color: #333;
    color: #000;
}

#page form.bundle-boss-form .bb-tray-cta .bundle-add-to-cart:focus-visible {
    outline: 2px solid #1f1f1f;
    outline-offset: 3px;
}

#page form.bundle-boss-form .bb-tray-cta .bundle-add-to-cart:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

#page form.bundle-boss-form .quantity {
    align-self: flex-start;
    gap: 0;
}


/* Grupy z jednym przyciskiem nie wymagają wyboru. */
.bundle-boss-form .bb-attr-group:not(
    :has(> .bb-chips > .bb-chip ~ .bb-chip)
) {
    display: none !important;
}

/* Ukryj cały kontener, jeśli nigdzie nie ma wielu opcji. */
.bundle-boss-form .bundle-items:not(
    :has(.bb-chips > .bb-chip ~ .bb-chip)
) {
    display: none !important;
}

/* Usuń nagłówek karty, zdjęcie i przełącznik synchronizacji. */
.bundle-boss-form .bundle-items .bb-card-header,
.bundle-boss-form .bundle-items .bb-card-summary,
.bundle-boss-form .bundle-items .bundle-item-image,
.bundle-boss-form .bundle-items .bb-same-all-row {
    display: none !important;
}

/* Ukryj miniaturę i cenę sztuki; pozostaw komunikat magazynowy. */
.bundle-boss-form .bundle-items .bundle-unit-thumb,
.bundle-boss-form .bundle-items .bundle-item-price {
    display: none !important;
}

/* Usuń wygląd i odstępy zewnętrznej karty. */
.bundle-boss-form .bundle-items,
.bundle-boss-form .bundle-items .bundle-item,
.bundle-boss-form .bundle-items .bb-card-body,
.bundle-boss-form .bundle-items .bundle-item-details {
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    margin: 0;
    min-width: 0;
}

/* Po usunięciu zdjęcia wybór zajmuje całą szerokość. */
.bundle-boss-form .bundle-items .bb-card-body {
    display: block !important;
}

.bundle-boss-form .bundle-items .bundle-item-details {
    width: 100%;
    max-width: none;
}

/* Usuń ustawione przez BB ograniczenie szerokości przycisków. */
.bundle-boss-form .bundle-items .bb-chips {
    max-width: none !important;
    display: flex;
    flex-direction: row;
    gap: 8px;
    flex-wrap: wrap;
}

form.bundle-boss-form .bb-unit-label,
form.bundle-boss-form .bb-attr-name {
    color: var(--pls-heading-color);
    font-size: 14px;
    font-weight: 400;
    font-family: "ABC";
    text-transform: none;
    letter-spacing: normal;
    margin-bottom: 7px;
}

form.bundle-boss-form .bb-attr-name {
    margin-bottom: 10px;
}

form.bundle-boss-form .bb-unit-label {
    display: none;
}

.bundle-item-unit .bb-chips .bb-chip {
    background-color: white;
    border: 1px solid var(--orange-400, #FF8941);
    border-radius: 8px;
    font-size: 12px;
    font-weight: 400;
    font-family: "ABC";
    line-height: 17px;
    color: #000;
    padding: 12px 12px;
    text-transform: none;
}

.bundle-item-unit .bb-chips .bb-chip:hover {
  border-color: var(--orange-100, #FF8941);
  border-width: 1px;
  background: var(--orange-100, #FFF0E6);
}

.bundle-item-unit .bb-chips .bb-chip.is-selected {
    border-color: var(--orange-400, #FF8941);
    border-width: 1px;
    background: var(--orange-400, #FF8941);
    font-family: "ABC 500";
    color: #000;
}

.bb-form-cols .bundle-item-unit {
    border-top: 0;
    padding-top: 0;
    margin-top: 0;
    margin-bottom: 16px;
}

.bundle-boss-product-badge,
.bundle-boss-type-badge {
    display: inline-block;
    background: #000;
    color: #fff;
    font-size: 0.68em;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 4px 13px;
    border-radius: 100px;
    margin-bottom: 10px;
    line-height: 1.5;
}

.bundle-boss-form .bb-order-tray {
    display: flex;
    flex-direction: column;
}

.bundle-item-attribute {
    display: flex;
    flex-direction: column;
    margin-top: 4px;
}

form.bundle-boss-form .bundle-item-units {
    margin-bottom: 36px;
}

.sundose-bundle-quantity {
    margin-bottom: 28px;
}

.bb-form-cols {
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    body.single-product .bb-tray-col {
        position: fixed;
        bottom: 0;
        width: 100%;
        left: 0px;
        max-width: calc(100%);
        z-index: 999;
        padding: 16px;
        background-color: white;
    }
}

a.button.product_type_bundle.add_to_cart_button {
    background-color: #000 !important;
    color: #fff !important;
}