/* Only recovery controls and confirmed obsolete states are styled here. */
html[data-recovery] #thank_modal,
html[data-recovery] .title-search-result,
html[data-recovery] #cookie-consent-banner {
  display: none !important;
}

/* The old consent banner belongs to removed analytics/CRM loaders. */
/* Use readable signs only when the original Fontello face did not load. */
.acard-recovery-fontello-missing .acard-recovery-glyph-before::before {
  content: var(--acard-recovery-glyph-before) !important;
  font-family: Arial, sans-serif !important;
  font-style: normal;
}
.acard-recovery-fontello-missing .acard-recovery-glyph-after::after {
  content: var(--acard-recovery-glyph-after) !important;
  font-family: Arial, sans-serif !important;
  font-style: normal;
}
.acard-recovery-fontello-missing .icon-social_tg::before,
.acard-recovery-fontello-missing .icon-social_vk_circle::before,
.acard-recovery-fontello-missing .icon-social_wa::before { font-size: .6em; font-weight: 700; }
.acard-recovery-fontello-missing .header__bottom .catalog-link.active::before,
.acard-recovery-fontello-missing .footer .mobile-menu a.active .icon-catalog::before { content: '×' !important; }

.acard-recovery-form-note {
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 1.4;
  color: #67686c;
}

.acard-recovery-dialog {
  box-sizing: border-box;
  width: min(560px, calc(100vw - 32px));
  max-height: calc(100vh - 40px);
  margin: auto;
  padding: 30px;
  overflow: auto;
  border: 1px solid #e4e4e4;
  border-radius: 14px;
  color: #292929;
  background: #fff;
  box-shadow: 0 15px 60px #0003;
  font-family: inherit;
  font-size: 16px;
  line-height: 1.45;
  text-align: left;
}
.acard-recovery-dialog:not([open]) { display: none; }
.acard-recovery-dialog[open] { display: block; }
.acard-recovery-dialog::backdrop { background: #0008; }
.acard-recovery-dialog h2 {
  margin: 0 25px 12px 0;
  font-family: inherit;
  font-size: 25px;
  font-weight: 700;
  line-height: 1.2;
}
.acard-recovery-dialog p { margin: 0 0 18px; font-size: 15px; line-height: 1.5; }
.acard-recovery-dialog .acard-recovery-close {
  position: absolute;
  top: 8px;
  right: 11px;
  width: 35px;
  height: 35px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #555;
  font-family: Arial, sans-serif;
  font-size: 29px;
  cursor: pointer;
}
.acard-recovery-phones { display: grid; gap: 8px; margin: 16px 0 24px; }
.acard-recovery-phones a,
.acard-recovery-phones a:visited { color: #df080a; font-size: 22px; font-weight: 700; text-decoration: none; }
.acard-recovery-details-label { display: block; margin: 0 0 8px; font-size: 14px; font-weight: 700; }
.acard-recovery-details {
  box-sizing: border-box;
  width: 100%;
  min-height: 125px;
  padding: 12px;
  resize: vertical;
  border: 1px solid #d8d8d8;
  border-radius: 6px;
  color: #333;
  background: #fafafa;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.5;
}
.acard-recovery-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.acard-recovery-actions button,
.acard-recovery-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 43px;
  padding: 10px 16px;
  border: 1px solid #d8d8d8;
  border-radius: 6px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none;
  cursor: pointer;
}
.acard-recovery-actions button { color: #fff; background: #e50102; border-color: #e50102; }
.acard-recovery-actions a,
.acard-recovery-actions a:visited { color: #333; background: #fff; }
.acard-recovery-dialog .acard-recovery-copy-status { min-height: 20px; margin: 12px 0 0; color: #565656; font-size: 13px; }
.acard-recovery-dialog :focus-visible,
.acard-recovery-search-results a:focus-visible,
html[data-recovery] #title-search-input:focus-visible { outline: 2px solid #b60000; outline-offset: 3px; }

.acard-recovery-search-form { position: relative; }
.acard-recovery-search-results {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 90;
  box-sizing: border-box;
  max-height: min(65vh, 500px);
  min-width: 240px;
  overflow: auto;
  border: 1px solid #ddd;
  border-radius: 8px;
  color: #292929;
  background: #fff;
  box-shadow: 0 6px 25px #0002;
  font-family: inherit;
  font-size: 15px;
  line-height: 1.4;
  text-align: left;
}
.acard-recovery-search-results[hidden] { display: none !important; }
.acard-recovery-search-results .acard-recovery-search-status { margin: 0; padding: 10px 14px; color: #67686c; font-size: 13px; }
.acard-recovery-search-results ul { display: block; margin: 0; padding: 0 0 5px; list-style: none; }
.acard-recovery-search-results li { display: block; margin: 0; padding: 0; }
.acard-recovery-search-results a,
.acard-recovery-search-results a:visited { display: block; padding: 12px 14px; color: #292929; text-decoration: none; }
.acard-recovery-search-results a:hover,
.acard-recovery-search-results a[aria-selected="true"] { background: #f7eeee; }
.acard-recovery-search-results strong { display: block; font-size: 16px; font-weight: 700; }
.acard-recovery-search-results a span { display: block; margin-top: 3px; color: #67686c; font-size: 13px; line-height: 1.4; }

img[data-recovery-image-missing] { object-fit: contain !important; background: #f3f3f3; }

/* Applied only when original common.js is missing or its dependency is unavailable. */
.acard-recovery-fallback-ui .header__menu .catalog-menu.acard-recovery-menu-open { display: block; }
.acard-recovery-fallback-ui .catalog-menu .submenu-wrapper.acard-recovery-submenu-open { display: block; }
.acard-recovery-fallback-ui .products-list.js-tab-product:not(.active),
.acard-recovery-fallback-ui .portfolio-tab:not(.active) { display: none !important; }

@media (max-width: 560px) {
  .acard-recovery-dialog { padding: 25px 20px 20px; }
  .acard-recovery-dialog h2 { font-size: 22px; }
  .acard-recovery-actions { flex-direction: column; }
  .acard-recovery-search-results { min-width: 0; }
}
@supports not selector(dialog::backdrop) {
  .acard-recovery-dialog[open] { position: fixed; top: 20px; left: 0; right: 0; z-index: 2147483000; }
}
