/* Social actions and a shared comment layout for public logo reviews. */
.cf-page-section { padding-top: 32px; padding-bottom: 48px; }
.cf-page-section[hidden], .cf-section [hidden], .cf-dialog [hidden], .cf-social[hidden], .cf-social [hidden] { display: none !important; }
.cf-section { max-width: 900px; margin: 0 auto; padding: 28px 32px 22px; border: 1px solid #eae6f0; border-radius: 20px; background: #fff; scroll-margin-top: 115px; }
.cf-section-heading { margin-bottom: 20px; }
.cf-section h2, .cf-dialog h2 { margin: 0 0 6px; color: #292333; font-size: 23px; line-height: 1.35; letter-spacing: -.4px; font-weight: 600; text-transform: none; }
.cf-section-heading p, .cf-empty, .cf-help, .cf-status { margin: 0; color: #827a8e; font-size: 13px; line-height: 1.65; }
.cf-section button, .cf-dialog button { font-family: inherit; cursor: pointer; }
.cf-text-button { display: inline-flex; align-items: center; gap: 8px; padding: 4px 0; border: 0; background: none; color: #827a8e; font-size: 12px; font-weight: 500; line-height: 1.5; text-align: left; }
.cf-text-button:hover { color: #6738ff; }
.cf-section button:disabled, .cf-dialog button:disabled { opacity: .45; cursor: default; }
.cf-person { display: inline-flex; align-items: center; gap: 10px; max-width: 100%; color: #423c4a; font-size: 13px; font-weight: 600; text-decoration: none; }
.cf-person > span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cf-person:hover { color: #7953c8; text-decoration: none; }
.cf-avatar { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 34px; width: 34px; height: 34px; border-radius: 50%; overflow: hidden; background: #f1edf8; color: #827a8e; font-size: 12px; font-weight: 500; }
.cf-avatar img { width: 100%; height: 100%; object-fit: cover; }
.logo-review-preview .cf-card-footer { display: flex; flex-direction: column; align-items: stretch; gap: 12px; }
.cf-card-footer > .review-creator { align-self: flex-start; }
.cf-social-actions { display: flex; align-items: center; gap: 13px; width: 100%; }
.cf-icon-button { display: inline-flex; flex: 0 0 30px; align-items: center; justify-content: center; width: 30px; height: 34px; padding: 0; border: 0; border-radius: 5px; background: transparent; color: #26232c; text-decoration: none; cursor: pointer; }
.cf-icon-button svg { display: block; width: 23px; height: 23px; }
/* Desktop icons at 80% size; preserve hit areas and the heart's scale animation. */
@media (min-width: 992px) {
    .cf-icon-button svg { width: 18.4px; height: 18.4px; }
}
.cf-icon-button:hover { color: #7953c8; }
.cf-icon-button:disabled { opacity: .5; cursor: wait; }
.cf-heart[aria-pressed="true"] { color: #6738ff; }
.cf-heart[aria-pressed="true"] svg { fill: currentColor; }
.cf-heart svg { transform-origin: center; transition: transform 100ms ease-out; }
.cf-heart:not(:disabled):active svg { transform: scale(.9); }
@media (prefers-reduced-motion: reduce) {
    .cf-heart svg { transition: none; }
    .cf-heart:not(:disabled):active svg { transform: none; }
}
.cf-open-review { margin-left: auto; }
.cf-review-social { margin-right: auto; }
.cf-review-social .cf-social-actions { gap: 15px; width: auto; }
.cf-review-social .review-card-icon-action svg { width: 17px; height: 17px; }
.cf-dialog { box-sizing: border-box; width: min(660px, calc(100vw - 32px)); max-height: calc(100dvh - 48px); margin: auto; padding: 28px; border: 1px solid #ede8f3; border-radius: 24px; background: #fff; box-shadow: 0 24px 80px #29233326; color: #625b6c; overflow: auto; overscroll-behavior: contain; }
.cf-dialog::backdrop { background: #29233366; backdrop-filter: blur(4px); }
.cf-dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.cf-dialog-header h2 { font-size: 23px; }
.cf-close { display: flex; justify-content: center; align-items: center; flex: 0 0 34px; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; background: #f6f4f8; color: #827a8e; line-height: 1; }
.cf-close svg { display: block; width: 18px; height: 18px; }
.cf-project { display: flex; align-items: center; gap: 13px; margin-bottom: 8px; padding-bottom: 18px; }
.cf-project img { flex: 0 0 88px; width: 88px; height: 88px; object-fit: contain; border: 1px solid #f0edf4; border-radius: 12px; }
.cf-project > div { min-width: 0; }
.cf-project strong { display: block; color: #292333; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.cf-project a { color: #827a8e; font-size: 12px; text-decoration: none; }
.cf-contribute .cf-help:empty, .cf-status:empty { display: none; }
.cf-help a { color: #7953c8; text-decoration: none; }
.cf-help:not(:empty) { padding-top: 15px; }
.cf-form { margin: 18px 0 0; }
.cf-composer { display: flex; align-items: flex-start; gap: 12px; margin-top: 10px; padding: 10px 8px; border: 1px solid #e7dffc; border-radius: 12px; }
.cf-composer textarea { box-sizing: border-box; flex: 1; min-width: 0; width: 100%; min-height: 38px; max-height: 180px; margin: 0; padding: 7px 0; border: 0; border-radius: 0; background: transparent; color: #4d4656; font: inherit; font-size: 14px; line-height: 1.6; resize: none; overflow-y: hidden; }
.cf-composer textarea:focus { outline: none; box-shadow: none; }
.cf-composer:focus-within { border-color: #bda7f5; }
.cf-composer textarea::placeholder { color: #9a93a3; }
.cf-post { flex: 0 0 auto; padding: 7px 0 7px 8px; border: 0; background: none; color: #6738ff; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.cf-composer-note { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 8px 0 0 55px; color: #9a93a3; font-size: 11px; line-height: 1.5; }
.cf-composer-note > span { min-width: 0; }
.cf-composer-note > button { flex-shrink: 0; }
.cf-entry { padding: 17px 0; scroll-margin-top: 110px; }
.cf-entry.is-focused { background: #faf8ff; border-radius: 10px; padding-right: 12px; padding-left: 12px; }
.cf-entry-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 4px; }
.cf-entry time { color: #9a93a3; font-size: 11px; }
.cf-entry p { margin: 0; color: #625b6c; font-size: 14px; line-height: 1.7; overflow-wrap: anywhere; white-space: pre-wrap; }
.cf-entry > .cf-comment-body { padding-left: 44px; }
.cf-entry-actions { display: flex; gap: 16px; margin: 5px 0 0 44px; }
.cf-reply { margin: 14px 0 0 44px; padding-left: 14px; border-left: 2px solid #e9e0fa; }
.cf-reply h3 { margin: 0 0 4px; color: #827a8e; font-size: 12px; line-height: 1.5; font-weight: 500; letter-spacing: 0; text-transform: none; }
.cf-reply .cf-entry-actions { margin-left: 0; }
.cf-reply-form { margin: 12px 0 0 44px; }
.cf-reply-form label { display: block; margin-bottom: 6px; color: #827a8e; font-size: 12px; }
.cf-reply-form textarea { width: 100%; padding: 10px 12px; border: 1px solid #e4ddec; border-radius: 10px; color: #4d4656; background: #fff; font: inherit; font-size: 13px; line-height: 1.6; resize: vertical; }
.cf-form-actions { display: flex; align-items: center; justify-content: flex-end; gap: 18px; margin-top: 8px; }
.cf-empty { padding: 18px 0 8px; }
.cf-more { display: flex; margin: 6px 0 10px 44px; }
.cf-status { margin-top: 8px; }
.cf-section :focus-visible, .cf-dialog button:focus-visible, .cf-dialog a:focus-visible, .cf-icon-button:focus-visible { outline: 2px solid #9775e6; outline-offset: 3px; }
@media (max-width: 575px) {
    .cf-page-section { padding-top: 20px; padding-bottom: 30px; }
    .cf-section { padding: 22px 18px 18px; border-radius: 18px; }
    .cf-section h2, .cf-dialog-header h2 { font-size: 21px; }
    .cf-dialog { padding: 22px 18px; max-height: calc(100dvh - 24px); border-radius: 20px; }
    .cf-project img { flex-basis: 72px; width: 72px; height: 72px; }
    .cf-entry-head { gap: 6px 10px; }
    .cf-entry time { margin-left: 44px; }
    .cf-composer-note { margin-left: 0; }
}
