:root {
    --apex-primary: #556ee6;
    --apex-primary-dark: #485ec4;
    --apex-success: #34c38f;
    --apex-warning: #f1b44c;
    --apex-danger: #f46a6a;
    --apex-dark: #343a40;
    --apex-light: #f8f9fa;
    --apex-border-color: #eff2f7;
    --apex-text-muted: #74788d;
}

.apex-split-shipping-active .woocommerce .cart_totals table.shop_table tr.shipping,
.apex-split-shipping-active .woocommerce-checkout .woocommerce-checkout-review-order-table tr.shipping {
    display: flex !important;
    flex-direction: column !important;
    background: #ffffff !important;
    border-radius: 16px !important;
    margin-bottom: 24px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05) !important;
    border: 1px solid #e2e8f0 !important;
    overflow: hidden !important;
    padding: 0 !important;
}

.apex-split-shipping-active .woocommerce .cart_totals table.shop_table tr.shipping th,
.apex-split-shipping-active .woocommerce-checkout .woocommerce-checkout-review-order-table tr.shipping th {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    background: #f8fafc !important;
    color: #0f172a !important;
    padding: 16px 20px !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    border-bottom: 1px solid #e2e8f0 !important;
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
}

.apex-split-shipping-active .woocommerce .cart_totals table.shop_table tr.shipping th::before,
.apex-split-shipping-active .woocommerce .cart_totals table.shop_table tr.shipping td::before,
.apex-split-shipping-active .woocommerce-checkout .woocommerce-checkout-review-order-table tr.shipping th::before,
.apex-split-shipping-active .woocommerce-checkout .woocommerce-checkout-review-order-table tr.shipping td::before {
    display: none !important;
}

.apex-split-shipping-active .apex-vendor-label {
    background: #e0e7ff !important;
    color: #3730a3 !important;
    padding: 4px 12px !important;
    border-radius: 20px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    display: inline-flex !important;
    align-items: center !important;
    margin-right: auto !important;
    border: none !important;
    box-shadow: none !important;
}

.apex-split-shipping-active .woocommerce .cart_totals table.shop_table tr.shipping td,
.apex-split-shipping-active .woocommerce-checkout .woocommerce-checkout-review-order-table tr.shipping td {
    display: block !important;
    width: 100% !important;
    padding: 20px !important;
    background: #ffffff !important;
    border: none !important;
    text-align: right !important;
}

.apex-split-shipping-active .woocommerce-shipping-methods {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.apex-split-shipping-active .woocommerce-shipping-methods li {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    padding: 12px 16px !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    margin: 0 !important;
    transition: all 0.2s ease !important;
}

.apex-split-shipping-active .woocommerce-shipping-methods li:has(input:checked) {
    border-color: #3b82f6 !important;
    background: #eff6ff !important;
}

.apex-split-shipping-active .woocommerce-shipping-methods li input[type="radio"] {
    margin: 0 !important;
    flex-shrink: 0 !important;
    width: auto !important;
    height: auto !important;
}

.apex-split-shipping-active .woocommerce-shipping-methods li label {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-grow: 1 !important;
    margin: 0 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #334155 !important;
    cursor: pointer !important;
}

.apex-split-shipping-active .woocommerce-shipping-methods li label .amount {
    background: #f1f5f9 !important;
    color: #0f172a !important;
    padding: 4px 10px !important;
    border-radius: 6px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
}

.apex-split-shipping-active .woocommerce-shipping-methods li:has(input:checked) label .amount {
    background: #dbeafe !important;
    color: #1e40af !important;
}

@media (max-width: 576px) {
    .apex-split-shipping-active .woocommerce .cart_totals table.shop_table tr.shipping th,
    .apex-split-shipping-active .woocommerce-checkout .woocommerce-checkout-review-order-table tr.shipping th {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 10px !important;
        padding: 15px !important;
    }

    .apex-split-shipping-active .apex-vendor-label {
        margin-right: 0 !important;
        align-self: flex-start !important;
    }

    .apex-split-shipping-active .woocommerce .cart_totals table.shop_table tr.shipping td,
    .apex-split-shipping-active .woocommerce-checkout .woocommerce-checkout-review-order-table tr.shipping td {
        padding: 15px !important;
    }

    .apex-split-shipping-active .woocommerce-shipping-methods li label {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 8px !important;
    }

    .apex-split-shipping-active .woocommerce-shipping-methods li label .amount {
        align-self: flex-end !important;
    }
}

.apex-alert-modern {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #ffffff 0%, #fdfbf7 100%);
    border: 1px solid #f0e6d2;
    border-right: 5px solid #ffab00;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 35px;
    box-shadow: 0 10px 30px -10px rgba(255, 171, 0, 0.15);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
    margin-top: 32px;
}

.apex-alert-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px -10px rgba(255, 171, 0, 0.2);
}

