/**
 * =============================================================================
 * CHECKOUT TABLE DECONSTRUCTION v4.0 - ULTRA AGGRESSIVE
 * =============================================================================
 */

/* =============================================================================
   NUCLEAR RESET - Destroy ALL table behavior with maximum specificity
   ============================================================================= */

html body .woocommerce table.woocommerce-checkout-review-order-table,
html body .woocommerce .woocommerce-checkout-review-order-table,
html body table.woocommerce-checkout-review-order-table,
.woocommerce-checkout-review-order-table {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    border: none !important;
    border-collapse: collapse !important;
    table-layout: fixed !important;
    background: #fff !important;
}

html body .woocommerce-checkout-review-order-table thead,
html body .woocommerce-checkout-review-order-table tbody,
html body .woocommerce-checkout-review-order-table tfoot,
.woocommerce-checkout-review-order-table tfoot {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
}
    width: 100% !important;
}

html body .woocommerce-checkout-review-order-table tr,
.woocommerce-checkout-review-order-table tr {
    display: block !important;
    width: 100% !important;
}

html body .woocommerce-checkout-review-order-table th,
html body .woocommerce-checkout-review-order-table td,
.woocommerce-checkout-review-order-table th,
.woocommerce-checkout-review-order-table td {
    display: block !important;
    width: 100% !important;
    border: none !important;
    padding: 0 !important;
    background: transparent !important;
}

/* =============================================================================
   HEADER - Full width dark navy bar
   ============================================================================= */

html body .woocommerce-checkout-review-order-table thead,
.woocommerce-checkout-review-order-table thead {
    background: #1a2a4a !important;
    padding: 0 !important;
    margin: 0 !important;
}

html body .woocommerce-checkout-review-order-table thead tr,
.woocommerce-checkout-review-order-table thead tr {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    padding: 14px 20px !important;
    background: #1a2a4a !important;
    box-sizing: border-box !important;
}

html body .woocommerce-checkout-review-order-table thead tr th,
.woocommerce-checkout-review-order-table thead tr th {
    display: inline-block !important;
    width: auto !important;
    flex: 0 0 auto !important;
    background: transparent !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
}

/* =============================================================================
   PRODUCT ROWS - Flex layout, name left, price right
   ============================================================================= */

html body .woocommerce-checkout-review-order-table tbody tr,
html body .woocommerce-checkout-review-order-table tbody tr.cart_item,
.woocommerce-checkout-review-order-table tbody tr,
.woocommerce-checkout-review-order-table tbody tr.cart_item {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    width: 100% !important;
    padding: 16px 20px !important;
    border-bottom: 1px solid #e5e7eb !important;
    background: #fff !important;
    box-sizing: border-box !important;
}

html body .woocommerce-checkout-review-order-table tbody tr td,
html body .woocommerce-checkout-review-order-table tbody tr.cart_item td,
.woocommerce-checkout-review-order-table tbody tr td,
.woocommerce-checkout-review-order-table tbody tr.cart_item td {
    display: inline-block !important;
    width: auto !important;
    padding: 0 !important;
    background: transparent !important;
}

html body .woocommerce-checkout-review-order-table tbody tr td.product-name,
.woocommerce-checkout-review-order-table tbody tr td.product-name {
    flex: 1 1 0% !important;
    padding-right: 15px !important;
    text-align: left !important;
    color: #1a2a4a !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
}

html body .woocommerce-checkout-review-order-table tbody tr td.product-total,
.woocommerce-checkout-review-order-table tbody tr td.product-total {
    flex: 0 0 auto !important;
    text-align: right !important;
    color: #1a2a4a !important;
    font-weight: 600 !important;
    font-size: 15px !important;
    white-space: nowrap !important;
}

/* =============================================================================
   TFOOT - Container for totals
   ============================================================================= */

html body .woocommerce-checkout-review-order-table tfoot,
.woocommerce-checkout-review-order-table tfoot {
    border-top: 2px solid #e5e7eb !important;
    background: #fff !important;
    display: block !important;
    width: 100% !important;
}
/* TFOOT rows full width - fix */
html body .woocommerce-checkout-review-order-table tfoot tr,
.woocommerce-checkout-review-order-table tfoot tr {
    display: flex !important;
    flex-direction: row !important;
    width: 100% !important;
    box-sizing: border-box !important;
}
html body .woocommerce-checkout-review-order-table tfoot th,
html body .woocommerce-checkout-review-order-table tfoot td,
.woocommerce-checkout-review-order-table tfoot th,
.woocommerce-checkout-review-order-table tfoot td {
    flex: 1 1 0% !important;
    width: auto !important;
    box-sizing: border-box !important;
}
}
/* TFOOT rows full width */
html body .woocommerce-checkout-review-order-table tfoot tr,
.woocommerce-checkout-review-order-table tfoot tr {
    display: flex !important;
    flex-direction: row !important;
    width: 100% !important;
    box-sizing: border-box !important;
}
html body .woocommerce-checkout-review-order-table tfoot th,
html body .woocommerce-checkout-review-order-table tfoot td,
.woocommerce-checkout-review-order-table tfoot th,
.woocommerce-checkout-review-order-table tfoot td {
    flex: 1 1 0% !important;
    width: auto !important;
    box-sizing: border-box !important;
}
}

