/* PublicProc design: сторінка лота (body.pp-lot) і низ сторінки для гостя.
   Компонентні блоки дослівно зі styles.css верстки (рядки в design-system.md §2.9, §2.10, §2.15); свої — з префіксом pp-.
   Модульні view.php майже не змінені (скрипт ~/publicproctools/transform_lot_views.py): їхні старі блоки перемальовано тут. */

/* ==========================================================================
   Шапка: біла картка заходить на градієнтну смугу (.lot-page .header + .single-lot, 2146-2150)
   ========================================================================== */
/* Обгортка шапки фіксованої висоти, як у верстці (.lot-page .header 190 + 135): фон bg-main-up (без .background-primary), кнопки на два рядки її не розтягують */
.pp-lot.pp-hero-none .header__wrapper {
  height: 325px;
  padding-bottom: 0;
  background-image: url(/design/images/bgs/home-page/bg-main-up.webp);
}

.pp-lot.pp-public .pp-content {
  margin-top: -176px;
}

.pp-lot .pp-lot-back {
  position: absolute;
  top: -64px;
  left: 0;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 250px;
}

/* Кадрування згори вниз: лот завжди має білу картку на фоні сторінки */
.pp-lot main.secondary-bg,
.pp-lot .procedure-view {
  position: relative;
  margin-bottom: 40px;
  padding: 40px 68px 68px 68px;
  border-radius: 6px;
  background-color: rgb(255, 255, 255);
  box-shadow: 0px 2px 4.95px 0.05px rgba(0, 0, 0, 0.3);
}

.pp-cabinet.pp-lot main.secondary-bg,
.pp-cabinet.pp-lot .procedure-view {
  padding: 20px 55px 40px;
}

/* ==========================================================================
   Назва типу, номер лота, зірка, кнопки (.lot-title 146, .single-lot__lot-number 2155, .favourite 2086)
   ========================================================================== */
/* 16.11: зауваження «непропорційно великий шрифт» — тип процедури й номер лота не більші за назву лота (20 px) */
.pp-lot .lot-title {
  font-size: 20px;
  color: rgb(130, 54, 140);
  overflow-wrap: anywhere;
}

.pp-lot .pp-lot-note {
  margin-bottom: 8px;
  font-size: 14px;
  color: var(--pp-text-muted);
}

.pp-lot .pp-lot-numrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.pp-lot .single-lot__lot-number {
  min-width: 0;
  overflow-wrap: anywhere;
  padding: 5px;
  border: 1px solid rgb(140, 51, 135);
  border-radius: 8px;
  font-size: 16px;
  color: rgb(140, 51, 135);
  text-transform: uppercase;
}

