.te-network-error,
.te-network-error *,
.te-network-error *::before,
.te-network-error *::after {
  box-sizing: border-box;
}

.te-network-error {
  align-items: center;
  background: #eee9df;
  color: #1b2632;
  display: flex;
  font-family: "Manrope", "Hind Siliguri", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  inset: 0;
  justify-content: center;
  opacity: 0;
  overflow-y: auto;
  padding: clamp(24px, 5vw, 56px) clamp(16px, 4vw, 48px);
  pointer-events: none;
  position: fixed;
  visibility: hidden;
  z-index: 1000000;
  -webkit-font-smoothing: antialiased;
}

.te-network-error.is-visible {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.te-network-card {
  background: #fff;
  border: 1px solid #c9c1b1;
  border-radius: 16px;
  box-shadow: 0 30px 60px -40px rgba(27, 38, 50, 0.35);
  max-width: 560px;
  overflow: visible;
  padding: clamp(28px, 5vw, 52px) clamp(22px, 5vw, 48px);
  position: relative;
  text-align: center;
  width: 100%;
}

.te-network-card::before {
  content: none;
}

.te-network-icon {
  align-items: center;
  background: #eee9df;
  border-radius: 50%;
  display: grid;
  height: 104px;
  justify-items: center;
  margin: 0 auto 26px;
  position: relative;
  width: 104px;
  animation: none;
  border: 0;
  box-shadow: none;
  color: inherit;
  font-size: initial;
  z-index: auto;
}

.te-network-icon::before {
  border: 1px dashed #c9c1b1;
  border-radius: 50%;
  content: "";
  inset: -9px;
  position: absolute;
}

.te-network-icon svg {
  fill: none;
  height: 50px;
  stroke: #1b2632;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
  width: 50px;
}

.te-network-icon .slash {
  stroke: #a35139;
  stroke-width: 2.2;
}

.te-network-icon .dot {
  fill: #1b2632;
  stroke: none;
}

.te-network-icon .wave {
  animation: teNetworkPulse 2.4s cubic-bezier(0.22, 0.61, 0.36, 1) infinite;
}

.te-network-icon .wave:nth-of-type(2) {
  animation-delay: 0.25s;
}

.te-network-icon .wave:nth-of-type(3) {
  animation-delay: 0.5s;
}

.te-network-card .te-network-eyebrow {
  color: #a35139;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  margin: 0 0 10px;
  text-transform: uppercase;
}

.te-network-card h1 {
  color: #1b2632;
  font-family: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  font-size: clamp(32px, 5vw, 44px);
  font-weight: 700;
  letter-spacing: -0.005em;
  line-height: 1.05;
  margin: 0;
  text-transform: none;
}

.te-network-card .te-network-description {
  color: #2c3b4d;
  font-size: 14.5px;
  line-height: 1.75;
  margin: 16px auto 0;
  max-width: 410px;
}

.te-network-tips {
  background: #eee9df;
  border: 1px solid #c9c1b1;
  border-radius: 10px;
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 26px 0 0;
  padding: 18px 20px;
  text-align: left;
}

.te-network-tips li {
  align-items: flex-start;
  color: #2c3b4d;
  display: flex;
  font-size: 13.5px;
  gap: 11px;
  line-height: 1.55;
}

.te-network-tips svg {
  fill: none;
  flex: none;
  height: 16px;
  margin-top: 2px;
  stroke: #a35139;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 16px;
}

.te-network-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 28px;
}

.te-network-retry,
.te-network-home {
  align-items: center;
  background: #1b2632;
  border: 1px solid #1b2632;
  border-radius: 7px;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font-family: "Manrope", "Hind Siliguri", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  gap: 10px;
  justify-content: center;
  letter-spacing: 0.08em;
  min-height: 48px;
  padding: 0 28px;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color 0.25s cubic-bezier(0.22, 0.61, 0.36, 1), border-color 0.25s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.te-network-retry:hover,
.te-network-home:hover {
  background: #2c3b4d;
  border-color: #2c3b4d;
  box-shadow: none;
  color: #fff;
  transform: none;
}

.te-network-retry:focus-visible,
.te-network-home:focus-visible {
  outline: 2px solid #1b2632;
  outline-offset: 3px;
}

.te-network-retry:disabled {
  cursor: wait;
  opacity: 0.75;
}

.te-network-retry {
  box-shadow: none;
  width: auto;
}

.te-network-retry svg,
.te-network-home svg {
  fill: none;
  height: 16px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 16px;
}

.te-network-home {
  background: transparent;
  color: #1b2632;
}

.te-network-home:hover {
  background: #1b2632;
  color: #fff;
}

.te-network-retry.is-loading svg {
  animation: teNetworkSpin 0.8s linear infinite;
}

.te-network-card .te-network-status {
  background: transparent;
  border: 0;
  box-shadow: none;
  align-items: center;
  color: #2c3b4d;
  display: inline-flex;
  font-size: 12.5px;
  font-weight: 600;
  gap: 8px;
  height: auto;
  justify-content: center;
  margin: 22px 0 0;
  min-height: 20px;
  position: static;
  width: auto;
  z-index: auto;
}

.te-network-status::before {
  background: #a35139;
  border-radius: 50%;
  content: "";
  height: 8px;
  width: 8px;
}

.te-network-status.is-ok::before {
  background: #1b2632;
}

.te-network-card.is-shake {
  animation: teNetworkShake 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
}

@keyframes teNetworkPulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.25;
  }
}

@keyframes teNetworkSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes teNetworkShake {
  20%,
  60% {
    transform: translateX(-6px);
  }
  40%,
  80% {
    transform: translateX(6px);
  }
}

@media (max-width: 480px) {
  .te-network-actions {
    flex-direction: column;
  }
  .te-network-retry,
  .te-network-home {
    width: 100%;
  }
}

@media (max-height: 700px) {
  .te-network-error {
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .te-network-error *,
  .te-network-error *::before,
  .te-network-error *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }
}
