/* Five review-link treatments for the owner's design selection. */
.reviews-heading .avito-rating { min-width: 292px; }
#rating-source {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 264px;
  max-width: 100%;
  min-height: 52px;
  box-sizing: border-box;
  margin-top: 20px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 28px;
  color: #fffdf8;
  background: #373c35;
  font: 500 13px/1.45 Rubik, sans-serif;
  text-decoration: none;
  transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}
#rating-source .avito-link-copy { display: block; }
#rating-source small { display: none; }
#rating-source .avito-link-arrow {
  flex: 0 0 auto;
  font-size: 22px;
  line-height: 1;
  transition: transform 180ms ease;
}
#rating-source:hover { background: #252c26; box-shadow: 0 4px 14px #35352e16; }
#rating-source:hover .avito-link-arrow { transform: translate(2px, -2px); }
#rating-source:focus-visible, .avito-link-picker button:focus-visible, .avito-link-picker summary:focus-visible {
  outline: 2px solid #725a36;
  outline-offset: 4px;
}
#rating-source[data-style="sand"] { background: #dfd0b7; color: #353b32; border-color: #c4b18e; }
#rating-source[data-style="sand"]:hover { background: #d5c3a6; }
#rating-source[data-style="outline"] { background: transparent; color: #353b32; border-color: #8d8069; padding: 7px 8px 7px 18px; }
#rating-source[data-style="outline"] .avito-link-arrow { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #ded2bd; }
#rating-source[data-style="outline"]:hover { background: #e7ddcd; }
#rating-source[data-style="card"] { background: #faf6ee; color: #353b32; border-color: #d4c5ac; border-radius: 14px; padding: 15px 17px; }
#rating-source[data-style="card"] small { display: block; font-size: 11px; font-weight: 400; margin-top: 5px; color: #706653; }
#rating-source[data-style="card"]:hover { background: #fffdf8; border-color: #8d8069; }
#rating-source[data-style="text"] { background: transparent; color: #353b32; border-radius: 0; border-bottom-color: #8d8069; padding: 10px 0; font-size: 14px; }
#rating-source[data-style="text"]:hover { border-bottom-color: #353b32; box-shadow: none; }
.avito-link-picker { margin-top: 32px; color: #665c4a; font-size: 12px; }
.avito-link-picker summary { cursor: pointer; width: fit-content; min-height: 44px; display: flex; align-items: center; gap: 16px; list-style: none; }
.avito-link-picker summary::-webkit-details-marker { display: none; }
.avito-link-picker summary::after { content: '+'; font-size: 18px; }
.avito-link-picker[open] summary::after { content: '−'; }
.avito-link-picker > div { display: flex; flex-wrap: wrap; gap: 8px; padding: 8px 0; }
.avito-link-picker button { font: inherit; min-height: 44px; padding: 10px 16px; border-radius: 24px; border: 1px solid #cbbb9f; color: #514b3f; background: transparent; cursor: pointer; }
.avito-link-picker button:hover { background: #e2d7c5; }
.avito-link-picker button[aria-pressed="true"] { color: #fffdf8; background: #373c35; border-color: #373c35; }
@media (max-width: 760px) {
  .reviews-heading .avito-rating { min-width: 0; }
  .avito-rating #rating-source { grid-column: 1 / -1; justify-self: stretch; width: 100%; margin-top: 20px; }
  .avito-link-picker { margin-top: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  #rating-source, #rating-source .avito-link-arrow { transition: none; }
}