.pp-lot .pp-lot-tools {
  display: flex;
  flex: none;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.pp-lot .pp-lot-tools .refresh-btn {
  font-size: 22px;
  line-height: 1;
  color: var(--pp-purple-star);
}

.pp-lot .pp-lot-star {
  flex: none;
  padding: 0;
  border: 0;
  background: transparent;
  line-height: 0;
  cursor: pointer;
}

.pp-lot .pp-lot-star img {
  width: 30px;
  height: 30px;
}

.pp-lot .pp-lot-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

/* ==========================================================================
   Галерея: .lot__slider (1319-1356, 1485-1498, 2117-2138), .big-img (2160-2200). Пастка верстки без object-fit виправлена
   ========================================================================== */
.pp-lot .pp-lot-strip {
  margin-top: 8px;
}

.pp-lot .lot__slider {
  margin: 0;
  padding: 0;
  list-style: none;
}

.pp-lot .lot__slider:not(.slick-initialized) {
  display: flex;
  overflow: hidden;
}

.pp-lot .lot__slider:not(.slick-initialized) li {
  flex: 0 0 25%;
  max-width: 25%;
}

.pp-lot .lot__slider li {
  padding: 2px;
  overflow: hidden;
}

.pp-lot .lot__slider li img {
  display: block;
  width: 100%;
  height: 185px;
  object-fit: cover;
  background-color: var(--pp-gray-200);
  cursor: pointer;
}

.pp-lot .pp-lot-img-broken {
  visibility: hidden;
}

/* Жодне фото не відкрилось (design-lot.js): блок ціни на всю ширину */
.pp-lot .pp-lot-main--nobig > [class*="col-"]:first-child {
  display: none;
}

.pp-lot .pp-lot-main--nobig > [class*="col-"]:last-child {
  flex: 0 0 100%;
  max-width: 100%;
  padding-left: 15px !important;
}

.pp-lot .lot__slider li img:hover {
  transform: scale(1.3);
  transition: all .3s;
}

.pp-lot .lot__slider .nav-arrow {
  width: fit-content;
}

.pp-lot .lot__slider .slick-prev.nav-arrow,
.pp-lot .lot__slider .slick-next.nav-arrow {
  position: absolute;
  top: 50%;
  padding: 0;
  border: none;
  background-color: transparent;
}

.pp-lot .lot__slider .slick-prev.nav-arrow {
  left: -55px;
  transform: translateY(-50%);
}

.pp-lot .lot__slider .slick-next.nav-arrow {
  right: -55px;
  transform: translateY(-50%) rotate(180deg);
}

.pp-lot .lot__slider .slick-prev.nav-arrow img,
.pp-lot .lot__slider .slick-next.nav-arrow img {
  width: 30px;
  height: 50px;
  transition: all .2s;
}

.pp-lot .big-img {
  position: relative;
  display: block;
  background-color: var(--pp-gray-200);
  cursor: pointer;
  transition: all .3s;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0px 2px 4.95px 0.05px rgba(0, 0, 0, 0.3);
}

.pp-lot .big-img:hover::after {
  content: url("/design/images/icon/look-at-picture.svg");
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  transform: translate(-50%, -50%);
  transition: all .3s;
}

.pp-lot .big-img:hover .shadow-bg {
  position: absolute;
  z-index: 1;
  width: 100%;
  height: 100%;
  background-color: #000;
  opacity: 0.6;
  transition: all .3s;
}

.pp-lot .big-img img {
  display: block;
  width: 100%;
  height: 360px;
  object-fit: cover;
}

.pp-lot .pp-lot-main > [class*="col-"] {
  display: flex;
  flex-direction: column;
}

/* Висоту ряду задає блок ціни (не менше 360 px верстки), а не пропорції фото */
.pp-lot .pp-lot-main .big-img {
  flex: 1 1 auto;
  min-height: 360px;
}

.pp-lot .pp-lot-main .big-img img {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
}

/* ==========================================================================
   Фіолетовий блок: .lot-sidebar (2222-2305, 2385), статус .edit-button (2409-2472)
   ========================================================================== */
.pp-lot .lot-sidebar {
  position: relative;
  flex: 1 1 auto;
  margin: 0;
  padding: 0 0 8px;
  list-style: none;
  border-radius: 14px;
  background-color: var(--pp-navy);
  box-shadow: 0 8px 28px rgba(30, 25, 55, 0.25);
}

.pp-lot .pp-lot-main--nophoto .lot-sidebar {
  flex: 0 0 auto;
}

/* Останній рядок без власного нижнього відступу (лише ціна, лише дати): разом із padding блока ті самі 30 px, що під внесками */
.pp-lot .lot-sidebar > .lot-sidebar__item:last-child:not(.pb-3) {
  padding-bottom: 22px;
}

.pp-lot .lot-sidebar__main-title {
  display: block;
  margin-top: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid #4c4d7a;
  font-family: "e-UkraineLight", sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #d3d0ea;
  text-align: center;
}

.pp-lot .lot-sidebar__main-price {
  display: block;
  padding-left: 30px;
  font-family: "e-UkraineRegularName", sans-serif;
  font-size: 25px;
  font-weight: 500;
  color: #fff;
}

.pp-lot .lot-sidebar__item-dates {
  position: relative;
  padding-left: 30px;
  font-family: "e-UkraineLight", sans-serif;
  font-size: 13px;
  color: #e6e3f4;
}

.pp-lot .lot-sidebar__item-dates p {
  margin: 0;
  color: #e6e3f4;
}

.pp-lot .lot-sidebar__item-dates::before {
  content: url("/design/images/cabinet/icons/white-clock.svg");
  position: absolute;
  top: calc(50% + 6px);
  left: -4px;
  width: 30px;
  transform: translateY(-50%);
}

.pp-lot .lot-sidebar__title {
  display: block;
  margin-top: 8px;
  font-family: "e-UkraineLight", sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: rgb(255, 255, 255);
}

.pp-lot .pp-lot-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 45px;
  cursor: pointer;
}

.pp-lot .edit-button {
  position: relative;
  display: none;
  padding: 15px 20px;
  font-size: 13px;
  color: rgb(29, 29, 27);
  background-color: rgb(218, 218, 218);
  cursor: default;
  text-align: center;
}

/* У верстці абсолютно зверху панелі під зсув 70 px; реальні назви ЦБД довші, тому в потоці — решта блока не наїжджає */
.pp-lot .edit-button.active {
  position: relative;
  top: auto;
  left: auto;
  display: flex;
  align-items: center;
  width: calc(100% + 8px);
  min-height: 62px;
  margin: -4px -4px 0;
  border-radius: 8px;
}

.pp-lot .edit-button.active::after {
  content: "";
  position: absolute;
  bottom: -11px;
  left: 50%;
  width: 0px;
  height: 0px;
  border-style: solid;
  border-width: 12px 10px 0 10px;
  border-color: #e0e52e transparent transparent transparent;
  transform: rotate(0deg) translateX(-50%);
}

