/* Shared contact access, including pages using the original base layout. */
.pk-contact {
  position: fixed;
  z-index: 1200;
  right: 20px;
  bottom: 24px;
  display: flex;
  align-items: stretch;
  gap: 6px;
  padding: 7px;
  background: #082840f5;
  color: #fff;
  border: 1px solid #ffffff35;
  box-shadow: 0 8px 30px #051b3633;
  border-radius: 15px;
  font-family: IranSans, Tahoma, sans-serif;
  max-width: calc(100vw - 40px);
  box-sizing: border-box;
}
.pk-contact * {
  box-sizing: border-box;
}
.pk-contact :is(a, summary) {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 9px;
  padding: 10px 13px;
  color: inherit;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.6;
  text-decoration: none;
  cursor: pointer;
  min-height: 46px;
}
.pk-contact .pk-contact-call {
  background: #fff;
  color: #082840;
}
.pk-contact .pk-contact-chat {
  background: #ffd144;
  color: #082840;
}
.pk-contact small {
  display: block;
  font-size: 10px;
  font-weight: 400;
}
.pk-contact svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.pk-contact summary {
  flex-direction: column;
  gap: 1px;
  font-size: 10px;
}
.pk-contact summary::marker,
.pk-contact summary::-webkit-details-marker {
  display: none;
  content: "";
}
.pk-contact :is(a, summary):focus-visible {
  outline: 3px solid #e1ad18;
  outline-offset: 3px;
}
.pk-contact .pk-contact-panel {
  position: absolute;
  bottom: calc(100% + 10px);
  right: 0;
  width: 320px;
  max-width: calc(100vw - 24px);
  padding: 17px;
  border-radius: 14px;
  background: #fff;
  color: #122c47;
  border: 1px solid #dce5ef;
  box-shadow: 0 12px 40px #071b3333;
}
.pk-contact-panel > strong {
  display: block;
  font-size: 14px;
  margin-bottom: 10px;
}
.pk-contact .pk-contact-panel a {
  justify-content: space-between;
  border-top: 1px solid #e9edf3;
  padding: 13px 0;
  font-size: 11px;
}
/* Replace duplicate legacy bars, while keeping the existing live-chat service. */
.ph-root .ph-mobile-actions,
.parto-phone-number {
  display: none !important;
}
html {
  scroll-padding-bottom: 100px;
}
@media (max-width: 700px) {
  .pk-contact {
    left: 86px;
    right: 10px;
    bottom: max(12px, env(safe-area-inset-bottom));
    max-width: none;
    gap: 4px;
    padding: 5px;
    border-radius: 12px;
  }
  .pk-contact > a {
    flex: 1;
    padding: 7px 4px;
    gap: 4px;
    font-size: 10px;
    min-width: 0;
  }
  .pk-contact small {
    display: none;
  }
  .pk-contact svg {
    width: 18px;
    height: 18px;
  }
  .pk-contact summary {
    padding: 5px;
    font-size: 9px;
  }
  .pk-contact .pk-contact-panel {
    width: min(310px, calc(100vw - 24px));
  }
  body:has(.pk-contact) {
    padding-bottom: calc(90px + env(safe-area-inset-bottom)) !important;
  }
  .ph-root {
    padding-bottom: 0 !important;
  }
}
@media print {
  .pk-contact {
    display: none;
  }
}
/* v9: compact vertical contact stack with readable telephone numbers. */
.pk-contact {
  flex-direction: column;
  width: 185px;
  gap: 6px;
  right: 18px;
  bottom: 24px;
  padding: 7px;
}
.pk-contact :is(a, summary) {
  font-size: 12px;
  justify-content: flex-start;
  padding: 10px;
}
.pk-contact small {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.2px;
}
.pk-contact .pk-contact-chat small {
  font-size: 11px;
  font-weight: 400;
}
.pk-contact summary {
  flex-direction: row;
  gap: 9px;
  min-height: 38px;
  font-size: 11px;
}
.pk-contact .pk-contact-panel {
  bottom: 0;
  right: calc(100% + 12px);
  width: 325px;
}
.pk-contact .pk-contact-panel a {
  flex-wrap: wrap;
  gap: 6px;
  font-size: 12px;
}
.pk-contact-panel [dir="ltr"] {
  font-size: 17px;
  font-weight: 800;
}
@media (max-width: 700px) {
  .pk-contact {
    left: auto;
    right: 10px;
    bottom: max(12px, env(safe-area-inset-bottom));
    width: 146px;
    max-width: calc(100vw - 20px);
  }
  .pk-contact > a {
    flex: none;
    padding: 8px 7px;
    font-size: 11px;
    gap: 6px;
  }
  .pk-contact .pk-contact-call small {
    display: block;
    font-size: 14px;
  }
  .pk-contact .pk-contact-chat small {
    display: none;
  }
  .pk-contact summary {
    font-size: 10px;
    padding: 6px;
    min-height: 32px;
  }
  .pk-contact .pk-contact-panel {
    right: 0;
    bottom: calc(100% + 10px);
    width: min(320px, calc(100vw - 24px));
  }
  body:has(.pk-contact) {
    padding-bottom: calc(175px + env(safe-area-inset-bottom)) !important;
  }
}
.pk-contact .pk-contact-call small {
  font-size: 18px;
}
@media (max-width: 700px) {
  .pk-contact {
    width: 158px;
  }
  .pk-contact .pk-contact-call small {
    font-size: 16px;
  }
}

