/* Pack Manager 1.3.0 — compact Packell cards for shortcode and BuddyBoss activity views. */
.ccc-main-wrapper,
.ccc-post-wrapper,
.ccc-main-wrapper *,
.ccc-post-wrapper * { box-sizing: border-box; }

:root {
    --pm-blue: #0f55c5;
    --pm-blue-dark: #083e99;
    --pm-blue-bright: #2f62ff;
    --pm-teal: #00b6ab;
    --pm-orange: #ee4b1b;
    --pm-ink: #11182d;
    --pm-muted: #5e6472;
    --pm-border: #e4ebf5;
    --pm-white: #fff;
}

.ccc-error-message { font-size: 14px; margin-top: 4px !important; }
.ccc-limit-message {
    width: 100%; margin: 0 0 14px; padding: 11px 14px; text-align: center;
    background: #fff6f2; border: 1px solid #ffd7c8; border-radius: 10px; color: #9b3518;
}
.ccc-limit-message[hidden], .ccc-coupon-url, .activity-read-more { display: none !important; }
.ccc-clear-both { display: none !important; }

/* ---------------------------------------------------------
   MY PACKS SHORTCODE VIEW
   --------------------------------------------------------- */
.ccc-main-wrapper {
    display: flex; flex-wrap: wrap; align-items: stretch; gap: 14px; width: 100%;
}

