/* Slide-in Panel Styles */

/* globally set */
*, *::before, *::after {
  box-sizing: border-box;
}

#ctrkr-slidein-panel {
  position: fixed;
  top: 0;
  width: 25vw;
  min-width: 280px;
  max-width: 450px;
  height: 100vh;
  background: #fff;
  box-shadow: none;
  z-index: 10011;
  overflow-y: auto;
  transition: transform 0.3s;
  padding: 2em 1em 1em 1em;
}

#ctrkr-slidein-panel.ctrkr-side-left {
  left: 0;
  right: auto;
  border-right: 1px solid #e5e7eb;
  border-left: none;
  transform: translateX(-100%);
}
#ctrkr-slidein-panel.ctrkr-side-left.open {
  transform: translateX(0);
}
#ctrkr-slidein-panel.ctrkr-side-right {
  left: auto;
  right: 0;
  border-left: 1px solid #e5e7eb;
  border-right: none;
  transform: translateX(100%);
}
#ctrkr-slidein-panel.ctrkr-side-right.open {
  transform: translateX(0);
}

#ctrkr-slidein-panel.ctrkr-no-transition {
  transition: none !important;
}

/* Slide-in Header Styles */
.ctrkr-slidein-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1.2em;
  font-weight: 700;
  border-bottom: 1px solid #f0f0f0;
  padding: 1em 0 1em 0;
  margin-bottom: 1em;
  background: #fff;
}
.ctrkr-slidein-title {
  font-size: 2em;
  font-weight: 700;
  color: #1f2937;
  line-height: 1.1;
  margin: 0;
}

#ctrkr-slidein-close {
  position: absolute;
  right: 0;
  top: 23px !important;
  background: none !important;
  border: none !important;
  font-size: 2em !important;
  cursor: pointer !important;
  color: #111 !important;
  z-index: 2;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 0;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
  transition: none;
  appearance: none !important;
}
#ctrkr-slidein-close:focus,
#ctrkr-slidein-close:hover {
  background: none !important;
  outline: none !important;
}
#ctrkr-slidein-close svg {
  width: 32px !important;
  height: 32px !important;
  display: block !important;
  pointer-events: none !important;
  stroke: #1f2937 !important;
  stroke-width: 2 !important;
}

/* Overlay styles */
#ctrkr-slidein-overlay {
  display: none;
  position: fixed;
  top:0; left:0; width:100vw; height:100vh;
  background:rgba(30,41,59,0.18);
  z-index:10010;
  transition: background 0.2s;
}

/* Toggle button style */
.ctrkr-slidein-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  margin: 0 0 0 8px;
  vertical-align: middle;
  font-size: 1.3em;
  color: #222;
  transition: background 0.2s;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.ctrkr-slidein-toggle:hover,
.ctrkr-slidein-toggle:focus {
  background: #f2f2f2;
  outline: none;
}

/* Responsive adjustments: No CSS margin for pushed content! Only JS sets margin-left/margin-right. */
@media (min-width: 900px) {
  #ctrkr-slidein-panel {
    width: 25vw;
    min-width: 280px;
    max-width: 450px;
  }
}
@media (max-width: 899px) and (min-width: 601px) {
  #ctrkr-slidein-panel {
    width: 50vw;
    min-width: 220px;
    max-width: 95vw;
  }
}
@media (max-width: 600px) {
  #ctrkr-slidein-panel {
    width: 100vw;
    min-width: 0;
    max-width: 100vw;
  }
}