            .ccg-wrapper,
            .ccg-wrapper * {
                box-sizing: border-box;
            }

            .ccg-wrapper {
                --ccg-primary: #ea580c;
                --ccg-primary-hover: #c2410c;
                --ccg-glow: rgba(234, 88, 12, 0.20);
                --ccg-text: #111827;
                --ccg-muted: #667085;
                --ccg-line: #e5e7eb;
                --ccg-soft: #f8fafc;
                --ccg-badge: #f3f4f6;
                --ccg-shadow: 0 12px 30px rgba(17, 24, 39, 0.07);
                color: var(--ccg-text);
                font-family: inherit;
                width: 100%;
            }

            .ccg-toolbar {
                display: flex;
                align-items: flex-end;
                justify-content: space-between;
                gap: 16px;
                margin: 0 0 18px;
            }

            .ccg-summary {
                display: flex;
                align-items: center;
                gap: 8px;
                min-height: 42px;
                color: var(--ccg-muted);
                font-size: 14px;
                line-height: 1.2;
            }

            .ccg-active-note {
                border: 1px solid var(--ccg-line);
                border-radius: 999px;
                color: #b45309;
                font-size: 12px;
                font-weight: 700;
                padding: 4px 9px;
            }

            .ccg-controls {
                display: flex;
                align-items: flex-end;
                justify-content: flex-end;
                gap: 10px;
                flex-wrap: wrap;
            }

            .ccg-control {
                display: flex;
                flex-direction: column;
                gap: 6px;
            }

            .ccg-control label {
                color: var(--ccg-muted);
                font-size: 12px;
                font-weight: 700;
                letter-spacing: 0.01em;
            }

            .ccg-control select {
                appearance: none;
                background: #fff;
                border: 1px solid var(--ccg-line);
                border-radius: 12px;
                color: var(--ccg-text);
                cursor: pointer;
                font: inherit;
                font-size: 14px;
                min-height: 42px;
                min-width: 190px;
                outline: none;
                padding: 0 38px 0 14px;
                transition: border-color 0.2s ease, box-shadow 0.2s ease;
                background-image: linear-gradient(45deg, transparent 50%, var(--ccg-muted) 50%), linear-gradient(135deg, var(--ccg-muted) 50%, transparent 50%);
                background-position: calc(100% - 18px) 18px, calc(100% - 12px) 18px;
                background-size: 6px 6px, 6px 6px;
                background-repeat: no-repeat;
            }

            .ccg-control select:focus {
                border-color: #b45309;
                box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.16);
            }

            .ccg-mobile-filter-btn {
                display: none;
            }

            .ccg-card-list {
                display: grid;
                gap: 14px;
            }

            .ccg-card {
                align-items: center;
                background: #fff;
                border: 1px solid var(--ccg-line);
                border-radius: 18px;
                box-shadow: var(--ccg-shadow);
                display: grid;
                gap: 20px;
                grid-template-columns: 132px minmax(0, 1fr) 170px;
                padding: 20px;
                transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
            }

            .ccg-card-featured {
                border-color: rgba(234, 88, 12, 0.32);
            }

            .ccg-card:hover {
                border-color: rgba(234, 88, 12, 0.24);
                box-shadow: 0 16px 36px rgba(17, 24, 39, 0.1);
                transform: translateY(-1px);
            }

            .ccg-card[hidden] {
                display: none !important;
            }

            .ccg-logo {
                align-items: center;
                background: var(--ccg-soft);
                border: 1px solid var(--ccg-line);
                border-radius: 14px;
                display: flex;
                height: 86px;
                justify-content: center;
                padding: 14px;
            }

            .ccg-logo img {
                display: block;
                height: auto;
                max-height: 58px;
                max-width: 100%;
                object-fit: contain;
                width: auto;
            }

            .ccg-title-row {
                display: flex;
                align-items: center;
                flex-wrap: wrap;
                gap: 10px;
                margin: 0 0 10px;
            }

            .ccg-title-row h3,
            .ccg-info h3 {
                color: var(--ccg-text);
                font-size: clamp(18px, 2vw, 21px);
                line-height: 1.2;
                margin: 0;
            }

            .ccg-featured-badge {
                align-items: center;
                background: rgba(234, 88, 12, 0.10);
                border: 1px solid rgba(234, 88, 12, 0.26);
                border-radius: 999px;
                color: #b45309;
                display: inline-flex;
                font-size: 11px;
                font-weight: 800;
                line-height: 1;
                padding: 7px 10px;
                white-space: nowrap;
            }

            .ccg-badges {
                display: flex;
                flex-wrap: wrap;
                gap: 7px;
                margin: 0 0 10px;
            }

            .ccg-badge {
                background: var(--ccg-badge);
                border: 1px solid rgba(17, 24, 39, 0.04);
                border-radius: 999px;
                color: #374151;
                display: inline-flex;
                font-size: 12px;
                font-weight: 700;
                line-height: 1.2;
                padding: 6px 9px;
                white-space: nowrap;
            }

            .ccg-info p {
                color: #4b5563;
                font-size: 14px;
                line-height: 1.55;
                margin: 0;
            }

            .ccg-cta {
                align-items: stretch;
                display: flex;
                flex-direction: column;
                gap: 7px;
                justify-content: center;
            }

            .ccg-btn {
                align-items: center;
                background: linear-gradient(180deg, #f97316 0%, var(--ccg-primary) 100%);
                border-radius: 12px;
                box-shadow: 0 8px 18px rgba(234, 88, 12, 0.18);
                color: #fff !important;
                display: inline-flex;
                font-size: 14px;
                font-weight: 800;
                justify-content: center;
                line-height: 1;
                min-height: 44px;
                padding: 13px 16px;
                text-align: center;
                text-decoration: none !important;
                transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
                width: 100%;
            }

            .ccg-btn:hover,
            .ccg-btn:focus {
                background: linear-gradient(180deg, #fb923c 0%, var(--ccg-primary-hover) 100%);
                box-shadow: 0 10px 22px rgba(234, 88, 12, 0.22);
                color: #fff !important;
                transform: translateY(-1px);
            }
.ccg-ad {
                color: var(--ccg-muted);
                font-size: 11px;
                line-height: 1;
                text-align: center;
            }

            .ccg-drawer {
                display: none;
            }

            .ccg-error {
                border: 1px solid #fecaca;
                border-radius: 12px;
                color: #991b1b;
                padding: 12px 14px;
            }

            @media (max-width: 960px) {
                .ccg-card {
                    grid-template-columns: 112px minmax(0, 1fr) 154px;
                    gap: 16px;
                    padding: 18px;
                }
            }

            @media (max-width: 760px) {
                .ccg-toolbar {
                    align-items: center;
                    gap: 10px;
                    margin-bottom: 14px;
                }

                .ccg-desktop-controls {
                    display: none;
                }

                .ccg-summary {
                    font-size: 13px;
                    min-height: 38px;
                }

                .ccg-mobile-filter-btn {
                    align-items: center;
                    background: #fff;
                    border: 1px solid var(--ccg-line);
                    border-radius: 999px;
                    color: var(--ccg-text);
                    cursor: pointer;
                    display: inline-flex;
                    font: inherit;
                    font-size: 13px;
                    font-weight: 800;
                    gap: 8px;
                    min-height: 38px;
                    padding: 0 12px;
                    white-space: nowrap;
                }

                .ccg-mobile-count {
                    background: var(--ccg-soft);
                    border-radius: 999px;
                    color: var(--ccg-muted);
                    font-size: 11px;
                    padding: 4px 7px;
                }

                .ccg-card-list {
                    gap: 12px;
                }

                .ccg-card {
                    gap: 13px;
                    grid-template-columns: 1fr;
                    padding: 14px;
                    border-radius: 16px;
                }

                .ccg-card:hover {
                    transform: none;
                }

                .ccg-logo {
                    height: 72px;
                    padding: 12px;
                }

                .ccg-logo img {
                    max-height: 48px;
                }

                .ccg-title-row {
                    gap: 8px;
                    margin-bottom: 8px;
                }

                .ccg-title-row h3,
                .ccg-info h3 {
                    font-size: 18px;
                }

                .ccg-featured-badge {
                    font-size: 10px;
                    padding: 6px 8px;
                }

                .ccg-badges {
                    gap: 6px;
                    margin-bottom: 9px;
                }

                .ccg-badge {
                    font-size: 11px;
                    padding: 5px 8px;
                }

                .ccg-info p {
                    font-size: 13px;
                }

                .ccg-btn {
                    min-height: 42px;
                }

                .ccg-drawer {
                    background: rgba(17, 24, 39, 0.42);
                    display: block;
                    inset: 0;
                    opacity: 0;
                    pointer-events: none;
                    position: fixed;
                    transition: opacity 0.2s ease, visibility 0.2s ease;
                    visibility: hidden;
                    z-index: 999999;
                }

                .ccg-drawer-panel {
                    background: #fff;
                    bottom: 0;
                    box-shadow: -18px 0 40px rgba(17, 24, 39, 0.16);
                    display: flex;
                    flex-direction: column;
                    gap: 18px;
                    max-width: 380px;
                    padding: 20px;
                    position: absolute;
                    right: 0;
                    top: 0;
                    transform: translateX(100%);
                    transition: transform 0.24s ease;
                    width: min(88vw, 380px);
                }

                .ccg-wrapper.ccg-drawer-open .ccg-drawer {
                    opacity: 1;
                    pointer-events: auto;
                    visibility: visible;
                }

                .ccg-wrapper.ccg-drawer-open .ccg-drawer-panel {
                    transform: translateX(0);
                }

                .ccg-drawer-head {
                    align-items: flex-start;
                    border-bottom: 1px solid var(--ccg-line);
                    display: flex;
                    justify-content: space-between;
                    gap: 16px;
                    padding-bottom: 16px;
                }

                .ccg-drawer-head h3 {
                    font-size: 18px;
                    line-height: 1.2;
                    margin: 0 0 4px;
                }

                .ccg-drawer-head p {
                    color: var(--ccg-muted);
                    font-size: 13px;
                    margin: 0;
                }

                .ccg-drawer-close {
                    background: transparent;
                    border: 0;
                    color: #b45309;
                    cursor: pointer;
                    font: inherit;
                    font-size: 13px;
                    font-weight: 800;
                    padding: 2px 0;
                }

                .ccg-drawer-controls {
                    display: grid;
                    gap: 14px;
                }

                .ccg-drawer-controls .ccg-control select {
                    min-width: 0;
                    width: 100%;
                }

                .ccg-drawer-actions {
                    border-top: 1px solid var(--ccg-line);
                    display: grid;
                    gap: 10px;
                    grid-template-columns: 1fr 1.6fr;
                    margin-top: auto;
                    padding-top: 16px;
                }

                .ccg-reset-btn,
                .ccg-apply-btn {
                    border-radius: 12px;
                    cursor: pointer;
                    font: inherit;
                    font-size: 14px;
                    font-weight: 800;
                    min-height: 44px;
                    padding: 0 14px;
                }

                .ccg-reset-btn {
                    background: #fff;
                    border: 1px solid var(--ccg-line);
                    color: var(--ccg-text);
                }

                .ccg-apply-btn {
                    background: linear-gradient(180deg, #f97316 0%, var(--ccg-primary) 100%);
                    border: 1px solid var(--ccg-primary);
                    color: #fff;
                }
            }

/* Preserve the original card height when themes apply generic article sizing. */
.ccg-wrapper article.ccg-card {
    height: auto !important;
    min-height: 0 !important;
}
