/* WC Bundle Deals - Frontend Styles */

.wcbd-bundles {
    margin: 20px 0;
    font-family: inherit;
}

.wcbd-bundles__title {
    color: var(--wcbd-title-color);
    font-size: var(--wcbd-title-font-size);
    font-weight: bold;
    margin-bottom: 15px;
}

.wcbd-bundles__options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Option bar */
.wcbd-bundles__bar {
    border: 2px solid var(--wcbd-bar-border-color);
    border-radius: var(--wcbd-bar-border-radius);
    background: var(--wcbd-bar-bg-color);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s ease;
}

.wcbd-bundles__bar:hover {
    border-color: var(--wcbd-bar-selected-border-color);
}

.wcbd-bundles__bar--selected {
    border-color: var(--wcbd-bar-selected-border-color);
    background: var(--wcbd-bar-selected-bg-color);
}

.wcbd-bundles__bar-container {
    display: block;
    cursor: pointer;
}

.wcbd-bundles__bar-popular {
    background: var(--wcbd-popular-bg-color);
    color: var(--wcbd-popular-text-color);
    text-align: center;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

.wcbd-bundles__bar-wrapper {
    padding: 15px;
}

.wcbd-bundles__bar-main {
    display: flex;
    align-items: center;
    gap: 12px;
}

.wcbd-bundles__bar-radio {
    width: 22px;
    height: 22px;
    border: 2px solid var(--wcbd-bar-border-color);
    border-radius: 50%;
    flex-shrink: 0;
    position: relative;
    transition: all 0.2s ease;
}

.wcbd-bundles__bar--selected .wcbd-bundles__bar-radio {
    border-color: var(--wcbd-bar-selected-border-color);
}

.wcbd-bundles__bar--selected .wcbd-bundles__bar-radio::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background: var(--wcbd-bar-selected-border-color);
    border-radius: 50%;
}

.wcbd-bundles__bar-content {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.wcbd-bundles__bar-content-left {
    flex: 1;
}

.wcbd-bundles__bar-first-line {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.wcbd-bundles__bar-title {
    color: var(--wcbd-bar-title-color);
    font-size: var(--wcbd-bar-title-font-size);
    font-weight: bold;
}

.wcbd-bundles__bar-label {
    background: var(--wcbd-label-bg-color);
    color: var(--wcbd-label-text-color);
    font-size: var(--wcbd-label-font-size);
    padding: 4px 10px;
    border-radius: var(--wcbd-label-border-radius);
}

.wcbd-bundles__bar-second-line {
    margin-top: 5px;
}

.wcbd-bundles__bar-subtitle {
    color: var(--wcbd-bar-subtitle-color);
    font-size: var(--wcbd-bar-subtitle-font-size);
}

.wcbd-bundles__bar-pricing {
    text-align: right;
    flex-shrink: 0;
}

.wcbd-bundles__bar-price {
    color: var(--wcbd-bar-price-color);
    font-size: 20px;
    font-weight: bold;
}

.wcbd-bundles__bar-full-price {
    color: var(--wcbd-bar-full-price-color);
    font-size: 14px;
    text-decoration: line-through;
}

/* Upsell */
.wcbd-bundles__upsell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    margin-top: 10px;
    background: var(--wcbd-upsell-bg-color);
    border-radius: 8px;
    gap: 10px;
}

.wcbd-bundles__upsell--selected {
    background: var(--wcbd-upsell-selected-bg-color);
}

.wcbd-bundles__upsell__main {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.wcbd-bundles__upsell__checkbox {
    width: 22px;
    height: 22px;
    border: 2px solid currentColor;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--wcbd-upsell-text-color);
    background: transparent;
}

.wcbd-bundles__upsell__checkbox--selected {
    background: var(--wcbd-bar-selected-border-color);
    border-color: var(--wcbd-bar-selected-border-color);
    color: #fff;
}

.wcbd-bundles__upsell__checkbox svg {
    display: none;
}

.wcbd-bundles__upsell__checkbox--selected svg {
    display: block;
}

.wcbd-bundles__upsell__link {
    display: block;
}

.wcbd-bundles__upsell__image {
    width: 30px;
    height: 30px;
    object-fit: cover;
    border-radius: 6px;
}

.wcbd-bundles__upsell__content {
    flex: 1;
}

.wcbd-bundles__upsell__text {
    color: var(--wcbd-upsell-text-color);
    font-size: 13px;
    font-weight: bold;
}

.wcbd-bundles__upsell__pricing {
    display: flex;
    align-items: center;
    gap: 8px;
}

.wcbd-bundles__upsell__price {
    font-weight: bold;
    font-size: 14px;
}

.wcbd-bundles__upsell__full-price {
    font-size: 12px;
    text-decoration: line-through;
    opacity: 0.7;
}

/* Free gift */
.wcbd-bundles__free-gift {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    margin-top: 10px;
    background: var(--wcbd-free-gift-selected-bg-color);
    color: var(--wcbd-free-gift-selected-text-color);
    border-radius: 8px;
    gap: 10px;
}

.wcbd-bundles__free-gift__main {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.wcbd-bundles__free-gift__image {
    width: 30px;
    height: 30px;
    object-fit: cover;
    border-radius: 6px;
}

.wcbd-bundles__free-gift__text {
    font-size: 13px;
    font-weight: bold;
}

.wcbd-bundles__free-gift__full-price {
    font-size: 12px;
    text-decoration: line-through;
    opacity: 0.8;
}

/* Responsive */
@media (max-width: 600px) {
    .wcbd-bundles__bar-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .wcbd-bundles__bar-pricing {
        text-align: left;
        margin-top: 10px;
    }

    .wcbd-bundles__bar-title {
        font-size: 16px;
    }

    .wcbd-bundles__bar-price {
        font-size: 18px;
    }
}