.color-accordion-wrapper {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  direction: rtl;
}
.color-accordion {
  display: flex;
  flex: 1;
  height: 350px;
  overflow: hidden;
}
.color-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: var(--color);
  color: #fff;
  cursor: pointer;
  transition: flex 0.4s ease, transform 0.3s ease;
  padding: 10px;
  text-align: center;
}
.color-panel:hover {
  flex: 3;
}
.color-panel .color-name {
  font-weight: bold;
  font-size: 14px;
  margin-bottom: 4px;
}
.color-panel .color-code {
  font-size: 12px;
  opacity: 0.8;
}
.color-details {
  flex: 1;
  padding: 20px;
  background: #ccc;
  min-width: 250px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: background 0.3s ease;
}
.color-details-content {
  flex: 1;
}
.bottom-box {
  padding: 15px;
  background: rgba(255,255,255,0.15);
  border-radius: 6px;
  text-align: center;
}
.bottom-box p {
  font-size: 14px;
  margin-bottom: 10px;
}
.bottom-box a {
  display: inline-block;
  background: #fff;
  color: inherit;
  padding: 8px 14px;
  border-radius: 4px;
  font-weight: bold;
  text-decoration: none;
  opacity: 0.5;
  pointer-events: none;
}
@media(max-width:768px) {
  .color-accordion-wrapper {
    flex-direction: column;
  }
  .color-accordion {
    flex-direction: column;
    height: auto;
  }
  .color-panel {
    flex: none;
    height: 60px;
    flex-direction: row;
    justify-content: flex-start;
    padding: 0 15px;
  }
  .color-panel:hover {
    flex: none;
    transform: scale(1.02);
  }
}
