/* Customer Success Stat Card  */
.customer-success-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #eef1f6;
    padding: 2.5rem;
}

.customer-success-card[data-card-url] {
    cursor: pointer;
}

/* Top stat (number) ÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬Â matches the yellow-stat-cards sizing at every breakpoint */
.customer-success-card .csc-stat {
    font-family: var(--wp--font--primary);
    font-weight: bold;
    color: var(--wp--color--accent);
    font-size: 2rem;
    line-height: 1;
    margin: 0;
    text-transform: none;
}

@media only screen and (max-width: 1300px) {
    .customer-success-card .csc-stat { font-size: 1.75rem; }
}

@media only screen and (max-width: 960px) {
    .customer-success-card .csc-stat { font-size: 1.625rem; }
}

@media only screen and (max-width: 600px) {
    .customer-success-card .csc-stat { font-size: 1.5rem; }
}

@media only screen and (max-width: 430px) {
    .customer-success-card {
        padding:2rem;
    }
    .customer-success-card .csc-stat { font-size: 1.25rem; }
}

@media only screen and (max-width: 380px) {
    .customer-success-card {
        padding:1.5rem;
    }
    .customer-success-card .csc-stat { font-size: 1.125rem; }
}


/* Subtitle ÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬Â yellow-stat-cards label style (uppercase Alliance bold) */
.customer-success-card .csc-subtitle {
    font-family: var(--wp--font--primary);
    font-weight: bold;
    text-transform: uppercase;
    color: var(--wp--color--dark-gray);
    font-size: 0.875rem;
    margin-bottom:1.5rem;
}

/* Section labels ÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬Â hover-tabs-ci content H3 style + divider */
.customer-success-card .csc-label {
    font-family: var(--wp--font--primary);
    font-weight: 700;
    color: #000;
    text-transform:capitalize;
    font-size: 1.25rem;
    line-height: 1.2;
    margin: 2.25rem 0 0;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}

.customer-success-card .csc-label + p {
    margin-top: 1rem;
}

.customer-success-card p {
    color: var(--wp--color--dark-gray);
    line-height: 1.5;
    margin-bottom:0;
}

/* Quote */
.customer-success-card .csc-quote {
    font-style: italic;
    margin-top: 1.75rem;
    padding-top: 1.75rem;
    border-top: 1px solid rgba(0, 0, 0, 0.12);
}

/* Attribution row (logo + name/role). Flex layout comes from core/group layout attrs;
   these declarations cover gap/sizing and any non-flex fallback. */
.customer-success-card .csc-attribution {
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.25rem 0.4ch;
    margin-top: 1.25rem;
}

/* Stat + logo share a flex row (the logo is moved here server-side from the
   attribution group Ã¢â‚¬â€ see csc_pair_logo_with_stat()). On a single line the stat
   sits left and the logo right; wrap-reverse makes the logo wrap ABOVE the
   heading when the card is too narrow to fit both side by side. */
.customer-success-card .csc-stat-row {
    display: flex;
    flex-wrap: wrap-reverse;
    align-items: center;
    /* align-items: flex-end; */
    justify-content: space-between;
    gap: 0.75rem 1rem;
}

.customer-success-card .csc-stat-row .csc-stat {
    flex: 1 1 auto;
}

.customer-success-card .csc-logo {
    flex: 0 0 auto;
    margin: 0;
    width: 140px;
}

.customer-success-card .csc-logo img {
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width:1680px){
    .customer-success-card .csc-stat-row .csc-stat {
        flex-basis:100%;
    }
    .customer-success-card .mt-builders-csc-logo {
        width:50px;
    }
    .customer-success-card .mt-builders-csc-logo img {
        aspect-ratio: 100 / 110;
        object-fit: cover;
        max-height:66px;
    }
}

/* Name + role collapse onto a single line (override core's is-vertical column). */
.customer-success-card .csc-attribution-text {
    flex-direction: row !important;
    flex-wrap: wrap;
    align-items: baseline;
    margin: 0;
    gap: 0.4ch;
}

/* Shared style for name + role: uppercase, non-bold, same font (see rev). */
.customer-success-card .csc-attrib-name,
.customer-success-card .csc-attrib-role {
    font-weight: 400;
    /* text-transform: uppercase; */
    /* letter-spacing: 0.04em; */
    color: var(--wp--color--dark-gray);
    /* font-size: 0.75rem; */
    line-height: 1.4;
    margin: 0;
}

/* Button ÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬Â grey-img-card style: full width, black default ÃƒÂ¢Ã¢â‚¬Â Ã¢â‚¬â„¢ grey on card hover */
.customer-success-card .csc-button {
    margin-top: auto;
    padding-top: 1.75rem;
    width: 100%;
    display: flex;
    justify-content: flex-start;
}

.customer-success-card .csc-button .wp-block-button,
.customer-success-card .csc-button .wp-block-button__link.wp-element-button {
    width: auto;
}

.customer-success-card .csc-button a.wp-block-button__link.wp-element-button {
    background-color: #000;
    color: #fff !important;
}

/* Hover animation only when the cursor is over the button itself. */
.customer-success-card .csc-button a.wp-block-button__link.wp-element-button:hover,
.customer-success-card .csc-button a.wp-block-button__link.wp-element-button:focus {
    background-color: var(--wp--color--light-gray);
    color: #000 !important;
}

/* Ã¢â€â‚¬Ã¢â€â‚¬ Mobile carousel (<=781px) Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬
   Slick is initialised on .customer-success-stat-cards only at this breakpoint
   (see customer-success-card-carousel.js). Arrows on either side; no dots. */
@media only screen and (max-width: 781px) {
    /* Override the columns' flex layout so Slick's list/arrows lay out correctly */
    .customer-success-stat-cards.slick-initialized {
        display: block;
        position: relative;
        padding-left: 2.5rem;
        padding-right: 2.5rem;
    }

    /* Each slide fills the viewport width */
    .customer-success-stat-cards.slick-initialized .wp-block-column {
        height: auto;
    }

    .customer-success-stat-cards .csc-carousel-arrow {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        z-index: 5;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 2rem;
        height: 2rem;
        padding: 0;
        margin: 0;
        border: 1px solid var(--wp--color--light-gray);
        border-radius: 50%;
        background: #fff;
        cursor: pointer;
    }

    .customer-success-stat-cards .csc-carousel-arrow--prev { left: 0; }
    .customer-success-stat-cards .csc-carousel-arrow--next { right: 0; }

    .customer-success-stat-cards .csc-carousel-arrow img {
        display: block;
        width: 18px;
        height: 18px;
    }

    /* The chevron points down; rotate it to point left (prev) / right (next) */
    .customer-success-stat-cards .csc-carousel-arrow--prev img { transform: rotate(90deg); }
    .customer-success-stat-cards .csc-carousel-arrow--next img { transform: rotate(-90deg); }

    /* Hide Slick's default font-icon arrow glyphs */
    .customer-success-stat-cards .slick-prev:before,
    .customer-success-stat-cards .slick-next:before {
        display: none;
    }

    .customer-success-card .csc-label {
        font-size:1.25rem;
    }
}