:root {
    --ct-button-brand: #b1003b;
}

/* Shared button styles take precedence over the existing page themes. */
:is(body,#page):is(body,#page):is(body,#page):is(body,#page) :is(
    .entry-content button,
    .entry-content input:is([type="submit"],[type="button"],[type="reset"]),
    .entry-content [role="button"],
    .entry-content a:is(.button,.btn,.wp-element-button,.wp-block-button__link,.ast-button,.download,.ct-slide-link,.ct-follow-cta,.cts-sol-button,.ct-career-jump,.ct-career-call,.ctpb-ipc-product-slides),
    .ctpb-ipc-dialog button,
    .ctpb-service-end :is(a,summary,button),
    .ct-page-sharing :is(a,button),
    .ctc-contact-action a,
    .ctpb-ipc-hero-links a,
    .ct-job-actions :is(a,button),
    .ct-job-dialog button,
    .ct-local-welcome .welcome-copy nav a,
    #ct-floating-contacts a
) {
    background: var(--ct-button-brand) !important;
    border-color: var(--ct-button-brand) !important;
    color: #fff !important;
    text-decoration: none !important;
}

:is(body,#page):is(body,#page):is(body,#page):is(body,#page) :is(
    .entry-content button:not([data-job-close],[aria-label="Previous"],[aria-label="Next"]),
    .entry-content input:is([type="submit"],[type="button"],[type="reset"]),
    .entry-content [role="button"],
    .entry-content a:is(.button,.btn,.wp-element-button,.wp-block-button__link,.ast-button,.download,.ct-slide-link,.ct-follow-cta,.cts-sol-button,.ct-career-jump,.ct-career-call,.ctpb-ipc-product-slides),
    .ctpb-ipc-dialog button,
    .ctpb-service-end :is(a,summary,button),
    .ct-page-sharing :is(a,button),
    .ctc-contact-action a,
    .ctpb-ipc-hero-links a,
    .ct-job-actions :is(a,button),
    .ct-local-welcome .welcome-copy nav a
) {
    border-radius: 8px !important;
}

:is(body,#page):is(body,#page):is(body,#page):is(body,#page) :is(
    .ctpb-ipc-product-tabs button,
    .ctpb-ipc-topic-grid button,
    .ct-local-welcome .welcome-copy nav a
) :is(span,strong,small) {
    color: #fff !important;
}

:is(body,#page):is(body,#page):is(body,#page):is(body,#page) :is(
    .ctpb-ipc-product-tabs button,
    .ctpb-ipc-lifecycle button
)[aria-pressed="true"] {
    outline: 2px solid #fff;
    outline-offset: -4px;
}

/* Text actions use the same compact sizing as the shared footer actions. */
:is(body,#page#page#page#page) :is(
    .ctpb-service-share > a,
    .ctpb-service-share summary,
    .ctpb-service-actions > a,
    .ct-page-sharing :is(a,button),
    .ctpb-ipc-topic-grid button,
    .ctpb-ipc-hero-links a,
    .ctpb-ipc-product-slides,
    .entry-content a:is(.wp-block-button__link,.download,.ct-slide-link,.ct-follow-cta,.cts-sol-button,.ct-career-jump,.ct-career-call),
    .entry-content :is(input[type="submit"],button[type="submit"]),
    .ct-job-actions :is(a,button),
    .ct-local-welcome .welcome-copy nav a
) {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content !important;
    max-width: 100%;
    height: auto !important;
    min-height: 38px !important;
    padding: 6px 12px !important;
    font-size: 14px !important;
    line-height: 1.35 !important;
    text-align: center;
    border-radius: 8px !important;
}
:is(body,#page#page#page#page) .ctpb-ipc-topic-grid {
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}
:is(body,#page#page#page#page) .ctpb-ipc-topic-grid .ctpb-ipc-topic-name {
    min-height: 0 !important;
    width: auto !important;
    padding: 0 !important;
    justify-content: center;
}


/* Shared page actions on the LocalWP front end. */
html body:is(body,#page#page#page#page#page#page) .ctpb-share-footer {
    width:100%!important;
    max-width:none!important;
    margin-inline:auto!important;
}
html body:is(body,#page#page#page#page#page#page) .ctpb-service-end {
    box-sizing:border-box;
    display:flex!important;
    flex-wrap:wrap!important;
    align-items:center!important;
    justify-content:space-between!important;
    gap:10px 16px!important;
    width:min(calc(100% - 24px),1120px)!important;
    max-width:1120px!important;
    margin:18px auto 24px!important;
    padding:12px clamp(12px,2vw,22px)!important;
    border:1px solid #ebcfd8!important;
    border-radius:16px!important;
    background:#fff7f9!important;
    color:#35252e!important;
}
html body:is(body,#page#page#page#page#page#page) .ctpb-service-end :is(.ctpb-service-share,.ctpb-service-contact,.ctpb-service-actions) {
    display:flex!important;
    flex-wrap:wrap!important;
    align-items:center!important;
    justify-content:flex-start!important;
    gap:7px!important;
    width:auto!important;
    min-width:0;
    max-width:100%;
    flex:0 1 auto!important;
    margin:0!important;
    padding:0!important;
    border:0!important;
}
html body:is(body,#page#page#page#page#page#page) .ctpb-service-end .ctpb-service-share > strong {
    font-size:14px!important;
    font-weight:600!important;
    color:#35252e!important;
    margin:0 2px 0 0!important;
}
html body:is(body,#page#page#page#page#page#page) .ctpb-service-end :is(.ctpb-service-share > a,summary,[data-copy-service-link],.ctpb-service-actions > a) {
    box-sizing:border-box;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    width:fit-content!important;
    height:auto!important;
    min-height:36px!important;
    margin:0!important;
    padding:6px 10px!important;
    border:1px solid #b1003b!important;
    border-radius:8px!important;
    background:#b1003b!important;
    color:#fff!important;
    font-size:14px!important;
    font-weight:600!important;
    line-height:1.25!important;
    text-decoration:none!important;
    white-space:nowrap;
    opacity:1!important;
    filter:none!important;
    animation:none!important;
    transition:none!important;
    box-shadow:none!important;
}
html body:is(body,#page#page#page#page#page#page) .ctpb-service-end :is(a,summary,button):hover {background:#8d002f!important;border-color:#8d002f!important;color:#fff!important}
html body:is(body,#page#page#page#page#page#page) .ctpb-service-end :is(a,summary,button,input):focus-visible {outline:2px solid #36232b!important;outline-offset:2px}
html body:is(body,#page#page#page#page#page#page) .ctpb-service-share details[open] {flex-basis:100%;min-width:0}
html body:is(body,#page#page#page#page#page#page) .ctpb-service-share details[open] summary {margin-bottom:6px!important}
html body:is(body,#page#page#page#page#page#page) .ctpb-service-share details input {box-sizing:border-box;max-width:100%;margin:0 4px 6px 0}
@media(max-width:760px){
    html body:is(body,#page#page#page#page#page#page) .ctpb-service-end {justify-content:flex-start!important}
    html body:is(body,#page#page#page#page#page#page) .ctpb-service-end :is(.ctpb-service-share,.ctpb-service-contact) {flex-basis:100%!important}
}
@media(max-width:520px){
    html body:is(body,#page#page#page#page#page#page) .ctpb-service-end .ctpb-service-share > strong {flex-basis:100%}
}