.pp-lot .edit-button img {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.pp-lot .edit-button .lot-sidebar__edit-subtitle {
  display: block;
  width: 100%;
  padding: 0 28px;
  color: #fff;
  font-size: 17px;
  line-height: 16px;
}

/* Статуси дослівно (2475-2640), градієнти стандартним записом */
.pp-lot .edit-button.editable {
  background-image: linear-gradient(135deg, #b3dfa1 0%, #f0e703 74%);
}

/* Accepting applications */
/* M2: приглушена фіолетова плашка, як на картці лота */
.pp-lot .edit-button.accepting-applications {
  background-image: none;
  background-color: #5e4a7e;
}

.pp-lot .edit-button.active.accepting-applications::after {
  border-color: #5e4a7e transparent transparent transparent;
}

/* Auction */
.pp-lot .edit-button.auction {
  background-image: linear-gradient(30deg, rgb(56,119,208) 0%, rgb(217,51,135) 100%);
}

.pp-lot .edit-button.active.auction::after {
  border-color: #7C60AD transparent transparent transparent;
}

/* Perevirka dokumentiv uchasnykiv */
.pp-lot .edit-button.perevirka-dokumentiv-uchasnykiv {
  background-image: linear-gradient(30deg, rgb(125,124,135) 0%, rgb(97,105,116) 100%);
  padding: 10px 20px;
}

.pp-lot .edit-button.active.perevirka-dokumentiv-uchasnykiv::after {
  border-color: #73747E transparent transparent transparent;
}

.pp-lot .edit-button.active.perevirka-dokumentiv-uchasnykiv .lot-sidebar__edit-subtitle {
  font-size: 15px;
}

/* Ochikuetsya opublikuvannya protokolu */
.pp-lot .edit-button.ochikuetsya-opublikuvannya-protokolu {
  background-image: linear-gradient(30deg, rgb(125,124,135) 0%, rgb(97,105,116) 100%);
  padding: 10px 20px;
}

.pp-lot .edit-button.active.ochikuetsya-opublikuvannya-protokolu::after {
  border-color: #73747E transparent transparent transparent;
}

.pp-lot .edit-button.active.ochikuetsya-opublikuvannya-protokolu .lot-sidebar__edit-subtitle {
  font-size: 15px;
}

/* Auction ne vidbuvsya */
.pp-lot .edit-button.auction-ne-vidbuvsya {
  background-image: linear-gradient(30deg, rgb(66,66,66) 0%, rgb(1,1,1) 100%);
}

.pp-lot .edit-button.active.auction-ne-vidbuvsya::after {
  border-color: #272727 transparent transparent transparent;
}

/* Auction vidmineno */
.pp-lot .edit-button.auction-vidmineno {
  background-image: linear-gradient(30deg, rgb(66,66,66) 0%, rgb(1,1,1) 100%);
}

.pp-lot .edit-button.active.auction-vidmineno::after {
  border-color: #272727 transparent transparent transparent;
}

/* Auction zaversheno */
.pp-lot .edit-button.auction-zaversheno {
  background-image: linear-gradient(30deg, rgb(66,66,66) 0%, rgb(1,1,1) 100%);
}

.pp-lot .edit-button.active.auction-zaversheno::after {
  border-color: #272727 transparent transparent transparent;
}

/* Ochikuetsya pidpysannya dogovoru */
.pp-lot .edit-button.ochikuetsya-pidpysannya-dogovoru {
  background-image: linear-gradient(30deg, rgb(125,124,135) 0%, rgb(97,105,116) 100%);
  padding: 10px 20px;
}

.pp-lot .edit-button.active.ochikuetsya-pidpysannya-dogovoru::after {
  border-color: #73747E transparent transparent transparent;
}

.pp-lot .edit-button.active.ochikuetsya-pidpysannya-dogovoru .lot-sidebar__edit-subtitle {
  font-size: 15px;
}

/* Ochikuetsya splata do budzhetu */
.pp-lot .edit-button.ochikuetsya-splata-do-budzhetu {
  background-image: linear-gradient(30deg, rgb(125,124,135) 0%, rgb(97,105,116) 100%);
  padding: 10px 20px;
}

.pp-lot .edit-button.active.ochikuetsya-splata-do-budzhetu::after {
  border-color: #73747E transparent transparent transparent;
}

.pp-lot .edit-button.active.ochikuetsya-splata-do-budzhetu .lot-sidebar__edit-subtitle {
  font-size: 15px;
}

/* Auction zaversheno. Ochikuetsya vykonannya dogovoru */
.pp-lot .edit-button.auction-zaversheno-ochikuetsya-vykonannya-dogovoru {
  background-image: linear-gradient(30deg, rgb(125,124,135) 0%, rgb(97,105,116) 100%);
  padding: 10px 8px;
}

.pp-lot .edit-button.active.auction-zaversheno-ochikuetsya-vykonannya-dogovoru::after {
  border-color: #73747E transparent transparent transparent;
}

.pp-lot .edit-button.active.auction-zaversheno-ochikuetsya-vykonannya-dogovoru .lot-sidebar__edit-subtitle {
  font-size: 15px;
}

/* Auction zupyneno */
.pp-lot .edit-button.auction-zupyneno {
  background-image: linear-gradient(30deg, rgb(66,66,66) 0%, rgb(1,1,1) 100%);
}

.pp-lot .edit-button.active.auction-zupyneno::after {
  border-color: #272727 transparent transparent transparent;
}

/* Ochikuetsya informaciya */
.pp-lot .edit-button.ochikuetsya-informaciya {
  background-image: linear-gradient(30deg, rgb(125,124,135) 0%, rgb(97,105,116) 100%);
  padding: 8px 20px;
}

.pp-lot .edit-button.active.ochikuetsya-informaciya::after {
  border-color: #73747E transparent transparent transparent;
}

.pp-lot .edit-button.active.ochikuetsya-informaciya .lot-sidebar__edit-subtitle {
  font-size: 13px;
}

/* ==========================================================================
   Опис (.lot-card__title 2645, .lot-card__info 2692-2705)
   ========================================================================== */
.pp-lot .lot-card__info {
  margin-top: 8px;
}

.pp-lot .pp-lot-main--nophoto .lot-card__info {
  margin-top: 0;
}

.pp-lot .lot-card__title,
.pp-lot h1.lot-card__title {
  font-family: "e-UkraineLight", sans-serif;
  font-size: 20px;
  color: rgb(29, 29, 27);
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: normal;
  text-transform: none;
}

.pp-lot .lot-card__info span {
  font-size: 15px;
  color: rgb(29, 29, 27);
  font-weight: 500;
}

.pp-lot .lot-card__info p,
.pp-lot .pp-lot-description {
  font-family: "e-UkraineLight", sans-serif;
  font-size: 15px;
  overflow-wrap: anywhere;
}

.pp-lot .pp-lot-description p:last-child,
.pp-lot .pp-lot-organizer p {
  margin: 0;
}

.pp-lot .pp-lot-organizer {
  align-items: baseline;
}

.pp-lot .pp-lot-attempts {
  color: var(--pp-blue-link);
}

/* ==========================================================================
   Старий каркас view.php: смуга прогресу, рядок «карусель + картка»
   ========================================================================== */
/* Ланцюжок етапів процедури: у верстці його нема, функціональний елемент лишається у стилі блоків лота. Ширину смуги дублює design-lot.js у --pp-progress: main.css на ≤768 робить її вертикальною з width !important */
.pp-lot #primary-pjax > .p-4.border-top.border-bottom {
  display: block !important;
  margin-top: 24px;
  padding: 0 !important;
  border: 0 !important;
  font-family: "e-UkraineLight", sans-serif;
  color: rgb(29, 29, 27);
}

.pp-lot #primary-pjax > .p-4.border-top.border-bottom .progress--wrap {
  width: 100%;
  height: 8px;
  margin: 0 !important;
  border-radius: 4px;
  background-color: rgb(218, 218, 218);
}

