/* Customized WooCommerce Bundles */
.cwb-wrapper {
    --cwb-border: #d8d2c2;
    --cwb-text: #111;
    --cwb-muted: #777;
    max-width: 1240px;
    margin: 0 auto;
    padding: 55px 30px 90px;
    color: var(--cwb-text);
    font-family: inherit;
    box-sizing: border-box;
}
.cwb-wrapper *, .cwb-wrapper *:before, .cwb-wrapper *:after { box-sizing: border-box; }

.cwb-header { text-align: center; margin-bottom: 55px; }
.cwb-header h1 {
    margin: 0 0 13px;
    font-size: clamp(28px, 3vw, 46px);
    line-height: 1.1;
    font-weight: 400;
    letter-spacing: .08em;
}
.cwb-header p {
    margin: 0;
    color: var(--cwb-muted);
    font-size: 14px;
    letter-spacing: .03em;
}

.cwb-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(420px, .9fr);
    gap: 85px;
    align-items: start;
}
.cwb-builder { padding-right: 15px; }

.cwb-section-label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .14em;
    margin-bottom: 22px;
}

.cwb-row {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 72px;
    gap: 14px;
    margin-bottom: 24px;
}

.cwb-product-control { position: relative; }

.cwb-search-input {
    width: 100%;
    height: 56px;
    border: 1px solid var(--cwb-border);
    border-radius: 0;
    background: #fff;
    padding: 0 45px 0 18px;
    font-size: 14px;
    outline: none;
    color: #111;
}
.cwb-search-input:focus { border-color: #222; }
.cwb-search-input::placeholder { color: #888; }

.cwb-search-results {
    display: none;
    position: absolute;
    z-index: 9999;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    max-height: 330px;
    overflow-y: auto;
    padding: 6px;
    background: #fff;
    border: 1px solid var(--cwb-border);
    box-shadow: 0 15px 35px rgba(0,0,0,.10);
}

.cwb-result {
    display: flex;
    align-items: center;
    gap: 18px;
    width: 100%;
    min-height: 78px;
    padding: 12px 18px;
    margin-bottom: 6px;
    border: 1px solid var(--cwb-border);
    border-radius: 20px;
    background: #fff;
    text-align: left;
    cursor: pointer;
}
.cwb-result:last-child { margin-bottom: 0; }
.cwb-result:hover { background: #faf9f4; }

.cwb-result img {
    width: 48px;
    height: 58px;
    object-fit: contain;
    flex: 0 0 48px;
}
.cwb-result-name {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    line-height: 1.3;
}
.cwb-result-price {
    display: block;
    font-size: 13px;
    color: #777;
}

.cwb-remove-row {
    width: 72px;
    height: 56px;
    border: 1px solid var(--cwb-border);
    border-radius: 30px;
    background: #fff;
    cursor: pointer;
    font-size: 20px;
    font-weight: 300;
}
.cwb-remove-row:hover { border-color: #222; }

.cwb-variation {
    display: none;
    width: 100%;
    height: 52px;
    margin-top: 10px;
    padding: 0 16px;
    border: 1px solid var(--cwb-border);
    border-radius: 0;
    background: #fff;
    font-size: 13px;
}

.cwb-row.has-product .cwb-variation { display: block; }

.cwb-add-row {
    border: 0;
    background: transparent;
    padding: 15px 0;
    margin-top: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .13em;
    display: inline-flex;
    align-items: center;
    gap: 9px;
}
.cwb-add-row:hover { text-decoration: underline; }
.cwb-plus { font-size: 19px; line-height: 1; font-weight: 300; }

.cwb-summary {
    border-top: 1px solid var(--cwb-border);
    border-bottom: 1px solid var(--cwb-border);
    padding: 30px 0 36px;
    position: sticky;
    top: 30px;
}
.cwb-summary-items { min-height: 70px; }

.cwb-empty {
    color: #999;
    font-size: 13px;
    padding: 20px 0;
}

.cwb-summary-item {
    display: grid;
    grid-template-columns: 70px 1fr 40px;
    gap: 18px;
    align-items: center;
    padding: 18px 0;
    border-bottom: 1px solid #eee;
}
.cwb-summary-item img {
    width: 70px;
    height: 76px;
    object-fit: contain;
    background: #fafafa;
}
.cwb-summary-name { font-size: 13px; line-height: 1.4; }
.cwb-summary-variant {
    display: block;
    color: #888;
    font-size: 11px;
    margin-top: 5px;
}
.cwb-summary-price {
    display: block;
    color: #555;
    font-size: 12px;
    margin-top: 6px;
}
.cwb-summary-remove {
    border: 0;
    background: transparent;
    cursor: pointer;
    font-size: 18px;
    color: #777;
}

.cwb-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 0;
    font-size: 12px;
    letter-spacing: .12em;
}
.cwb-total-value {
    font-size: 18px;
    letter-spacing: 0;
    font-weight: 500;
}

.cwb-submit {
    width: 100%;
    min-height: 56px;
    border: 1px solid #111;
    border-radius: 30px;
    background: #fff;
    color: #111;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .13em;
    transition: .2s ease;
}
.cwb-submit:hover { background: #111; color: #fff; }
.cwb-submit:disabled { opacity: .55; cursor: wait; }

.cwb-message {
    margin-top: 14px;
    font-size: 13px;
    line-height: 1.5;
}
.cwb-message.error { color: #b33; }
.cwb-message.success { color: #3d6d43; }

.cwb-loading {
    padding: 14px;
    color: #777;
    font-size: 12px;
}
.cwb-no-results {
    padding: 14px;
    color: #777;
    font-size: 12px;
}

@media (max-width: 900px) {
    .cwb-layout {
        grid-template-columns: 1fr;
        gap: 45px;
    }
    .cwb-summary {
        position: static;
    }
    .cwb-builder { padding-right: 0; }
}

@media (max-width: 600px) {
    .cwb-wrapper { padding: 45px 18px 65px; }
    .cwb-header { margin-bottom: 38px; }
    .cwb-header h1 { font-size: 27px; }
    .cwb-layout { gap: 35px; }
    .cwb-row { grid-template-columns: 1fr 52px; gap: 10px; }
    .cwb-remove-row { width: 52px; }
}