/* v11: smaller mobile launcher; readable vertical panel on demand. No-JS keeps all links visible. */
.pk-contact-toggle {
  display: none;
}
@media (max-width: 900px) {
  .pk-contact.is-ready {
    width: 158px;
    right: 10px;
    left: auto;
    padding: 5px;
    bottom: max(12px, env(safe-area-inset-bottom));
  }
  .pk-contact.is-ready .pk-contact-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    order: 3;
    width: 100%;
    min-height: 58px;
    padding: 7px 5px;
    border: 0;
    border-radius: 9px;
    background: #ffd144;
    color: #082840;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
  }
  .pk-contact .pk-contact-toggle small {
    display: block;
    font-size: 15px;
    font-weight: 800;
  }
  .pk-contact.is-ready:not(.is-open) > :not(.pk-contact-toggle) {
    display: none;
  }
  .pk-contact.is-ready.is-open .pk-contact-toggle {
    min-height: 44px;
  }
  .pk-contact-toggle:focus-visible {
    outline: 3px solid #966500;
    outline-offset: 3px;
  }
  .pk-contact .pk-contact-panel {
    right: 0;
    bottom: calc(100% + 10px);
    max-height: calc(100dvh - 270px);
    overflow-y: auto;
  }
  body:has(.pk-contact.is-ready) {
    padding-bottom: calc(90px + env(safe-area-inset-bottom)) !important;
  }
}

/* v14: compact contact dock; keep the telephone readable. */
.pk-contact {
    width: 164px;
    padding: 5px;
    gap: 4px;
    border-radius: 12px;
}
.pk-contact :is(a, summary) {
    padding: 7px 8px;
    gap: 7px;
    font-size: 11px;
    min-height: 44px;
}
.pk-contact svg {
    width: 20px;
    height: 20px;
}
.pk-contact .pk-contact-call small {
    font-size: 16px;
    white-space: nowrap;
}
.pk-contact .pk-contact-chat small {
    display: none;
}
.pk-contact summary {
    min-height: 36px;
}
/* Expanded secondary links keep their existing comfortable text and hit areas. */
.pk-contact .pk-contact-panel a {
    min-height: 44px;
    padding-block: 12px;
    font-size: 12px;
}
@media (max-width: 900px) {
    .pk-contact,
    .pk-contact.is-ready {
        width: 144px;
        padding: 4px;
        gap: 4px;
    }
    .pk-contact.is-ready .pk-contact-toggle {
        min-height: 50px;
        padding: 5px 4px;
        gap: 6px;
        font-size: 11px;
    }
    .pk-contact .pk-contact-toggle small,
    .pk-contact .pk-contact-call small {
        font-size: 15px;
        white-space: nowrap;
    }
    .pk-contact svg {
        width: 17px;
        height: 17px;
    }
    .pk-contact summary {
        min-height: 44px;
    }
}
