.crs-wrapper {
position: relative;
width: 100%;
}
.crs-dropdown {
position: absolute;
top: calc(100% + 4px);
left: 0;
right: 0;
z-index: 99999;
background: #ffffff;
border: 1px solid #d4d4d4;
border-radius: 8px;
box-shadow: 0 8px 24px rgba(0,0,0,.12);
overflow: hidden;
max-height: 420px;
overflow-y: auto;
animation: crs-fadein .15s ease;
}
@keyframes crs-fadein {
from { opacity: 0; transform: translateY(-4px); }
to   { opacity: 1; transform: translateY(0); }
}
.crs-dropdown.crs-hidden {
display: none;
} .crs-item {
display: flex;
align-items: center;
gap: 12px;
padding: 10px 14px;
cursor: pointer;
text-decoration: none;
color: inherit;
border-bottom: 1px solid #f0f0f0;
transition: background .1s;
}
.crs-item:last-child {
border-bottom: none;
}
.crs-item:hover,
.crs-item.crs-active {
background: #f5f8ff;
}
.crs-item__thumb {
width: 48px;
height: 48px;
object-fit: contain;
border-radius: 4px;
flex-shrink: 0;
background: #f7f7f7;
}
.crs-item__info {
flex: 1;
min-width: 0;
}
.crs-item__title {
font-size: 14px;
font-weight: 600;
color: #1a1a1a;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
line-height: 1.3;
}
.crs-item__sku {
font-size: 11px;
color: #999;
margin-top: 2px;
}
.crs-item__price {
font-size: 13px;
font-weight: 700;
color: #2e7d32;
white-space: nowrap;
flex-shrink: 0;
}
.crs-item__price .woocommerce-Price-amount {
color: inherit;
} .crs-message {
padding: 14px 16px;
font-size: 13px;
color: #666;
text-align: center;
}
.crs-message.crs-loading::before {
content: '';
display: inline-block;
width: 14px;
height: 14px;
border: 2px solid #ccc;
border-top-color: #555;
border-radius: 50%;
animation: crs-spin .6s linear infinite;
margin-right: 8px;
vertical-align: middle;
}
@keyframes crs-spin {
to { transform: rotate(360deg); }
} .crs-footer {
display: block;
padding: 10px 14px;
text-align: center;
font-size: 13px;
font-weight: 600;
color: #1565c0;
border-top: 1px solid #e8e8e8;
background: #fafafa;
cursor: pointer;
text-decoration: none;
transition: background .1s;
}
.crs-footer:hover {
background: #eef3ff;
color: #0d47a1;
} .crs-highlight {
background: #fff9c4;
border-radius: 2px;
padding: 0 1px;
} @media (max-width: 480px) {
.crs-item__thumb {
width: 36px;
height: 36px;
}
.crs-item__title {
font-size: 13px;
}
}