/* =============================================================================
   SUBTOTAL ROW (Kwota) - FLEX: label left, amount right, FULL WIDTH
   ============================================================================= */

html body .woocommerce-checkout-review-order-table tfoot tr.cart-subtotal,
.woocommerce-checkout-review-order-table tfoot tr.cart-subtotal {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    padding: 15px 20px !important;
    border-top: 1px solid #e5e5e5 !important;
    border-bottom: none !important;
    background-color: transparent !important;
    box-sizing: border-box !important;
}

html body .woocommerce-checkout-review-order-table tfoot tr.cart-subtotal th,
html body .woocommerce-checkout-review-order-table tfoot tr.cart-subtotal td,
.woocommerce-checkout-review-order-table tfoot tr.cart-subtotal th,
.woocommerce-checkout-review-order-table tfoot tr.cart-subtotal td {
    display: inline-block !important;
    width: auto !important;
    flex: 0 0 auto !important;
    padding: 0 !important;
    background: transparent !important;
}

html body .woocommerce-checkout-review-order-table tfoot tr.cart-subtotal th,
.woocommerce-checkout-review-order-table tfoot tr.cart-subtotal th {
    font-weight: 500 !important;
    color: #374151 !important;
    font-size: 14px !important;
}

html body .woocommerce-checkout-review-order-table tfoot tr.cart-subtotal td,
.woocommerce-checkout-review-order-table tfoot tr.cart-subtotal td {
    font-weight: 600 !important;
    color: #1a2a4a !important;
    font-size: 15px !important;
}

/* =============================================================================
   SHIPPING ROW (Wysylka) - FLEX COLUMN layout, full width options
   ============================================================================= */

html body .woocommerce-checkout-review-order-table tfoot tr.woocommerce-shipping-totals,
html body .woocommerce-checkout-review-order-table tfoot tr.shipping,
.woocommerce-checkout-review-order-table tfoot tr.woocommerce-shipping-totals,
.woocommerce-checkout-review-order-table tfoot tr.shipping {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    padding: 15px 20px !important;
    border-top: 1px solid #e5e5e5 !important;
    border-bottom: none !important;
    background-color: transparent !important;
    box-sizing: border-box !important;
}

html body .woocommerce-checkout-review-order-table tfoot tr.woocommerce-shipping-totals th,
html body .woocommerce-checkout-review-order-table tfoot tr.woocommerce-shipping-totals td,
html body .woocommerce-checkout-review-order-table tfoot tr.shipping th,
html body .woocommerce-checkout-review-order-table tfoot tr.shipping td,
.woocommerce-checkout-review-order-table tfoot tr.woocommerce-shipping-totals th,
.woocommerce-checkout-review-order-table tfoot tr.woocommerce-shipping-totals td,
.woocommerce-checkout-review-order-table tfoot tr.shipping th,
.woocommerce-checkout-review-order-table tfoot tr.shipping td {
    display: block !important;
    width: 100% !important;
    padding: 0 !important;
    background: transparent !important;
    box-sizing: border-box !important;
}

html body .woocommerce-checkout-review-order-table tfoot tr.woocommerce-shipping-totals th,
html body .woocommerce-checkout-review-order-table tfoot tr.shipping th,
.woocommerce-checkout-review-order-table tfoot tr.woocommerce-shipping-totals th,
.woocommerce-checkout-review-order-table tfoot tr.shipping th {
    font-weight: 600 !important;
    color: #1a2a4a !important;
    font-size: 14px !important;
    margin-bottom: 12px !important;
}

html body .woocommerce-checkout-review-order-table tfoot tr.woocommerce-shipping-totals td,
html body .woocommerce-checkout-review-order-table tfoot tr.shipping td,
.woocommerce-checkout-review-order-table tfoot tr.woocommerce-shipping-totals td,
.woocommerce-checkout-review-order-table tfoot tr.shipping td {
    width: 100% !important;
}

/* Shipping methods list */
html body .woocommerce-checkout-review-order-table ul#shipping_method,
html body #shipping_method,
.woocommerce-checkout-review-order-table ul#shipping_method,
ul#shipping_method {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

html body .woocommerce-checkout-review-order-table ul#shipping_method li,
html body #shipping_method li,
.woocommerce-checkout-review-order-table ul#shipping_method li,
ul#shipping_method li {
    display: block !important;
    width: 100% !important;
    padding: 14px 16px !important;
    margin-bottom: 10px !important;
    background: #f5f7fa !important;
    border: 1px solid #e0e5eb !important;
    border-radius: 8px !important;
    box-sizing: border-box !important;
}

html body .woocommerce-checkout-review-order-table ul#shipping_method li:last-child,
ul#shipping_method li:last-child {
    margin-bottom: 0 !important;
}

