/* 
Theme Name:		 Sayara Child
Theme URI:		 http://themebing.com/
Description:	 Sayara Child is a child theme of Sayara, created by themebing.com
Author:			 ThemeBing
Author URI:		 http://themebing.com/
Template:		 sayara
Version:		 1.0.0
Text Domain:	 sayara-child
*/


/*
    Add your custom styles here
*/

#ae-live-search-results {
    position: absolute;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
    z-index: 9999;
    width: 400px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.ae-search-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
}
.ae-search-item:hover { background: #f7f7f7; }
.ae-search-item img { border-radius: 4px; object-fit: cover; flex-shrink: 0; }
.ae-search-info { display: flex; flex-direction: column; }
.ae-search-name { font-weight: 600; font-size: 14px; }
.ae-search-sku { font-size: 12px; color: #888; }
.ae-search-price { font-size: 13px; color: #7b2cbf; font-weight: 600; }
ul.ajax-search-results {
    display: none !important;
}


.select2-container--default .select2-selection--single {
    height: auto !important;
    min-height: 36px !important;
    display: flex !important;
    align-items: center !important;
    overflow: visible !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    padding-right: 20px !important;
    line-height: normal !important;
}


/* =============================================
   КОЛИЧКА - Buttons & Cart Totals
   ============================================= */

/* Основен layout — двете колони на един ред */
.woocommerce-cart .woocommerce {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 30px !important;
    align-items: flex-start !important;
}

.woocommerce-cart .woocommerce-cart-form {
    flex: 0 0 60% !important;
    max-width: 60% !important;
    min-width: 0 !important;
}

.woocommerce-cart .cart-collaterals {
    flex: 0 0 38% !important;
    max-width: 38% !important;
    min-width: 0 !important;
    width: auto !important;
    float: none !important;
    display: block !important;
    overflow: visible !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    position: static !important;
}

.woocommerce-cart .cart_totals {
    width: 100% !important;
    float: none !important;
    padding: 24px !important;
    box-sizing: border-box !important;
    display: block !important;
}

.woocommerce-cart .cart_totals h2 {
    font-size: 1.3em !important;
    white-space: normal !important;
    word-break: normal !important;
    margin-bottom: 15px !important;
}

.woocommerce-cart .cart_totals table {
    width: 100% !important;
}

.woocommerce-cart .cart_totals table th {
    padding: 10px 8px !important;
    white-space: nowrap;
}

.woocommerce-cart .cart_totals table td {
    padding: 10px 8px !important;
    word-break: normal !important;
    white-space: normal !important;
    overflow: visible !important;
}

/* Двата бутона на един ред */
.woocommerce table.cart td.actions {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 16px 0 !important;
}

.woocommerce table.cart td.actions .coupon {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex: 0 0 auto !important;
}

.woocommerce table.cart td.actions .coupon input#coupon_code {
    width: 160px !important;
    flex-shrink: 0 !important;
}

.woocommerce table.cart td.actions button[name="update_cart"] {
    flex: 0 0 auto !important;
    margin: 0 !important;
}

/* Бутон Приключване */
.woocommerce .wc-proceed-to-checkout .checkout-button {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    box-sizing: border-box !important;
    padding: 14px !important;
}

/* Изравняване на таблицата с продуктите вляво */
.woocommerce table.cart .product-remove {
    width: 30px !important;
    padding: 10px 5px !important;
}

.woocommerce table.cart .product-thumbnail {
    width: 60px !important;
    padding: 10px 5px !important;
}

.woocommerce table.cart .product-thumbnail img {
    width: 50px !important;
    height: 50px !important;
}

.woocommerce table.cart .product-name {
    padding: 10px 8px !important;
}

.woocommerce table.cart .product-price,
.woocommerce table.cart .product-quantity,
.woocommerce table.cart .product-subtotal {
    padding: 10px 8px !important;
    white-space: nowrap;
}
