#sw-newsbox {
  position: fixed;
  z-index: 9999;
  inset: 0;
  pointer-events: none;
}

/* Vertical button on LEFT edge */
#sw-newsbox-btn {
  outline: none;
  pointer-events: auto;
  position: fixed;
  left: 0;
  top: 50%;
  transform: translateY(-50%);     /* no rotate here */
  writing-mode: vertical-rl;
  text-orientation: mixed;
  padding: 12px 10px;
  border: 0;
  border-radius: 0 10px 10px 0;
  cursor: pointer;
  background: #ef7f1a;
  color: #fff;
  font-weight: 600;
  letter-spacing: .3px;
  box-shadow: 0 8px 30px rgba(0,0,0,.18);
}

#sw-newsbox-btn:focus {
  outline: none;
  box-shadow: 0 8px 30px rgba(0,0,0,.18);
}

/* Rotate ONLY the text 180deg */
#sw-newsbox-btn span {
  display: inline-block;
  transform: rotate(180deg);
}

/* Backdrop */
#sw-newsbox-backdrop {
  pointer-events: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.35);
  opacity: 0;
  transition: opacity .25s ease;
}

#sw-newsbox-panel {
  pointer-events: auto;
  position: fixed;
  top: 0;
  left: 0;                       /* changed */
  height: 100vh;
  width: 360px;
  max-width: calc(100vw - 40px);
  background: #fff;
  box-shadow: 10px 0 40px rgba(0,0,0,.18); /* flipped shadow */
  transform: translateX(-105%);  /* slide from left */
  transition: transform .25s ease;
  display: flex;
  flex-direction: column;
  z-index:9001;
}

#sw-newsbox.is-open #sw-newsbox-panel {
  transform: translateX(0);
}


#sw-newsbox.is-open #sw-newsbox-backdrop {
  pointer-events: auto;
  opacity: 1;
  z-index:9000;
}

.sw-newsbox-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 14px;
  border-bottom: 1px solid #eee;
}

.sw-newsbox-title {
  font-size: 16px;
  font-weight: 700;
}

#sw-newsbox-close {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  background: #f2f2f2;
  font-size: 22px;
  line-height: 34px;
  color:#707070;
  padding:0;
}

.sw-newsbox-body {
  padding: 14px;
  overflow: auto;
}

.sw-newsbox-item {
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 12px;
}

.sw-newsbox-item-title {
  font-weight: 800;
  margin-bottom: 3px;
}

.sw-newsbox-item-text p {
  padding:0;
  margin:0;
}

.sw-newsbox-item-date {
  font-size: 12px;
  opacity: .75;
  margin-bottom: 6px;
}

.sw-newsbox-item-text {
  font-size: 14px;
  line-height: 1.35;
}

.sw-newsbox-empty {
  opacity: .75;
}
