/* ELLE.com Sidebar Styles */

.elle-sidebar-menu {
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 320px;
  background-color: #fff;
  z-index: 13000000;
  transform: translateX(-100%);
  transition: transform 0.3s ease-in-out;
  overflow-y: auto;
  box-shadow: 0 0 15px rgba(0,0,0,0.1);
}

.elle-sidebar-menu.open {
  transform: translateX(0);
}

#page-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
  z-index: 1999;
}

#page-overlay.active {
  display: block;
}

.sidebar-header {
  padding: 20px 20px 10px;
  border-bottom: 1px solid #e0e0e0;
  display: flex;
  justify-content: flex-end;
}

.close-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.5rem;
  color: #000;
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
}

.sidebar-content {
  padding: 20px;
}

.sidebar-section {
  margin-bottom: 25px;
}

.sidebar-section-title {
  font-family: 'NeueHasUnicaPro', Arial, sans-serif;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.0225rem;
  margin: 0 0 15px;
  font-weight: bold;
}

.sidebar-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-item {
  position: relative;
  padding: 10px 0;
  border-bottom: 1px solid #e0e0e0;
}

.nav-item:last-child {
  border-bottom: none;
}

.nav-link {
  font-family: 'NeueHasUnicaPro', Arial, sans-serif;
  font-size: 0.875rem;
  line-height: 2;
  text-decoration: none;
  color: #000;
  display: block;
  transition: color 0.2s linear;
}

.nav-link:hover {
  color: #525252;
}

.has-submenu {
  padding-right: 40px;
}

.submenu-toggle {
  position: absolute;
  right: 0;
  top: 10px;
  background: none;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease-in-out;
}

.submenu-toggle[aria-expanded="true"] {
  transform: rotate(45deg);
}

/* Sidepanel dropdown button styles */
.css-12wn3f1 {
  position: absolute;
  right: 0;
  top: 10px;
  background: none;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease-in-out;
  padding: 0;
}

.css-12wn3f1[aria-expanded="true"] {
  transform: rotate(45deg);
}

.css-12wn3f1 svg {
  width: 16px;
  height: 16px;
  color: #000;
}

/* Sidepanel logo styles */
.sidepanel-logo-container {
  padding: 20px 0;
  border-bottom: 1px solid #e0e0e0;
  display: flex;
  justify-content: center;
}

.sidepanel-logo-container img {
  max-height: 40px;
  height: auto;
  width: auto;
}

.submenu {
  list-style: none;
  padding: 10px 0 0 10px;
  margin: 10px 0 0;
  border-top: 1px solid #e0e0e0;
  display: none;
}

.submenu.open {
  display: block;
}

.submenu li {
  padding: 5px 0;
}

.submenu a {
  font-size: 0.8125rem;
  color: #666;
}

.social-links,
.newsletter-links,
.edition-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.social-link,
.newsletter-link,
.edition-link {
  display: block;
  padding: 8px 0;
  font-family: 'NeueHasUnicaPro', Arial, sans-serif;
  font-size: 0.875rem;
  text-decoration: none;
  color: #000;
  transition: color 0.2s linear;
}

.social-link:hover,
.newsletter-link:hover,
.edition-link:hover {
  color: #525252;
}