/* OffCanvas Widget CSS */

.tps-offcanvas-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 99999999999999999999999999999;
  visibility: hidden;
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
}

.tps-offcanvas-container.tps-open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.tps-offcanvas-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none; /* CRITICAL FIX */
  transition: opacity 0.3s ease;
  cursor: pointer;
}

.tps-offcanvas-container.tps-open .tps-offcanvas-overlay {
  opacity: 1;
  pointer-events: auto; /* Can click when visible */
}

.tps-offcanvas-wrapper {
  position: absolute;
  top: 0;
  height: 100%;
  background: #fff;
  width: 400px;
  max-width: 90%;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
  overflow-y: auto;
  z-index: 2;
}

/* Position Right (Default) */
.tps-offcanvas-container.position-right .tps-offcanvas-wrapper {
  right: 0;
  transform: translate3d(100%, 0, 0);
}

/* Position Left */
.tps-offcanvas-container.position-left .tps-offcanvas-wrapper {
  left: 0;
  transform: translate3d(-100%, 0, 0);
}

.tps-offcanvas-container.tps-open .tps-offcanvas-wrapper {
  transform: translate3d(0, 0, 0);
}

.tps-offcanvas-content {
  padding: 60px 30px 30px;
}

/* Dots Icon Style from original */
.tps-dots-icon {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 4px;
  width: 24px;
}

.tps-dots-icon .dot {
  width: 4px;
  height: 4px;
  background-color: currentColor;
  border-radius: 50%;
  display: block;
}

.tps-offcanvas-trigger {
  display: inline-block;
  cursor: pointer;
}

.tps-offcanvas-trigger span {
  display: block;
  background-color: #000;
}

/* Close Button Styles */
.tps-close-btn {
  position: absolute;
  top: 0;
  width: 40px;
  height: 40px;
  font-size: 24px;
  line-height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 10;
  color: #333;
  padding: 0;
  text-align: center;
  transition: all 0.3s ease;
}

.tps-close-pos-right .tps-close-btn {
  right: 0;
}

.tps-close-pos-left .tps-close-btn {
  left: 0;
}