.apex-alert-icon-box {
    background: #fff8e1;
    color: #ffab00;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 20px;
    flex-shrink: 0;
}

.apex-alert-icon-box .dashicons {
    font-size: 28px;
    width: 28px;
    height: 28px;
}

.apex-alert-body {
    flex-grow: 1;
}

.apex-alert-title {
    margin: 0 0 5px 0 !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    color: #333;
}

.apex-alert-text {
    margin: 0 !important;
    font-size: 13px !important;
    color: #666;
    line-height: 1.6;
}

.apex-alert-badge {
    background: #ffab00;
    color: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    white-space: nowrap;
    box-shadow: 0 4px 10px rgba(255, 171, 0, 0.3);
}

.apex-vendor-separator {
    margin-top: 16px;
    margin-bottom: 15px;
    position: relative;
    clear: both;
}

tr:first-child td .apex-vendor-separator {
    margin-top: 5px;
}

.apex-vendor-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    padding: 16px 24px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.01);
    width: 100%;
    box-sizing: border-box;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.apex-vendor-card-header::before {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 6px;
    background: #3b82f6;
    border-radius: 0 4px 4px 0;
}

.apex-vendor-card-header:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 30px -10px rgba(59, 130, 246, 0.15);
    border-color: #bfdbfe;
}

.apex-vendor-card-header.is-central::before {
    background: #64748b;
}

.vendor-info-group {
    display: flex;
    align-items: center;
}

.vendor-avatar {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    margin-left: 18px;
    border: 2px solid #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    object-fit: cover;
    transition: transform 0.2s;
}

.vendor-avatar:hover {
    transform: scale(1.05);
}

.vendor-icon-fallback {
    width: 56px;
    height: 56px;
    background: #f1f5f9;
    color: #94a3b8;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 18px;
    font-size: 24px;
}

.vendor-details {
    display: flex;
    flex-direction: column;
}

.vendor-sub-label {
    font-size: 11px;
    color: #64748b;
    margin-bottom: 4px;
    font-weight: 500;
}

.vendor-name-link {
    font-size: 18px;
    font-weight: 900;
    color: #1e293b;
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: color 0.2s;
}

.vendor-name-link:hover {
    color: #2563eb;
}

.vendor-name-link .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    margin-right: 5px;
    color: #3b82f6;
    transition: transform 0.2s;
}

.vendor-name-link:hover .dashicons {
    transform: translateX(-3px);
}

.vendor-rating-badge {
    font-size: 11px;
    color: #d97706;
    background: #fffbeb;
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    margin-top: 4px;
    width: fit-content;
    font-weight: 600;
}

.vendor-rating-badge .dashicons {
    font-size: 12px;
    width: 12px;
    height: 12px;
    margin-left: 2px;
}

.vendor-visit-btn {
    background-color: #2563eb;
    color: #fff !important;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px rgba(37, 99, 235, 0.2);
    display: inline-block;
}

.vendor-visit-btn:hover {
    background-color: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 8px 12px rgba(37, 99, 235, 0.3);
}

.vendor-badge-central {
    background: #f1f5f9;
    color: #475569;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.vendor-badge-central .dashicons {
    margin-left: 5px;
    color: #94a3b8;
}

@media (max-width: 600px) {
    .apex-vendor-card-header {
        flex-direction: column;
        align-items: flex-start;
        padding: 15px;
    }

    .vendor-actions {
        width: 100%;
        margin-top: 15px;
        text-align: left;
        border-top: 1px dashed #e2e8f0;
        padding-top: 15px;
    }

    .vendor-visit-btn {
        width: 100%;
        text-align: center;
    }
}

