/* Only the pair marked by the user; every asset, label and URL comes from Tilda. */

/* Keep Nikiforova in the same image slot while mirroring only her transparent portrait canvas. */
#rec1405076541 [data-elem-id="1739885158972"] > .tn-atom,
#rec1405076541 .responsive-doctor[data-doctor-key="nikiforova"] .responsive-doctor__portrait img {
  transform: translateX(-45.5516%) scaleX(-1) !important;
  transform-origin: center center !important;
}

#rec582704432 [data-elem-id="1739889647880"] > .tn-atom,
#rec582704432 .responsive-doctor[data-doctor-key="nikiforova"] .responsive-doctor__portrait img {
  transform: translateX(33.6667%) scaleX(-1) !important;
  transform-origin: center center !important;
}

#local-nikiforova-booking { display: none; }
@media screen and (min-width: 960px) and (max-width: 1199px) {
  /* The original responsive label here points to another doctor and has no background. */
  #rec1405076541 [data-elem-id="175993474525143560"] { display: none !important; }
  #allrecords #local-nikiforova-booking {
    display: flex;
    position: absolute;
    left: calc(50% - 480px + 801px);
    top: 581px;
    width: 114px;
    height: 33px;
    align-items: center;
    justify-content: center;
    z-index: 100;
    border-radius: 4px;
    background-color: #a78bfa;
    color: #fff;
    font: 400 15px/23px Golos, Arial, sans-serif;
    text-decoration: none;
  }
}
.local-separated-doctors { display: none; }
@media screen and (min-width: 641px) {
  /* Keep old independently positioned Tilda controls behind this pair's area. */
  #rec1405076541 [data-group-id="175993352468915650"] { z-index: 100 !important; }
  #rec1405076541 [data-group-id="175993349926577550"],
  #rec1405076541 [data-group-id="175993352468915650"] > .tn-molecule > [data-elem-id]:not([data-elem-id="1733230793585"]),
  #rec1405076541 [data-elem-id="1733230913123"],
  #rec1405076541 [data-elem-id="1733231063331"],
  #rec1405076541 [data-elem-id="1733231949219"],
  #rec1405076541 [data-elem-id="1733233336330"],
  #rec1405076541 [data-elem-id="1759933927789"],
  #rec1405076541 [data-elem-id="1759934517960"],
  #rec1405076541 [data-elem-id="175993398719849900"],
  #rec1405076541 [data-elem-id="175993462831421750"] { display: none !important; }
  #rec1405076541 [data-elem-id="1733230793585"] > .tn-atom { background-color: transparent !important; }
  .local-separated-doctors {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    position: absolute;
    inset: 0;
    font: 400 15px/22px Golos, Arial, sans-serif;
    color: #000;
    background: #fff;
  }
  .local-doctor-card {
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    min-width: 0;
    padding: 16px 14px 32px;
    background: #f3f6ff;
    border-radius: 8px;
  }
  .local-doctor-card__header { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 16px; align-items: start; }
  .local-doctor-card__header img { display: block; width: 64px; height: 64px; object-fit: cover; border-radius: 50%; }
  .local-doctor-card__name { padding-top: 4px; font-weight: 500; line-height: 20px; }
  .local-doctor-card__specialty { margin-top: 14px; }
  .local-doctor-card__actions { display: flex; gap: 10px; margin-top: auto; padding-top: 16px; }
  #allrecords .local-doctor-card__actions a {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    min-width: 0;
    height: 33px;
    box-sizing: border-box;
    padding: 0 3px;
    border-radius: 3px;
    font-size: 14px;
    font-weight: 500;
    line-height: 18px;
    text-decoration: none;
    white-space: nowrap;
    color: #fff;
  }
  #allrecords .local-doctor-card__review { background: #0e0c28; }
  #allrecords .local-doctor-card__booking { background: #a78bfa; }
}
@media screen and (min-width: 960px) and (max-width: 1199px) {
  .local-doctor-card { padding: 14px; }
  .local-doctor-card__header { gap: 10px; }
  .local-doctor-card__actions { flex-direction: column; gap: 8px; }
  #allrecords .local-doctor-card__actions a { flex: none; }
}
@media screen and (min-width: 641px) and (max-width: 959px) {
  .local-separated-doctors { left: -320px; width: 622px; }
  .local-doctor-card { padding-bottom: 20px; }
}
