/* CLER: «Выбранные услуги» — кнопки на услугах и счётчик в шапке. */
.cler-service-add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: fit-content;
  max-width: 100%;
  align-self: flex-start;
  min-height: 38px;
  margin: 10px 0 0;
  padding: 0 15px;
  border: 1px solid #536f41;
  border-radius: 999px;
  background: #fff;
  color: #284333;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.cler-service-add:hover { background: #edf3e9; }
.cler-service-add.is-added { background: #edf3e9; border-color: #536f41; }
.cler-service-add:before {
  content: "+";
  font-size: 16px;
  line-height: 1;
}
.cler-service-add.is-added:before { content: "✓"; }

.top_basket .cler-service-menu {
  position: absolute;
  top: calc(100% - 1px);
  right: 0;
  z-index: 1000;
  width: 310px;
  padding: 14px;
  border: 1px solid #dce2db;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 14px 30px #233b2520;
}
.top_basket { position: relative; }
.top_basket .cler-service-menu[hidden] { display: none !important; }
.cler-service-menu__title {
  margin: 0 0 10px;
  color: #173a29;
  font-size: 14px;
  font-weight: 700;
}
.cler-service-menu__list {
  display: grid;
  gap: 7px;
  max-height: 230px;
  overflow: auto;
  margin: 0 0 12px;
}
.cler-service-menu__item {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: flex-start;
  color: #405448;
  font-size: 12px;
  line-height: 1.35;
}
.cler-service-menu__item button {
  border: 0;
  background: none;
  color: #8a4b4b;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
}
.cler-service-menu__empty {
  margin: 0 0 12px;
  color: #657069;
  font-size: 12px;
}
.cler-service-menu__actions {
  display: flex;
  gap: 8px;
  align-items: center;
}
.cler-service-menu__actions a,
.cler-service-menu__actions button {
  font: inherit;
  font-size: 12px;
}
.cler-service-menu__actions a {
  flex: 1;
  display: inline-flex;
  justify-content: center;
  min-height: 36px;
  align-items: center;
  border-radius: 999px;
  background: #536f41;
  color: #fff;
  text-decoration: none;
}
.cler-service-menu__actions button {
  border: 0;
  background: transparent;
  color: #8a4b4b;
  text-decoration: underline;
  cursor: pointer;
}
.cler-service-count {
  display: inline-flex;
  min-width: 18px;
  height: 18px;
  margin-left: 5px;
  padding: 0 5px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #7d2334;
  color: #fff;
  font-size: 11px;
  line-height: 1;
}
@media (max-width: 1199px) {
  .cler-service-menu { display: none !important; }
}

@media (min-width: 1200px) {
  #header .top_basket .basket-link .title,
  #headerfixed .top_basket .basket-link .title {
    display: inline-block !important;
    margin-left: 7px;
    color: #284333;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0;
    text-transform: none;
    vertical-align: middle;
  }
}

.cler-service-count[hidden] { display: none !important; }

/* Старый блок корзины больше не показываем: выбранные услуги ведут в свой запрос. */
.top_basket .basket_hover_block,
.basket_hover_block {
  display: none !important;
}

.cler-service-detail-action { display: flex; margin: 0 0 18px; }

body.cler-personal-sub .left_block,
body.cler-personal-sub .left_block.sticky-sidebar { display: none !important; }
body.cler-personal-sub .container_inner { display: block !important; }
body.cler-personal-sub .right_block { width: 100% !important; max-width: 100% !important; margin: 0 !important; }
body.cler-personal-sub .right_block > .middle { width: 100% !important; }
.cler-cabinet__nav--inner { margin-top: 0; }
.cler-cabinet__nav--inner a[aria-current="page"] { border-color: #536f41; background: #edf3e9; font-weight: 600; }

.cler-cabinet__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid #dce2db;
}
.cler-cabinet__nav a {
  padding: 9px 14px;
  border: 1px solid #dce2db;
  border-radius: 999px;
  color: #284333;
  font-size: 13px;
  text-decoration: none;
}
.cler-cabinet__nav a:hover { border-color: #9cab8f; background: #f3f6ee; }
.cler-cabinet__nav--inner { margin-top: 0; }
.cler-cabinet__nav--inner a[aria-current="page"] { border-color: #536f41; background: #edf3e9; font-weight: 600; }
body.cler-personal-sub .right_block > .middle { padding-left: 0 !important; padding-right: 0 !important; }