.woocommerce-cart-form__contents tr.cart_item td {
    border-top: none !important;
    border-bottom: 1px dashed #eee;
    padding-top: 20px;
    padding-bottom: 20px;
    background-color: transparent !important;
}

.apex-product-title-wrapper {
    margin-top: 10px;
}

.apex-product-title-wrapper a {
    font-weight: 600;
    font-size: 14px;
    color: #24292e;
    text-decoration: none;
    transition: color 0.2s;
}

.apex-product-title-wrapper a:hover {
    color: #0366d6;
}

tr.cart_item:last-child td {
    border-bottom: none;
}

tr.cart_item[class*="apex-vendor-group-"] {
    background-color: #fff;
}

.apex-store-buy-box-wrapper {
    margin: 20px 0;
    padding: 0;
    border: 1px solid var(--apex-border-color);
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 0 0.75rem 1.5rem rgba(18, 38, 63, 0.03);
    overflow: hidden;
    font-family: inherit;
}

.apex-store-buy-box-winner {
    padding: 20px;
    background-color: #fff;
    border-bottom: 1px solid var(--apex-border-color);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.apex-store-buy-box-winner > div:first-child {
    flex: 1;
    min-width: 200px;
}

.buy-box-price {
    font-size: 24px;
    font-weight: 700;
    color: var(--apex-dark);
    margin-bottom: 8px;
    line-height: 1.2;
}

.buy-box-price .woocommerce-Price-currencySymbol {
    font-size: 0.75em;
    color: var(--apex-text-muted);
    vertical-align: super;
}

.buy-box-vendor {
    font-size: 14px;
    color: var(--apex-text-muted);
}

.buy-box-vendor strong {
    color: var(--apex-primary);
    font-weight: 600;
}

.buy-box-actions {
    flex-shrink: 0;
}

.buy-box-actions .add-to-cart-btn {
    display: inline-block;
    background-color: var(--apex-primary);
    color: #fff;
    padding: 12px 25px;
    font-size: 15px;
    font-weight: 500;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    min-width: 160px;
}

.buy-box-actions .add-to-cart-btn:hover {
    background-color: var(--apex-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(85, 110, 230, 0.25);
}

.apex-store-other-sellers {
    background-color: #fcfdff;
}

.apex-store-other-sellers h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--apex-dark);
    margin: 0;
    padding: 15px 20px;
    border-bottom: 1px solid var(--apex-border-color);
    background-color: #f8f9fa;
}

.other-sellers-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.seller-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    border-bottom: 1px solid var(--apex-border-color);
    transition: background-color 0.2s ease;
}

.seller-item:last-child {
    border-bottom: none;
}

.seller-item:hover {
    background-color: #fff;
}

.seller-info {
    flex: 1;
    font-size: 14px;
    color: var(--apex-text-muted);
}

.seller-info strong {
    color: var(--apex-dark);
    font-weight: 600;
}

.seller-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--apex-dark);
    margin: 0 20px;
    min-width: 100px;
    text-align: left;
}

.seller-action {
    flex-shrink: 0;
}

.other-sellers-list .add-to-cart-btn {
    background-color: rgba(85, 110, 230, 0.1);
    color: var(--apex-primary);
    font-size: 13px;
    padding: 8px 15px;
    border: 1px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
}

.other-sellers-list .add-to-cart-btn:hover {
    background-color: var(--apex-primary);
    color: #fff;
}

@media (max-width: 576px) {
    .apex-store-buy-box-winner {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .buy-box-actions .add-to-cart-btn {
        width: 100%;
    }

    .seller-item {
        flex-wrap: wrap;
        gap: 10px;
    }

    .seller-info {
        width: 100%;
        margin-bottom: 5px;
    }

    .seller-price {
        margin: 0;
        flex: 1;
        text-align: right;
    }
}

.apex-store-notice {
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: .25rem;
}

.notice-success {
    background-color: #d1e7dd;
    color: #0f5132;
    border-color: #badbcc;
}

.notice-error {
    background-color: #f8d7da;
    color: #842029;
    border-color: #f5c2c7;
}

@media (max-width: 575.98px) {
    .apex-alert-modern {
        flex-direction: column;
        padding: 15px;
        gap: 12px;
    }

    .apex-alert-icon-box {
        width: 42px;
        height: 42px;
    }

    .apex-alert-icon-box .dashicons {
        font-size: 22px;
        width: 22px;
        height: 22px;
    }

    .apex-alert-badge {
        align-self: flex-start;
        margin-top: 4px;
    }
}

.apex-premium-buybox-wrapper {
    font-family: inherit;
    direction: rtl;
    margin: 24px 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
    clear: both;
}

.apex-bb-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    transition: all 0.3s ease;
}