/* =============================================================================
   ORDER TOTAL ROW (Lacznie) - FLEX: label left, amount right, FULL WIDTH
   THIS IS THE CRITICAL FIX - Wyr�niony wiersz sumy
   ============================================================================= */

html body .woocommerce-checkout-review-order-table tfoot tr.order-total,
.woocommerce-checkout-review-order-table tfoot tr.order-total {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    padding: 15px 20px !important;
    margin-top: 0 !important;
    background-color: #fcfcfc !important;
    border-top: 2px solid #dcdcdc !important;
    border-bottom: none !important;
    box-sizing: border-box !important;
}

html body .woocommerce-checkout-review-order-table tfoot tr.order-total th,
.woocommerce-checkout-review-order-table tfoot tr.order-total th {
    display: block !important;
    width: auto !important;
    flex: 0 0 auto !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    border: none !important;
    text-align: left !important;
    font-size: 1.1em !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    color: #1a2a4a !important;
    letter-spacing: 0.5px !important;
}

html body .woocommerce-checkout-review-order-table tfoot tr.order-total td,
.woocommerce-checkout-review-order-table tfoot tr.order-total td {
    display: block !important;
    width: auto !important;
    flex: 0 0 auto !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    border: none !important;
    text-align: right !important;
    font-size: 1.3em !important;
    font-weight: 700 !important;
    color: #1a2a4a !important;
}
    font-weight: 700 !important;
    color: #1a2a4a !important;
}

html body .woocommerce-checkout-review-order-table tfoot tr.order-total td .woocommerce-Price-amount,
.woocommerce-checkout-review-order-table tfoot tr.order-total td .woocommerce-Price-amount {
    font-size: 24px !important;
    font-weight: 700 !important;
    color: #1a2a4a !important;
}

/* =============================================================================
   FEE, TAX, DISCOUNT ROWS
   ============================================================================= */

html body .woocommerce-checkout-review-order-table tfoot tr.fee,
html body .woocommerce-checkout-review-order-table tfoot tr.tax-rate,
html body .woocommerce-checkout-review-order-table tfoot tr.tax-total,
html body .woocommerce-checkout-review-order-table tfoot tr.cart-discount,
.woocommerce-checkout-review-order-table tfoot tr.fee,
.woocommerce-checkout-review-order-table tfoot tr.tax-rate,
.woocommerce-checkout-review-order-table tfoot tr.tax-total,
.woocommerce-checkout-review-order-table tfoot tr.cart-discount {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    padding: 14px 20px !important;
    border-bottom: 1px solid #e5e7eb !important;
    background: #fff !important;
    box-sizing: border-box !important;
}

html body .woocommerce-checkout-review-order-table tfoot tr.fee th,
html body .woocommerce-checkout-review-order-table tfoot tr.fee td,
html body .woocommerce-checkout-review-order-table tfoot tr.tax-rate th,
html body .woocommerce-checkout-review-order-table tfoot tr.tax-rate td,
html body .woocommerce-checkout-review-order-table tfoot tr.tax-total th,
html body .woocommerce-checkout-review-order-table tfoot tr.tax-total td,
html body .woocommerce-checkout-review-order-table tfoot tr.cart-discount th,
html body .woocommerce-checkout-review-order-table tfoot tr.cart-discount td,
.woocommerce-checkout-review-order-table tfoot tr.fee th,
.woocommerce-checkout-review-order-table tfoot tr.fee td,
.woocommerce-checkout-review-order-table tfoot tr.tax-rate th,
.woocommerce-checkout-review-order-table tfoot tr.tax-rate td,
.woocommerce-checkout-review-order-table tfoot tr.tax-total th,
.woocommerce-checkout-review-order-table tfoot tr.tax-total td,
.woocommerce-checkout-review-order-table tfoot tr.cart-discount th,
.woocommerce-checkout-review-order-table tfoot tr.cart-discount td {
    display: inline-block !important;
    width: auto !important;
    flex: 0 0 auto !important;
    padding: 0 !important;
    background: transparent !important;
}

/* =============================================================================
   RESPONSIVE
   ============================================================================= */

@media (max-width: 768px) {
    html body .woocommerce-checkout-review-order-table thead tr,
    html body .woocommerce-checkout-review-order-table tbody tr,
    html body .woocommerce-checkout-review-order-table tfoot tr.cart-subtotal,
    html body .woocommerce-checkout-review-order-table tfoot tr.order-total {
        padding: 14px 16px !important;
    }
    
    html body .woocommerce-checkout-review-order-table tfoot tr.order-total td,
    html body .woocommerce-checkout-review-order-table tfoot tr.order-total td .woocommerce-Price-amount {
        font-size: 20px !important;
    }
}

/* =============================================================================
   INPUT RESURRECTION v4.0 - SCORCHED EARTH PROTOCOL
   Kill pseudo-elements on ALL LEVELS: li, input, label
   ============================================================================= */

/* =============================================================================
   SCORCHED EARTH - KILL ALL PSEUDO-ELEMENTS AT EVERY LEVEL
   Target: li.wc_payment_method, input, AND label
   ============================================================================= */

