body.remote-support-modal-open {
  overflow: hidden;
}

.remote-support-modal[hidden] {
  display: none;
}

.remote-support-modal {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow-y: auto;
  background: rgba(10, 18, 45, 0.72);
  backdrop-filter: blur(5px);
  opacity: 0;
  transition: opacity 0.22s ease;
}

.remote-support-modal.is-open {
  opacity: 1;
}

.remote-support-dialog {
  position: relative;
  width: min(100%, 680px);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  border: 1px solid rgba(1, 9, 121, 0.1);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 28px 80px rgba(4, 12, 38, 0.34);
  transform: translateY(16px) scale(0.98);
  transition: transform 0.22s ease;
}

.remote-support-modal.is-open .remote-support-dialog {
  transform: translateY(0) scale(1);
}

.remote-support-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 1;
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-size: 17px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.remote-support-close:hover,
.remote-support-close:focus-visible {
  background: rgba(255, 255, 255, 0.28);
  transform: rotate(4deg);
}

.remote-support-header {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 30px 68px 28px 30px;
  border-radius: 21px 21px 0 0;
  background: linear-gradient(135deg, #010979 0%, #1424a4 68%, #294ac6 100%);
  color: #ffffff;
}

.remote-support-icon {
  display: inline-flex;
  width: 62px;
  height: 62px;
  flex: 0 0 62px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.14);
  font-size: 29px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.remote-support-eyebrow {
  display: block;
  margin-bottom: 5px;
  color: #ffd8c3;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.remote-support-header h2 {
  margin: 0 0 6px;
  color: #ffffff;
  font-size: clamp(23px, 4vw, 30px);
  font-weight: 700;
  line-height: 1.2;
}

.remote-support-header p {
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  line-height: 1.5;
}

.remote-support-file {
  display: flex;
  align-items: center;
  gap: 13px;
  margin: 24px 30px 0;
  padding: 14px 16px;
  border: 1px solid #e7eaf3;
  border-radius: 14px;
  background: #f8f9fd;
}

.remote-support-file-icon {
  display: inline-flex;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  background: #e9ebff;
  color: #010979;
  font-size: 21px;
}

.remote-support-file-name {
  min-width: 0;
  flex: 1;
}

.remote-support-file-name span,
.remote-support-file-name strong {
  display: block;
}

.remote-support-file-name span {
  margin-bottom: 2px;
  color: #747b8d;
  font-size: 12px;
}

.remote-support-file-name strong {
  overflow: hidden;
  color: #273044;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.remote-support-instructions {
  padding: 24px 30px 8px;
}

.remote-support-instructions h3 {
  margin: 0 0 17px;
  color: #20283a;
  font-size: 17px;
  font-weight: 700;
}

.remote-support-instructions ol {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.remote-support-instructions li {
  display: flex;
  gap: 11px;
  padding: 14px;
  border: 1px solid #eceef4;
  border-radius: 13px;
  background: #ffffff;
}

.remote-support-instructions li > span {
  display: inline-flex;
  width: 27px;
  height: 27px;
  flex: 0 0 27px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #010979;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
}

.remote-support-instructions li strong {
  display: block;
  margin-bottom: 4px;
  color: #2b3344;
  font-size: 13px;
  line-height: 1.35;
}

.remote-support-instructions li p {
  margin: 0;
  color: #747b8d;
  font-size: 12px;
  line-height: 1.45;
}

.remote-support-safety {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 12px 30px 24px;
  padding: 12px 14px;
  border-radius: 11px;
  background: #edf8f2;
  color: #246346;
  font-size: 12px;
  line-height: 1.45;
}

.remote-support-safety i {
  margin-top: 1px;
  color: #279163;
  font-size: 17px;
}

.remote-support-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 30px;
  border-top: 1px solid #eceef4;
  border-radius: 0 0 21px 21px;
  background: #fafbfc;
}

.remote-support-actions p {
  margin: 0;
  color: #747b8d;
  font-size: 12px;
}

.remote-support-actions > div {
  display: flex;
  align-items: center;
  gap: 9px;
}

.remote-support-primary,
.remote-support-secondary {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 10px;
  font-family: "Open Sans", sans-serif;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.remote-support-primary {
  border: 1px solid #f27032;
  background: #f27032;
  color: #ffffff;
}

.remote-support-primary:hover,
.remote-support-primary:focus-visible {
  background: #d95b20;
  border-color: #d95b20;
  color: #ffffff;
  transform: translateY(-1px);
}

.remote-support-secondary {
  border: 1px solid #dfe2ea;
  background: #ffffff;
  color: #4c5568;
}

.remote-support-secondary:hover,
.remote-support-secondary:focus-visible {
  border-color: #c9ceda;
  background: #f3f4f7;
  color: #252d3d;
}

.remote-support-close:focus-visible,
.remote-support-primary:focus-visible,
.remote-support-secondary:focus-visible {
  outline: 3px solid rgba(242, 112, 50, 0.35);
  outline-offset: 2px;
}

@media (max-width: 640px) {
  .remote-support-modal {
    align-items: flex-end;
    padding: 0;
  }

  .remote-support-dialog {
    width: 100%;
    max-height: calc(100vh - 20px);
    border-radius: 22px 22px 0 0;
  }

  .remote-support-header {
    gap: 13px;
    padding: 24px 58px 22px 20px;
    border-radius: 21px 21px 0 0;
  }

  .remote-support-icon {
    width: 50px;
    height: 50px;
    flex-basis: 50px;
    border-radius: 14px;
    font-size: 24px;
  }

  .remote-support-file {
    margin: 18px 20px 0;
  }

  .remote-support-instructions {
    padding: 20px 20px 6px;
  }

  .remote-support-instructions ol {
    grid-template-columns: 1fr;
  }

  .remote-support-safety {
    margin: 10px 20px 20px;
  }

  .remote-support-actions {
    align-items: stretch;
    flex-direction: column;
    padding: 16px 20px 20px;
  }

  .remote-support-actions p {
    text-align: center;
  }

  .remote-support-actions > div {
    flex-direction: column-reverse;
  }

  .remote-support-primary,
  .remote-support-secondary {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .remote-support-modal,
  .remote-support-dialog,
  .remote-support-close,
  .remote-support-primary,
  .remote-support-secondary {
    transition: none;
  }
}