.pp-lot #primary-pjax > .p-4.border-top.border-bottom .progress-bar--wrap {
  width: var(--pp-progress, 100%) !important;
  height: 100% !important;
  border-radius: 4px;
  background-image: linear-gradient(67deg, #7b3f86 0%, #6b3a7a 100%);
}

.pp-lot #primary-pjax > .p-4.border-top.border-bottom > .row {
  gap: 4px 12px;
  margin: 10px 0 0 !important;
  font-size: 13px;
  line-height: 1.25;
}

/* Поточний етап — останній без приглушення */
.pp-lot #primary-pjax > .p-4.border-top.border-bottom > .row > span:not(.opacity-7):not(:has(+ span:not(.opacity-7))) {
  color: rgb(140, 51, 135);
  font-weight: 600;
}

.pp-lot #primary-pjax > .row.flex-wrap-reverse {
  margin: 0;
  padding: 0 !important;
}

.pp-lot #primary-pjax > .row.flex-wrap-reverse > [class*="col-"] {
  flex: 0 0 100%;
  max-width: 100%;
  padding: 0;
}

/* Стара картка: лишились модульні дати й дії. Ціна, заявка й зірка показані в новому верху, тут приховані */
.pp-lot #primary-pjax .card.darken-bg {
  display: flex;
  flex-direction: row !important;
  flex-wrap: wrap;
  align-items: center;
  margin: 24px 0 0;
  padding: 0 !important;
  border: 0;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none;
}

.pp-lot #primary-pjax .card.darken-bg > [class*="col-"] {
  flex: 0 1 auto;
  width: auto;
  max-width: 100%;
  padding: 0;
}

.pp-lot #primary-pjax .card.darken-bg > [class*="col-"]:first-child {
  display: grid !important;
  flex: 0 0 100%;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 12px 20px;
  height: auto !important;
  margin: 0 0 16px !important;
  padding: 14px 0;
  border-top: 1px solid var(--pp-gray-400);
  border-bottom: 1px solid var(--pp-gray-400);
}

.pp-lot #primary-pjax .card.darken-bg h4.fs-36,
.pp-lot #primary-pjax .card.darken-bg a.main-bg,
.pp-lot #primary-pjax .card.darken-bg .starToggler {
  display: none !important;
}

/* Лишились лише приховані елементи: порожній ряд не займає місця */
.pp-lot #primary-pjax .card.darken-bg > [class*="col-"]:nth-child(2):not(:has(> :not(.main-bg):not(.starToggler))) {
  flex: 1 1 0;
}

.pp-lot #primary-pjax .card.darken-bg .mb-3 {
  margin: 0 !important;
}

.pp-lot #primary-pjax .card.darken-bg .mb-3 p {
  margin: 0;
}

.pp-lot #primary-pjax .card.darken-bg .mb-3 .fs-13 {
  opacity: 1;
  font-size: 14px;
  color: var(--pp-purple-th);
  line-height: 1.2;
}

.pp-lot #primary-pjax .card.darken-bg .mb-3 .fs-15 {
  margin-top: 4px !important;
  font-family: "e-UkraineLight", sans-serif;
  font-size: 15px;
  font-weight: 500 !important;
}

