.wiz-imgcmp {
  user-select: none;
}
.wiz-imgcmp .wiz-header {
  margin-bottom: 8px;
  width: 100%;
  overflow: hidden;
}
.wiz-imgcmp .wiz-titleline {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  min-height: 25px;
  height: auto;
  flex-wrap: wrap;
}
.wiz-titleline > span{
  /* margin-bottom: 10px; */
  font-size: 16px;
  word-break: break-word;
  line-height: 1.2;
  color: #656565;
}

.wiz-imgcmp .wiz-selected-value {
  font-size: 12px;
  font-weight: 500;
  color: #d54b16;
  background-color: rgb(248, 104, 104);
  padding: 11px 6px;
  word-break: break-word;
  line-height: 1.2;
  min-height: 25px;
  height: auto;
  flex-shrink: 0;
}

/* Required state - red background with border radius */
.wiz-imgcmp .wiz-selected-value.placeholder.required {
  background: #ffe8e0 !important;
  color: #C24B2C !important;
  font-weight: 400;
  font-style: 14px;
  min-height: 25px;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  word-break: break-word;
  line-height: 1.2;
  box-sizing: border-box;
  transition: all 0.3s ease;
  padding: 4px 8px;
}

/* Optional state - plain gray text, no background, no border-radius */
.wiz-imgcmp .wiz-selected-value.placeholder.optional {
  background: transparent;
  color: #9CA3AF;
  font-weight: 400;
  font-style: normal;
  min-height: 25px;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  word-break: break-word;
  line-height: 1.2;
  box-sizing: border-box;
  transition: all 0.3s ease;
  border-radius: 0;
  padding: 0;
}

/* Legacy placeholder support (defaults to required style) */
.wiz-imgcmp .wiz-selected-value.placeholder:not(.required):not(.optional) {
  background: #ffe8e0;
  color: #d54b16;
  font-weight: 400;
  font-style: normal;
  min-height: 25px;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  word-break: break-word;
  line-height: 1.2;
  box-sizing: border-box;
  transition: all 0.3s ease;
}

.wiz-imgcmp .wiz-selected-value:not(.placeholder) {
  color: #000000;
  font-weight: 600;
  background-color: transparent;
  font-size: 15px;
}

.wiz-imgcmp .wiz-search {
  display: flex;
  align-items: center;
  border: 1px solid #ccc;
  padding: 2px 5px;
  margin-top: 10px;
}
.wiz-search img {
  padding-left: 10px;
}
.wiz-imgcmp .wiz-search input {
  border: none;
  outline: none;
  width: 100%;      
  padding: 0 0 0 14px;     
  line-height: 42px;           
}
.wiz-imgcmp .wiz-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-top: 10px;
  padding: 0px 20px;
  gap: 8px;
}
.wiz-imgcmp .wiz-item {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  min-width: calc(var(--wiz-img-size, 64px) + 32px);
  max-width: calc(var(--wiz-img-size, 64px) + 64px);
  width: auto;
  text-align: center;
  padding: 6px 8px;
  position: relative;
  box-sizing: border-box;
}
.wiz-imgcmp .wiz-item:hover {
  padding: 5px;
  background-color: rgba(0, 0, 0, 0.05);
  position: relative;
}
.wiz-imgcmp .wiz-img-box {
  position: relative;
  height: calc(var(--wiz-img-size, 64px) + 8px);
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.wiz-imgcmp .wiz-img {
  width: var(--wiz-img-size, 64px);
  height: var(--wiz-img-size, 64px);
  border: 1px solid #e0e0e0;
  margin-bottom: 5px;
  object-fit: cover;
  cursor: pointer;
}

.wiz-imgcmp .wiz-img-clickable {
  cursor: pointer;
}

.wiz-imgcmp .wiz-img-clickable:hover {
  opacity: 0.9;
  transition: opacity 0.2s ease;
}
.wiz-imgcmp .wiz-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.2);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  height: 70%;
}
.wiz-imgcmp .wiz-icon {
  position: absolute;
  top: 1px;
  right: 1px;
  opacity: 0;
  transition: opacity 0.3s ease;
  background: transparent;
  border: none;
  cursor: pointer;
  color: #fff;
}
.wiz-imgcmp .wiz-img-box:hover .wiz-overlay {
  opacity: 0.3;
}
.wiz-imgcmp .wiz-img-box:hover .wiz-icon {
  opacity: 1;
}
.wiz-imgcmp .wiz-title {
  text-overflow: ellipsis;
  max-width: calc(var(--wiz-img-size, 64px) + 20px);
  white-space: nowrap;
  font-size: 12px;
  font-weight: normal;
  overflow: hidden;
  width: auto;
}
.wiz-imgcmp .wiz-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.wiz-select {
  accent-color: var(--primary);
}

.wiz-imgcmp .wiz-price {
  font-size: 12px;
  color: #000;
  font-weight: bold;
}
.wiz-imgcmp .wiz-price.is-negative {
  color: rgb(215, 76, 16);
}
.wiz-imgcmp .wiz-pagination {
  margin: 12px;
}

.wiz-label{
  font-size: 14px;
  padding: 10px 24px;
  color: #BC9D9D;
  font-weight: 500;
  text-transform: none;
}
.wiz-label:hover{
  background-color: #f6f9fe;
}
.wiz-imgcmp .wiz-moreless {
  height: auto;
  display: inline;
  border: none;
  background: transparent;
  cursor: pointer;
  color: inherit;
  font: inherit;
  padding: 0;
  text-decoration: none;
}

.wiz-empty {
  display: flex;
  justify-content: center;
  background-color: #f7f8fa;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  /* border-radius: 8px; */
  width: 100%;
  text-align: center;
}
.wiz-empty-img {
  width: 200px;
  height: 200px;
}
.wiz-empty-text {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 5px;
}
.wiz-empty p {
  font-size: 12px;
  color: #666;
}

/* Responsive Design */
@media (max-width: 768px) {
  .wiz-imgcmp .wiz-wrapper {
    padding: 0px 10px;
    gap: 6px;
  }
  
  .wiz-imgcmp .wiz-item {
    min-width: calc(var(--wiz-img-size, 64px) + 16px);
    max-width: calc(var(--wiz-img-size, 64px) + 32px);
    padding: 4px 6px;
  }
  
  .wiz-imgcmp .wiz-search input {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .wiz-imgcmp .wiz-titleline > span {
    font-size: 14px;
  }
  
  
  .wiz-imgcmp .wiz-wrapper {
    padding: 0px 5px;
    gap: 4px;
  }
  
  .wiz-imgcmp .wiz-item {
    min-width: calc(var(--wiz-img-size, 56px) + 12px);
    max-width: calc(var(--wiz-img-size, 56px) + 24px);
  }
  
  .wiz-empty-img {
    width: 200px;
    height: 200px;
  }
  
  .wiz-empty-text {
    font-size: 20px;
  }
  
  .wiz-empty p {
    font-size: 14px;
  }
}