.product-config-appearance .option-group {
  min-width: 0;
  margin: 0 0 16px;
  padding: 0;
  border: 0;
}

.product-config-appearance .option-group legend {
  width: auto;
  margin: 0 0 8px;
  padding: 0;
  border: 0;
  color: inherit;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
}

.product-config-appearance .material-choice input {
    position:absolute;
    opacity:0;
    pointer-events:none;
}

.product-config-appearance .material-choice input:focus-visible+span {
    outline:3px solid #f2850050;
    outline-offset:3px;
}

.product-config-appearance .material-choice {
    position:relative;
    flex:1;
    min-width:87px;
    max-width:160px;
}

.product-config-appearance .material-choice>span {
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:9px;
    padding:13px;
    border:1px solid var(--line);
    border-radius:9px;
    background:#fff;
    font-size:13px;
    font-weight:600;
}

.product-config-appearance .material-choice input:checked+span {
    border-color:var(--orange);
    box-shadow:inset 0 0 0 1px var(--orange);
    background:#fff8ed;
}

.product-config-appearance .texture {
    display:block;
    width:36px;
    height:36px;
    background-color:#44443f;
    border-radius:6px;
    background-size:13px 13px;
}

.product-config-appearance .texture-romb {
    background-image:repeating-linear-gradient(45deg,transparent 0 7px,#ffffff30 8px 9px),repeating-linear-gradient(-45deg,transparent 0 7px,#ffffff30 8px 9px);
}

.product-config-appearance .texture-miniromb {
    background-image:repeating-linear-gradient(45deg,transparent 0 3px,#ffffff30 4px 5px),repeating-linear-gradient(-45deg,transparent 0 3px,#ffffff30 4px 5px);
}

.product-config-appearance .texture-sota {
    background-image:linear-gradient(30deg,#ffffff30 12%,transparent 12.5%,transparent 87%,#ffffff30 87.5%),linear-gradient(150deg,#ffffff30 12%,transparent 12.5%,transparent 87%,#ffffff30 87.5%),linear-gradient(30deg,#ffffff30 12%,transparent 12.5%,transparent 87%,#ffffff30 87.5%),linear-gradient(150deg,#ffffff30 12%,transparent 12.5%,transparent 87%,#ffffff30 87.5%),linear-gradient(60deg,#ffffff30 25%,transparent 25.5%,transparent 75%,#ffffff30 75%);
    background-size:18px 30px;
    background-position:0 0,0 0,9px 15px,9px 15px,0 0;
}

.product-config-appearance .selection-name {
    display:inline;
    margin-left:8px;
    color:#928778;
    font-weight:400;
    font-size:12px;
}

.product-config-appearance .swatch-options {
    display:flex;
    flex-wrap:wrap;
    gap:8px;
}

.product-config-appearance .color-choice {
    display:flex;
    align-items:center;
    justify-content:center;
    position:relative;
    width:34px;
    height:34px;
    border:1px solid #d1cbbc;
    background:#fff;
    border-radius:50%;
    padding:4px;
    cursor:pointer;
}

.product-config-appearance .color-choice input {
    position:absolute;
    opacity:0;
    pointer-events:none;
}

.product-config-appearance .color-choice span {
    display:block;
    width:24px;
    height:24px;
    background:var(--swatch);
    border-radius:50%;
    border:1px solid #0001;
}

.product-config-appearance .color-choice:has(input:checked) {
    border:2px solid var(--orange);
    padding:3px;
}

.product-config-appearance .color-choice:has(input:checked) span::after {
    content:'✓';
    display:block;
    text-align:center;
    line-height:23px;
    font-size:14px;
    color:white;
    text-shadow:0 1px 3px #000b;
}

.product-config-appearance .color-choice:has(input:focus-visible) {
    outline:3px solid #f2850050;
    outline-offset:3px;
}

.product-config-appearance .color-preview {
    display:flex;
    align-items:center;
    gap:15px;
    background:#ece9e2;
    border-radius:12px;
    padding:16px;
    margin-bottom:25px;
}

.product-config-appearance .color-preview strong {
    font-size:13px;
}

.product-config-appearance .color-preview p {
    margin:4px 0 0;
    font-size:12px;
}

.product-config-appearance .material-preview {
    width:57px;
    height:69px;
    flex-shrink:0;
    background-color:#252525;
    border:5px solid #252525;
    border-radius:8px 8px 5px 5px;
    clip-path:polygon(15% 0,85% 0,84% 21%,100% 38%,95% 100%,5% 100%,0 38%,16% 21%);
}

.product-config-appearance {
  margin-bottom: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.product-config-appearance .material-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 104px), 1fr));
  gap: 10px;
}

.product-config-appearance .material-choice {
  min-width: 0;
  max-width: none;
  cursor: pointer;
}

.product-config-appearance .material-choice > span {
  height: 100%;
  justify-content: flex-start;
  gap: 8px;
  padding: 7px 7px 9px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  overflow-wrap: anywhere;
}

.product-config-appearance .material-choice:hover > span {
  border-color: var(--orange);
}

.product-config-appearance .material-choice .texture {
  width: 100%;
  height: clamp(54px, 7vw, 78px);
  flex: none;
  border-radius: 6px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: max(100%, 480px) auto;
}

.product-config-appearance .material-choice .texture-romb {
  background-image: url('../images/colors/02-romb.jpg');
}

.product-config-appearance .material-choice .texture-sota {
  background-image: url('../images/colors/01-sota.jpg');
}

.product-config-appearance .material-choice .texture-miniromb {
  background-image: url('../images/colors/03-miniromb.jpg');
}

.product-config-appearance .material-choice-check {
  display: none;
  position: absolute;
  top: 12px;
  right: 12px;
  width: 23px;
  height: 23px;
  place-items: center;
  border: 1px solid #fff;
  border-radius: 50%;
  background: #804700;
  color: #fff;
  font-size: 14px;
  line-height: 1;
}

.product-config-appearance .material-choice input:checked + span .material-choice-check {
  display: grid;
}

.product-config-appearance .selection-name {
  margin-left: 5px;
  color: #655e52;
}

.product-config-appearance .swatch-options {
  gap: 7px;
}

.product-config-appearance .color-choice {
  width: 37px;
  height: 37px;
}

.product-config-appearance .color-preview {
  gap: 12px;
  margin: 0;
  padding: 10px 12px;
  background: var(--canvas);
}

.product-config-appearance .color-preview .material-preview {
  width: 43px;
  height: 53px;
  border-width: 4px;
}