/* LEVEL 1: LIST ITEM (li) - THE PRIMARY CULPRIT */
.woocommerce-checkout ul.payment_methods li::before,
.woocommerce-checkout ul.payment_methods li::after,
.woocommerce-checkout .payment_methods li::before,
.woocommerce-checkout .payment_methods li::after,
.woocommerce-checkout li.wc_payment_method::before,
.woocommerce-checkout li.wc_payment_method::after,
#payment ul.payment_methods li::before,
#payment ul.payment_methods li::after,
#payment .wc_payment_methods li::before,
#payment .wc_payment_methods li::after,
#payment li.wc_payment_method::before,
#payment li.wc_payment_method::after,
ul.wc_payment_methods li::before,
ul.wc_payment_methods li::after,
ul.payment_methods li::before,
ul.payment_methods li::after,
li.wc_payment_method::before,
li.wc_payment_method::after,
.wc_payment_method::before,
.wc_payment_method::after {
    content: none !important;
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    background: none !important;
    background-color: transparent !important;
    background-image: none !important;
    border: none !important;
    box-shadow: none !important;
    width: 0 !important;
    height: 0 !important;
    position: absolute !important;
    left: -99999px !important;
    pointer-events: none !important;
}

/* LEVEL 2: INPUT ELEMENT ITSELF */
.woocommerce-checkout input[type="radio"]::before,
.woocommerce-checkout input[type="radio"]::after,
.woocommerce-checkout input[type="checkbox"]::before,
.woocommerce-checkout input[type="checkbox"]::after,
.woocommerce-checkout .wc_payment_method input::before,
.woocommerce-checkout .wc_payment_method input::after,
#payment input[type="radio"]::before,
#payment input[type="radio"]::after,
#payment input[type="checkbox"]::before,
#payment input[type="checkbox"]::after,
#shipping_method input[type="radio"]::before,
#shipping_method input[type="radio"]::after,
.wc_payment_method input::before,
.wc_payment_method input::after,
input.input-radio::before,
input.input-radio::after {
    content: none !important;
    display: none !important;
    visibility: hidden !important;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    width: 0 !important;
    height: 0 !important;
}

/* LEVEL 3: LABEL ELEMENT */
.woocommerce-checkout .wc_payment_method label::before,
.woocommerce-checkout .wc_payment_method label::after,
.woocommerce-checkout .payment_methods label::before,
.woocommerce-checkout .payment_methods label::after,
#payment .wc_payment_method label::before,
#payment .wc_payment_method label::after,
#payment ul.payment_methods label::before,
#payment ul.payment_methods label::after,
#shipping_method li label::before,
#shipping_method li label::after,
.wc_payment_method label::before,
.wc_payment_method label::after,
label[for^="payment_method"]::before,
label[for^="payment_method"]::after,
label[for^="shipping_method"]::before,
label[for^="shipping_method"]::after {
    content: none !important;
    display: none !important;
    visibility: hidden !important;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    width: 0 !important;
    height: 0 !important;
    position: absolute !important;
    left: -99999px !important;
}

/* MAXIMUM SPECIFICITY KILL */
html body .woocommerce #payment ul.payment_methods li.wc_payment_method::before,
html body .woocommerce #payment ul.payment_methods li.wc_payment_method::after,
html body .woocommerce-page #payment ul.payment_methods li::before,
html body .woocommerce-page #payment ul.payment_methods li::after,
html body.woocommerce-checkout #payment li.wc_payment_method::before,
html body.woocommerce-checkout #payment li.wc_payment_method::after {
    content: none !important;
    display: none !important;
    background: none !important;
    border: none !important;
    width: 0 !important;
    height: 0 !important;
}

/* =============================================================================
   THE REBUILD - Style the naked INPUT element directly
   MAXIMUM SPECIFICITY dla WSZYSTKICH input�w w��cznie z payment gateways
   ============================================================================= */
