.spalvora-bundle {
    margin: 0 0 20px;
    padding: 18px;
    border: 1px solid #dcdcdc;
    border-radius: 10px;
    background: #ffffff;
}

.spalvora-bundle__title {
    margin: 0;
    font-size: 22px;
    line-height: 1.2;
    color: #202020;
}

.spalvora-bundle__subtitle {
    margin: 8px 0 16px;
    color: #4f4f4f;
    font-size: 14px;
}

.spalvora-bundle__table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.spalvora-bundle__table th,
.spalvora-bundle__table td {
    padding: 12px 10px;
    border-bottom: 1px solid #ececec;
    vertical-align: middle;
}

.spalvora-bundle__table thead th {
    color: #202020;
    font-weight: 600;
    text-align: left;
}

.spalvora-bundle__row.is-disabled {
    opacity: 0.55;
}

.spalvora-col-check {
    width: 86px;
    text-align: center;
}

.spalvora-col-thumb {
    width: 96px;
}

.spalvora-col-product {
    width: 40%;
}

.spalvora-col-price,
.spalvora-col-qty {
    width: 150px;
}

.spalvora-bundle__thumb {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #e2e2e2;
    display: block;
}

.spalvora-bundle__thumb-link {
    display: inline-block;
}

.spalvora-bundle__thumb-link:hover .spalvora-bundle__thumb {
    border-color: #79d077;
}

.spalvora-bundle__product-link {
    color: #202020;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.18s ease;
}

.spalvora-bundle__product-link:hover,
.spalvora-bundle__product-link:focus-visible {
    border-bottom-color: #79d077;
}

.spalvora-bundle__qty {
    width: 42px;
    min-height: 32px;
    border: 0;
    background: transparent;
    text-align: center;
    color: #202020 !important;
    -webkit-text-fill-color: #202020;
    font-size: 16px;
    font-weight: 700;
    padding: 0;
    line-height: 1;
    -moz-appearance: textfield;
    appearance: textfield;
    opacity: 1 !important;
}

.spalvora-bundle__qty::-webkit-outer-spin-button,
.spalvora-bundle__qty::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.spalvora-bundle__line-total,
.spalvora-total-value {
    color: #202020;
    font-weight: 600;
}

.spalvora-col-price del {
    color: #777;
    margin-right: 6px;
}

.spalvora-col-price ins {
    color: #202020;
    text-decoration: none;
    font-weight: 600;
}

.spalvora-total-label {
    text-align: right;
    font-weight: 500;
}

.spalvora-bundle__check-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    cursor: pointer;
}

.spalvora-bundle__check {
    position: absolute !important;
    opacity: 0 !important;
    width: 1px !important;
    height: 1px !important;
    margin: 0 !important;
    pointer-events: none;
}

.spalvora-bundle__check-ui {
    width: 30px;
    height: 30px;
    border: 2px solid #79d077;
    border-radius: 10px;
    background: #ffffff;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.12s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.spalvora-bundle__check-ui::after {
    content: "";
    width: 8px;
    height: 14px;
    border-right: 3px solid #ffffff;
    border-bottom: 3px solid #ffffff;
    transform: rotate(45deg) scale(0);
    transform-origin: center;
    transition: transform 0.14s ease;
}

.spalvora-bundle__check:checked + .spalvora-bundle__check-ui {
    background: #79d077;
    box-shadow: 0 0 0 3px rgba(121, 208, 119, 0.22);
}

.spalvora-bundle__check:checked + .spalvora-bundle__check-ui::after {
    transform: rotate(45deg) scale(1);
}

.spalvora-bundle__check-wrap:hover .spalvora-bundle__check-ui {
    transform: translateY(-1px);
}

.spalvora-bundle__check:focus-visible + .spalvora-bundle__check-ui {
    outline: 0;
    box-shadow: 0 0 0 4px rgba(121, 208, 119, 0.35);
}

