/* Basic reset */
.chsip-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease;
  z-index: 99998;
}
.chsip {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: var(--chsip-width, 360px);
  max-width: 92vw;
  transform: translateX(100%);
  background: #fff;
  box-shadow: -12px 0 24px rgba(0, 0, 0, 0.2);
  transition: transform 0.35s ease;
  z-index: 99999;
  display: flex;
  flex-direction: column;
}
.chsip.is-open {
  transform: translateX(0);
}
.chsip-overlay.is-open {
  opacity: 1;
  visibility: visible;
}
.chsip-close {
  position: absolute;
  top: 10px;
  left: 12px;
  background: transparent;
  border: 0;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  color: #fff;
  z-index: 2;
}
.chsip-inner {
  display: grid;
  grid-template-rows: auto 1fr;
  height: 100%;
}
.chsip-image {
  background-size: cover;
  background-position: center;
  height: 38%;
  min-height: 180px;
  position: relative;
}
.chsip-image:after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 10px;
  background: var(--chsip-accent, #004aad);
}
.chsip-content {
  padding: 18px 22px 28px;
  overflow: auto;
}
.chsip-content h1,
.chsip-content h2,
.chsip-content h3 {
  margin-top: 0;
  font-size: 18px;
}

.chsip-content a {
  color: var(--chsip-accent, #004aad);
  text-decoration: underline;
}
@media (max-width: 640px) {
  .chsip {
    width: min(420px, 60vw);
  }
  .chsip-image {
    height: 32%;
  }
  .chsip-close {
    font-size: 30px;
  }
}