html body .woocommerce .woocommerce-checkout input[type="radio"],
html body .woocommerce .woocommerce-checkout input[type="checkbox"],
html body .woocommerce-checkout input[type="radio"],
html body .woocommerce-checkout input[type="checkbox"],
html body .woocommerce form input[type="radio"],
html body .woocommerce form input[type="checkbox"],
html body #payment input[type="radio"],
html body #payment input[type="checkbox"],
html body #shipping_method input[type="radio"],
html body .wc_payment_method input[type="radio"],
html body .woocommerce-checkout-review-order input[type="radio"],
html body .woocommerce-checkout-review-order input[type="checkbox"],
html body #payment ul.payment_methods input[type="radio"],
html body #payment .wc_payment_methods input[type="radio"],
html body #payment li.wc_payment_method input[type="radio"],
html body .payment_methods li input[type="radio"],
html body .wc_payment_methods li input[type="radio"],
html body #payment [class*="payment_method"] input[type="radio"],
.woocommerce-checkout input[type="radio"],
.woocommerce-checkout input[type="checkbox"],
#payment input[type="radio"],
#payment input[type="checkbox"],
#shipping_method input[type="radio"],
.wc_payment_method input[type="radio"],
input.shipping_method[type="radio"],
.payment_methods input[type="radio"],
.wc_payment_methods input[type="radio"],
ul.payment_methods li input[type="radio"],
ul.wc_payment_methods li input[type="radio"] {
    /* KILL SYSTEM STYLES */
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    -ms-appearance: none !important;
    -o-appearance: none !important;
    appearance: none !important;
    
    /* WYMIARY - zmniejszone do 16x16 */
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    min-height: 20px !important;
    max-width: 20px !important;
    max-height: 20px !important;
    
    /* WYGL�D BAZOWY */
    background-color: #ffffff !important;
    background-image: none !important;
    background: #ffffff !important;
    border: 2px solid #cccccc !important;
    box-shadow: none !important;
    
    /* POZYCJONOWANIE */
    display: inline-block !important;
    vertical-align: middle !important;
    position: relative !important;
    margin: 0 !important;
    margin-right: 8px !important;
    margin-top: 0 !important;
    padding: 0 !important;
    transform: translateY(1px) !important;
    
    /* ZACHOWANIE */
    cursor: pointer !important;
    flex-shrink: 0 !important;
    outline: none !important;
    
    /* ANIMACJA */
    transition: all 0.15s ease-in-out !important;
}

/* =============================================================================
   SHAPE ENFORCEMENT - Radio = CIRCLE (border-radius: 50%)
   CRITICAL: Forces round shape
   ============================================================================= */
html body .woocommerce .woocommerce-checkout input[type="radio"],
html body .woocommerce-checkout input[type="radio"],
html body .woocommerce form input[type="radio"],
html body #payment input[type="radio"],
html body #shipping_method input[type="radio"],
html body .wc_payment_method input[type="radio"],
html body .woocommerce-checkout-review-order input[type="radio"],
.woocommerce-checkout input[type="radio"],
#payment input[type="radio"],
#shipping_method input[type="radio"],
.wc_payment_method input[type="radio"],
input.shipping_method[type="radio"],
input[type="radio"].shipping_method {
    border-radius: 50% !important;
    -webkit-border-radius: 50% !important;
    -moz-border-radius: 50% !important;
}

/* =============================================================================
   SHAPE ENFORCEMENT - Checkbox = ROUNDED SQUARE (border-radius: 3px)
   ============================================================================= */
html body .woocommerce .woocommerce-checkout input[type="checkbox"],
html body .woocommerce-checkout input[type="checkbox"],
html body .woocommerce form input[type="checkbox"],
html body #payment input[type="checkbox"],
html body .woocommerce-checkout-review-order input[type="checkbox"],
.woocommerce-checkout input[type="checkbox"],
#payment input[type="checkbox"] {
    border-radius: 3px !important;
    -webkit-border-radius: 3px !important;
    -moz-border-radius: 3px !important;
}

/* =============================================================================
   HOVER STATE - Border color change
   ============================================================================= */
html body .woocommerce-checkout input[type="radio"]:hover,
html body .woocommerce-checkout input[type="checkbox"]:hover,
html body #payment input[type="radio"]:hover,
html body #payment input[type="checkbox"]:hover,
html body #shipping_method input[type="radio"]:hover {
    border-color: #003366 !important;
}

/* =============================================================================
   CHECKED STATE - Radio Button (Granatowe z bia�� "kropk�")
   MAXIMUM SPECIFICITY dla WSZYSTKICH sekcji w��cznie z payment gateways
   ============================================================================= */
html body .woocommerce .woocommerce-checkout input[type="radio"]:checked,
html body .woocommerce-checkout input[type="radio"]:checked,
html body .woocommerce form input[type="radio"]:checked,
html body #payment input[type="radio"]:checked,
html body #shipping_method input[type="radio"]:checked,
html body .wc_payment_method input[type="radio"]:checked,
html body .woocommerce-checkout-review-order input[type="radio"]:checked,
html body #payment ul.payment_methods input[type="radio"]:checked,
html body #payment .wc_payment_methods input[type="radio"]:checked,
html body #payment li.wc_payment_method input[type="radio"]:checked,
html body .payment_methods li input[type="radio"]:checked,
html body .wc_payment_methods li input[type="radio"]:checked,
html body #payment .payment_method_przelewy24 input[type="radio"]:checked,
html body #payment .payment_method_bacs input[type="radio"]:checked,
html body #payment [class*="payment_method"] input[type="radio"]:checked,
.woocommerce-checkout input[type="radio"]:checked,
#payment input[type="radio"]:checked,
#shipping_method input[type="radio"]:checked,
.wc_payment_method input[type="radio"]:checked,
input.shipping_method[type="radio"]:checked,
input[type="radio"].shipping_method:checked,
.payment_methods input[type="radio"]:checked,
.wc_payment_methods input[type="radio"]:checked,
ul.payment_methods li input[type="radio"]:checked,
ul.wc_payment_methods li input[type="radio"]:checked {
    background-color: #003366 !important;
    background: #003366 !important;
    border-color: #003366 !important;
    /* INSET SHADOW - 5px white ring = tiny elegant blue dot */
    box-shadow: inset 0 0 0 4px #ffffff !important;
}

