/**
 * Stickers Tran — overlay image stack + color swatch component styles.
 * Overlay rules live here so any theme gets them (theme-independent).
 * Ported from D6 eshopstickers.css and D7 sticker.css.
 */

/* ── Tran overlay image stack ── */
.stickers-tran-wrapper {
  position: relative;
  display: inline-block;
  width: 100%;
}

.stickers-tran-base img {
  display: block;
  max-width: 100%;
  height: auto;
}

.stickers-tran-overlay {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
}

.stickers-tran-overlay img {
  display: block;
  width: 100%;
  height: auto;
}

/* Swatch group container */
.stickers-color-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 0;
  clear: both;
}

/* Individual swatch */
.stickers-color-swatch {
  display: inline-block;
  width: 35px;
  height: 22px;
  border: 2px solid #ccc;
  border-radius: 3px;
  cursor: pointer;
  transition: border-color 0.15s, transform 0.1s;
  box-sizing: border-box;
}

.stickers-color-swatch:hover,
.stickers-color-swatch:focus {
  border-color: #555;
  outline: none;
  transform: scale(1.1);
}

.stickers-color-swatch.is-active {
  border-color: #222;
  box-shadow: 0 0 0 2px #222;
}

/* Group labels (rendered by the theme above the swatches) */
.stickers-color-group-label {
  font-size: 0.85em;
  font-weight: bold;
  margin-bottom: 4px;
  color: #444;
}

/* Tab-style group navigation (mirrors D7 sticker-list-item tabs) */
.stickers-color-tabs {
  display: flex;
  gap: 0;
  margin-bottom: -1px;
  list-style: none;
  padding: 0;
  margin-left: 0;
}

.stickers-color-tabs li {
  background-color: #ccc;
  border-radius: 10px 10px 0 0;
  border: 1px solid #ccc;
  border-bottom: 0;
  color: #f1f1f1;
  cursor: pointer;
  display: block;
  float: left;
  font-family: Arial, Verdana, sans-serif;
  font-size: 13px;
  font-weight: bold;
  height: 22px;
  line-height: 22px;
  margin-right: 4px;
  padding: 0 12px;
  text-align: center;
}

.stickers-color-tabs li:hover,
.stickers-color-tabs li.active {
  background-color: #f9f9f9;
  color: #444;
}

/* Attribute box */
.stickers-attribute-box {
  background-color: #f9f9f9;
  border: 1px solid #ccc;
  border-radius: 10px;
  padding: 10px;
  margin-bottom: 10px;
}

/* Preview wrapper */
.stickers-tran-preview {
  display: inline-block;
  position: relative;
  background-color: #fff;
  border: 1px solid #eee;
}

.stickers-tran-preview img {
  display: block;
  max-width: 100%;
  height: auto;
}
