.cw-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    /*margin-bottom: 1.5%;*/
}

.cw-carousel-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin: 10px 0;
}

.cw-carousel-col {
    flex: 1;
    min-width: 200px;
    position: relative;
}

.cw-rcarousel {
    position: relative;
    min-height: 82px;
}

.cw-rcarousel > .cw {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.45s ease;
}

.cw-rcarousel > .cw.cw-rc-active {
    opacity: 1;
    pointer-events: auto;
}
.cw-row > .cw-col:only-child {
    flex: 1 1 100%;
    max-width: 100%;
}
.cw-row.cw-overflow {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 10px;
}
.cw-row.cw-overflow::-webkit-scrollbar { height: 4px; }
.cw-row.cw-overflow::-webkit-scrollbar-track { background: transparent; }
.cw-row.cw-overflow::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 2px; }
.cw-row.cw-overflow .cw-col { flex-shrink: 0; }

.cw-col {
    flex: 1;
    min-width: 290px;
}

.cw {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fff;
    border-radius: 10px;
    border-left: 4px solid var(--widget-color, #4a90d9);
    padding: 16px 18px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: default;
    position: relative;
    overflow: hidden;
    height: 100%;
}

.cw.cw-clickable { cursor: pointer; }

.cw.cw-raw {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.cw-loading-dots {
    display: inline-flex;
    gap: 4px;
    align-items: center;
    height: 1em;
    vertical-align: middle;
}
.cw-loading-dots i {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--widget-color, #4a90d9);
    animation: cw-dot-bounce 1.4s ease-in-out infinite both;
    font-style: normal;
}
.cw-loading-dots i:nth-child(1) { animation-delay: -0.32s; }
.cw-loading-dots i:nth-child(2) { animation-delay: -0.16s; }
.cw-loading-dots i:nth-child(3) { animation-delay: 0s; }

@keyframes cw-dot-bounce {
    0%, 80%, 100% { transform: scale(0.5); opacity: 0.4; }
    40%           { transform: scale(1);   opacity: 1; }
}

.cw:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.cw-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--widget-color-light, rgba(74, 144, 217, 0.1));
    flex-shrink: 0;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.cw:hover .cw-icon-wrap { transform: scale(1.1) rotate(-8deg); }

.cw-icon {
    font-size: 22px;
    color: var(--widget-color, #4a90d9);
    line-height: 1;
}

.cw-data {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cw-count {
    font-size: var(--widget-count-size, 26px);
    font-weight: 700;
    color: #2c3e50;
    line-height: 1.1;
    letter-spacing: -0.5px;
    transition: color 0.25s ease;
}
.cw:hover .cw-count { color: var(--widget-color, #4a90d9); }

.cw-label {
    font-size: 12px;
    color: #8e99a4;
    font-weight: 500;
    margin-top: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cw-blue       { --widget-color: #4a90d9; --widget-color-light: rgba(74,144,217,.10); }
.cw-orange     { --widget-color: #e0893a; --widget-color-light: rgba(224,137,58,.10); }
.cw-red        { --widget-color: #d95c5c; --widget-color-light: rgba(217,92,92,.10); }
.cw-green      { --widget-color: #45b07c; --widget-color-light: rgba(69,176,124,.10); }
.cw-gray       { --widget-color: #8e99a4; --widget-color-light: rgba(142,153,164,.10); }
.cw-black      { --widget-color: #3d4451; --widget-color-light: rgba(61,68,81,.10); }
.cw-navy       { --widget-color: #34567a; --widget-color-light: rgba(52,86,122,.10); }
.cw-purple     { --widget-color: #8e6bb5; --widget-color-light: rgba(142,107,181,.10); }
.cw-light-blue { --widget-color: #5baed4; --widget-color-light: rgba(91,174,212,.10); }
.cw-yellow     { --widget-color: #c9a227; --widget-color-light: rgba(201,162,39,.10); }
.cw-pink       { --widget-color: #c05080; --widget-color-light: rgba(192,80,128,.10); }
.cw-teal       { --widget-color: #1a9e8f; --widget-color-light: rgba(26,158,143,.10); }
.cw-dark       { --widget-color: #2c3e50; --widget-color-light: rgba(44,62,80,.10); }
.cw-indigo     { --widget-color: #5c6bc0; --widget-color-light: rgba(92,107,192,.10); }
.cw-brown      { --widget-color: #8d6e63; --widget-color-light: rgba(141,110,99,.10); }

.cw.cw-carousel { cursor: pointer; }
.cw.cw-carousel .owl-buttons div {
    background: var(--widget-color, #4a90d9);
    opacity: 0.6;
    border-radius: 4px;
    padding: 3px 7px;
    font-size: 11px;
    transition: opacity 0.2s ease;
}
.cw.cw-carousel .owl-buttons div:hover { opacity: 1; }
.cw.cw-carousel .owl-pagination .owl-page span {
    background: var(--widget-color, #4a90d9);
    opacity: 0.35;
    width: 6px;
    height: 6px;
}
.cw.cw-carousel .owl-pagination .owl-page.active span { opacity: 1; }

.cw-carousel-label {
    font-size: 11px;
    color: #8e99a4;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}

.cw-carousel-sublabel {
    font-size: 11px;
    color: #8e99a4;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 2px;
}

@media (max-width: 992px) {
    .cw-col { min-width: 160px; max-width: 160px; }
}

@media (max-width: 768px) {
    .cw-row { gap: 10px; }
    .cw-col { flex: 1 1 calc(50% - 10px); min-width: 140px; max-width: calc(50% - 5px); }
    .cw-icon-wrap { width: 40px; height: 40px; border-radius: 10px; }
    .cw-icon  { font-size: 18px; }
    .cw-count { font-size: 22px; }
    .cw-label { font-size: 11px; }
}

.cw-overflow-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.cw-overflow-wrapper .cw-row {
    overflow-x: auto;
    scroll-behavior: smooth;
    display: flex;
    gap: 10px;
    width: 100%;
}

.cw-overflow-wrapper:hover .cw-arrow {
    display: flex;
}
.cw-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(0,0,0,0.5);
    color: #fff;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.cw-arrow-left {
    left: 5px;
}

.cw-arrow-right {
    right: 5px;
}

.cw-overflow-wrapper::before,
.cw-overflow-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    width: 40px;
    height: 100%;
    z-index: 4;
    pointer-events: none;
}

.cw-overflow-wrapper::before {
    left: 0;
    background: linear-gradient(to right, white, transparent);
}

.cw-overflow-wrapper::after {
    right: 0;
    background: linear-gradient(to left, white, transparent);
}