.spalvora-bundle__check:disabled + .spalvora-bundle__check-ui {
    opacity: 0.45;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.spalvora-variation-picker {
    margin-top: 8px;
}

.spalvora-variation-picker label {
    display: block;
    margin-bottom: 4px;
    font-size: 11px;
    color: #555;
    font-weight: 500;
    text-transform: none;
}

.spalvora-variation-picker label span {
    font-size: 10px;
    color: #7a7a7a;
}

.spalvora-bundle__variation-select {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    border: 0 !important;
}

.spalvora-bundle__variation-select.is-visible {
    position: static !important;
    width: 100% !important;
    height: 34px !important;
    padding: 5px 30px 5px 10px !important;
    margin: 0 0 6px !important;
    clip: auto !important;
    overflow: visible !important;
    border: 1px solid #cfd6de !important;
    border-radius: 999px !important;
    color: #202020 !important;
    background-color: #fff !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    background-image: linear-gradient(45deg, transparent 50%, #6d7680 50%), linear-gradient(135deg, #6d7680 50%, transparent 50%);
    background-position: calc(100% - 14px) calc(50% - 1px), calc(100% - 9px) calc(50% - 1px);
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
}

.spalvora-bundle__variation-select.is-visible:focus {
    outline: 0;
    border-color: #79d077 !important;
    box-shadow: 0 0 0 3px rgba(121, 208, 119, 0.18) !important;
}

.spalvora-bundle__price-dynamic {
    color: #202020;
    font-weight: 600;
}

.spalvora-variation-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}

.spalvora-variation-btn {
    border: 1px solid #d1d6dc;
    background: #fff;
    color: #202020;
    border-radius: 999px;
    font-size: 11px;
    line-height: 1.2;
    font-weight: 500;
    padding: 5px 9px;
    cursor: pointer;
    transition: all 0.16s ease;
}

.spalvora-variation-btn:hover,
.spalvora-variation-btn:focus-visible {
    border-color: #79d077;
    box-shadow: 0 0 0 3px rgba(121, 208, 119, 0.2);
    outline: 0;
}

.spalvora-variation-btn.is-active {
    background: #79d077;
    border-color: #79d077;
    color: #fff;
}

.spalvora-qty-control {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d6dce2;
    border-radius: 999px;
    overflow: hidden;
    min-height: 38px;
    width: 116px;
    background: #fff;
}

.spalvora-qty-btn {
    width: 34px;
    height: 38px;
    border: 0;
    background: #f7f8fa;
    color: #202020;
    font-size: 17px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.spalvora-qty-btn:hover,
.spalvora-qty-btn:focus-visible {
    background: #edf7ec;
    color: #202020;
    outline: 0;
}

.spalvora-bundle__qty:disabled,
.spalvora-qty-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.spalvora-bundle__carinfo {
    margin-top: 9px;
}

.spalvora-bundle__carinfo label {
    display: block;
    margin-bottom: 4px;
    font-size: 11px;
    color: #5f6670;
    font-weight: 500;
}

.spalvora-bundle__carinfo-text {
    width: 100%;
    min-height: 34px;
    border: 1px solid #d4dae1;
    border-radius: 10px;
    padding: 5px 9px;
    font-size: 12px;
    line-height: 1.35;
    resize: vertical;
    background: #fff;
    color: #202020;
}

/* Strong override for themes forcing large textarea heights */
.single-product .spalvora-bundle .spalvora-bundle__carinfo .spalvora-bundle__carinfo-text {
    display: block !important;
    width: 100% !important;
    height: 72px !important;
    min-height: 72px !important;
    max-height: 160px !important;
    padding: 6px 10px !important;
    font-size: 12px !important;
    line-height: 1.3 !important;
    border-radius: 10px !important;
    border: 1px solid #d4dae1 !important;
    resize: vertical !important;
    box-sizing: border-box !important;
}

.spalvora-bundle__carinfo-text:focus {
    outline: 0;
    border-color: #79d077;
    box-shadow: 0 0 0 3px rgba(121, 208, 119, 0.16);
}

/* Strong override for themes that restyle Woo quantity fields/buttons */
.single-product .spalvora-bundle .spalvora-col-qty .spalvora-qty-control {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: stretch !important;
    justify-content: center !important;
    width: 128px !important;
    min-width: 128px !important;
    max-width: 128px !important;
    min-height: 42px !important;
    border: 1px solid #d6dce2 !important;
    border-radius: 999px !important;
    background: #fff !important;
    overflow: hidden !important;
}

.single-product .spalvora-bundle .spalvora-col-qty .spalvora-qty-btn {
    width: 38px !important;
    min-width: 38px !important;
    height: 42px !important;
    border: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #f6f8fb !important;
    color: #202020 !important;
    font-size: 22px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    text-align: center !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: 1 !important;
}

.single-product .spalvora-bundle .spalvora-col-qty .spalvora-qty-btn:hover,
.single-product .spalvora-bundle .spalvora-col-qty .spalvora-qty-btn:focus-visible {
    background: #edf7ec !important;
    color: #202020 !important;
    outline: 0 !important;
}

.single-product .spalvora-bundle .spalvora-col-qty .spalvora-bundle__qty {
    width: 52px !important;
    min-width: 52px !important;
    max-width: 52px !important;
    height: 42px !important;
    border: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #fff !important;
    color: #202020 !important;
    -webkit-text-fill-color: #202020 !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    line-height: 42px !important;
    text-align: center !important;
    appearance: textfield !important;
    -moz-appearance: textfield !important;
    opacity: 1 !important;
}

.single-product .spalvora-bundle .spalvora-col-qty .spalvora-bundle__qty::-webkit-outer-spin-button,
.single-product .spalvora-bundle .spalvora-col-qty .spalvora-bundle__qty::-webkit-inner-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
}

