/*
 Theme Name:   Woodmart Child
 Description:  Woodmart Child Theme
 Author:       XTemos
 Author URI:   http://xtemos.com
 Template:     woodmart
 Version:      1.0.0
 Text Domain:  woodmart
*/
/* ============================================================
   СКРИВАНЕ НА НЕЖЕЛАНИ ЕЛЕМЕНТИ
   ============================================================ */

/* ============================================================
   SECTION DIVIDERS
   ============================================================ */
.woo-bg-section-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 24px 0 14px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #555;
}

.woo-bg-section-divider::before,
.woo-bg-section-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #ddd;
}

/* ============================================================
   SHIPPING TABLE
   ============================================================ */
.woo-bg-shipping-left-table {
    width: 100%;
    border: none;
    border-collapse: collapse;
}

.woo-bg-shipping-left-table thead,
.woo-bg-shipping-left-table th {
    display: none !important;
}

.woo-bg-shipping-left-table > tbody > tr > td {
    padding: 0;
    border: none;
    display: block;
}

.woo-bg-shipping-left-table td::before,
.woo-bg-shipping-left-table td::after {
    display: none !important;
    content: '' !important;
}

/* ============================================================
   SHIPPING METHODS — Flex layout
   (display:grid се override-ва от WoodMart, ползваме flex)
   ============================================================ */
ul#shipping_method {
    list-style: none;
    padding: 0;
    margin: 0;
}

ul#shipping_method li {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center;
    column-gap: 10px;
    row-gap: 4px;
    margin-bottom: 6px;
    border: 1px solid #e0e0e0 !important;
    border-radius: 6px;
    background: #fafafa !important;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}

/* Padding с висока специфичност за да бие WoodMart */
form.woocommerce-checkout #woo-bg-checkout-shipping-wrap ul#shipping_method li {
    padding: 10px 14px !important;
}

ul#shipping_method li:has(input:checked) {
    border-color: #4caf50 !important;
    background: #f5fdf5 !important;
}

/* Радио бутон — фиксирана ширина, вляво */
ul#shipping_method li input[type="radio"].shipping_method {
    -webkit-appearance: none !important;
    appearance: none !important;
    position: static !important;
    float: none !important;
    top: auto !important;
    margin: 0 !important;
    margin-inline-start: 0 !important;
    margin-inline-end: 0 !important;
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    border: 2px solid #bbb;
    border-radius: 50%;
    cursor: pointer;
    background: #fff;
    transition: border-color 0.15s, box-shadow 0.15s;
}

ul#shipping_method li input[type="radio"].shipping_method:checked {
    border-color: #4caf50;
    background: #4caf50;
    box-shadow: inset 0 0 0 4px #fff;
}

/* Лейбъл — запълва останалото на същия ред */
ul#shipping_method li label {
    flex: 1 1 auto !important;
    font-weight: 600 !important;
    font-size: 1rem;
    cursor: pointer;
    margin: 0 !important;
    line-height: 2.2;
}
/* Vue компонент, BoxNow warning и всеки друг div — цял ред отдолу */
ul#shipping_method li > div {
    flex: 0 0 100%;
}

input.woo-bg-multiselect--additional-field.input-text {
    margin: 10px 0;
}

/* ============================================================
   PAYMENT METHODS — Grid layout
   ============================================================ */
ul.wc_payment_methods {
    list-style: none;
    padding: 0;
    margin: 0;
}

ul.wc_payment_methods .wc_payment_method {
    display: grid;
    grid-template-columns: 22px 1fr;
    align-items: start;
    column-gap: 10px;
    row-gap: 4px;
    padding: 10px 14px;
    margin-bottom: 6px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background: #fafafa;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}

ul.wc_payment_methods .wc_payment_method:has(input:checked) {
    border-color: #4caf50;
    background: #f5fdf5;
}

ul.wc_payment_methods .wc_payment_method input[type="radio"] {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    min-width: 18px;
    border: 2px solid #bbb;
    border-radius: 50%;
    margin: 2px 0 0;
    cursor: pointer;
    background: #fff;
    transition: border-color 0.15s, box-shadow 0.15s;
    grid-column: 1;
    grid-row: 1;
}

ul.wc_payment_methods .wc_payment_method input[type="radio"]:checked {
    border-color: #4caf50;
    background: #4caf50;
    box-shadow: inset 0 0 0 4px #fff;
}

ul.wc_payment_methods .wc_payment_method label {
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    margin: 0;
    align-self: center;
    grid-column: 2;
    grid-row: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1.2;
}

ul.wc_payment_methods .wc_payment_method .payment_box {
    grid-column: 1 / -1;
    padding: 8px 0 4px;
    font-size: 0.88rem;
    color: #555;
}

/* ============================================================
   BOXNOW ПРЕДУПРЕЖДЕНИЕ
   ============================================================ */
.woo-bg-boxnow-warning {
    display: none;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 14px;
    background: #fff3e0;
    border: 1px solid #ffb74d;
    border-radius: 6px;
    color: #bf5000;
    font-size: 0.88rem;
    line-height: 1.45;
    margin-top: 6px;
}

.woo-bg-boxnow-warning__icon {
    font-size: 1rem;
    flex-shrink: 0;
    line-height: 1.45;
}

input.shipping_method[value*="woo_bg_boxnow"]:checked ~ .woo-bg-boxnow-warning {
    display: flex;
}

/* ============================================================
   ДЯСНА КОЛОНА — Бележки + Submit
   ============================================================ */
#woo-bg-checkout-right-actions {
    margin-top: 20px;
}

.woo-bg-order-notes {
    margin-bottom: 16px;
}

.woo-bg-order-notes h3 {
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #555;
    margin-bottom: 10px;
}

.woo-bg-order-notes textarea#order_comments {
    width: 100%;
    resize: vertical;
}

.woo-bg-checkout-submit {
    margin-top: 16px;
}

#place_order.button {
    width: 100%;
    display: block;
    padding: 14px 24px;
    font-size: 1rem;
    font-weight: 600;
}
@media screen and (max-width: 480px) {
	ul#shipping_method li label {
    flex: 1 1 auto !important;
    font-weight: 600 !important;
    font-size: 12px;
    cursor: pointer;
    margin: 0 !important;
    line-height: 2.8;
}
	form.woocommerce-checkout #woo-bg-checkout-shipping-wrap ul#shipping_method li {
    padding: 5px !important;
}
}