.wcbaas-root {
    margin: 1rem 0 1.5rem;
}

.wcbaas-toggle-row {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

/* Tooltip */
.wcbaas-tooltip-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.wcbaas-tooltip-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #555;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    user-select: none;
    transition: background 0.15s, color 0.15s;
    outline: none;
    border: none;
}

.wcbaas-tooltip-icon:hover,
.wcbaas-tooltip-icon:focus {
    background: #FF1A1A;
    color: #fff;
}

.wcbaas-tooltip-bubble {
    display: none;
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    min-width: 300px;
    max-width: 600px;
    padding: 10px 14px;
    background: #333;
    color: #fff;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.45;
    border-radius: 6px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.18);
    z-index: 10000;
    white-space: normal;
    text-align: left;
    pointer-events: none;
}

@media (max-width: 768px) {
    .wcbaas-tooltip-bubble {
        max-width: 300px;
    }
}

.wcbaas-tooltip-bubble::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #333;
}

/* Show on hover (desktop) */
.wcbaas-tooltip-wrap:hover .wcbaas-tooltip-bubble,
.wcbaas-tooltip-wrap:focus-within .wcbaas-tooltip-bubble,
/* Show on active (mobile click/touch) */
.wcbaas-tooltip-wrap.wcbaas-tooltip-active .wcbaas-tooltip-bubble {
    display: block;
}

.wcbaas-toggle {
    appearance: none;
    border: 0;
    background: transparent;
    padding: 0;
    color: #FF1A1A;
    cursor: pointer;
    text-decoration: underline;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.wcbaas-toggle:hover,
.wcbaas-toggle:focus {
    text-decoration: none;
    color: #a00d15;
}

.wcbaas-toggle .select2-selection__arrow {
    position: relative;
    top: auto;
    right: auto;
    height: auto;
    width: auto;
    display: inline-flex;
    align-items: center;
    transition: transform 0.25s ease;
}

.wcbaas-toggle .select2-selection__arrow b {
    border-color: #FF1A1A transparent transparent transparent;
    border-style: solid;
    border-width: 5px 4px 0 4px;
    width: 0;
    height: 0;
}

.wcbaas-toggle:hover .select2-selection__arrow b {
    border-color: #a00d15 transparent transparent transparent;
}

.wcbaas-open .wcbaas-toggle .select2-selection__arrow {
    transform: rotate(180deg);
}

.wcbaas-panel {
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 0.5rem;
    padding: 1rem;
    background: #fff;
    margin-top: 10px;
}

.wcbaas-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.wcbaas-col {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.wcbaas-label {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
}

.wcbaas-select {
    width: 100%;
    min-height: 42px;
    padding: 0.65rem 0.85rem;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 0.375rem;
    background: #fff;
}

.wcbaas-input-with-prefix {
    position: relative;
    display: flex;
    align-items: center;
}

.wcbaas-prefix {
    position: absolute;
    left: 12px;
    font-weight: 600;
    color: #444;
    pointer-events: none;
    font-size: 0.95rem;
}

.wcbaas-input-with-prefix .wcbaas-select {
    padding-left: 28px;
}


li.product.wcbaas-group-source,
li.product.wcbaas-alt-product,
.shop-page-product.wcbaas-group-source,
.shop-page-product.wcbaas-alt-product {
    position: relative;
}

li.product.wcbaas-group-source,
.shop-page-product.wcbaas-group-source {
    box-shadow: inset 0 0 0 2px rgba(2, 132, 199, 0.18);
    border-radius: 0.35rem;
}

li.product.wcbaas-alt-product,
.shop-page-product.wcbaas-alt-product {
    box-shadow: inset 0 0 0 2px rgba(2, 132, 199, 0.3);
    background: rgba(2, 132, 199, 0.03);
    border-radius: 0.35rem;
}

.wcbaas-alt-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin: 0 0 0.75rem;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    background: rgba(2, 132, 199, 0.1);
    color: #075985;
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.3;
}

.model-group {
	background: #fff;
	border: 1px solid #eee;
	border-radius: 8px;
	padding: 20px;
	margin-bottom: 30px;
	box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.model-group h2 {
	font-size: 1.5rem;
	font-weight: 600;
	color: #333;
	border-bottom: 2px solid #f5f7fb;
	padding-bottom: 10px;
}

.model-group h4 {
	font-size: 1.1rem;
	font-weight: 500;
	color: #666;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

@media (max-width: 992px) {
    .wcbaas-grid {
        grid-template-columns: 1fr;
    }
}

.wmc-bas-loading {
    opacity: 0.5;
    pointer-events: none;
    transition: opacity 0.2s ease-in-out;
    position: relative;
}

.wmc-bas-loading::after {
    content: '';
    position: absolute;
    top: 25%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 4px solid rgba(0,0,0,0.1);
    border-top-color: #FF1A1A;
    border-radius: 50%;
    animation: wmc-bas-spin 1s linear infinite;
    z-index: 10;
}

@keyframes wmc-bas-spin {
    to { transform: rotate(360deg); }
}

.bapf_sfilter.bapf_button_berocket.filter-search-button .bapf_button {
    background-color: #FF1A1A;
}