/* =============================================================================
   CHECKED STATE - Checkbox (Granatowe z bia�ym checkmarkiem)
   ============================================================================= */
html body .woocommerce-checkout input[type="checkbox"]:checked,
html body .woocommerce form input[type="checkbox"]:checked,
html body #payment input[type="checkbox"]:checked,
.woocommerce-checkout input[type="checkbox"]:checked,
#payment input[type="checkbox"]:checked {
    background-color: #003366 !important;
    border-color: #003366 !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E") !important;
    background-size: 10px 10px !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    box-shadow: none !important;
}

/* =============================================================================
   FOCUS STATE - Accessibility
   ============================================================================= */
html body .woocommerce-checkout input[type="radio"]:focus,
html body .woocommerce-checkout input[type="checkbox"]:focus {
    outline: none !important;
    border-color: #003366 !important;
}

/* =============================================================================
   LABEL ALIGNMENT - Flex layout for proper alignment
   ============================================================================= */

/* --- SHIPPING METHOD LIST ITEMS: Flexbox alignment --- */
html body .woocommerce-checkout-review-order-table ul#shipping_method li,
html body #shipping_method li,
.woocommerce-checkout-review-order-table ul#shipping_method li,
ul#shipping_method li {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
}

/* --- SHIPPING METHOD LABELS: Prawid�owe wyr�wnanie --- */
html body #shipping_method li label,
html body .woocommerce-checkout ul#shipping_method li label,
#shipping_method li label,
ul#shipping_method li label {
    display: flex !important;
    align-items: center !important;
    flex: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
    cursor: pointer !important;
    font-size: 14px !important;
    color: #1a2a4a !important;
    line-height: 1.4 !important;
}

/* --- PAYMENT METHOD LABELS: Flex alignment fix --- */
html body #payment .wc_payment_methods li label,
html body #payment .payment_methods li label,
html body #payment .wc_payment_method label,
html body .wc_payment_method label,
#payment .wc_payment_methods li label,
#payment .payment_methods li label,
.wc_payment_method label {
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    padding: 15px 0 !important;
    cursor: pointer !important;
    font-size: 14px !important;
    color: #1a2a4a !important;
    line-height: 1.4 !important;
}

/* =============================================================================
   FIX 1: REMOVE LEFT MARGIN/PADDING FROM LISTS
   ============================================================================= */

/* Payment Methods List - Remove indentation */
html body .woocommerce-checkout ul.payment_methods,
html body .woocommerce-checkout .wc_payment_methods,
html body #payment ul.payment_methods,
html body #payment .wc_payment_methods,
.woocommerce-checkout ul.payment_methods,
.woocommerce-checkout .wc_payment_methods,
#payment ul.payment_methods,
#payment .wc_payment_methods,
ul.payment_methods,
ul.wc_payment_methods {
    padding-left: 0 !important;
    margin-left: 0 !important;
    list-style: none !important;
    width: 100% !important;
}

/* Shipping Methods List - Remove indentation */
html body .woocommerce-checkout ul#shipping_method,
html body #shipping_method,
.woocommerce-checkout ul#shipping_method,
ul#shipping_method {
    padding-left: 0 !important;
    margin-left: 0 !important;
    list-style: none !important;
    width: 100% !important;
}

/* --- PAYMENT METHOD LIST ITEMS - Perfect Vertical Alignment + Internal Padding --- */
html body #payment .wc_payment_methods li,
html body #payment .payment_methods li,
html body .wc_payment_method,
html body .woocommerce-checkout ul.payment_methods li,
#payment .wc_payment_methods li,
#payment .payment_methods li,
.wc_payment_method,
.woocommerce-checkout ul.payment_methods li {
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    /* Internal padding - breathing room */
    padding-left: 20px !important;
    padding-right: 20px !important;
    padding-top: 15px !important;
    padding-bottom: 15px !important;
    margin-bottom: 10px !important;
    margin-left: 0 !important;
    box-sizing: border-box !important;
}

/* --- SHIPPING METHOD LIST ITEMS - Same treatment --- */
html body .woocommerce-checkout ul#shipping_method li,
html body #shipping_method li,
.woocommerce-checkout ul#shipping_method li,
ul#shipping_method li {
    display: flex !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
    padding-top: 15px !important;
    padding-bottom: 15px !important;
    margin-left: 0 !important;
    box-sizing: border-box !important;
}

/* --- PAYMENT METHOD INPUTS - Perfect centering, reset all margins --- */
html body .woocommerce-checkout ul.payment_methods input[type="radio"],
html body #payment ul.payment_methods input[type="radio"],
html body .wc_payment_method input[type="radio"],
.woocommerce-checkout ul.payment_methods input[type="radio"],
#payment ul.payment_methods input[type="radio"],
.wc_payment_method input[type="radio"] {
    margin: 0 !important;
    margin-right: 15px !important;
    width: 20px !important;
    height: 20px !important;
    flex-shrink: 0 !important;
    transform: translateY(0) !important;
}

