.color-options {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.color-option {
  width: 30px;
  height: 30px;
  border: 1px solid #362c2c;
  border-radius: 5px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.color-option:hover {
  transform: scale(1.12);
}

/* Visual confirmation of the currently applied color */
.color-option.active {
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px #362c2c;
  transform: scale(1.08);
}

.imagecontainter {
  margin-bottom: 5px;
  margin-top: 5px;
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
}

.imagecontainter img {
  width: 100%;
  height: auto;
  /* Crossfade: opacity is toggled by scripts.js when switching images */
  transition: opacity 0.25s ease;
}

.imagecontainter img.is-switching {
  opacity: 0;
}

/* Frame overlay sits exactly on top of the panel image in every layout.
   Without top/left it fell to its static position under the panel in the
   stacked (display:block) layout and was clipped by overflow:hidden. */
img.frameImage {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
}

.optionContainer h6 {
  margin: 5px 15px auto 0;
  min-width: 100px;
}

.optionContainer {
  display: flex;
  align-items: flex-start;
  margin-bottom: 20px;
}

.panel-image-preview img,
.frame-image-preview img {
  max-width: 100px;
  max-height: 100px;
  border: 1px solid #ccc;
  margin-top: 5px;
}

/* Center footer widgets on mobile */
@media only screen and (max-width: 800px) {
  .optionContainer h6 {
    margin: 5px 15px 10px 0;
    min-width: 100%;
  }
  .optionContainer {
    flex-direction: column;
  }
}
