/*
Theme Name: Shopnex Child
Theme URI: https://spiraclethemes.com/shopnex-wordpress-theme
Template: shopnex
Author: Spiracle Themes
Author URI: https://spiraclethemes.com/
Description: A modern WooCommerce theme for fashion stores, clothing brands, and lifestyle boutiques. Features responsive design, customizer options, blog support, custom widgets, and performance optimized for fast loading.
Tags: e-commerce,blog,custom-colors,sticky-post,one-column,custom-logo,custom-menu,entertainment,featured-images,full-width-template,left-sidebar,right-sidebar,theme-options,threaded-comments,translation-ready,two-columns,footer-widgets
Version: 1.7.1793448746
Updated: 2026-10-31 15:12:26

*/
/* Показываем только выбор способа доставки */
.shopnex-shipping-methods-only {
    display: table !important;
    width: 100%;
}

.shopnex-shipping-methods-only thead,
.shopnex-shipping-methods-only tbody {
    display: none !important;
}

.shopnex-shipping-methods-only tfoot tr:not(.woocommerce-shipping-totals) {
    display: none !important;
}

.shopnex-shipping-methods-only tfoot tr.woocommerce-shipping-totals {
    display: table-row !important;
}


/* =========================================
   BIMYOU — Shopnex Checkout Delivery Section
   ========================================= */

/* Delivery section uses the native Shopnex card */
.woocommerce-checkout .checkout-main > .bimyou-shipping-section {
    margin-top: 0 !important;
    padding: 28px;
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    box-sizing: border-box;
    max-width: 100%;
    font-family: var(--font-sans), sans-serif;
    color: var(--text-primary);
}

/* Content */
.bimyou-shipping-section .bimyou-shipping-content {
    width: 100%;
    font-family: var(--font-sans), sans-serif;
    color: var(--text-primary);
}

/* Shipping table */
.bimyou-shipping-section table.bimyou-shipping-table {
    display: table !important;
    width: 100% !important;
    border: none !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    background: transparent !important;
    margin: 0 !important;
    font-family: var(--font-sans), sans-serif;
}

.bimyou-shipping-section .bimyou-shipping-table tbody {
    display: table-row-group !important;
}

.bimyou-shipping-section .bimyou-shipping-table tr.woocommerce-shipping-totals {
    display: table-row !important;
}

.bimyou-shipping-section .bimyou-shipping-table th {
    display: none !important;
}

.bimyou-shipping-section .bimyou-shipping-table td {
    display: table-cell !important;
    width: 100% !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
}

/* Shipping methods list */
.bimyou-shipping-section .woocommerce-shipping-methods {
    display: flex !important;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    font-family: var(--font-sans), sans-serif;
}

.bimyou-shipping-section .woocommerce-shipping-methods li {
    position: relative;
    display: block !important;
    width: 100%;
    min-width: 0;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    border: none !important;
    background: transparent !important;
}