.pp-lot #primary-pjax .card.darken-bg > [class*="col-"]:nth-child(2) {
  flex: 1 1 280px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-right: 16px;
}

.pp-lot #primary-pjax .card.darken-bg > [class*="col-"]:nth-child(2) > a:not(.main-bg),
.pp-lot #primary-pjax .card.darken-bg > [class*="col-"]:nth-child(2) > .btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: auto !important;
  min-height: 45px;
  margin: 0 !important;
  padding: 0 24px !important;
  border: 1px solid rgb(102, 51, 134) !important;
  border-radius: 22px !important;
  background: #fff;
  color: rgb(48, 46, 99) !important;
  font-size: 15px;
}

.pp-lot #primary-pjax .card.darken-bg > [class*="col-"]:nth-child(2) > a:hover {
  background: var(--pp-g-purple);
  color: #fff !important;
  text-decoration: none;
}

.pp-lot #primary-pjax .card.darken-bg > [class*="col-"]:nth-child(2) > a:hover img {
  filter: brightness(0) invert(1);
}

.pp-lot #primary-pjax .card.darken-bg .dropdown-menu.autonomous {
  flex: 0 0 100%;
  margin: 0;
}

.pp-lot #primary-pjax .card.darken-bg > [class*="col-"]:nth-child(3) a {
  color: var(--pp-blue-link);
  font-size: 15px;
}

/* ==========================================================================
   Таби-пігулки на ol.carousel-indicators (.cabinet-vsi-aucciony-tab-*, 4529-4593: у верстці три абсолютно, у нас їх до семи)
   ========================================================================== */
.pp-lot #carouselExampleIndicators {
  min-height: 0;
  margin-top: 28px;
  padding-top: 0 !important;
}

.pp-lot #carouselExampleIndicators .carousel-indicators {
  position: static;
  width: 100% !important;
  margin: 0 0 8px !important;
  padding: 0 18px 0 0;
  justify-content: flex-start !important;
  font-family: "e-UkraineLight", sans-serif;
}

.pp-lot #carouselExampleIndicators .carousel-indicators li {
  position: relative;
  z-index: 1;
  display: flex;
  box-sizing: border-box;
  flex: 1 1 0;
  width: auto;
  height: auto;
  margin: 0 -18px 8px 0 !important;
  padding: 0;
  border: 0;
  background: none !important;
  opacity: 1;
  text-indent: 0;
}

/* Попередня вкладка лежить поверх наступної, видно її правий заокруглений край (5/2/1 у верстки) */
.pp-lot #carouselExampleIndicators .carousel-indicators li:nth-child(1) { z-index: 7; }
.pp-lot #carouselExampleIndicators .carousel-indicators li:nth-child(2) { z-index: 6; }
.pp-lot #carouselExampleIndicators .carousel-indicators li:nth-child(3) { z-index: 5; }
.pp-lot #carouselExampleIndicators .carousel-indicators li:nth-child(4) { z-index: 4; }
.pp-lot #carouselExampleIndicators .carousel-indicators li:nth-child(5) { z-index: 3; }
.pp-lot #carouselExampleIndicators .carousel-indicators li:nth-child(6) { z-index: 2; }

.pp-lot #carouselExampleIndicators .carousel-indicators li.active {
  z-index: 8;
}

.pp-lot #carouselExampleIndicators .carousel-indicators li button,
.pp-lot .pp-lot-tab-link,
.pp-lot .pp-lot-tab-link:hover,
.pp-lot a.pp-lot-tab-link:not([href]):not([class]) {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  margin: 0 !important;
  padding: 0 26px 8px !important; /* e-UkraineLight сидить нижче середини; у верстці така сама поправка для активної (padding-top: 10px) */
  border: 1px solid #000 !important;
  border-radius: 20px !important;
  background: #fff !important;
  box-shadow: 0px 1px 4.95px 0.05px rgba(0, 0, 0, 0.3);
  color: rgb(29, 29, 27) !important;
  font-family: "e-UkraineLight", sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.pp-lot #carouselExampleIndicators .carousel-indicators li.active button {
  border: 1px solid #fff !important;
  padding: 4px 26px !important;
  background: linear-gradient(67deg, #7b3f86 0%, #6b3a7a 100%) !important;
  color: #ffffff !important;
  font-family: "e-UkraineRegularName", sans-serif;
}

/* ==========================================================================
   Вміст слайдів
   ========================================================================== */
.pp-lot #carouselExampleIndicators .carousel-inner {
  width: calc(100% + 4px);
  margin: 0 -2px !important; /* запас під тінь, бо overflow: hidden, межі вмісту ті самі, що в секційних акордеонів */
  padding: 2px;
}

.pp-lot #carouselExampleIndicators .carousel-item > .row.my-4:first-child {
  margin-top: 0 !important;
}

/* Активи: смуга й вміст на ті самі межі, що в секційних акордеонів, вміст без рамки; згорнуті без роздільника під собою */
.pp-lot #carouselExampleIndicators .carousel-item > .row.my-4 > a.btn-collapse {
  margin-right: 15px !important;
  margin-left: 15px !important;
}