.ccc-main-wrapper .ccc-coupon-box {
    position: relative; display: flex; align-items: center;
    width: calc(33.333% - 10px); min-height: 190px; margin: 0; padding: 14px;
    overflow: hidden; background: #fff; border: 1px solid var(--pm-border); border-radius: 18px;
    box-shadow: 0 4px 12px rgba(18, 41, 87, .055);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.ccc-main-wrapper .ccc-coupon-box:hover {
    transform: translateY(-3px); border-color: rgba(47, 98, 255, .28);
    box-shadow: 0 7px 17px rgba(18, 41, 87, .09);
}

.ccc-main-wrapper .ccc-coupon-left {
    position: relative; flex: 0 0 40%; width: 40%; padding-right: 14px;
}
.ccc-main-wrapper .ccc-coupon-left::before {
    content: ""; position: absolute; left: 50%; top: 50%; width: 92%; aspect-ratio: 1;
    transform: translate(-50%, -50%); border-radius: 50%;
    background: radial-gradient(circle, rgba(27,100,246,.075), rgba(27,100,246,.02) 64%, transparent 65%);
    z-index: 0;
}
.ccc-main-wrapper .ccc-coupon-left img {
    position: relative; z-index: 1; display: block; width: 100% !important; height: auto !important;
    margin: 0 auto; object-fit: contain; filter: drop-shadow(0 6px 8px rgba(8,62,153,.09));
    transition: transform .24s ease, filter .24s ease;
}
.ccc-main-wrapper .ccc-coupon-box:hover .ccc-coupon-left img {
    transform: translateY(-2px) rotate(-1deg) scale(1.015);
    filter: drop-shadow(0 8px 10px rgba(8,62,153,.13));
}

.ccc-main-wrapper .ccc-coupon-right {
    position: relative; flex: 1 1 60%; width: 60%; min-width: 0; padding-left: 2px;
}
.ccc-main-wrapper .ccc-title {
    margin: 0 0 4px; color: var(--pm-ink) !important; font-size: 16px; font-weight: 800;
    line-height: 1.25; letter-spacing: -.015em;
}
.ccc-main-wrapper .ccc-title::before { content: none !important; display: none !important; }
.ccc-main-wrapper .ccc-price {
    margin: 0 0 8px; color: var(--pm-blue) !important; font-size: 24px; font-weight: 800; line-height: 1.05;
}
.ccc-main-wrapper .ccc-description {
    margin: 0 0 10px; color: var(--pm-muted); font-size: 13px; font-weight: 500; line-height: 1.38;
}
.ccc-main-wrapper .ccc-description p { margin: 0 !important; }
.ccc-main-wrapper .ccc-coupon-usage {
    display: inline-flex; align-items: center; gap: 7px; margin: 0 0 11px;
    color: var(--pm-ink); font-size: 14px; font-weight: 700;
}
.ccc-main-wrapper .ccc-coupon-usage b {
    display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 36px;
    padding: 0 10px; color: #fff; background: linear-gradient(135deg,#ff5b24,#e33f12);
    border-radius: 9px; box-shadow: 0 4px 10px rgba(238,75,27,.16); font-size: 18px; line-height: 1;
}
.ccc-main-wrapper .ccc-post-feed-wrapper .post-feed {
    display: flex; flex-wrap: nowrap; align-items: center; gap: 8px; margin: 0;
}
.ccc-main-wrapper .post-feed button {
    flex: 1 1 0; min-width: 0; min-height: 39px; padding: 9px 12px; border: 0; border-radius: 999px;
    color: #fff; font-size: 12px; font-weight: 700; line-height: 1.05; white-space: nowrap; cursor: pointer;
    box-shadow: 0 5px 12px rgba(15,85,197,.14);
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.ccc-main-wrapper .ccc-post-in-feed { background: linear-gradient(135deg,#0f55c5,#1548a7); }
.ccc-main-wrapper .post-feed .ccc-copy-link { background: linear-gradient(135deg,#12bdb2,#009e96); }
.ccc-main-wrapper .post-feed button:hover:not(:disabled),
.ccc-main-wrapper .post-feed button:focus-visible:not(:disabled) {
    transform: translateY(-2px); filter: brightness(1.04); box-shadow: 0 8px 16px rgba(15,85,197,.20);
}
.ccc-main-wrapper .post-feed button:active:not(:disabled) { transform: translateY(0); }
.ccc-main-wrapper button:disabled { cursor: not-allowed !important; opacity: .58; filter: grayscale(.15); box-shadow: none; }

/* ---------------------------------------------------------
   BUDDYBOSS ACTIVITY FEED VIEW
   --------------------------------------------------------- */
.ccc-post-wrapper { display: block !important; width: 100% !important; max-width: 100% !important; color: inherit !important; }
.ccc-post-wrapper .ccc-coupon-box {
    position: relative !important; display: flex !important; flex-direction: row !important; flex-wrap: nowrap !important;
    align-items: center !important; gap: 14px !important; width: 100% !important; max-width: 100% !important;
    min-height: 190px !important; margin: 0 !important; padding: 14px !important; overflow: hidden !important;
    background: #fff !important; border: 1px solid var(--pm-border) !important; border-radius: 18px !important;
    box-shadow: none !important;
    transition: none !important;
}
.ccc-post-wrapper .ccc-coupon-box::after { content: none !important; display: none !important; }
.ccc-post-wrapper .ccc-coupon-left {
    position: relative !important; z-index: 1 !important; display: flex !important; align-items: center !important;
    justify-content: center !important; float: none !important; flex: 0 0 40% !important; width: 40% !important;
    max-width: 40% !important; min-width: 0 !important; margin: 0 !important; padding: 0 !important;
}
.ccc-post-wrapper .ccc-coupon-left::before {
    content: ""; position: absolute; width: 84%; aspect-ratio: 1; border-radius: 50%;
    background: radial-gradient(circle,rgba(27,100,246,.08),rgba(27,100,246,.02) 66%,transparent 67%); z-index: -1;
}
.ccc-post-wrapper .ccc-coupon-left img {
    display: block !important; width: min(92%, 230px) !important; max-width: 100% !important; height: auto !important;
    margin: 0 auto !important; object-fit: contain !important; filter: drop-shadow(0 7px 10px rgba(8,62,153,.10));
    transition: transform .24s ease, filter .24s ease !important;
}
.ccc-post-wrapper .ccc-coupon-left img:hover {
    transform: translateY(-3px) rotate(-1deg) scale(1.015) !important;
    filter: drop-shadow(0 9px 12px rgba(8,62,153,.14));
}
.ccc-post-wrapper .ccc-coupon-right {
    position: relative !important; z-index: 1 !important; display: block !important; float: none !important;
    flex: 1 1 60% !important; width: 60% !important; max-width: 60% !important; min-width: 0 !important;
    margin: 0 !important; padding: 0 !important; text-align: left !important;
}
.ccc-post-wrapper .ccc-coupon-right::before { content: none !important; display: none !important; }
.ccc-post-wrapper .ccc-coupon-right .ccc-title,
.ccc-post-wrapper .ccc-coupon-right .ccc-price,
.ccc-post-wrapper .ccc-coupon-right .ccc-description,
.ccc-post-wrapper .ccc-coupon-right .ccc-get-it { display: block !important; }
.ccc-post-wrapper .ccc-coupon-right .ccc-title {
    margin: 0 0 4px !important; color: var(--pm-ink) !important; font-size: 16px !important;
    font-weight: 800 !important; line-height: 1.25 !important; letter-spacing: -.015em !important;
}
.ccc-post-wrapper .ccc-coupon-right .ccc-title::after { content: none !important; display: none !important; }
.ccc-post-wrapper .ccc-coupon-right .ccc-price {
    margin: 0 0 8px !important; color: var(--pm-blue) !important; font-size: 24px !important;
    font-weight: 800 !important; line-height: 1.05 !important;
}
.ccc-post-wrapper .ccc-coupon-right .ccc-description {
    margin: 0 0 10px !important; color: var(--pm-muted) !important; font-size: 13px !important;
    font-weight: 500 !important; line-height: 1.38 !important;
}
.ccc-post-wrapper .ccc-description p { margin: 0 !important; }
.ccc-post-wrapper .ccc-coupon-usage {
    display: inline-flex !important; align-items: center !important; justify-content: center !important;
    min-width: 40px !important; height: 36px !important; margin: 0 7px 11px 0 !important; padding: 0 10px !important;
    color: #fff !important; background: linear-gradient(135deg,#ff5b24,#e83f12) !important; border-radius: 9px !important;
    box-shadow: 0 4px 10px rgba(238,75,27,.16) !important; font-size: 18px !important; font-weight: 800 !important; line-height: 1 !important;
}
span.ccc-coupon-usage-text {
    display: inline-block !important; color: var(--pm-ink) !important; font-size: 14px !important;
    font-weight: 700 !important; vertical-align: 2px !important;
}
.ccc-post-wrapper .ccc-coupon-right .ccc-get-it { margin: 0 !important; }
.ccc-post-wrapper .ccc-coupon-right .ccc-get-it a {
    position: relative !important; display: inline-flex !important; align-items: center !important; justify-content: center !important;
    min-width: 138px !important; min-height: 40px !important; padding: 9px 38px 9px 20px !important; overflow: hidden !important;
    color: #fff !important; background: linear-gradient(135deg,#3168ff,#244cef) !important; border: 0 !important;
    border-radius: 999px !important; box-shadow: 0 5px 12px rgba(47,98,255,.16) !important;
    font-size: 14px !important; font-weight: 750 !important; line-height: 1 !important; text-decoration: none !important;
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease !important;
}
.ccc-post-wrapper .ccc-coupon-right .ccc-get-it a::after {
    content: "→"; position: absolute; right: 15px; top: 50%; transform: translateY(-52%);
    font-size: 22px; font-weight: 300; transition: transform .18s ease;
}
.ccc-post-wrapper .ccc-coupon-right .ccc-get-it a:hover,
.ccc-post-wrapper .ccc-coupon-right .ccc-get-it a:focus-visible {
    transform: translateY(-2px) !important; filter: brightness(1.05) !important;
    box-shadow: 0 10px 20px rgba(47,98,255,.27) !important;
}
.ccc-post-wrapper .ccc-coupon-right .ccc-get-it a:hover::after,
.ccc-post-wrapper .ccc-coupon-right .ccc-get-it a:focus-visible::after { transform: translate(4px,-52%); }

nav.activity-type-navs.main-navs.bp-navs.dir-navs.bp-subnavs,
.buddypress-wrap .subnav-filters .bp-search { margin: 0; }

@media (max-width: 1200px) {
    .ccc-main-wrapper .ccc-coupon-box { width: calc(50% - 7px); }
}

@media (max-width: 900px) {
    .ccc-main-wrapper .ccc-coupon-box { min-height: 182px; padding: 13px; }
    .ccc-main-wrapper .post-feed button { padding-left: 9px; padding-right: 9px; font-size: 11px; }
    .ccc-post-wrapper .ccc-coupon-box { gap: 13px !important; min-height: 182px !important; padding: 13px !important; }
    .ccc-post-wrapper .ccc-coupon-left { flex-basis: 38% !important; width: 38% !important; max-width: 38% !important; }
    .ccc-post-wrapper .ccc-coupon-right { width: 62% !important; max-width: 62% !important; }
}

@media (max-width: 720px) {
    .ccc-main-wrapper .ccc-coupon-box { width: 100%; min-height: 190px; }
    .ccc-main-wrapper .ccc-coupon-left { flex-basis: 36%; width: 36%; }
    .ccc-main-wrapper .ccc-coupon-right { width: 64%; }

    .ccc-post-wrapper .ccc-coupon-box {
        flex-direction: row !important; align-items: center !important; gap: 14px !important;
        min-height: 172px !important; padding: 12px !important;
    }
    .ccc-post-wrapper .ccc-coupon-left { flex: 0 0 36% !important; width: 36% !important; max-width: 36% !important; }
    .ccc-post-wrapper .ccc-coupon-right { flex: 1 1 60% !important; width: 60% !important; max-width: 60% !important; text-align: left !important; }
    .ccc-post-wrapper .ccc-coupon-left img { width: min(92%,190px) !important; }
    .ccc-post-wrapper .ccc-coupon-right .ccc-get-it a { min-width: 145px !important; min-height: 42px !important; font-size: 14px !important; }
}

@media (max-width: 480px) {
    .ccc-main-wrapper .ccc-coupon-box { padding: 14px; }
    .ccc-main-wrapper .ccc-coupon-left { flex-basis: 34%; width: 34%; padding-right: 10px; }
    .ccc-main-wrapper .ccc-coupon-right { width: 66%; }
    .ccc-main-wrapper .ccc-title { font-size: 14px; }
    .ccc-main-wrapper .ccc-price { font-size: 21px; }
    .ccc-main-wrapper .ccc-description { font-size: 12px; margin-bottom: 8px; }
    .ccc-main-wrapper .ccc-coupon-usage { margin-bottom: 9px; }
    .ccc-main-wrapper .ccc-coupon-usage b { min-width: 36px; height: 33px; font-size: 16px; }
    .ccc-main-wrapper .ccc-post-feed-wrapper .post-feed { gap: 6px; }
    .ccc-main-wrapper .post-feed button { min-height: 36px; padding: 8px 7px; font-size: 10.5px; }

    .ccc-post-wrapper .ccc-coupon-box { gap: 10px !important; min-height: 158px !important; padding: 10px !important; }
    .ccc-post-wrapper .ccc-coupon-left { flex-basis: 34% !important; width: 34% !important; max-width: 34% !important; }
    .ccc-post-wrapper .ccc-coupon-right { width: 66% !important; max-width: 66% !important; }
    .ccc-post-wrapper .ccc-coupon-right .ccc-title { font-size: 16px !important; }
    .ccc-post-wrapper .ccc-coupon-right .ccc-price { font-size: 23px !important; margin-bottom: 7px !important; }
    .ccc-post-wrapper .ccc-coupon-right .ccc-description { font-size: 12.5px !important; margin-bottom: 9px !important; }
    .ccc-post-wrapper .ccc-coupon-usage { min-width: 42px !important; height: 35px !important; padding: 0 9px !important; font-size: 17px !important; margin-bottom: 9px !important; }
    span.ccc-coupon-usage-text { font-size: 14px !important; }
    .ccc-post-wrapper .ccc-coupon-right .ccc-get-it a { min-width: 125px !important; min-height: 38px !important; padding: 9px 35px 9px 18px !important; font-size: 13px !important; border-radius: 13px !important; }
    .ccc-post-wrapper .ccc-coupon-right .ccc-get-it a::after { right: 14px; font-size: 18px; }
}

/* ---------------------------------------------------------
   1.4.0 UNIFIED COMPACT CARD RHYTHM
   Keeps the shortcode and BuddyBoss cards visually aligned.
   --------------------------------------------------------- */
:root {
    --pm-card-pad: 10px;
    --pm-card-gap: 14px;
    --pm-title-size: 14px;
    --pm-price-size: 20px;
    --pm-description-size: 14px;
    --pm-label-size: 14px;
    --pm-action-size: 14px;
}

/* Shared proportions and vertical rhythm. */
.ccc-main-wrapper .ccc-coupon-box,
.ccc-post-wrapper .ccc-coupon-box {
    min-height: 154px !important;
    padding: var(--pm-card-pad) !important;
    gap: var(--pm-card-gap) !important;
    border-radius: 14px !important;
}

.ccc-main-wrapper .ccc-coupon-left,
.ccc-post-wrapper .ccc-coupon-left {
    flex: 0 0 36% !important;
    width: 36% !important;
    max-width: 36% !important;
    padding: 0 !important;
}

.ccc-main-wrapper .ccc-coupon-right,
.ccc-post-wrapper .ccc-coupon-right {
    flex: 1 1 64% !important;
    width: 64% !important;
    max-width: 64% !important;
    padding: 0 !important;
    margin: 0 !important;
}

.ccc-main-wrapper .ccc-coupon-left img,
.ccc-post-wrapper .ccc-coupon-left img {
    width: min(100%, 190px) !important;
    max-height: 180px !important;
    object-fit: contain !important;
}

.ccc-main-wrapper .ccc-title,
.ccc-post-wrapper .ccc-coupon-right .ccc-title {
    margin: 0 0 2px !important;
    font-size: var(--pm-title-size) !important;
    line-height: 1.25 !important;
}

.ccc-main-wrapper .ccc-price,
.ccc-post-wrapper .ccc-coupon-right .ccc-price {
    margin: 0 0 6px !important;
    font-size: var(--pm-price-size) !important;
    line-height: 1.05 !important;
}

.ccc-main-wrapper .ccc-description,
.ccc-post-wrapper .ccc-coupon-right .ccc-description {
    margin: 0 0 7px !important;
    font-size: var(--pm-description-size) !important;
    line-height: 1.32 !important;
}

.ccc-main-wrapper .ccc-coupon-usage,
.ccc-post-wrapper .ccc-coupon-usage {
    margin-bottom: 8px !important;
}

.ccc-main-wrapper .ccc-coupon-usage b,
.ccc-post-wrapper .ccc-coupon-usage {
    min-width: 36px !important;
    height: 32px !important;
    padding: 0 9px !important;
    border-radius: 8px !important;
    font-size: 16px !important;
    box-shadow: none !important;
}

.ccc-main-wrapper .ccc-coupon-usage,
span.ccc-coupon-usage-text {
    gap: 6px !important;
    font-size: var(--pm-label-size) !important;
    line-height: 1 !important;
}

/* Shortcode actions stay side-by-side until very narrow screens. */
.ccc-main-wrapper .ccc-post-feed-wrapper .post-feed {
    gap: 7px !important;
}
.ccc-main-wrapper .post-feed button {
    min-height: 36px !important;
    padding: 8px 11px !important;
    font-size: 12px !important;
    box-shadow: none !important;
}

/* Activity: no card hover or card shadow; only image and CTA animate. */
.ccc-post-wrapper .ccc-coupon-box,
.ccc-post-wrapper .ccc-coupon-box:hover {
    transform: none !important;
    box-shadow: none !important;
    transition: none !important;
}
.ccc-post-wrapper .ccc-coupon-right .ccc-get-it a {
    min-width: 128px !important;
    min-height: 36px !important;
    padding: 8px 34px 8px 18px !important;
    font-size: var(--pm-action-size) !important;
    box-shadow: none !important;
}
.ccc-post-wrapper .ccc-coupon-right .ccc-get-it a:hover,
.ccc-post-wrapper .ccc-coupon-right .ccc-get-it a:focus-visible {
    box-shadow: 0 6px 14px rgba(47,98,255,.18) !important;
}

@media (max-width: 720px) {
    .ccc-main-wrapper .ccc-coupon-box,
    .ccc-post-wrapper .ccc-coupon-box {
        min-height: 146px !important;
        padding: 9px !important;
        gap: 11px !important;
    }
    .ccc-main-wrapper .ccc-coupon-left,
    .ccc-post-wrapper .ccc-coupon-left {
        flex-basis: 34% !important;
        width: 34% !important;
        max-width: 34% !important;
    }
    .ccc-main-wrapper .ccc-coupon-right,
    .ccc-post-wrapper .ccc-coupon-right {
        width: 66% !important;
        max-width: 66% !important;
    }
}

@media (max-width: 480px) {
    .ccc-main-wrapper .ccc-title,
    .ccc-post-wrapper .ccc-coupon-right .ccc-title { font-size: 13px !important; }
    .ccc-main-wrapper .ccc-price,
    .ccc-post-wrapper .ccc-coupon-right .ccc-price { font-size: 19px !important; }
    .ccc-main-wrapper .ccc-description,
    .ccc-post-wrapper .ccc-coupon-right .ccc-description { font-size: 12px !important; }
    .ccc-main-wrapper .post-feed button { padding-inline: 7px !important; font-size: 10.5px !important; }
    .ccc-post-wrapper .ccc-coupon-right .ccc-get-it a { min-width: 112px !important; font-size: 12px !important; }
}
