.fm__dropdown-container {
  position: relative;
  display: inline-block;
}

.fm__dropdown-button {
  background-color: #1c7ef0;
  color: white;
  width: 126px;
  padding: 9px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background-color 0.2s;
  box-shadow: 0.5px 0.9px 4px 0 rgba(0, 0, 0, 0.27);
  justify-content: space-between;
}

.fm__dropdown-button:hover {
  background-color: #1d4ed8;
}

.fm__dropdown-button.fm__active {
  border-radius: 5px 5px 0 0;
}

.fm__arrow {
  width: 8px;
  height: 8px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  transition: transform 0.2s;
  margin-left: 4px;
}

.fm__dropdown-button.fm__active .fm__arrow, .fm__theme-button.fm__active .fm__arrow {
  transform: rotate(-135deg);
}

.fm__dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: white;
  border-radius: 0 0 5px 5px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 100;
  min-width: 100%;
}

.fm__dropdown-menu.fm__show {
  max-height: 300px;
  opacity: 1;
}

.fm__dropdown-item {
  padding: 9px 20px;
  cursor: pointer;
  color: #333;
  font-size: 14px;
  transition: background-color 0.2s;
  border: none;
  width: 100%;
  text-align: center;
  background: white;
}

.fm__dropdown-item:hover {
  background-color: #f3f4f6;
}

.fm__dropdown-item.fm__selected {
  background-color: #dbeafe;
  color: #2563eb;
  font-weight: 500;
}

/* 주제도 버튼 스타일 */
.fm__theme-container {
  display: none;
  position: relative;
}

.fm__theme-container.fm__visible {
  display: block;
}

.fm__theme-button {
  background-color: #6b93c0;
  color: white;
  padding: 9px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background-color 0.2s;
  white-space: nowrap;
  box-shadow: 0.5px 0.9px 4px 0 rgba(0, 0, 0, 0.27);
}

.fm__theme-button:hover {
  background-color: #5278a8;
}

.fm__theme-button.fm__active {
  border-radius: 5px 5px 0 0;
}

.fm__theme-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: white;
  border-radius: 0 0 5px 5px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 100;
  width: 100%;
}

.fm__theme-menu.fm__show {
  max-height: 400px;
  opacity: 1;
}

.fm__theme-item {
  padding: 10px 16px;
  cursor: pointer;
  color: #333;
  font-size: 14px;
  transition: background-color 0.2s;
  border: none;
  width: 100%;
  text-align: left;
  background: white;
  display: flex;
  align-items: center;
  gap: 10px;
}

.fm__theme-item:hover {
  background-color: #f3f4f6;
}

.fm__checkbox {
  width: 16px;
  height: 16px;
  border: 2px solid #d1d5db;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
}

.fm__theme-item.fm__checked .fm__checkbox {
  background-color: #2563eb;
  border-color: #2563eb;
}

.fm__checkbox::after {
  content: "✓";
  color: white;
  font-size: 12px;
  display: none;
}

.fm__theme-item.fm__checked .fm__checkbox::after {
  display: block;
}

.fm__color-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  flex-shrink: 0;
}

.fm__theme-label {
  flex: 1;
}
