/* #last edited 2026-12-02T23:45:00+00:00 */
/**
 * Product Bundles add-to-basket form in the product rail.
 *
 * Bundle products (Candle Gift Set, Bath Bomb Mix & Match) render the plugin's own
 * form instead of .tld-subscription-module, so it arrived unstyled: fixed bundles
 * printed every item's full summary above the button, then plain radios, a bare
 * quantity box and a theme button. These rules match the designed buy box
 * (tld-subscription-module.css) without touching the plugin markup or JS.
 */
.tld-product-page__rail .bundle_form {
    --tld-card-color: #1a4a5e;
    --tld-banner-color: rgba(26, 74, 94, 0.12);
    --tld-border-radius: 12px;
    --tld-off-black: #2a2a2a;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin: 0 0 12px;
}

/* ------------------------------------------------------------
   Fixed-contents bundles (default layout): compact "in the box" rows.
   Items that carry a quantity box or option select are left alone.
   ------------------------------------------------------------ */
.tld-product-page__rail .bundle_form.layout_default .bundled_product:not(.has_qty_input):not(:has(select)) {
    display: grid;
    grid-template-columns: 48px 1fr;
    align-items: center;
    gap: 12px;
    margin: 0;
    padding: 8px 0;
    border-bottom: 1px solid rgba(26, 74, 94, 0.12);
}

/* WooCommerce's .product clearfix ::before would take the first grid cell. */
.tld-product-page__rail .bundle_form.layout_default .bundled_product:not(.has_qty_input):not(:has(select))::before,
.tld-product-page__rail .bundle_form.layout_default .bundled_product:not(.has_qty_input):not(:has(select))::after {
    content: none;
    display: none;
}

.tld-product-page__rail .bundle_form.layout_default .bundled_product:not(.has_qty_input):not(:has(select)):first-child {
    border-top: 1px solid rgba(26, 74, 94, 0.12);
}

.tld-product-page__rail .bundle_form.layout_default .bundled_product:not(.has_qty_input):not(:has(select)) .bundled_product_images {
    grid-column: 1;
    grid-row: 1;
    width: 48px;
    margin: 0;
    float: none;
}

.tld-product-page__rail .bundle_form.layout_default .bundled_product:not(.has_qty_input):not(:has(select)) .bundled_product_images img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 8px;
}

.tld-product-page__rail .bundle_form.layout_default .bundled_product:not(.has_qty_input):not(:has(select)) .details {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
    width: auto;
    margin: 0;
    padding: 0;
    float: none;
}

.tld-product-page__rail .bundle_form.layout_default .bundled_product:not(.has_qty_input):not(:has(select)) .bundled_product_title {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    color: #333;
}

.tld-product-page__rail .bundle_form.layout_default .bundled_product:not(.has_qty_input):not(:has(select)) .bundled_product_title_link a {
    font-size: 12px;
    opacity: 0.6;
}

.tld-product-page__rail .bundle_form.layout_default .bundled_product:not(.has_qty_input):not(:has(select)) .bundled_product_excerpt,
.tld-product-page__rail .bundle_form.layout_default .bundled_product:not(.has_qty_input):not(:has(select)) .cart {
    display: none;
}

/* ------------------------------------------------------------
   One-time / subscribe choice as option cards
   ------------------------------------------------------------ */
.tld-product-page__rail .bundle_form .bundle_data {
    margin-top: 14px;
}

.tld-product-page__rail .bundle_form .wcsatt-options-prompt-radios {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 0 0 12px;
    padding: 0;
    list-style: none;
}

.tld-product-page__rail .bundle_form .wcsatt-options-prompt-radio {
    margin: 0;
}

.tld-product-page__rail .bundle_form .wcsatt-options-prompt-label {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 56px;
    height: 100%;
    padding: 10px 12px;
    border: 2px solid var(--tld-card-color);
    border-radius: var(--tld-border-radius);
    background: var(--tld-banner-color);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    color: #333;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.tld-product-page__rail .bundle_form .wcsatt-options-prompt-label:hover {
    border-color: #ccc;
}