.apex-bb-campaign {
    border: 2px solid transparent;
    position: relative;
}

.apex-bb-campaign::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 16px;
    padding: 2px;
    background: linear-gradient(45deg, #ef4444, #f59e0b);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.apex-bb-camp-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    color: #fff;
    background-image: repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(255, 255, 255, 0.1) 10px, rgba(255, 255, 255, 0.1) 20px);
}

.apex-bb-camp-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    font-size: 15px;
}

.apex-bb-camp-title img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #fff;
    padding: 2px;
}

.apex-bb-timer {
    display: flex;
    align-items: center;
    gap: 4px;
    direction: ltr;
    font-family: monospace;
}

.apex-bb-timer div {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    padding: 4px 8px;
    min-width: 32px;
}

.apex-bb-timer b {
    font-size: 14px;
    line-height: 1;
}

.apex-bb-timer span {
    font-size: 9px;
    opacity: 0.8;
}

.apex-bb-body {
    padding: 24px;
}

.apex-bb-price-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin-bottom: 24px;
    position: relative;
}

.apex-bb-discount-badge {
    background: #ef4444;
    color: #fff;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 800;
    position: absolute;
    right: 0;
    top: 4px;
}

.apex-bb-old-price {
    color: #94a3b8;
    text-decoration: line-through;
    font-size: 15px;
    margin-bottom: 4px;
}

.apex-bb-current-price {
    font-size: 28px;
    font-weight: 900;
    color: #0f172a;
    line-height: 1;
}

.apex-bb-meta-list {
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
    background: #f8fafc;
    border-radius: 12px;
    padding: 16px;
}

.apex-bb-meta-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #475569;
    margin-bottom: 12px;
}

.apex-bb-meta-list li:last-child {
    margin-bottom: 0;
}

.apex-bb-meta-list iconify-icon {
    font-size: 18px;
    color: #64748b;
}

.apex-bb-meta-label {
    color: #64748b;
}

.apex-bb-btn-primary {
    width: 100%;
    background: #ef4444;
    color: #fff;
    border: none;
    padding: 16px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 800;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
}

.apex-bb-btn-primary:hover {
    background: #dc2626;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(239, 68, 68, 0.3);
}

.apex-bb-others-wrapper {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
}

.apex-bb-others-title {
    background: #f8fafc;
    padding: 16px 20px;
    font-size: 14px;
    font-weight: 800;
    color: #334155;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid #e2e8f0;
}

.apex-bb-others-title iconify-icon {
    font-size: 20px;
    color: #3b82f6;
}

.apex-bb-others-list {
    display: flex;
    flex-direction: column;
}

.apex-bb-other-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.2s;
}

.apex-bb-other-item:last-child {
    border-bottom: none;
}

.apex-bb-other-item:hover {
    background: #f8fafc;
}

.apex-bb-other-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.apex-bb-other-vendor {
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 6px;
}

.apex-bb-other-vendor iconify-icon {
    color: #94a3b8;
}

.apex-bb-other-warranty {
    font-size: 12px;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 4px;
}

.apex-bb-other-action {
    display: flex;
    align-items: center;
    gap: 16px;
}

.apex-bb-other-price {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.apex-bb-other-price del {
    font-size: 12px;
    color: #94a3b8;
}

.apex-bb-other-price span {
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
}

.apex-bb-btn-outline {
    background: transparent;
    border: 1px solid #ef4444;
    color: #ef4444;
    padding: 8px 20px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.apex-bb-btn-outline:hover {
    background: #ef4444;
    color: #fff;
}