.pp-lot #carouselExampleIndicators .carousel-item > .row.my-4 > a.btn-collapse + .collapse,
.pp-lot #carouselExampleIndicators .carousel-item > .row.my-4 > a.btn-collapse + .collapsing {
  flex: 0 0 calc(100% - 30px);
  width: calc(100% - 30px) !important;
  margin: 0 15px;
  padding: 20px;
  box-shadow: none;
}

.pp-lot #carouselExampleIndicators .carousel-item > .row.my-4 > a.btn-collapse + .collapse > .col-12,
.pp-lot #carouselExampleIndicators .carousel-item > .row.my-4 > a.btn-collapse + .collapsing > .col-12 {
  padding: 0;
}

.pp-lot #carouselExampleIndicators .carousel-item > hr.bg-secondary {
  display: none;
}

/* ==========================================================================
   Акордеони секцій (design-lot.js): .collapse-block 2651, .collapse-btn 2668 + 2841
   ========================================================================== */
.pp-lot #primary-pjax > .p-3.pb-5.d-flex {
  display: block !important;
  margin-top: 24px;
  padding: 0 !important;
  border: 0 !important;
}

.pp-lot #primary-pjax > .p-3.pb-5.d-flex > .col-12.col-lg-9 {
  flex: none;
  width: 100%;
  max-width: 100%;
  padding: 0;
}

.pp-lot .pp-acc .collapse-block {
  display: flex;
  justify-content: space-between;
  min-height: 38px;
  padding-left: 16px;
  border: 1px solid rgb(255, 255, 255);
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  background-color: rgb(218, 218, 218);
  box-shadow: 0px 1px 4.95px 0.05px rgba(0, 0, 0, 0.3);
  font-size: 18px;
  color: rgb(141, 52, 136);
  cursor: pointer;
}

.pp-lot .pp-acc .collapse-block__title,
.pp-lot #primary-pjax .pp-acc h3.collapse-block__title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 8px;
  margin: 0 !important;
  padding: 4px 8px 4px 0;
  border: 0;
  color: rgb(141, 52, 136);
  font-family: inherit;
  font-size: 18px;
  font-weight: 500 !important;
  line-height: 1.3;
  letter-spacing: normal;
  text-transform: uppercase;
}

.pp-lot .pp-acc .collapse-btn {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 49px;
  border: none;
  border-top-right-radius: 20px;
  background-color: rgb(140, 51, 135);
  cursor: pointer;
}

.pp-lot .pp-acc .collapse-btn img {
  transition: transform .15s;
}

.pp-lot .pp-acc:not(.pp-acc--closed) .collapse-btn img {
  transform: rotate(180deg);
}

/* Під смугою текст прямо на білому, без рамки (.card.card-body.border-0 верстки: відступ 20 px) */
.pp-lot .pp-acc__body {
  padding: 20px;
}

.pp-lot .pp-acc--closed .pp-acc__body {
  display: none;
}

.pp-lot .pp-acc__body > [class*="col-"] {
  flex: none;
  width: 100%;
  max-width: 100%;
  padding: 0;
}

.pp-lot .pp-acc__body .row > .col-12:empty {
  padding: 0;
}

.pp-lot .pp-acc__body .mt-3:first-child,
.pp-lot .pp-acc__body .mt-5:first-child {
  margin-top: 0 !important;
}

/* Ключ/значення DetailView (шрифти .lot-card .card.card-body span/p, 2690-2705) */
.pp-lot p.row.my-3 {
  align-items: baseline;
  margin-right: 0;
  margin-left: 0;
  border-bottom: 1px solid var(--pp-gray-300);
}

.pp-lot p.row.my-3 > span:first-child,
.pp-lot p.row.my-3 > .opacity-7 {
  padding-left: 0;
  color: rgb(29, 29, 27);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
}

.pp-lot p.row.my-3 > span:last-child:not(:first-child),
.pp-lot p.row.my-3 > a {
  padding-right: 0;
  padding-left: 0;
  font-family: "e-UkraineLight", sans-serif;
  font-size: 15px;
  overflow-wrap: anywhere;
}

/* ==========================================================================
   Низ сторінки для гостя: «Ваш менеджер» (1821, 1891-1975, 2707-2759), «Цікаві лоти» (2761-2781)
   ========================================================================== */
.pp-lot.pp-public .footer__wrapper {
  background-position: 0 90px;
}

.pp-lot .your-manager {
  margin-bottom: 200px;
}

.pp-lot .your-manager .title-secondary {
  margin: 0 15px; /* у верстці секція у власному .container */
}

.pp-lot .your-manager__form {
  position: relative;
  max-width: 425px;
  width: 100%;
  padding: 22px;
  border: 2px solid #fff;
  border-radius: 10px;
  background-color: rgb(143, 83, 146);
  box-shadow: 0px 3px 9.7px 0.3px rgba(0, 0, 0, 0.3);
}

.pp-lot .your-manager__form-title {
  font-size: 24px;
  color: rgb(255, 255, 255);
  line-height: 1.3;
}

.pp-lot .your-manager__form-text {
  font-size: 14px;
  color: rgb(255, 255, 255);
}

