/* Hero like control and native modal. Scoped to the Cheers plugin. */
.tdb-cheers-hero {
  --cheers-ink:#143b53; --cheers-muted:#668190; --cheers-accent:#bb315b; --cheers-line:#e0eaef;
  box-sizing:border-box; width:100%; min-width:0; margin-top:18px; color:var(--cheers-ink);
}
.tdb-cheers-hero *, .tdb-cheers-modal *, .tdb-cheers-hero *::before, .tdb-cheers-hero *::after,
.tdb-cheers-modal *::before, .tdb-cheers-modal *::after {box-sizing:border-box}
.tdb-cheers-hero button, .tdb-cheers-modal button {font:inherit; cursor:pointer; line-height:1.45}
.tdb-cheers-hero button:disabled, .tdb-cheers-modal button:disabled {opacity:.55;cursor:default}
.tdb-cheers-hero :focus-visible,.tdb-cheers-modal :focus-visible {outline:3px solid #dc8a16;outline-offset:3px}
.tdb-cheers-hero [hidden], .tdb-cheers-modal [hidden] {display:none!important}
.tdb-cheers-hero-actions {display:flex;align-items:center;flex-wrap:wrap;gap:10px 14px}
.tdb-cheers-count {display:inline-flex;align-items:baseline;gap:6px;margin:0!important;white-space:nowrap;color:var(--cheers-muted);font-size:13px;line-height:1.3}
.tdb-cheers-count strong {font-size:27px;font-weight:850;line-height:1.1;letter-spacing:-.025em;color:var(--cheers-ink);font-variant-numeric:tabular-nums}
.tdb-cheers-heart {align-self:center;color:var(--cheers-accent);font-size:20px}
.tdb-cheers-hero .tdb-cheers-like {
  display:inline-flex;justify-content:center;align-items:center;gap:8px;
  min-height:44px;max-width:100%;padding:9px 17px;border:1.5px solid var(--cheers-accent);
  border-radius:999px;background:var(--cheers-accent);color:#fff;font-size:13px;font-weight:800;
  transition:background-color .15s ease,color .15s ease;
}
.tdb-cheers-hero .tdb-cheers-like:hover:not(:disabled) {background:#9f2549}
.tdb-cheers-hero .tdb-cheers-like[aria-pressed="true"] {background:#fff2f6;color:#9f2549}
.tdb-cheers-hero .tdb-cheers-like-icon {font-size:21px;line-height:1}
.tdb-cheers-hero .tdb-cheers-view {display:block;min-height:36px;margin:4px 0 0;padding:5px 0;border:0;background:transparent;color:#1a728d;font-size:12px;text-decoration:underline;text-underline-offset:3px}
.tdb-cheers-status {margin:4px 0 0!important;font-size:12px!important;line-height:1.65;color:#366d82}
.tdb-cheers-status:empty {display:none}
.tdb-cheers-hero .tdb-cheers-retry {min-height:39px;margin-top:7px;padding:6px 12px;border:1px solid #9ab0bd;border-radius:8px;background:#fff;color:var(--cheers-ink);font-size:12px}
.tdb-cheers-modal {
  position:fixed;inset:0;box-sizing:border-box;min-width:0;
  width:min(520px,calc(100vw - 28px));max-width:100%;max-height:min(88vh,850px);
  margin:auto;padding:0;border:0;border-radius:18px;background:#fff;color:#143b53;
  box-shadow:0 18px 70px #0d283b4d;overflow:auto;overscroll-behavior:contain;
}
.tdb-cheers-modal::backdrop {background:rgba(7,32,48,.62)}
.tdb-cheers-modal-inner {position:relative;padding:27px 27px 22px}
.tdb-cheers-modal .tdb-cheers-close {
  position:absolute;right:12px;top:11px;display:grid;place-items:center;
  width:44px;height:44px;padding:0;background:transparent;border:0;border-radius:50%;
  color:#536f7f;font-size:29px;font-weight:400;
}
.tdb-cheers-modal .tdb-cheers-close:hover {background:#f2f6f8}
.tdb-cheers-modal-heading {display:flex;align-items:center;flex-direction:column;text-align:center;padding:6px 26px 0;gap:7px}
.tdb-cheers-modal-icon {display:grid;place-items:center;width:50px;height:50px;border-radius:50%;background:#fff0f4;color:#bb315b;font-size:27px}
.tdb-cheers-modal-heading h2 {font-size:22px;line-height:1.4;margin:4px 0 0;color:#143b53}
.tdb-cheers-modal-heading p {margin:0;color:#68808d;font-size:13px;line-height:1.7}
.tdb-cheers-modal-status {margin:10px 0 0;text-align:center;color:#216982;font-size:13px;line-height:1.65}
.tdb-cheers-modal-status:empty {display:none}
.tdb-cheers-modal h3 {margin:0 0 10px;font-size:16px;line-height:1.5;color:#143b53}
.tdb-cheers-modal h3 small {color:#698391;font-size:12px;font-weight:400}
.tdb-cheers-compose {margin-top:12px;padding:18px;background:#f4f8fa;border:1px solid #e2ecf0;border-radius:12px}
.tdb-cheers-modal .tdb-cheers-compose-toggle {
  display:block;width:100%;min-height:46px;margin:18px 0 0;padding:10px 15px;
  border:1px solid #a3c3cf;border-radius:10px;background:#eaf5f8;color:#19576e;
  text-align:center;font-size:14px;font-weight:800;
}
.tdb-cheers-modal .tdb-cheers-compose-toggle:hover {background:#dceff4}
.tdb-cheers-modal .tdb-cheers-compose-toggle[aria-expanded="true"] {background:#fff;color:#1e627e}
.tdb-cheers-compose fieldset {border:0;margin:0;padding:0;min-width:0}
.tdb-cheers-modal label {display:block;margin:13px 0 6px;font-size:13px;font-weight:750}
.tdb-cheers-modal label small {color:#718997;font-weight:400}
.tdb-cheers-modal input,.tdb-cheers-modal textarea {
  display:block;width:100%;max-width:100%;padding:10px 11px;background:#fff;border:1px solid #9ab2bf;
  border-radius:8px;color:#143b53;font:inherit;font-size:16px;line-height:1.5;
}
.tdb-cheers-modal textarea {resize:vertical;min-height:90px}
.tdb-cheers-modal input::placeholder,.tdb-cheers-modal textarea::placeholder {color:#8399a5}
.tdb-cheers-modal .tdb-cheers-submit {width:100%;min-height:45px;margin-top:16px;background:#24677f;border:1px solid #24677f;border-radius:9px;color:#fff;font-size:14px;font-weight:800}
.tdb-cheers-modal .tdb-cheers-submit:hover:not(:disabled) {background:#15546b}
.tdb-cheers-messages {margin-top:23px;padding-top:19px;border-top:1px solid #e2eaee}
.tdb-cheers-messages [data-comments] article {margin:9px 0 0;padding:11px 13px;border-radius:9px;background:#f4f8fa;border:1px solid #edf1f4}
.tdb-cheers-messages article strong {display:block;font-size:13px;font-weight:800}
.tdb-cheers-messages article p {margin:4px 0 0;white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px;line-height:1.7}
.tdb-cheers-messages article time {display:block;margin-top:6px;font-size:11px;color:#718794}
.tdb-cheers-comment-status {font-size:12px;color:#6a828e;line-height:1.7}
.tdb-cheers-modal .tdb-cheers-more,.tdb-cheers-modal .tdb-cheers-comment-retry {
  display:block;min-height:39px;margin:9px auto 0;padding:7px 13px;
  border:1px solid #b4c5ce;border-radius:8px;background:#fff;color:#25677f;font-size:12px;
}
.tdb-cheers-policy {margin-top:20px;padding-top:15px;border-top:1px solid #e2eaee;font-size:12px;color:#547280}
.tdb-cheers-policy summary {cursor:pointer;line-height:1.6}
.tdb-cheers-policy p {margin:11px 0 0;line-height:1.75}
.tdb-cheers-policy a {color:#146b84;text-decoration:underline}
.tdb-cheers-modal-footer {display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:22px}
.tdb-cheers-modal .tdb-cheers-unlike {
  background:transparent;color:#8d5765;border:0;text-decoration:underline;text-underline-offset:3px;
  font-size:12px;min-height:44px;padding:7px 1px;
}
.tdb-cheers-modal .tdb-cheers-done {min-height:42px;margin-left:auto;padding:8px 19px;background:#fff;border:1px solid #aac0cb;color:#143b53;border-radius:8px;font-size:13px;font-weight:750}
@media(max-width:570px) {
  .tdb-cheers-hero {margin-top:14px}
  .tdb-cheers-hero-actions {gap:8px 12px}
  .tdb-cheers-count strong {font-size:25px}
  .tdb-cheers-modal {width:calc(100vw - 18px);max-height:calc(100dvh - 28px);border-radius:15px}
  .tdb-cheers-modal-inner {padding:23px 17px 18px}
  .tdb-cheers-modal-heading h2 {font-size:20px}
  .tdb-cheers-compose {padding:15px 12px}
}
@media(prefers-reduced-motion:reduce) {.tdb-cheers-hero .tdb-cheers-like {transition:none}}
