/**
 * WooTools Product Bundles — "This bundle includes" box and
 * "Also available in a bundle" links. Inherits the theme's fonts and text
 * colors; only the accent comes from settings. RTL-safe (logical properties).
 */

.wt-bundle,
.wt-bundle-links {
    --wt-bd-accent: #6366f1;
    margin: 1.25em 0;
    padding: 1em 1.1em;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    background: color-mix(in srgb, var(--wt-bd-accent) 4%, transparent);
    box-sizing: border-box;
    clear: both;
}

.wt-bundle__title {
    margin: 0 0 0.75em;
    font-weight: 700;
    font-size: 1em;
    line-height: 1.3;
}

.wt-bundle__items {
    list-style: none;
    margin: 0;
    padding: 0;
}

.wt-bundle__item {
    display: flex;
    align-items: center;
    gap: 0.75em;
    margin: 0;
    padding: 0.55em 0;
    border-top: 1px solid rgba(0, 0, 0, 0.07);
}

.wt-bundle__item:first-child {
    border-top: 0;
    padding-top: 0;
}

.wt-bundle__thumb {
    flex: 0 0 56px;
    width: 56px;
    height: 56px;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
    display: block;
}

.wt-bundle__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    margin: 0;
}

.wt-bundle__info {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25em 0.5em;
}

.wt-bundle__name {
    font-weight: 600;
    text-decoration: none;
    overflow-wrap: anywhere;
}

a.wt-bundle__name:hover,
a.wt-bundle__name:focus {
    color: var(--wt-bd-accent);
    text-decoration: underline;
}

.wt-bundle__qty {
    font-size: 0.9em;
    opacity: 0.75;
}

.wt-bundle__stock {
    font-size: 0.78em;
    font-weight: 600;
    color: #b32d2e;
    background: rgba(179, 45, 46, 0.08);
    padding: 0.1em 0.5em;
    border-radius: 999px;
}

.wt-bundle__item.is-unavailable .wt-bundle__thumb,
.wt-bundle__item.is-unavailable .wt-bundle__name {
    opacity: 0.55;
}

.wt-bundle__price {
    flex: 0 0 auto;
    white-space: nowrap;
    font-size: 0.95em;
}

.wt-bundle__price--below {
    flex-basis: 100%;
    white-space: normal;
}

.wt-bundle__price del {
    opacity: 0.6;
    margin-inline-end: 0.3em;
}

.wt-bundle__badge {
    flex-shrink: 0;
    white-space: nowrap;
    font-size: 0.78em;
    font-weight: 700;
    color: #fff;
    background: var(--wt-bd-accent);
    padding: 0.15em 0.55em;
    border-radius: 999px;
}

.wt-bundle__summary {
    margin-top: 0.75em;
    padding-top: 0.75em;
    border-top: 1px dashed rgba(0, 0, 0, 0.15);
}

.wt-bundle__row {
    display: flex;
    justify-content: space-between;
    gap: 1em;
    line-height: 1.6;
}

.wt-bundle__row del {
    opacity: 0.6;
}

.wt-bundle__row--price strong {
    font-size: 1.1em;
}

.wt-bundle__save {
    margin-top: 0.6em;
    display: inline-block;
    font-weight: 700;
    color: var(--wt-bd-accent);
    background: color-mix(in srgb, var(--wt-bd-accent) 12%, transparent);
    padding: 0.3em 0.8em;
    border-radius: 999px;
}

@media (max-width: 480px) {
    .wt-bundle,
    .wt-bundle-links {
        padding: 0.85em;
    }

    .wt-bundle__thumb {
        flex-basis: 48px;
        width: 48px;
        height: 48px;
    }
}