/* --- PAYMENT METHOD LABELS - Perfect centering --- */
html body .woocommerce-checkout ul.payment_methods label,
html body #payment ul.payment_methods label,
html body .wc_payment_method label,
.woocommerce-checkout ul.payment_methods label,
#payment ul.payment_methods label,
.wc_payment_method label {
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
    width: auto !important;
    flex: 1 !important;
    display: flex !important;
    align-items: center !important;
}

/* --- TERMS CHECKBOX - ULTRA COMPACT STYLING --- */
html body .woocommerce-checkout .woocommerce-terms-and-conditions-wrapper,
.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper {
    background-color: #f8f9fa !important;
    border: 1px solid #e9ecef !important;
    padding: 8px 12px !important;
    border-radius: 6px !important;
    margin-top: 10px !important;
    margin-bottom: 10px !important;
    min-height: 0 !important;
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    line-height: 1.3 !important;
}

html body .woocommerce-checkout .woocommerce-terms-and-conditions-wrapper p,
html body .woocommerce-checkout .woocommerce-terms-and-conditions-wrapper label,
.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper p,
.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper label {
    margin: 0 !important;
    padding: 0 !important;
    font-size: 0.85em !important;
    line-height: 1.3 !important;
}

html body .woocommerce-checkout .woocommerce-terms-and-conditions-wrapper label,
.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper label {
    flex: 1 !important;
}

/* Privacy policy text - ultra compact */
html body .woocommerce-checkout .woocommerce-privacy-policy-text,
.woocommerce-checkout .woocommerce-privacy-policy-text {
    padding: 5px 0 !important;
    margin: 0 !important;
    font-size: 0.8em !important;
    line-height: 1.3 !important;
}

html body .woocommerce-checkout .woocommerce-form__label-for-checkbox,
.woocommerce-checkout .woocommerce-form__label-for-checkbox {
    display: inline-flex !important;
    align-items: center !important;
    cursor: pointer !important;
    line-height: 1.4 !important;
    gap: 8px !important;
}

html body .woocommerce-checkout .woocommerce-form__label-for-checkbox input[type="checkbox"],
.woocommerce-checkout .woocommerce-form__label-for-checkbox input[type="checkbox"] {
    margin: 0 !important;
    flex-shrink: 0 !important;
}

/* Gwiazdka (required) blisko tekstu */
html body .woocommerce-checkout .woocommerce-form__label-for-checkbox .required,
.woocommerce-checkout .woocommerce-form__label-for-checkbox .required,
html body .woocommerce-checkout .woocommerce-terms-and-conditions-wrapper .required,
.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper .required {
    margin-left: 2px !important;
    margin-right: 0 !important;
}

/* =============================================================================
   NUCLEAR OVERRIDE - Przelewy24 & Payment Gateways Radio Buttons
   Te style MUSZ� by� na ko�cu pliku dla najwy�szego priorytetu!
   ============================================================================= */

/* Przelewy24 specific selectors */
html body #payment .payment_method_przelewy24 input[type="radio"],
html body #payment .payment_method_przelewy24 input[type="radio"]:checked,
html body #payment li.payment_method_przelewy24 input[type="radio"],
html body #payment li.payment_method_przelewy24 input[type="radio"]:checked,
html body .woocommerce #payment .payment_method_przelewy24 input[type="radio"]:checked,
html body .woocommerce-page #payment .payment_method_przelewy24 input[type="radio"]:checked,
#payment .payment_method_przelewy24 input:checked,
.payment_method_przelewy24 input[type="radio"]:checked,
li.payment_method_przelewy24 input[type="radio"]:checked,
input#payment_method_przelewy24:checked {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    min-height: 20px !important;
    max-width: 20px !important;
    max-height: 20px !important;
    background-color: #003366 !important;
    background: #003366 !important;
    border: 2px solid #003366 !important;
    border-color: #003366 !important;
    border-radius: 50% !important;
    box-shadow: inset 0 0 0 4px #ffffff !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
}

/* BACS (Bank Transfer) specific - BASE STATE */
html body #payment .payment_method_bacs input[type="radio"],
html body #payment li.payment_method_bacs input[type="radio"],
input#payment_method_bacs,
.payment_method_bacs input[type="radio"] {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    min-height: 20px !important;
    max-width: 20px !important;
    max-height: 20px !important;
    background-color: #ffffff !important;
    background: #ffffff !important;
    border: 2px solid #cccccc !important;
    border-radius: 50% !important;
    box-shadow: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    cursor: pointer !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    position: relative !important;
    vertical-align: middle !important;
}

