body.ct-compact-service #content .entry-content .ctpb-service-banner {
    border: 1px solid #ebcfd8;
    border-inline-start: 4px solid #a81845;
    border-radius: 18px !important;
    background-color: #fff5f8;
    overflow: hidden;
    padding: clamp(16px, 3vw, 34px) !important;
}
.ct-compact-service .ctpb-service-banner figure:not(:has(.ctc-cream-logo)) img {
    max-height: 350px;
    object-fit: contain;
}
.entry-content:has(.ctpb-service-end) .ct-page-sharing { display: none; }
.entry-content .ctpb-service-end, .ctpb-builder .ctpb-service-end {
    box-sizing: border-box;
    width: 100%;
    margin-block: clamp(18px, 3vw, 32px);
    padding: clamp(14px, 2.5vw, 24px);
    background: #fff7f9;
    border: 1px solid #ebcfd8;
    border-radius: 18px;
}
.ctpb-service-share, .ctpb-service-contact, .ctpb-service-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 16px;
}
.ctpb-service-share { padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid #ebcfd8; }
.ctpb-share-only .ctpb-service-share { padding: 0; margin: 0; border: 0; }
.entry-content .ctpb-share-only { width: min(100%, 820px); margin-inline: auto; }
.ctpb-service-share > :is(a, details > summary), .ctpb-service-share summary {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 4px 12px;
    border: 1px solid #e6bfce;
    border-radius: 8px;
    color: #8b163a;
    background: #fff;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
}
.ctpb-service-share > a:hover, .ctpb-service-share summary:hover { background: #f6e1e8; color: #72132f; }
.ctpb-service-share details[open] { flex-basis: 100%; }
.ctpb-service-share details[open] summary { margin-bottom: 8px; }
.ctpb-service-share input { width: min(100%, 480px); }
.ctpb-service-contact { justify-content: space-between; }
body.ct-compact-service #content .site-main .entry-content #ctpb-service-end-title { margin: 0 !important; }
.ctpb-service-actions a {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    border: 1px solid #a81845;
    border-radius: 8px;
    padding: 5px 14px;
    font-weight: 700;
    text-decoration: none;
}
.ctpb-service-actions .ctpb-service-form-link { background: #a81845; color: #fff; }
.ctpb-service-actions .ctpb-service-form-link:hover { background: #7c1538; color: #fff; }
.ctpb-service-actions .ctpb-service-talk-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #8b163a;
    background: #fff;
}
.ctpb-service-actions .ctpb-service-talk-link:hover { background: #f6e1e8; color: #72132f; }
.ctpb-service-actions .ctpb-service-talk-link svg { width: 17px; height: 17px; fill: currentColor; flex: 0 0 auto; }
@media (max-width: 600px) {
    .ctpb-service-share > strong { flex-basis: 100%; }
    .ctpb-service-actions { gap: 8px; }
}

/* Compact sharing controls across both footer layouts. */
body.ct-site-design .entry-content .ct-page-sharing,
body.ct-site-design .ctpb-service-end {
    padding: 10px clamp(12px, 2vw, 20px);
}
body.ct-site-design .entry-content .ct-page-sharing :is(a, button),
body.ct-site-design .ctpb-service-share > a,
body.ct-site-design .ctpb-service-share summary {
    min-height: 36px;
    padding: 4px 12px;
    line-height: 1.25;
}
body.ct-site-design .entry-content .ct-page-sharing,
body.ct-site-design .entry-content .ct-share-actions,
body.ct-site-design .ctpb-service-share { gap: 6px 10px; }
body.ct-site-design .ctpb-service-end:not(.ctpb-share-only) .ctpb-service-share {
    padding-block-end: 8px;
    margin-block-end: 8px;
}
.ctpb-share-footer { width: min(calc(100% - 32px), 820px); margin: 12px auto; }
.ctpb-share-footer .ctpb-service-end { background: #fff7f9; border: 1px solid #ebcfd8; border-radius: 14px; }

body.ct-site-design :is(.ct-page-sharing, .ctpb-service-share) {
    font-family: var(--ct-body-font, inherit);
    font-size: 15px;
    line-height: 1.45;
}
body.ct-site-design :is(.ct-page-sharing, .ctpb-service-share) :is(a, button, summary) {
    font-family: inherit;
    font-size: 14px !important;
    line-height: 1.35;
}

body.ct-site-design #page #content #primary .site-main .entry-content .ctpb-share-only,
.ctpb-share-footer {
    width: min(100%, 894px);
    margin-inline: auto;
}
.ctpb-share-footer { width: min(calc(100% - 32px), 894px); }
.ctpb-welcome-share { margin-block: 24px 30px; }
.ctpb-welcome-share .ctpb-service-end { padding: 14px 20px; }
.ctpb-service-share > strong { color: #35252e; font-weight: 600; }
.ctpb-service-share :is(a, summary) { font-size: 14px; }

body.ct-section-contact #content .entry-content :is(.ctc-contact-action a, .ctc-contact-detail a[href^="mailto:"], .ctc-contact-detail a[href^="tel:"]) {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    max-width: 100%;
    padding: 6px 12px;
    box-sizing: border-box;
    border: 1px solid #e6bfce;
    border-radius: 8px;
    font: 600 14px/1.35 var(--ct-body-font);
    text-decoration: none !important;
    overflow-wrap: anywhere;
}
body.ct-section-contact #content .entry-content .ctc-contact-detail a[href] {
    background: #fff;
    color: #8b163a !important;
}
body.ct-section-contact #content .entry-content .ctc-contact-action a {
    background: #a81845;
    border-color: #a81845;
    color: #fff !important;
}
body.ct-section-contact #content .entry-content .ctc-contact-action a:hover {
    background: #7c1538;
}
body.ct-section-contact #content .entry-content .ctc-contact-detail a[href]:hover {
    background: #f6e1e8;
}

.ctpb-welcome-share .ctpb-service-share :is(a, summary, button),
main.welcome a {
    color: #b5163d !important;
    border-color: #b5163d !important;
}

.ctpb-service-end {
    display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;
    gap:10px 16px;box-sizing:border-box;padding:12px 16px;
}
body.ct-site-design .ctpb-service-end:not(.ctpb-share-only) .ctpb-service-share,
.ctpb-service-end .ctpb-service-share {padding:0;margin:0;border:0}
.ctpb-service-end .ctpb-service-contact {margin:0;padding:0}
.ctpb-service-end .ctpb-service-actions {display:grid;grid-template-columns:repeat(2,minmax(0,max-content));gap:8px}
.ctpb-service-end .ctpb-service-actions > a {justify-content:center;text-align:center}
.ctpb-share-footer {width:min(calc(100% - 32px),1120px);margin:0 auto 30px}

/* Share controls use aligned, equal-width actions on both sides of the bar. */
.ctpb-service-end .ctpb-service-share > :is(a, details > summary) {
    min-width:88px;
    justify-content:center;
    box-sizing:border-box;
}
.ctpb-service-end .ctpb-service-actions {
    grid-template-columns:repeat(2,minmax(148px,1fr));
}
.ctpb-service-end .ctpb-service-actions > a {min-width:0;}
.ctpb-service-end .ctpb-service-actions--call-only {grid-template-columns:minmax(148px,1fr);}
@media (max-width:700px) {
    .ctpb-service-end .ctpb-service-share > :is(a, details > summary) {min-width:0; flex:1 1 110px;}
    .ctpb-service-end .ctpb-service-actions {width:100%;grid-template-columns:repeat(2,minmax(0,1fr));}
}
