﻿.telerik-modal-title {
  display: flex;
  gap: 5px;
  align-items: center;
  position: relative;
  width: fit-content;
  flex-wrap: wrap;
}

.telerik-modal-title .m-offer-company-name {
  overflow-wrap: anywhere;
  white-space: normal;
  overflow-wrap: anywhere;
  text-overflow: unset;
}

sup.m-offer-total-count {
/*  position: absolute;
  right: -12px;
  top: 0px;*/
  font-weight: 500;
  flex-shrink: 0;
}

/* крестик */

.telerik-modal .k-window-titlebar-actions .k-button-md.k-icon-button .k-button-icon.k-svg-i-x {
  background-image: url(/v2/images/buttons/close-icon.svg);
  display: block;
  background-repeat: no-repeat;
  background-size: 24px;
  width: 24px;
  height: 24px;
  filter: unset;
}

.m-offer-modal-inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.m-ev-org-modal-inner {
  margin-top: 32px;
}

.m-ev-org-modal-inner .infinite-scroll-list {
  gap: 32px;
}

.m-offers-list-container {
  width: 100%;
}

.m-offers-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  align-self: stretch;
}

.m-offers-list .k-listview{
  width: 100%;
}

.m-offer-item {
  display: flex;
  padding: 8px 8px 16px 8px;
  justify-content: space-between;
  align-items: flex-start;

  border-bottom: 1px solid var(--Gray-100, #E8E8E8);

  width: 100%;
}

.m-offer-item:has(..m-offer-actions-bottom) {
  flex-direction: column;
  gap: 8px;
}

.m-ev-org-modal-inner .m-offer-item {
  border-bottom: unset;
}

.m-offer-item .r-item-person {
  display: flex;
  gap: 10px;
  align-items: center;
}

.m-offer-name {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  flex: 1 0 0;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: Onest;
  font-size: var(--Body-Regular, 16px);
  font-style: normal;
  font-weight: 400;
  line-height: 140%;
}

.m-offer-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.telerik-modal .card-rating-container {
  border-bottom: unset;
}

.m-offer-company-name-count {
  position: relative;
  display: inline-flex;
  gap: 2px;
}

.m-offer-company-name {
  display: flex;
  gap: 4px;
}


.m-offer-company-name-count {
  display: inline; /* или inline-block, если нужно */
}

.m-offer-company-name {
  display: inline; /* чтобы текст и иконка были в одном потоке */
  margin: 0;
  vertical-align: baseline;
}

.m-offer-company-name-count .verified-icon,
.m-offer-company-name-count .association-icon-2 {
  display: inline-block;
  vertical-align: text-top; /* выравнивание по нижней линии текста */
  margin-left: 4px;
}

.m-offer-total-count {
  display: inline;
  vertical-align: super;
  margin-left: 2px;
}

@media (max-width: 1024px) {
  .telerik-modal .k-window-titlebar-actions .k-button-md.k-icon-button .k-button-icon.k-svg-i-x {
    background-image: url(/v2/images/buttons/close-icon.svg);
    display: block;
    background-repeat: no-repeat;
    background-size: 24px;
    width: 24px;
    height: 24px;
    filter: invert(1);
  }

  .m-offer-name {
    display: block;
    -webkit-box-orient: unset;
    -webkit-line-clamp: unset;
    flex: 1 0 0;
    overflow: unset;
    text-overflow: unset;
    font-family: Onest;
    font-size: var(--Body-Regular, 16px);
    font-style: normal;
    font-weight: 400;
    line-height: 140%;

    flex-shrink: 0;
  }

  .m-offer-item {
    flex-direction: column;
    gap: 4px;
  }

  .master-btn-primary-text-inner {
    white-space: normal;
  }
}
