.cotinder-user-qa {
  margin: 10px 0 4px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.profile-detail-page .pet__button {
  flex-wrap: wrap;
}

.profile-detail-page .pet__button .pet__btn {
  flex: 1 1 100%;
  width: 100%;
  max-width: 100%;
  display: block;
}

.cotinder-user-qa__row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: stretch;
  width: 100%;
}

.cotinder-user-qa__btn.btn {
  margin: 0 !important;
  flex: 1 1 calc(50% - 8px);
  min-width: calc(50% - 8px);
  width: auto !important;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  line-height: 1.25;
}

.cotinder-user-qa__more {
  position: relative;
  z-index: 20;
  flex: 1 1 calc(50% - 8px);
  min-width: calc(50% - 8px);
  box-sizing: border-box;
}

.cotinder-user-qa__more > .cotinder-user-qa__btn.btn {
  width: 100% !important;
}

.cotinder-user-qa__menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 80;
  min-width: 200px;
  max-width: min(280px, 80vw);
  max-height: min(60vh, 360px);
  overflow: auto;
  padding: 8px;
  border: 1px solid #eadfd6;
  border-radius: 12px;
  background: #fffaf6;
  box-shadow: 0 8px 24px rgba(31, 26, 18, 0.12);
  display: grid;
  gap: 4px;
}

.cotinder-user-qa__menu.is-up {
  top: auto;
  bottom: calc(100% + 6px);
}

.cotinder-user-qa__menu[hidden] {
  display: none !important;
}

.cotinder-user-qa__menu-btn {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  text-align: left;
  text-decoration: none;
  font: inherit;
  cursor: pointer;
}

.cotinder-user-qa__menu-btn:hover,
.cotinder-user-qa__menu-btn:focus {
  background: #fff3ea;
}

.cotinder-user-qa .js-cotinder-subscribe-btn.is-subscribed {
  opacity: 0.85;
}

.cotinder-user-qa__hint {
  margin: 8px 0 0;
  color: #6b5a4e;
  font-size: 13px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.cotinder-user-qa__toast {
  margin: 6px 0 0;
  color: #2f6fed;
  font-size: 13px;
}

.profile-detail-page .pet__btn .cotinder-user-qa {
  flex: 1 1 100%;
}

@media (max-width: 767.98px) {
  .cotinder-user-qa__row {
    gap: 6px;
  }

  .cotinder-user-qa__btn.btn {
    flex: 1 1 calc(50% - 6px);
    min-width: calc(50% - 6px);
    text-align: center;
    padding-left: 8px;
    padding-right: 8px;
    overflow-wrap: anywhere;
  }

  .cotinder-user-qa__more {
    flex: 1 1 calc(50% - 6px);
    min-width: calc(50% - 6px);
  }

  .cotinder-user-qa__menu {
    left: auto;
    right: 0;
  }
}

@media (min-width: 768px) and (max-width: 1199.98px) {
  .cotinder-user-qa__btn.btn {
    flex: 1 1 auto;
    min-width: 7.5rem;
  }

  .cotinder-user-qa__more {
    flex: 0 1 auto;
    min-width: 7.5rem;
  }
}

@media (min-width: 1200px) {
  .cotinder-user-qa__btn.btn {
    flex: 0 1 auto;
    min-width: 0;
  }

  .cotinder-user-qa__more {
    flex: 0 0 auto;
    min-width: 0;
  }
}

/**
 * /pet-owners/{code}/ — tabs + «Ещё» chrome across widths.
 * Does not touch custom.css / feed PC layout.
 * Marker: profilechrome20261031a
 */

/* ---- Tabs: horizontal scroll, no crushed 11% cells ---- */
.profile-detail-page.tabs__content_right--entity-page .index__tabs,
.pet-owner-public-profile .index__tabs {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.profile-detail-page.tabs__content_right--entity-page .index__tabs_wrapper,
.pet-owner-public-profile .index__tabs_wrapper {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.profile-detail-page.tabs__content_right--entity-page .index__tabs_tabs,
.pet-owner-public-profile .index__tabs_tabs {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: stretch;
  gap: 6px;
  width: max-content;
  min-width: 100%;
  box-sizing: border-box;
  padding: 2px 2px 8px;
}

.profile-detail-page.tabs__content_right--entity-page .index__tabs_tabs > div,
.pet-owner-public-profile .index__tabs_tabs > div {
  flex: 0 0 auto !important;
  width: auto !important;
  max-width: none !important;
  min-width: 0 !important;
}

.profile-detail-page.tabs__content_right--entity-page .index__tabs_tabs .index__tabs_btn,
.pet-owner-public-profile .index__tabs_tabs .index__tabs_btn {
  white-space: nowrap;
  padding-left: 12px;
  padding-right: 12px;
}

/* Beat older 45%/11% rules from feature CSS */
@media (max-width: 767.98px) {
  .profile-detail-page.tabs__content_right--entity-page .index__tabs_tabs > div,
  .pet-owner-public-profile .index__tabs_tabs > div {
    flex: 0 0 auto !important;
    max-width: none !important;
  }
}

@media (min-width: 768px) and (max-width: 1199.98px) {
  .profile-detail-page.tabs__content_right--entity-page .index__tabs_tabs > div,
  .pet-owner-public-profile .index__tabs_tabs > div {
    flex: 0 0 auto !important;
    max-width: none !important;
  }
}

/* ---- Quick actions «Ещё» ---- */
.profile-detail-page .cotinder-user-qa__more,
.pet-owner-public-profile .cotinder-user-qa__more {
  position: relative;
  z-index: 30;
  flex: 1 1 calc(50% - 8px);
  min-width: calc(50% - 8px);
}

.profile-detail-page .cotinder-user-qa__more > .cotinder-user-qa__btn.btn,
.pet-owner-public-profile .cotinder-user-qa__more > .cotinder-user-qa__btn.btn {
  width: 100% !important;
}

.profile-detail-page .cotinder-user-qa__menu,
.pet-owner-public-profile .cotinder-user-qa__menu {
  z-index: 80;
  max-height: min(60vh, 360px);
  overflow: auto;
}

.profile-detail-page .cotinder-user-qa__menu.is-up,
.pet-owner-public-profile .cotinder-user-qa__menu.is-up {
  top: auto;
  bottom: calc(100% + 6px);
}

.profile-detail-page .cotinder-user-qa__hint,
.pet-owner-public-profile .cotinder-user-qa__hint {
  clear: both;
  display: block;
  width: 100%;
  margin-top: 10px;
}

@media (min-width: 768px) {
  .profile-detail-page .cotinder-user-qa__more,
  .pet-owner-public-profile .cotinder-user-qa__more {
    flex: 0 1 auto;
    min-width: 7.5rem;
  }
}

@media (min-width: 1200px) {
  .profile-detail-page .cotinder-user-qa__more,
  .pet-owner-public-profile .cotinder-user-qa__more {
    flex: 0 0 auto;
    min-width: 0;
  }
}
