/*
Theme Name: Kadence Child
Theme URI: https://balumez.hu
Description: Kadence gyerektéma a Balu méz webáruházhoz — pénztár- és CRO-testreszabások.
Author: Balu méz
Author URI: https://balumez.hu
Template: kadence
Version: 1.0.0
Text Domain: kadence-child
*/

/* =========================================
   13. KONVERZIÓNÖVELŐ (CRO) STÍLUSOK
   ========================================= */

/* 1. Felesleges mezők elrejtése */
#billing_country_field {
    display: none !important;
}
.balu-company-toggle-row {
    margin-bottom: 20px !important;
}
.balu-company-toggle-row label {
    font-weight: 700 !important;
    color: #4f7a28 !important;
    font-size: 16px !important;
    cursor: pointer;
}
.balu-company-toggle-row input {
    margin-right: 8px !important;
    transform: scale(1.2);
    accent-color: #4f7a28;
}

/* 2. Order Bump Stílusok */
.balu-order-bumps-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 24px 0 16px 0;
}
.balu-order-bump-wrapper {
    background: #fdfbf7;
    border: 2px dashed #4f7a28;
    border-radius: 8px;
    padding: 16px 20px;
    transition: opacity 0.3s;
}
.balu-order-bump-wrapper.bump-coffee {
    background: #fff8eb;
    border: 2px dashed #d97706; /* Kávés narancs/barna szín */
}
.balu-order-bump-label {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 16px;
    color: #2c251e;
    cursor: pointer;
    margin-bottom: 8px;
}
.balu-order-bump-label input {
    margin-right: 12px;
    width: 20px;
    height: 20px;
    accent-color: #4f7a28;
    cursor: pointer;
}
.bump-coffee .balu-order-bump-label input {
    accent-color: #d97706;
}
.bump-title {
    color: #d13030;
}
.bump-coffee .bump-title {
    color: #b45309;
}
.bump-desc {
    font-size: 13.5px;
    color: #666;
    margin: 0;
    padding-left: 32px;
    line-height: 1.4;
}

/* 4. Social Proof a gomb alatt */
.balu-checkout-review {
    text-align: center;
    margin-top: 16px;
    padding: 12px;
    background: #fafaf9;
    border-radius: 8px;
}
.balu-checkout-review .stars {
    color: #fbbf24;
    font-size: 20px;
    margin: 0 0 4px 0;
    letter-spacing: 2px;
}
.balu-checkout-review .review-text {
    font-size: 13px;
    font-style: italic;
    color: #555;
    margin: 0;
    line-height: 1.5;
}

/* 5. Lebegő Kosár Gomb (Mobilon) */
.balu-floating-cart-wrapper {
    position: fixed;
    bottom: -100px;
    left: 0;
    width: 100%;
    background: #ffffff;
    padding: 12px 20px;
    box-shadow: 0 -4px 16px rgba(0,0,0,0.1);
    z-index: 9999;
    transition: bottom 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-sizing: border-box;
    display: flex;
    justify-content: center;
}
.balu-floating-cart-wrapper.visible {
    bottom: 0;
}
.balu-floating-cart-btn {
    background: #80633b !important;
    color: #ffffff !important;
    width: 100%;
    max-width: 400px;
    padding: 16px !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    border-radius: 8px !important;
    border: none !important;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(128, 99, 59, 0.3) !important;
}
@media (min-width: 769px) {
    .balu-floating-cart-wrapper {
        display: none !important;
    }
}

#balu_newsletter_checkbox_wrapper {
    background: #fdfbf7;
    border-left: 4px solid #80633b;
    padding: 12px 16px;
    border-radius: 4px;
    margin: 20px 0 10px 0;
}


/* --- HUNGARIAN PICKUP POINTS (MPL) CRO --- */
tr.vp-woo-pont-review-order th {
    display: none !important;
}
tr.vp-woo-pont-review-order td {
    border-top: none !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}
tr.vp-woo-pont-review-order td::before {
    display: none !important; 
}
#vp-woo-pont-show-map {
    display: block !important;
    background-color: #d26e4b !important;
    color: #ffffff !important;
    padding: 12px 15px !important;
    text-align: center !important;
    border-radius: 8px !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    text-decoration: none !important;
    margin-top: 15px !important;
    box-shadow: 0 4px 10px rgba(210, 110, 75, 0.3) !important;
    border: 2px solid #d26e4b !important;
    transition: all 0.3s ease !important;
    text-transform: uppercase;
}
#vp-woo-pont-show-map:hover {
    background-color: #ffffff !important;
    color: #d26e4b !important;
}
/* When a point is already selected, the plugin adds the details in a span. 
   We want the button to remain clean. */
.vp-woo-pont-selected-point {
    margin-top: 10px;
    font-size: 14px;
}



/* --- UNIFIED SHIPPING LAYOUT FIX --- */
/* Hide the 'Szállítás/Shipment' label cell to reclaim width */
.woocommerce-checkout-review-order-table tr.shipping th {
    display: none !important;
}

/* Let the shipping methods take full width */
.woocommerce-checkout-review-order-table tr.shipping {
    display: block !important;
}
.woocommerce-checkout-review-order-table tr.shipping td {
    display: block !important;
    width: 100% !important;
}

/* Fix radio buttons */
ul#shipping_method {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}
ul#shipping_method li {
    display: flex !important;
    align-items: center !important; /* Vertically center radio with the text */
    flex-wrap: wrap !important;
    margin-bottom: 15px !important;
}
ul#shipping_method li input[type="radio"] {
    margin-right: 12px !important;
    margin-top: 0 !important;
    flex-shrink: 0 !important;
    width: auto !important;
}
ul#shipping_method li label {
    flex: 1 !important;
    display: block !important;
    margin: 0 !important;
    line-height: 1.4 !important;
    text-align: left !important;
}

/* Ensure the pickup box (when selected) gets full width, not squished */
.vp-woo-pont-selected-point, 
.vp-woo-pont-pickup-container {
    width: 100% !important;
    display: block !important;
    box-sizing: border-box !important;
    margin-top: 10px !important;
}

/* The icons next to MPL label */
.vp-woo-pont-shipping-method-label {
    display: inline-block !important;
}
.vp-woo-pont-shipping-method-icons {
    display: inline-block !important;
    margin-left: 8px !important;
}
.vp-woo-pont-shipping-method-icons i {
    display: inline-block !important;
}