.pp-lot .your-manager-inputblock {
  position: relative;
}

.pp-lot .your-manager__form input:not([type="hidden"]) {
  width: 100%;
  height: 36px;
  padding: 12px 60px 12px 30px;
  border: none;
  border-radius: 22px;
  background-color: #fff;
  font-size: 12px;
  box-shadow: none;
}

.pp-lot .your-manager__form input::placeholder {
  font-size: 15px;
  font-weight: 500;
  color: rgb(94, 94, 94);
}

.pp-lot .your-manager__form input:focus {
  outline: none;
}

.pp-lot .your-manager__form .contacts__form-side-icon {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 46px;
  height: 32px;
  border: none;
  border-top-right-radius: 22px;
  border-bottom-right-radius: 22px;
  background-color: rgb(102, 51, 134);
}

.pp-lot .your-manager__form-btn {
  min-width: 195px;
  padding: 12px 0;
}

.pp-lot .your-manager__form .invalid-feedback,
.pp-lot .your-manager__form .help-block,
.pp-lot .your-manager__form .has-error .help-block {
  display: block;
  margin-top: 4px;
  padding-left: 12px;
  color: #fff !important;
  font-size: 12px;
}

.pp-lot .interested-lots__slider {
  margin-right: 0;
  margin-bottom: 24px;
  margin-left: 0;
  padding: 0;
  list-style: none;
}

.pp-lot .interested-lots__slider .slick-track,
.pp-lot .lot__slider .slick-track {
  margin-left: 0;
}

.pp-lot .interested-lots__slider:not(.slick-initialized) {
  display: flex;
  overflow: hidden;
}

.pp-lot .interested-lots__slider:not(.slick-initialized) > li {
  flex: 0 0 calc(25% - 15px);
}

.pp-lot .interested-lots__slider ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.pp-lot .interested-lots__slider-item {
  margin-right: 15px;
  border-radius: 10px;
}

.pp-lot .interested-lots__slider-title {
  font-weight: 500;
}

.pp-lot .interested-lots__slider a {
  color: inherit;
  text-decoration: none;
}

.pp-lot .interested-lots__slider .interested-lots__slider-inner-link {
  color: var(--pp-blue-link);
  text-decoration: underline;
  overflow-wrap: anywhere;
}

.pp-lot .interested-lots__slider ul li {
  font-size: 14px;
  color: rgb(29, 15, 0);
}

.pp-lot .interested-lots__slider ul li span {
  display: block;
}

.pp-lot .interested-lots__slider li img {
  display: block;
  width: 100%;
  height: 185px;
  object-fit: cover;
  cursor: pointer;
}

.pp-lot .interested-lots__slider .slick-prev.nav-arrow,
.pp-lot .interested-lots__slider .slick-next.nav-arrow {
  position: absolute;
  top: 50%;
  padding: 0;
  border: none;
  background-color: transparent;
}

.pp-lot .interested-lots__slider .slick-prev.nav-arrow {
  left: -50px;
  transform: translateY(-50%);
}

.pp-lot .interested-lots__slider .slick-next.nav-arrow {
  right: -50px;
  transform: translateY(-50%) rotate(180deg);
}

.pp-lot .interested-lots__slider .slick-prev.nav-arrow img,
.pp-lot .interested-lots__slider .slick-next.nav-arrow img {
  width: 30px;
  height: 50px;
  transition: all .2s;
}

/* «Схожі лоти» під змістом лота (procedures/_similar_lots.php): фіолетова смуга, як «Цікаві лоти» у футері, щоб білі заголовок, стрілки й картки лишились як у верстці */
.pp-lot .pp-similar-lots {
  margin: 32px 0 24px;
  padding: 8px 64px 8px;
  border-radius: 20px;
  background-image: var(--pp-g-purple);
  overflow: hidden;
}

.pp-lot .pp-similar-lots .title-primary {
  font-size: 40px;
}

.pp-lot .pp-similar-lots .interested-lots__slider .slick-prev.nav-arrow {
  left: -46px;
}

.pp-lot .pp-similar-lots .interested-lots__slider .slick-next.nav-arrow {
  right: -46px;
}

@media (max-width: 1200px) {
  .pp-lot .pp-similar-lots {
    padding: 8px 0 8px;
  }

  .pp-lot .pp-similar-lots .title-primary {
    margin-right: 16px;
    margin-left: 16px;
  }
}

@media (max-width: 576px) {
  .pp-lot .pp-similar-lots .title-primary {
    font-size: 28px;
  }
}

/* ==========================================================================
   Адаптив (5137-5191, 5443-5519, 5662-5760, 6074-6095)
   ========================================================================== */
@media (max-width: 1200px) {
  .pp-lot.pp-public .pp-content {
    margin-top: -121px;
  }

  /* Вужчий рядок вкладок: до семи підписів у два рядки, а не в чотири */
  .pp-lot #carouselExampleIndicators .carousel-indicators li button,
  .pp-lot .pp-lot-tab-link,
  .pp-lot .pp-lot-tab-link:hover,
  .pp-lot a.pp-lot-tab-link:not([href]):not([class]) {
    padding: 0 22px 8px !important;
    font-size: 14px;
  }

  .pp-lot #carouselExampleIndicators .carousel-indicators li.active button {
    padding: 4px 22px !important;
  }

  .pp-lot .interested-lots__slider .slick-prev.nav-arrow {
    left: -30px;
    z-index: 50;
  }

  .pp-lot .interested-lots__slider .slick-next.nav-arrow {
    right: -30px;
    z-index: 50;
  }

  .pp-lot .your-manager__form {
    max-width: 358px;
  }
}

