.ccg-guide{font-family:var(--ccg-font-family);font-size:var(--ccg-font-size);font-weight:var(--ccg-font-weight);color:var(--ccg-body-text);max-width:100%}
.ccg-toolbar{display:flex;justify-content:space-between;align-items:center;gap:14px;flex-wrap:wrap;margin-bottom:18px}
.ccg-filter-bar{display:flex;gap:12px;flex-wrap:wrap;margin-bottom:0}
.ccg-print-guide{border:0;border-radius:999px;padding:10px 16px;background:#111827;color:#fff;font-weight:700;cursor:pointer}
.ccg-filter{border:0;border-radius:999px;padding:10px 16px;background:#eef2f7;color:#465066;font-weight:700;cursor:pointer}
.ccg-filter.is-active{background:#1f2937;color:#fff}
.ccg-scroll-shell{max-height:var(--ccg-scroll-height);overflow:auto;background:var(--ccg-table-bg);padding:0;border-radius:18px}
.ccg-table{width:100%;border-collapse:separate;border-spacing:0;min-width:860px;background:var(--ccg-table-bg)}
.ccg-table th,.ccg-table td{border:4px solid var(--ccg-border);padding:20px;text-align:center;background:var(--ccg-row-bg);vertical-align:middle}
.ccg-table thead th{position:sticky;top:0;z-index:5;background:transparent;padding:0;border-top:0;overflow:visible}
.ccg-table .ccg-sticky-col{position:sticky;left:0;z-index:4;background:var(--ccg-row-bg)}
.ccg-table thead .ccg-sticky-col{z-index:6;padding:20px;background:var(--ccg-table-bg);text-transform:uppercase;letter-spacing:.03em;font-size:1.2em;color:#69707f;min-width:220px}
.ccg-channel-col{font-weight:800}
.ccg-package-card{min-height:170px;padding:20px 16px 18px;border-radius:0;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;color:var(--ccg-header-text);font-weight:800;text-transform:uppercase;letter-spacing:.02em;position:relative;overflow:visible}
.ccg-package-icon-wrap{width:110px;height:110px;border-radius:999px;background:#fff;display:flex;align-items:center;justify-content:center;color:inherit;position:absolute;top:12px;left:50%;transform:translateX(-50%);box-shadow:0 2px 6px rgba(0,0,0,.08);overflow:hidden}
.ccg-package-icon-wrap .dashicons{font-size:52px;width:52px;height:52px;color:currentColor;opacity:.92}
.ccg-package-custom-icon{width:100%;height:100%;max-width:none;max-height:none;object-fit:cover;border-radius:999px;display:block;transform-origin:center center}
.ccg-package-title{margin-top:88px;font-size:1.05em;line-height:1.2}
.ccg-channel-name-cell{text-align:left;min-width:220px;color:#757b87;font-size:1.05em;text-transform:uppercase}
.ccg-channel-name-wrap{display:flex;align-items:center;gap:14px}
.ccg-channel-logo{width:var(--ccg-logo-width);height:var(--ccg-logo-height);object-fit:contain;flex:0 0 auto}
.ccg-available-icon{display:inline-flex;align-items:center;justify-content:center;color:var(--ccg-icon-color)}
.ccg-availability-custom-icon{object-fit:contain}
@media (max-width:767px){
  .ccg-filter-bar{gap:8px}
  .ccg-filter{padding:8px 12px;font-size:14px}
  .ccg-scroll-shell{border-radius:14px}
  .ccg-table{min-width:640px}
  .ccg-package-card{min-height:126px}
  .ccg-package-icon-wrap{width:86px;height:86px;top:-8px}
  .ccg-package-icon-wrap .dashicons{font-size:40px;width:40px;height:40px}
  .ccg-package-title{margin-top:72px;font-size:.92em}
  .ccg-table th,.ccg-table td{padding:14px}
}

@media print{
  .ccg-print-guide,.ccg-filter-bar{display:none !important;}
  .ccg-toolbar{margin-bottom:0;}
  .ccg-scroll-shell{max-height:none !important;overflow:visible !important;}
  .ccg-table{min-width:0 !important;width:100% !important;}
  .ccg-guide{font-size:12px !important;}
}


@media (max-width:767px){
  .ccg-guide{font-size:calc(var(--ccg-font-size) * .9) !important;max-width:100% !important;overflow:hidden !important}
  .ccg-toolbar{align-items:stretch !important;gap:10px !important}
  .ccg-filter-bar{display:grid !important;grid-template-columns:repeat(2,minmax(0,1fr)) !important;width:100% !important;gap:8px !important}
  .ccg-filter,.ccg-print-guide{width:100% !important;min-height:42px !important;padding:9px 10px !important;white-space:normal !important}
  .ccg-scroll-shell{max-height:none !important;overflow-x:auto !important;-webkit-overflow-scrolling:touch !important;border-radius:12px !important}
  .ccg-table{min-width:560px !important}
  .ccg-table th,.ccg-table td{padding:10px !important;border-width:2px !important}
  .ccg-table thead .ccg-sticky-col,.ccg-channel-name-cell{min-width:150px !important;font-size:.9em !important}
  .ccg-package-card{min-height:104px !important;padding:12px 8px 10px !important}
  .ccg-package-icon-wrap{width:62px !important;height:62px !important;top:6px !important}
  .ccg-package-icon-wrap .dashicons{font-size:30px !important;width:30px !important;height:30px !important}
  .ccg-package-custom-icon{width:100% !important;height:100% !important;max-width:none !important;max-height:none !important;object-fit:cover !important}
  .ccg-package-title{margin-top:62px !important;font-size:.8em !important;line-height:1.15 !important}
  .ccg-channel-name-wrap{gap:8px !important}
  .ccg-channel-logo{max-width:36px !important;max-height:36px !important}
}

@media (max-width:420px){
  .ccg-filter-bar{grid-template-columns:1fr !important}
  .ccg-table{min-width:500px !important}
  .ccg-table thead .ccg-sticky-col,.ccg-channel-name-cell{min-width:128px !important}
}


/* Mobile plan/package layout fix: keep plans side-by-side and make the table swipeable on phones. */
@media (max-width:767px){
  .ccg-guide{
    overflow:visible !important;
    max-width:100% !important;
  }
  .ccg-scroll-shell{
    overflow-x:auto !important;
    overflow-y:auto !important;
    max-height:none !important;
    -webkit-overflow-scrolling:touch !important;
    scroll-snap-type:x proximity !important;
    touch-action:pan-x pan-y !important;
    background:var(--ccg-table-bg) !important;
    padding:0 0 8px !important;
    border-radius:12px !important;
  }
  .ccg-scroll-shell::-webkit-scrollbar{
    height:8px !important;
  }
  .ccg-scroll-shell::-webkit-scrollbar-thumb{
    background:rgba(17,24,39,.28) !important;
    border-radius:999px !important;
  }
  .ccg-table{
    display:table !important;
    width:max-content !important;
    min-width:720px !important;
    table-layout:fixed !important;
    border-collapse:separate !important;
    border-spacing:0 !important;
  }
  .ccg-table thead{
    display:table-header-group !important;
  }
  .ccg-table tbody{
    display:table-row-group !important;
  }
  .ccg-table tr{
    display:table-row !important;
  }
  .ccg-table th,
  .ccg-table td{
    display:table-cell !important;
    width:auto !important;
    box-sizing:border-box !important;
    padding:10px !important;
    border-width:2px !important;
    vertical-align:middle !important;
  }
  .ccg-table .ccg-sticky-col,
  .ccg-table thead .ccg-sticky-col,
  .ccg-channel-name-cell{
    position:sticky !important;
    left:0 !important;
    z-index:6 !important;
    min-width:135px !important;
    width:135px !important;
    max-width:135px !important;
    background:var(--ccg-row-bg) !important;
  }
  .ccg-table thead .ccg-sticky-col{
    z-index:8 !important;
    background:var(--ccg-table-bg) !important;
    font-size:.82em !important;
  }
  .ccg-package-col,
  .ccg-table td[data-package-col]{
    min-width:145px !important;
    width:145px !important;
    max-width:145px !important;
    scroll-snap-align:start !important;
  }
  .ccg-table td[data-package-col]::before,
  .ccg-table td[data-package-col]::after{
    content:none !important;
    display:none !important;
  }
  .ccg-package-card{
    min-height:116px !important;
    padding:12px 8px 10px !important;
    overflow:visible !important;
  }
  .ccg-package-icon-wrap{
    width:68px !important;
    height:68px !important;
    top:8px !important;
  }
  .ccg-package-icon-wrap .dashicons{
    font-size:32px !important;
    width:32px !important;
    height:32px !important;
  }
  .ccg-package-custom-icon{
    width:100% !important;
    height:100% !important;
    max-width:none !important;
    max-height:none !important;
    object-fit:cover !important;
  }
  .ccg-package-title{
    margin-top:68px !important;
    font-size:.78em !important;
    line-height:1.15 !important;
    white-space:normal !important;
    overflow-wrap:anywhere !important;
  }
  .ccg-channel-name-wrap{
    gap:8px !important;
  }
  .ccg-channel-logo{
    max-width:36px !important;
    max-height:36px !important;
  }
}

@media (max-width:420px){
  .ccg-table{
    min-width:660px !important;
  }
  .ccg-table .ccg-sticky-col,
  .ccg-table thead .ccg-sticky-col,
  .ccg-channel-name-cell{
    min-width:118px !important;
    width:118px !important;
    max-width:118px !important;
  }
  .ccg-package-col,
  .ccg-table td[data-package-col]{
    min-width:135px !important;
    width:135px !important;
    max-width:135px !important;
  }
}

/* Keep tablet/desktop layouts scrollable instead of clipped when space is tight. */
@media (min-width:768px){
  .ccg-guide{
    overflow:visible !important;
  }
  .ccg-scroll-shell{
    overflow-x:auto !important;
    -webkit-overflow-scrolling:touch !important;
  }
  .ccg-table{
    width:max-content !important;
    min-width:100% !important;
  }
  .ccg-package-col{
    min-width:150px !important;
  }
}


/* Channel title containment fix: keep long channel names inside their cells/cards. */
.ccg-channel-name-cell,
.ccg-channel-name-wrap{
  box-sizing:border-box !important;
  max-width:100% !important;
  min-width:0 !important;
  overflow:hidden !important;
}
.ccg-channel-name-wrap{
  width:100% !important;
}
.ccg-channel-name-wrap span{
  display:block !important;
  min-width:0 !important;
  max-width:100% !important;
  overflow-wrap:anywhere !important;
  word-break:break-word !important;
  white-space:normal !important;
  line-height:1.25 !important;
}
.ccg-table .ccg-sticky-col.ccg-channel-name-cell{
  overflow:hidden !important;
}
@media (max-width:767px){
  .ccg-channel-name-cell,
  .ccg-table .ccg-sticky-col.ccg-channel-name-cell{
    overflow:hidden !important;
  }
  .ccg-channel-name-wrap{
    align-items:flex-start !important;
  }
  .ccg-channel-name-wrap span{
    font-size:.86em !important;
    line-height:1.2 !important;
    hyphens:auto !important;
  }
}


/* Mobile feature parity: keep desktop controls and selected-plan isolation usable on touch devices. */
@media (max-width:767px){
  .ccg-toolbar{
    display:flex !important;
    flex-direction:column !important;
    align-items:stretch !important;
    gap:10px !important;
    margin-bottom:12px !important;
  }
  .ccg-filter-bar{
    display:flex !important;
    flex-wrap:nowrap !important;
    overflow-x:auto !important;
    -webkit-overflow-scrolling:touch !important;
    gap:8px !important;
    width:100% !important;
    padding:2px 2px 8px !important;
    scroll-snap-type:x proximity !important;
  }
  .ccg-filter{
    flex:0 0 auto !important;
    min-width:max-content !important;
    min-height:44px !important;
    padding:10px 14px !important;
    touch-action:manipulation !important;
    scroll-snap-align:start !important;
  }
  .ccg-print-guide{
    display:block !important;
    width:100% !important;
    min-height:46px !important;
    padding:11px 14px !important;
    touch-action:manipulation !important;
  }
  .ccg-filter.ccg-touch-active,
  .ccg-print-guide.ccg-touch-active{
    transform:scale(.99) !important;
  }
  .ccg-guide.ccg-is-filtered .ccg-table{
    min-width:300px !important;
    width:max-content !important;
  }
  .ccg-guide.ccg-is-filtered .ccg-package-col,
  .ccg-guide.ccg-is-filtered .ccg-table td[data-package-col]{
    min-width:155px !important;
    width:155px !important;
    max-width:155px !important;
  }
  .ccg-guide.ccg-is-filtered .ccg-selected-package-col{
    display:table-cell !important;
  }
}

@media (max-width:420px){
  .ccg-guide.ccg-is-filtered .ccg-package-col,
  .ccg-guide.ccg-is-filtered .ccg-table td[data-package-col]{
    min-width:148px !important;
    width:148px !important;
    max-width:148px !important;
  }
}

/* v1.5.2: Restore mobile plan filter buttons and keep every plan selectable. */
@media (max-width:767px){
  .ccg-toolbar{
    display:flex !important;
    flex-direction:column !important;
    align-items:stretch !important;
    gap:10px !important;
    overflow:visible !important;
  }
  .ccg-filter-bar{
    display:flex !important;
    flex-wrap:nowrap !important;
    overflow-x:auto !important;
    overflow-y:hidden !important;
    -webkit-overflow-scrolling:touch !important;
    gap:8px !important;
    width:100% !important;
    max-width:100% !important;
    padding:0 0 8px !important;
    scroll-snap-type:x proximity !important;
  }
  .ccg-filter-bar::-webkit-scrollbar{
    height:6px !important;
  }
  .ccg-filter-bar::-webkit-scrollbar-thumb{
    background:rgba(17,24,39,.22) !important;
    border-radius:999px !important;
  }
  .ccg-filter{
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    flex:0 0 auto !important;
    width:auto !important;
    max-width:80vw !important;
    min-width:max-content !important;
    white-space:nowrap !important;
    scroll-snap-align:start !important;
    touch-action:manipulation !important;
  }
  .ccg-print-guide{
    width:100% !important;
    touch-action:manipulation !important;
  }
}


/* v1.5.4: Mobile selected-plan isolation must override earlier table-cell !important rules. */
.ccg-guide.ccg-is-filtered [data-package-col]{
  display:none !important;
}
.ccg-guide.ccg-is-filtered [data-package-col].ccg-selected-package-col{
  display:table-cell !important;
}
@media (max-width:767px){
  .ccg-guide.ccg-is-filtered [data-package-col]{
    display:none !important;
  }
  .ccg-guide.ccg-is-filtered [data-package-col].ccg-selected-package-col{
    display:table-cell !important;
  }
  .ccg-guide.ccg-is-filtered .ccg-scroll-shell{
    overflow-x:auto !important;
  }
}
@media print{
  .ccg-guide.ccg-is-filtered [data-package-col]{
    display:none !important;
  }
  .ccg-guide.ccg-is-filtered [data-package-col].ccg-selected-package-col{
    display:table-cell !important;
  }
}
