.dreiz-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(2px);
  z-index: 999;
  display: none;
}

.dreiz-drawer {
  position: fixed;
  top: 0;
  height: 100vh;
  width: var(--dreiz-drawer-width, 50vw);
  background: var(--dreiz-drawer-bg, #fff);
  box-shadow: -2px 0 10px rgba(0,0,0,0.2);
  transform: translateX(100%);
  transition: transform 0.3s ease-in-out;
  z-index: 1000;
  overflow-y: auto;
}

.dreiz-drawer[data-position="left"] {
  left: 0;
  transform: translateX(-100%);
}

.dreiz-drawer[data-position="right"] {
  right: 0;
  transform: translateX(100%);
}

.dreiz-drawer.active {
  transform: translateX(0);
}

.dreiz-drawer-overlay.active {
  display: block;
}

.dreiz-drawer-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  z-index: 1002; /* Higher than other elements in drawer */
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
}

.dreiz-drawer-inner {
  padding: 2rem;
  height: 100%;
  overflow-y: auto;
  position: relative; /* Ensure proper stacking context */
  z-index: 1001; /* Ensure content is above drawer background */
}

.dreiz-drawer-close:hover {
  background: rgba(0,0,0,0.1);
  border-radius: 50%;
}

.dreiz-drawer-inner {
  padding: 2rem;
  height: 100%;
  overflow-y: auto;
}

/* Toggle Button Styles */
.dreiz-drawer-toggle {
  background: #007cba;
  color: white;
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  display: inline-block;
}

.dreiz-drawer-toggle:hover {
  background: #005a87;
}

/* Mobile Menu Hamburger Button Styles */
.dreiz-mobile-menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 30px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  box-sizing: border-box;
}

.dreiz-hamburger-line {
  width: 100%;
  height: 3px;
  background: #333;
  border-radius: 2px;
  transition: all 0.3s;
  position: relative;
  transform-origin: center;
}

.dreiz-mobile-menu-toggle:hover .dreiz-hamburger-line {
  background: #007cba;
}

/* Mobile Menu Specific Styles */
.dreiz-mobile-menu {
  /* Inherits all drawer styles but can have specific overrides */
}

/* Editor styles */
.dreiz-filter-drawer-editor {
  border: 2px dashed #ddd;
  padding: 1rem;
  background: #f9f9f9;
}