/* Wrapper */
.br-menu {
  display: inline-block;
  position: relative;
  font-family: Arial, sans-serif;
}

/* Summary (button) */
.br-menu > summary {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 10px 14px;
  cursor: pointer;
  background: #000;
  color: #fff;
  border: 1px solid #444;
  border-radius: 6px;
  font-size: 15px;
  user-select: none;
  list-style: none;

  width: fit-content;   /* <-- στενό πλάτος, όσο το κείμενο */
  white-space: nowrap;  /* <-- δεν αφήνει το κουμπί να σπάει */
}

/* Remove default triangle of <summary> */
.br-menu > summary::-webkit-details-marker {
  display: none;
}

/* Hamburger */
.br-burger {
  display: inline-block;
  width: 24px;
  height: 16px;
  position: relative;
}

.br-burger span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: #fff;
}

.br-burger span:nth-child(1) { top: 0; }
.br-burger span:nth-child(2) { top: 50%; transform: translateY(-1px); }
.br-burger span:nth-child(3) { bottom: 0; }

/* Pop-down panel */
.br-panel {
  position: absolute;
  top: 100%;
  left: 0;
  padding: 6px;
  background: #000;
  border: 1px solid #444;
  border-radius: 6px;
  min-width: 240px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.6);
  z-index: 9999;
}

/* Links */
.br-panel a {
  display: block;
  padding: 10px;
  margin-bottom: 6px;
  background: #111;
  color: #fff;
  border-radius: 4px;
  text-decoration: none;
  font-size: 15px;
}

.br-panel a:last-child {
  margin-bottom: 0;
}

/* Hover */
.br-panel a:hover {
  background: #222;
}

/* Responsive (mobile-friendly) */
@media (max-width: 480px) {
  .br-menu > summary {
    padding: 9px 12px;
    font-size: 14px;
    width: fit-content;   /* παραμένει στενό και στο mobile */
  }

  .br-panel {
    margin-top: 12px;
    margin-bottom: 3px;
  }

  .br-panel a {
    font-size: 14px;
    padding: 9px;
  }
}

.br-menu {
  margin-right: 3px;
  margin-left: 35px;
}