@media (max-width: 992px) {
  .pp-lot.pp-public .pp-content {
    margin-top: -181px;
  }

  /* m-lot-page-full: смуга статусу всередині блока (на 390 по 3 px від країв) */
  .pp-lot .edit-button.active {
    width: 98%;
    margin: 3px 1% 0;
  }

  .pp-lot.pp-public .footer__wrapper {
    padding-top: 20px;
    background-image: none;
    background-color: #69287d;
  }

  .pp-lot #carouselExampleIndicators .carousel-indicators {
    padding: 0;
  }

  .pp-lot #carouselExampleIndicators .carousel-indicators li {
    flex: 0 0 100%;
    max-width: 100%;
    margin: 0 0 8px !important;
  }

  .pp-lot #carouselExampleIndicators .carousel-indicators li button {
    width: 100%;
  }

  .pp-cabinet.pp-lot main.secondary-bg {
    padding: 20px;
  }
}

/* Рівно 992: кнопки входу вже окремим рядком (y=80..125), а картка ще на y=164. Кнопка під ними, як у верстці на цій ширині (y=149) */
@media (min-width: 991.99px) and (max-width: 992px) {
  .pp-lot .pp-lot-back {
    top: -15px;
  }
}

@media (max-width: 768px) {
  .pp-lot main.secondary-bg,
  .pp-lot .procedure-view {
    padding: 35px;
  }

  .pp-lot .lot__slider .slick-next.nav-arrow {
    right: -38px;
  }

  .pp-lot .lot__slider .slick-prev.nav-arrow {
    left: -38px;
  }

  .pp-lot .lot-card__title,
  .pp-lot h1.lot-card__title {
    font-size: 20px;
    font-weight: 600;
  }

  .pp-lot .lot-title {
    font-size: 16px;
  }
}

@media (max-width: 576px) {
  .pp-lot main.secondary-bg,
  .pp-lot .procedure-view,
  .pp-cabinet.pp-lot main.secondary-bg {
    padding: 10px;
  }

  /* m-lot-page-full: обгортка шапки 270 px, картка на y=160, кнопка зліва */
  .pp-lot.pp-hero-none .header__wrapper {
    height: 270px;
  }

  .pp-lot.pp-public .pp-content {
    margin-top: -130px;
  }

  .pp-lot .pp-lot-back {
    top: -72px;
  }

  .pp-lot .single-lot__lot-number {
    font-size: 14px;
  }

  .pp-lot .lot__slider .nav-arrow {
    display: none !important;
  }

  .pp-lot .lot__slider:not(.slick-initialized) li {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .pp-lot .pp-lot-main .big-img {
    min-height: 300px;
  }

  .pp-lot .edit-button .lot-sidebar__edit-subtitle {
    padding: 0 0 0 34px;
  }

  /* lot-page.html: .mr-sm-4 замість .mr-4, заголовок в один рядок */
  .pp-lot .footer .title-primary .mr-4 {
    margin-right: 0 !important;
  }

  .pp-lot .lot-sidebar__title {
    font-size: 14px;
  }

  .pp-lot .lot-card__title,
  .pp-lot h1.lot-card__title {
    font-size: 16px;
  }

  .pp-lot .lot-card__info p,
  .pp-lot .pp-lot-description,
  .pp-lot .lot-card__info span {
    font-size: 14px;
  }

  .pp-lot .pp-lot-organizer {
    flex-wrap: wrap;
  }

  .pp-lot .pp-acc .collapse-block,
  .pp-lot .pp-acc .collapse-block__title,
  .pp-lot #primary-pjax .pp-acc h3.collapse-block__title {
    font-size: 13px;
  }

  .pp-lot .pp-acc__body {
    padding: 10px;
  }

  .pp-lot .interested-lots__slider li img {
    height: auto;
  }
}

@media print {
  .pp-lot .pp-acc--closed .pp-acc__body {
    display: block !important;
  }

  .pp-lot .pp-acc .collapse-btn {
    display: none !important;
  }

  .pp-lot main.secondary-bg {
    box-shadow: none;
  }
}

/* Рядок документа (documents/view.php): довга назва файла без пробілів переноситься в межах колонки, а не виходить за обидва краї */
.pp-document > .d-flex.flex-column {
  min-width: 0;
  max-width: 100%;
}

.pp-document > .d-flex.flex-column > a,
.pp-document > .d-flex.flex-column > small {
  overflow-wrap: anywhere;
}

/* Див. hideRepeatedRows у design-lot.js */
.pp-lot p.pp-lot-repeated {
  display: none;
}

/* Флеш над карткою: місце для кнопки «до Аукціонів» між ним і карткою */
.pp-lot.pp-public .alert + main.secondary-bg {
  margin-top: 74px;
}