.tld-product-page__rail .bundle_form .wcsatt-options-prompt-label:has(input:checked) {
    border-color: #d9d9d9;
    background: #fff;
}

.tld-product-page__rail .bundle_form .wcsatt-options-prompt-action-input {
    appearance: none;
    -webkit-appearance: none;
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    margin: 0;
    border: 2px solid var(--tld-off-black);
    border-radius: 50%;
    display: grid;
    place-content: center;
    cursor: pointer;
}

.tld-product-page__rail .bundle_form .wcsatt-options-prompt-action-input::after {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--tld-off-black);
    transform: scale(0);
    transition: transform 0.15s ease;
}

.tld-product-page__rail .bundle_form .wcsatt-options-prompt-action-input:checked::after {
    transform: scale(1);
}

.tld-product-page__rail .bundle_form .wcsatt-sub-discount {
    font-weight: 700;
    color: var(--tld-card-color);
}

.tld-product-page__rail .bundle_form .wcsatt-options-product-wrapper {
    margin: 0 0 12px;
}

.tld-product-page__rail .bundle_form .wcsatt-options-product-dropdown-label {
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
    color: #666;
}

.tld-product-page__rail .bundle_form .wcsatt-options-product-dropdown {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    font-size: 14px;
}

/* ------------------------------------------------------------
   Price, quantity and button
   ------------------------------------------------------------ */
.tld-product-page__rail .bundle_form .bundle_price {
    margin: 0 0 10px;
}

.tld-product-page__rail .bundle_form .bundle_price .price {
    font-family: 'Special Elite', cursive;
    font-size: 24px;
    font-weight: 700;
    color: #333;
}

.tld-product-page__rail .bundle_form .bundle_price .price del {
    font-size: 14px;
    color: #999;
}

.tld-product-page__rail .bundle_form .bundle_button {
    display: flex;
    align-items: stretch;
    gap: 10px;
    margin: 0;
}

.tld-product-page__rail .bundle_form .bundle_button .quantity {
    display: flex;
    align-items: stretch;
    flex-shrink: 0;
    margin: 0;
    border: 1px solid #ddd;
    border-radius: var(--tld-border-radius);
    background: #fff;
    overflow: hidden;
}

.tld-product-page__rail .bundle_form .bundle_button .quantity input.qty {
    width: 48px;
    min-height: 48px;
    border: none;
    background: transparent;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    -moz-appearance: textfield;
}

.tld-product-page__rail .bundle_form .bundle_button .quantity input.qty::-webkit-outer-spin-button,
.tld-product-page__rail .bundle_form .bundle_button .quantity input.qty::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* The theme positions the -/+ buttons absolutely; keep them in the row. */
.tld-product-page__rail .bundle_form .bundle_button .quantity .sub,
.tld-product-page__rail .bundle_form .bundle_button .quantity .add,
.tld-product-page__rail .bundle_form .bundle_button .quantity .minus,
.tld-product-page__rail .bundle_form .bundle_button .quantity .plus {
    position: static;
    inset: auto;
    transform: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: auto;
    margin: 0;
    padding: 0;
    border-radius: 0;
    line-height: 1;
    border: none;
    background: #f5f5f5;
    color: #666;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.tld-product-page__rail .bundle_form .bundle_button .single_add_to_cart_button {
    flex: 1;
    min-height: 48px;
    margin: 0;
    padding: 14px 20px;
    border: none;
    border-radius: var(--tld-border-radius);
    background: var(--tld-off-black);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.tld-product-page__rail .bundle_form .bundle_button .single_add_to_cart_button:hover {
    background: #3a3a3a;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    transform: translateY(-1px);
}

.tld-product-page__rail .bundle_form .bundle_button .single_add_to_cart_button.disabled,
.tld-product-page__rail .bundle_form .bundle_button .single_add_to_cart_button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

@media (max-width: 480px) {
    .tld-product-page__rail .bundle_form .wcsatt-options-prompt-radios {
        grid-template-columns: 1fr;
    }
}
