/* =========================================================
   Storelinkr Variants UI
   ========================================================= */

.storelinkr-variant-box {
  width: 100%;
  display: block;
  font-family: "museo-sans", Sans-serif;
  color: #333333;
  font-weight: 500;
}

/* =========================================================
   CHIPS
   ========================================================= */
.storelinkr-variant-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.storelinkr-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 5px;
  border: 1px solid #ddd;
  background: #fff;
  text-decoration: none;
  color: #333333;
  min-width: 180px;
  max-width: 300px;
  transition: all .15s ease;
  font-weight: 500;
}

.storelinkr-chip:hover {
  background: #f7fbff;
  text-decoration: none;
}

.storelinkr-chip--active {
    border: 1px solid #193568;
    background: #fff;
    box-shadow: 0px 1px 7px 1px rgb(112 112 112 / 10%) !important;
}

.storelinkr-chip-thumb {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 5px;
  background: #fff;
  border: 1px solid #eee;
  flex: 0 0 auto;
}

.storelinkr-chip-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  line-height: 1.15;
  min-width: 0;
  font-weight: 500;
}

/* ✅ titles 600 */
.storelinkr-chip-label {
  font-size: 15px;
  font-weight: 600;
  white-space: normal;
  color: #333333;
}

.storelinkr-chip-price {
  font-size: 13px;
  font-weight: 500;
  color: #333333;
  white-space: nowrap;
}

.storelinkr-chip-tax {
  font-size: 12px;
  color: #777;
  font-weight: 500;
  margin-left: 6px;
}

/* =========================================================
   MOBILE/TABLET: 2 kolommen breed + label ellipsis
   ========================================================= */
@media (max-width: 1024px) {
  .storelinkr-variant-chips {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .storelinkr-chip {
    min-width: 0;
    max-width: none;
    width: 100%;
    padding: 10px;
    gap: 10px;
  }

  .storelinkr-chip-thumb {
    width: 34px;
    height: 34px;
  }

  /* ✅ mobile label class */
  .storelinkr-chip-label--mobile {
    font-size: 12px;
    font-weight: 600; /* ✅ title weight 600 */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    display: block;
  }

  .storelinkr-chip-price {
    font-size: 11px;
    white-space: nowrap;
  }

  .storelinkr-chip-tax {
    font-size: 10px;
  }
}

/* =========================================================
   DROPDOWN TOGGLE (oude kleuren + fix dubbele arrow)
   ========================================================= */

/* kill pseudo arrows */
.storelinkr-view-variants::before,
.storelinkr-view-variants:before,
.storelinkr-view-variants::after,
.storelinkr-view-variants:after {
  content: none !important;
  background: none !important;
  border: 0 !important;
}

.storelinkr-view-variants {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  text-decoration: none;
  font-size: 16px;
  color: #333333;
  font-weight: 600; /* ✅ title weight 600 */
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  background-color: #f9f9f9;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.storelinkr-view-variants:hover {
  background-color: #f1f1f1;
  color: #333333;
  border-color: #cacaca;
  text-decoration: none;
}

/* ✅ Chevron wrapper: optisch perfect gecentreerd */
.storelinkr-view-variants .storelinkr-chevron {
  width: 18px;             /* vaste box */
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

/* ✅ daadwerkelijke chevron */
.storelinkr-view-variants .storelinkr-chevron::before {
  content: "";
  width: 9px;
  height: 9px;
  border-right: 2px solid #333333;
  border-bottom: 2px solid #333333;
  transform: rotate(45deg) translateY(-1px); /* optische correctie */
  transition: transform .2s ease;
}

/* rotate when open */
.storelinkr-variant-box.is-open .storelinkr-view-variants .storelinkr-chevron::before {
  transform: rotate(-135deg) translateY(1px);
}

/* =========================================================
   DROPDOWN LIST
   ========================================================= */
.storelinkr-dropdown {
  margin-top: 12px;
  border: 1px solid #ddd;
  border-radius: 5px;
  background-color: #fff;
  padding: 10px;
  max-height: 340px;
  overflow-y: auto;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  display: none;
  position: relative;
  z-index: 9999;
}

.storelinkr-variant-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 12px;
  border-radius: 5px;
  text-decoration: none;
  color: #333333;
  transition: background-color .15s ease;
  font-weight: 500;
}

.storelinkr-variant-item:hover {
  background-color: #f9f9f9;
  text-decoration: none;
}

.storelinkr-variant-thumb {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 5px;
  background: #fff;
  border: 1px solid #eee;
  flex: 0 0 auto;
}

.storelinkr-title {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-width: 0;
  font-weight: 500;
}

/* ✅ titles 600 */
.storelinkr-title-main {
  font-weight: 600;
  line-height: 1.2;
  white-space: normal;
  color: #333333;
}

.storelinkr-price-wrapper {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.storelinkr-price {
  font-weight: 500;
  white-space: nowrap;
  color: #333333;
}

.storelinkr-tax {
  font-size: 12px;
  font-weight: 500;
  color: #777;
  white-space: nowrap;
}