.spalvora-sku,
.spalvora-stock-note {
    margin-top: 4px;
    font-size: 12px;
    color: #666;
}

.spalvora-unavailable {
    font-size: 12px;
    color: #7f1d1d;
    font-weight: 600;
}

.single-product form.cart.spalvora-bundle-mode > .quantity {
    display: none;
}

.woocommerce div.product .summary form.cart.spalvora-bundle-mode:not(.grouped_form) {
    width: 100% !important;
    max-width: 100% !important;
    display: block !important;
    margin-right: 0 !important;
}

.woocommerce div.product .summary form.cart.spalvora-bundle-mode .spalvora-bundle {
    width: 100%;
    max-width: 100%;
}

@media (min-width: 1100px) {
    .single-product .product.spalvora-has-bundle .product-images-summary {
        display: flex;
        align-items: flex-start;
        gap: 28px;
    }

    .single-product .product.spalvora-has-bundle .product-images-summary > .woocommerce-product-gallery,
    .single-product .product.spalvora-has-bundle .product-images-summary > .images {
        flex: 0 0 40%;
        max-width: 40%;
        width: 40%;
    }

    .single-product .product.spalvora-has-bundle .product-images-summary > .summary {
        flex: 0 0 60%;
        max-width: 60%;
        width: 60%;
    }
}

@media (max-width: 1099px) {
    .single-product .product.spalvora-has-bundle .product-images-summary > .woocommerce-product-gallery,
    .single-product .product.spalvora-has-bundle .product-images-summary > .images,
    .single-product .product.spalvora-has-bundle .product-images-summary > .summary {
        flex: 1 1 100%;
        max-width: 100%;
        width: 100%;
    }
}

@media (max-width: 840px) {
    .spalvora-bundle {
        padding: 14px;
    }

    .spalvora-bundle__table,
    .spalvora-bundle__table thead,
    .spalvora-bundle__table tbody,
    .spalvora-bundle__table tfoot,
    .spalvora-bundle__table tr,
    .spalvora-bundle__table th,
    .spalvora-bundle__table td {
        display: block;
        width: 100%;
    }

    .spalvora-bundle__table thead {
        display: none;
    }

    .spalvora-bundle__table td {
        padding: 8px 0;
        border-bottom: 0;
    }

    .spalvora-bundle__row {
        border-bottom: 1px solid #ececec;
        padding: 10px 0;
    }

    .spalvora-col-check,
    .spalvora-col-thumb,
    .spalvora-col-price,
    .spalvora-col-qty {
        width: 100%;
        text-align: left;
    }

    .spalvora-col-product {
        width: 100%;
    }

    .spalvora-total-label {
        text-align: left;
        margin-top: 8px;
    }
}
