/* The picker is available inside the deal discussion. */
.giphy-picker { display: grid; gap: 14px; min-width: 0; }
.giphy-picker p { margin: 0; }
.giphy-search { display: grid; gap: 10px; }
.giphy-search-row { display: flex; align-items: stretch; gap: 8px; }
.giphy-search-row input { flex: 1 1 10rem; min-width: 0; }
.giphy-search-row .button { flex: none; }
.giphy-status { font-size: .875rem; line-height: 1.5; }
.giphy-status:empty { display: none; }
.giphy-results { min-width: 0; max-width: 100%; }
.giphy-results img { max-width: 100%; }
.giphy-picker > img.giphy-attribution { display: block; box-sizing: content-box; width: 120px; max-width: 100%; height: auto; background: white; border-radius: 4px; padding: 5px 7px; }
[data-comment-giphy] { display: grid; align-content: start; justify-items: start; gap: 8px; max-width: 100%; margin: 12px 0 0; }
[data-comment-giphy] .giphy-play { display: none; }
.deal-discussion.is-enhanced [data-comment-giphy] .giphy-play { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); font: inherit; font-weight: 650; cursor: pointer; }
[data-giphy-attribution] { font-size: .8125rem; text-underline-offset: .18em; }
.giphy-player, .giphy-player img, .giphy-player video { display: block; max-width: 100%; max-height: 280px; object-fit: contain; }
.composer-giphy img { max-width: 100%; height: auto; }
.giphy-picker :focus-visible, [data-comment-giphy] :focus-visible { outline: 3px solid currentColor; outline-offset: 2px; }
.giphy-results { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.giphy-result { min-width: 0; overflow: hidden; display: flex; flex-direction: column; align-items: stretch; padding: 0; text-align: start; background: var(--paper, white); color: var(--ink); border: 1px solid var(--line); border-radius: 10px; font: inherit; cursor: pointer; }
.giphy-result img { display: block; width: 100%; height: 100px; object-fit: contain; background: var(--surface); }
.giphy-result span { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; margin: 7px 9px; overflow-wrap: anywhere; font-size: .8125rem; font-weight: 600; line-height: 1.4; }
.giphy-result-credit { display: block; margin: auto 9px 7px; font-size: .75rem; line-height: 1.4; overflow-wrap: anywhere; }
.giphy-result:hover { border-color: currentColor; }
.community-comment-images > figure[data-comment-giphy] { display: grid; width: min(280px, 100%); }
.giphy-player { width: 100%; }
.community-comment-images .giphy-player img { width: 100%; height: auto; border: 0; object-fit: contain; }
.giphy-credit { font-size: .8125rem; font-weight: 600; overflow-wrap: anywhere; }
