.vpmed-feature-loading {
  position: relative;
  cursor: progress;
  opacity: .78;
}

.vpmed-feature-loading::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 14px;
  width: 18px;
  height: 18px;
  border: 3px solid rgba(7, 95, 159, .18);
  border-top-color: #075f9f;
  border-radius: 50%;
  animation: vpmed-shell-spin .75s linear infinite;
}

@keyframes vpmed-shell-spin {
  to { transform: rotate(360deg); }
}

.vpmed-connectivity {
  position: sticky;
  z-index: 1200;
  top: 0;
  width: 100%;
  padding: 9px 16px;
  border-bottom: 1px solid transparent;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.4;
  text-align: center;
}

.vpmed-connectivity.is-offline {
  color: #6f3f00;
  background: #fff3d4;
  border-color: #e7c57a;
}

.vpmed-connectivity.is-cached-data {
  color: #7a1f1f;
  background: #fff0f0;
  border-color: #e2a4a4;
}

.vpmed-connectivity button {
  margin-left: 8px;
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 4px 9px;
  color: inherit;
  background: rgba(255, 255, 255, .76);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.vpmed-shell-toasts {
  position: fixed;
  z-index: 1500;
  right: 18px;
  bottom: 18px;
  display: grid;
  width: min(390px, calc(100vw - 32px));
  gap: 9px;
  pointer-events: none;
}

.vpmed-shell-toast {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid #c7d9e5;
  border-radius: 12px;
  color: #15384f;
  background: #fff;
  box-shadow: 0 12px 32px rgba(7, 50, 79, .18);
  font-size: 13px;
  line-height: 1.45;
  pointer-events: auto;
}

.vpmed-shell-toast.warning {
  border-color: #e7c57a;
  background: #fff9e9;
}

.vpmed-shell-toast.error {
  border-color: #e2a4a4;
  color: #7a1f1f;
  background: #fff5f5;
}

.vpmed-shell-toast button {
  flex: 0 0 auto;
  border: 0;
  border-radius: 8px;
  padding: 7px 10px;
  color: #fff;
  background: #075f9f;
  font-weight: 800;
  cursor: pointer;
}

.vpmed-shell-banner {
  position: fixed;
  z-index: 1400;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(760px, calc(100vw - 28px));
  gap: 18px;
  padding: 16px 18px;
  border: 1px solid #b7d2e3;
  border-radius: 16px;
  color: #15384f;
  background: #fff;
  box-shadow: 0 18px 55px rgba(7, 50, 79, .24);
}

.vpmed-shell-banner[hidden] {
  display: none !important;
}

.vpmed-shell-banner strong,
.vpmed-shell-banner span {
  display: block;
}

.vpmed-shell-banner span {
  margin-top: 4px;
  color: #5e7180;
  font-size: 13px;
}

.vpmed-shell-banner-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}

.vpmed-shell-banner button {
  border: 1px solid #075f9f;
  border-radius: 9px;
  padding: 9px 12px;
  color: #fff;
  background: #075f9f;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.vpmed-shell-banner button.secondary {
  color: #075f9f;
  background: #fff;
}

@media (max-width: 680px) {
  .vpmed-shell-banner {
    align-items: stretch;
    flex-direction: column;
    bottom: 10px;
  }

  .vpmed-shell-banner-actions,
  .vpmed-shell-banner button {
    width: 100%;
  }

  .vpmed-shell-banner-actions {
    flex-direction: column;
  }

  .vpmed-shell-toasts {
    right: 12px;
    bottom: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .vpmed-feature-loading::after {
    animation-duration: 1.8s;
  }
}