/* Hide native radio visually, but preserve keyboard accessibility */
.bimyou-shipping-section .woocommerce-shipping-methods input[type="radio"] {
    display: block !important;
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

/* Shipping option card */
.bimyou-shipping-section .woocommerce-shipping-methods li label {
    position: relative;
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    width: 100%;
    min-height: 62px;
    box-sizing: border-box;
    margin: 0 !important;
    padding: 16px 18px 16px 48px !important;

    border: 1.5px solid var(--border) !important;
    border-radius: var(--radius-md) !important;

    background: var(--bg-primary) !important;
    color: var(--text-primary) !important;

    font-family: var(--font-sans), sans-serif !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 1.5 !important;

    text-transform: none !important;
    letter-spacing: 0 !important;

    cursor: pointer;
    transition:
        border-color var(--transition-fast),
        background var(--transition-fast),
        box-shadow var(--transition-fast);
}

/* Radio circle */
.bimyou-shipping-section .woocommerce-shipping-methods li label::before {
    content: '';
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    border: 1.5px solid var(--text-muted);
    border-radius: 50%;
    background: var(--bg-white);
    box-sizing: border-box;
    transition: all var(--transition-fast);
}

/* Selected radio */
.bimyou-shipping-section
.woocommerce-shipping-methods input[type="radio"]:checked + label {
    border-color: var(--text-primary) !important;
    background: var(--bg-white) !important;
    box-shadow: var(--shadow-sm);
    color: var(--text-primary) !important;
}

.bimyou-shipping-section
.woocommerce-shipping-methods input[type="radio"]:checked + label::before {
    border: 5px solid var(--text-primary);
}

/* Hover */
.bimyou-shipping-section
.woocommerce-shipping-methods li label:hover {
    border-color: var(--accent) !important;
}

/* Keyboard focus */
.bimyou-shipping-section
.woocommerce-shipping-methods input[type="radio"]:focus-visible + label {
    outline: 2px solid var(--text-primary);
    outline-offset: 3px;
}

/* Price */
.bimyou-shipping-section .woocommerce-Price-amount {
    font-family: var(--font-sans), sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
}

/* Shipping notice */
.bimyou-shipping-section .bimyou-shipping-notice {
    font-family: var(--font-sans), sans-serif;
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
}

/* Delivery section on mobile */
@media (max-width: 768px) {
    .woocommerce-checkout .checkout-main > .bimyou-shipping-section {
        padding: 20px;
    }

    .bimyou-shipping-section .woocommerce-shipping-methods li label {
        padding: 14px 14px 14px 44px !important;
        font-size: 13px !important;
    }

    .bimyou-shipping-section .woocommerce-shipping-methods li label::before {
        left: 14px;
    }
}

@media (max-width: 480px) {
    .woocommerce-checkout .checkout-main > .bimyou-shipping-section {
        padding: 16px;
    }

    .bimyou-shipping-section .section-heading {
        font-size: 16px;
    }
}
/* BIMYOU: restore checkout billing fields */

.woocommerce-checkout .woocommerce-billing-fields {
    display: block !important;
}

.woocommerce-checkout .billing-fields-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.woocommerce-checkout .billing-fields-grid > * {
    display: block !important;
}
/* Remove redundant WooCommerce shipping table borders */

.bimyou-shipping-section .bimyou-shipping-table,
.bimyou-shipping-section .bimyou-shipping-table tbody,
.bimyou-shipping-section .bimyou-shipping-table tr,
.bimyou-shipping-section .bimyou-shipping-table td {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

.bimyou-shipping-section
.bimyou-shipping-table
tr.woocommerce-shipping-totals th {
    display: none !important;
}

/* =========================================
   BIMYOU — Custom shipping radio controls
   ========================================= */

/* Hide default radio visually, preserve functionality */
.bimyou-shipping-section
.woocommerce-shipping-methods input[type="radio"] {
    display: block !important;
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    opacity: 0 !important;
}

/* Shipping option */
.bimyou-shipping-section
.woocommerce-shipping-methods li label {
    position: relative;
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 64px;
    box-sizing: border-box;

    padding: 16px 18px 16px 52px !important;

    background: var(--bg-primary) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-md) !important;

    color: var(--text-primary) !important;
    font-family: var(--font-sans), sans-serif !important;
    font-size: 14px !important;
    font-weight: 500 !important;

    cursor: pointer;
    transition: all var(--transition-fast);
}

/* Radio circle */
.bimyou-shipping-section
.woocommerce-shipping-methods li label::before {
    content: "";
    position: absolute;
    left: 19px;
    top: 50%;
    transform: translateY(-50%);

    width: 19px;
    height: 19px;

    border: 1.5px solid var(--text-muted);
    border-radius: 50%;
    background: var(--bg-white);

    box-sizing: border-box;
    transition: all var(--transition-fast);
}

/* Selected option */
.bimyou-shipping-section
.woocommerce-shipping-methods input[type="radio"]:checked + label {
    background: var(--bg-white) !important;
    border-color: var(--text-primary) !important;
    box-shadow: var(--shadow-sm);
}

/* Filled radio indicator */
.bimyou-shipping-section
.woocommerce-shipping-methods input[type="radio"]:checked + label::before {
    border: 5px solid var(--text-primary);
    background: var(--bg-white);
}

/* Hover */
.bimyou-shipping-section
.woocommerce-shipping-methods li label:hover {
    border-color: var(--accent) !important;
}

/* Keyboard focus */
.bimyou-shipping-section
.woocommerce-shipping-methods input[type="radio"]:focus-visible + label {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

/* Price */
.bimyou-shipping-section
.woocommerce-shipping-methods .woocommerce-Price-amount {
    font-family: var(--font-sans), sans-serif;
    color: var(--text-primary);
    font-weight: 600;
}