/* BACS (Bank Transfer) specific - CHECKED STATE */
html body #payment .payment_method_bacs input[type="radio"]:checked,
html body #payment li.payment_method_bacs input[type="radio"]:checked,
input#payment_method_bacs:checked,
.payment_method_bacs input[type="radio"]:checked {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    min-height: 20px !important;
    max-width: 20px !important;
    max-height: 20px !important;
    background-color: #003366 !important;
    background: #003366 !important;
    border: 2px solid #003366 !important;
    border-radius: 50% !important;
    box-shadow: inset 0 0 0 4px #ffffff !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
}

/* Przelewy24 Raty specific */
html body #payment .payment_method_p24_installments input[type="radio"]:checked,
html body #payment li.payment_method_p24_installments input[type="radio"]:checked,
input#payment_method_p24_installments:checked,
.payment_method_p24_installments input[type="radio"]:checked {
    width: 20px !important;
    height: 20px !important;
    background-color: #003366 !important;
    background: #003366 !important;
    border: 2px solid #003366 !important;
    border-radius: 50% !important;
    box-shadow: inset 0 0 0 4px #ffffff !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}

/* ULTIMATE FALLBACK - Any payment method radio checked */
html body #payment ul.payment_methods li[class*="payment_method"] input[type="radio"]:checked,
html body #payment .wc_payment_methods li[class*="payment_method"] input[type="radio"]:checked,
html body.woocommerce-checkout #payment input[type="radio"]:checked,
body.woocommerce-checkout #payment input[type="radio"]:checked,
#payment ul li input[type="radio"]:checked,
#payment > ul > li input[type="radio"]:checked {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    min-height: 20px !important;
    max-width: 20px !important;
    max-height: 20px !important;
    background-color: #003366 !important;
    background: #003366 !important;
    border: 2px solid #003366 !important;
    border-color: #003366 !important;
    border-radius: 50% !important;
    box-shadow: inset 0 0 0 4px #ffffff !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
}

/* =============================================================================
   ABSOLUTE FINAL NUCLEAR - IDENTICAL STYLING FOR ALL RADIO BUTTONS
   This section MUST be at the very end for maximum priority
   ============================================================================= */

/* UNIVERSAL BASE STATE - All radio buttons everywhere */
html body.woocommerce-checkout input[type="radio"],
html body .woocommerce-checkout input[type="radio"],
body.woocommerce-checkout input[type="radio"],
.woocommerce-checkout input[type="radio"],
html body #shipping_method input[type="radio"],
html body #payment input[type="radio"],
#shipping_method input[type="radio"],
#payment input[type="radio"],
input.shipping_method,
input[id^="payment_method_"],
input[id^="shipping_method_"] {
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    min-height: 20px !important;
    max-width: 20px !important;
    max-height: 20px !important;
    background-color: #ffffff !important;
    background: #ffffff !important;
    border: 2px solid #cccccc !important;
    border-radius: 50% !important;
    box-shadow: none !important;
    cursor: pointer !important;
    display: inline-block !important;
    vertical-align: middle !important;
    position: relative !important;
    margin: 0 !important;
    margin-right: 8px !important;
    padding: 0 !important;
    flex-shrink: 0 !important;
    outline: none !important;
    transform: none !important;
}

/* UNIVERSAL HOVER STATE */
html body.woocommerce-checkout input[type="radio"]:hover,
html body #shipping_method input[type="radio"]:hover,
html body #payment input[type="radio"]:hover,
input.shipping_method:hover,
input[id^="payment_method_"]:hover,
input[id^="shipping_method_"]:hover {
    border-color: #003366 !important;
}

/* UNIVERSAL CHECKED STATE - IDENTICAL for shipping AND payment */
html body.woocommerce-checkout input[type="radio"]:checked,
html body .woocommerce-checkout input[type="radio"]:checked,
body.woocommerce-checkout input[type="radio"]:checked,
.woocommerce-checkout input[type="radio"]:checked,
html body #shipping_method input[type="radio"]:checked,
html body #payment input[type="radio"]:checked,
#shipping_method input[type="radio"]:checked,
#payment input[type="radio"]:checked,
input.shipping_method:checked,
input[id^="payment_method_"]:checked,
input[id^="shipping_method_"]:checked {
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    min-height: 20px !important;
    max-width: 20px !important;
    max-height: 20px !important;
    background-color: #003366 !important;
    background: #003366 !important;
    border: 2px solid #003366 !important;
    border-radius: 50% !important;
    box-shadow: inset 0 0 0 4px #ffffff !important;
    cursor: pointer !important;
    display: inline-block !important;
    vertical-align: middle !important;
    position: relative !important;
    margin: 0 !important;
    margin-right: 8px !important;
    padding: 0 !important;
    flex-shrink: 0 !important;
    outline: none !important;
    transform: none !important;
}

/* KILL ANY PSEUDO-ELEMENTS on radio buttons */
html body input[type="radio"]::before,
html body input[type="radio"]::after,
input.shipping_method::before,
input.shipping_method::after,
input[id^="payment_method_"]::before,
input[id^="payment_method_"]::after,
input[id^="shipping_method_"]::before,
input[id^="shipping_method_"]::after {
    content: none !important;
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
}
