/* ==========================================================================
   Life Nootropics - Dynamic Volume Tiers & Frequently Bought Together CSS
   ========================================================================== */

/* Layout in Single Product Form */
.single-product form.cart {
    display: flex !important;
    flex-wrap: wrap !important;
    width: 100% !important;
    gap: 16px !important;
}

/* Variations Table (for variable products) */
.single-product form.cart .variations,
.single-product form.cart table.variations {
    order: 1 !important;
    width: 100% !important;
}

/* Bulk Volume Pricing Container - ALWAYS appears before Add to Cart */
.single-product form.cart .ln-volume-pricing-container,
.ln-volume-pricing-container {
    width: 100% !important;
    flex: 0 0 100% !important;
    order: 2 !important;
    margin: 14px 0 18px 0 !important;
    padding: 20px;
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 14px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    box-sizing: border-box !important;
}

/* Quantity and Add to Cart Button Container - ALWAYS appears AFTER Bulk Pricing */
.single-product form.cart .tf-product-total-quantity,
.single-product form.cart .single_variation_wrap {
    order: 3 !important;
    width: 100% !important;
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
}

.single-product form.cart .tf-product-total-quantity .group-btn,
.single-product form.cart .single_variation_wrap .group-btn {
    order: 3 !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    width: 100% !important;
    margin-top: 14px !important;
}

.single-product form.cart .quantity,
.single-product form.cart .wg-quantity {
    order: 1 !important;
    margin-bottom: 0 !important;
}

.single-product form.cart .single_add_to_cart_button {
    order: 2 !important;
    flex: 1 1 auto !important;
    min-width: 240px !important;
    margin-bottom: 0 !important;
}

.ln-volume-header {
    margin-bottom: 16px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.ln-volume-header .ln-icon {
    font-size: 20px;
}

.ln-volume-header .ln-title {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: 0.2px;
}

.ln-volume-header .ln-sub {
    font-size: 12px;
    color: #6c757d;
    width: 100%;
    margin-top: 2px;
}

/* Grid of Tier Cards */
.ln-tiers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

@media (max-width: 991px) {
    .ln-tiers-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575px) {
    .ln-tiers-grid {
        grid-template-columns: 1fr;
    }
}

/* Individual Tier Card */
.ln-tier-card {
    position: relative;
    padding: 14px 16px;
    background: #fbfbfc;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.ln-tier-card:hover {
    border-color: #DFB037;
    background: #fffdf7;
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(223, 176, 55, 0.15);
}

.ln-tier-card.active {
    border-color: #DFB037;
    background: #fffdf5;
    box-shadow: 0 4px 16px rgba(223, 176, 55, 0.22);
}

/* Radio Indicator */
.ln-tier-top {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.ln-tier-radio {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid #cbd5e1;
    position: relative;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.ln-tier-card.active .ln-tier-radio {
    border-color: #DFB037;
    background-color: #DFB037;
}

.ln-tier-card.active .ln-tier-radio::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    background: #ffffff;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.ln-tier-name {
    font-size: 13px;
    font-weight: 700;
    color: #212529;
}

/* Badges */
.ln-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    display: inline-block;
}

.ln-badge-popular {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

.ln-badge-hot {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
    font-weight: 800;
}

.ln-badge-best {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
    font-weight: 800;
}

/* Pricing Section */
.ln-tier-pricing {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.ln-tier-total {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.ln-price-val {
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
}

.ln-reg-val {
    font-size: 12px;
    color: #94a3b8;
    text-decoration: line-through;
}

.ln-tier-effective {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.ln-eff-val {
    font-size: 13px;
    font-weight: 700;
    color: #DFB037;
}

.ln-eff-lbl {
    font-size: 11px;
    color: #64748b;
}

/* ==========================================================================
   Frequently Bought Together (Reconstitution Kit)
   ========================================================================== */
.ln-bought-together-wrapper {
    background: #fafaf9;
    border: 1px solid #e7e5e4;
    border-radius: 16px;
    padding: 28px 24px;
    margin: 40px auto !important;
}

.ln-bt-header {
    margin-bottom: 20px;
}

.ln-bt-title {
    font-size: 19px;
    font-weight: 800;
    color: #1c1917;
    margin-bottom: 4px;
}

.ln-bt-icon {
    font-size: 20px;
}

.ln-bt-subtitle {
    font-size: 13px;
    color: #78716c;
    margin-bottom: 0;
}

.ln-bt-box {
    background: #ffffff;
    border: 1px solid #e7e5e4;
}

.ln-bt-images {
    flex-shrink: 0;
}

.ln-bt-img-card {
    text-align: center;
    max-width: 110px;
}

.ln-bt-img-card img {
    width: 90px;
    height: 90px;
    object-fit: contain;
    background: #f5f5f4;
    border: 1px solid #e7e5e4;
    padding: 6px;
}

.ln-bt-img-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: #44403c;
    margin-top: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ln-bt-plus {
    font-size: 22px;
    font-weight: 800;
    color: #a8a29e;
}

.ln-bt-items {
    font-size: 14px;
}

.ln-bt-checkbox-row label {
    cursor: pointer;
}

.ln-bt-checkbox-row input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #DFB037;
    cursor: pointer;
}

.ln-bt-total-wrap {
    font-size: 15px;
}

.ln-bt-total-label {
    font-weight: 600;
    color: #57534e;
}

.ln-bt-total-val {
    font-size: 20px;
    font-weight: 800;
    color: #1c1917;
}

.ln-bt-btn-add {
    background-color: #1c1917 !important;
    border-color: #1c1917 !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    border-radius: 30px !important;
    letter-spacing: 0.3px;
    transition: all 0.25s ease !important;
}

.ln-bt-btn-add:hover {
    background-color: #DFB037 !important;
    border-color: #DFB037 !important;
    color: #1c1917 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(223, 176, 55, 0.3) !important;
}
