/**
 * Cross Widget Styles
 * @package MyChooz_Partners
 */

.mcp-cross-widget {
    max-width: 560px;
    width: 100%;
    margin: 0px auto;
    position: relative;
    overflow: visible;
    transition: all .3s ease;
}

.mcp-cross-widget:hover {
    transform: translateY(-2px);
}

/* Badge styles in assets/css/badge.css (single source of truth) */

.mcp-cross-inner {
    background: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 11px;
    overflow: hidden;
    transition: all .3s ease;
}

.mcp-cross-widget:hover .mcp-cross-inner {
    border-color: #ff6b35;
    box-shadow: 0 8px 30px rgba(255,107,53,.18);
}

.mcp-cross-body.with-scroll {
    max-height: 105px;
    overflow-y: auto;
    overflow-x: hidden;
}

.mcp-cross-body.with-scroll::-webkit-scrollbar { width: 6px; }
.mcp-cross-body.with-scroll::-webkit-scrollbar-track { background: #f1f3f4; }
.mcp-cross-body.with-scroll::-webkit-scrollbar-thumb { background: #cbd5e0; border-radius: 3px; }
.mcp-cross-body.with-scroll::-webkit-scrollbar-thumb:hover { background: #a0aec0; }

.mcp-cross-row {
    display: grid;
    grid-template-columns: 28px 1fr 55px 70px;
    align-items: center;
    gap: 6px;
    padding: 5px 8px;
    border-bottom: 1px solid #f1f3f4;
    transition: background .2s;
    text-decoration: none;
    color: inherit;
}
.mcp-cross-row:last-child { border-bottom: none; }
.mcp-cross-row:hover { background: #fafbfc; }

.mcp-cross-row-image {
    width: 28px;
    height: 28px;
    border-radius: 5px;
    overflow: hidden;
    flex-shrink: 0;
}
.mcp-cross-row-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.mcp-cross-row-title {
    font-size: 13px;
    font-weight: 600;
    color: #1a202c;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mcp-cross-row-price {
    font-size: 13px;
    font-weight: 700;
    color: #E53E3E;
    text-align: right;
    white-space: nowrap;
}

.mcp-cross-row-button {
    background: linear-gradient(135deg, #ff5959, #e53e3e);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    padding: 5px 8px;
    cursor: pointer;
    transition: all .2s;
    text-align: center;
    line-height: 1;
}
.mcp-cross-row-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(229,62,62,.3);
}

@media (max-width: 640px) {
    .mcp-cross-row {
        grid-template-columns: 25px 1fr 50px 65px;
        gap: 5px;
        padding: 4px 6px;
    }
    .mcp-cross-row-image { width: 25px; height: 25px; border-radius: 4px; }
    .mcp-cross-row-title { font-size: 11px; }
    .mcp-cross-row-price { font-size: 12px; }
    .mcp-cross-row-button { font-size: 10px; padding: 4px 6px; }
    /* Badge mobile styles in assets/css/badge.css */
}

/* SSR only - no loading states needed */
