.main{display:flex;height:100dvh;overflow:hidden}

.viewer-wrap{
    --viewer-h:550px;
    position:relative;
    height:var(--viewer-h);          /* fixed height, so the loading and error states keep the same size */
    background:#0d0d0d;
    margin:0 0 20px;
    overflow:hidden;
}

[id="3d-viewer"]{width:100%;height:100%}
[id="3d-viewer"] div{height:var(--viewer-h)!important}

.viewer-overlay{
    position:absolute;
    inset:0;                         /* covers the full wrap, text centred both ways */
    z-index:10; 
	display:flex;
    align-items:center;
    justify-content:center;
    padding:30px;
    background:#0d0d0d;
    color:#888;
    font-size:12px;
    letter-spacing:2px;
    text-transform:uppercase;
    text-align:center;
    line-height:1.6;
    pointer-events:none;
    transition:opacity .5s;
}
.viewer-overlay.hidden{opacity:0}

/* error state: only colours and text style change, the size stays the same */
.viewer-overlay.error{
    background:#f7f6f4;
    color:#b3261e;
    font-size:15px;
    letter-spacing:.3px;
    text-transform:none;
}

@media (max-width:767px){
    .viewer-wrap{--viewer-h:380px}
}

.component-title,.material-title,.section-label{font-size:14px;text-transform:capitalize;color:#151515;margin:30px 0 12px;font-weight:600;letter-spacing:.03em}
.setting-grid,.swatch-row,.variation-row{display:grid;grid-template-columns:repeat(auto-fill,minmax(110px,1fr));gap:8px}
.setting-btn,.swatch-btn,.var-btn{appearance:none;background:#fff;border:solid 1px #ececec;border-radius:0;padding:9px 10px;font-size:14px;color:#151515;transition:all .2s ease;text-align:center;font-weight:400}
.setting-btn:hover,.swatch-btn:hover,.var-btn:hover{border:1px solid #151515;background:#151515;color:#fff}
.setting-btn.active,.swatch-btn.active,.var-btn.active{border:1px solid #151515;background:#151515;color:#fff}
.swatch-dot{display:inline-block;width:24px;height:24px;border-radius:50%;border:1px solid #ccc;box-shadow:inset 0 1px 3px rgba(0,0,0,.1)}
.swatch-btn.active .swatch-dot{border:2px solid #fff!important}
button:disabled{opacity:.5;cursor:not-allowed}

@media only screen and (min-width: 1201px) {
.ijewel-viewer-class{position:sticky;top:50px;margin:0 0 10px}
}

.custom-metal {
  display: flex;
  align-items: center;
  gap: 8px;
  border: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.custom-gem  {
background: inherit;
  border: none;
  flex-wrap: wrap;
}

.custom-gem img {width: 35px; }

.custom-gem  span {
  display: block;
  width: 100%;
  margin: 0 0 10px;
}

.custom-metal .metal-icon {
  width: 35px;
  height: 35px;
  flex-shrink: 0;
  border-radius: 100%;
  display: block;
  padding: 5px;
  margin: 0 auto 7px;
}
.swatch-btn.custom-metal.active, .swatch-btn.custom-metal:hover {background: #f7f6f4;
  font-size: 12px;border: none;
  color: var(--primary-black);}

  .swatch-btn.custom-gem.active, .swatch-btn.custom-gem:hover {background: #f7f6f4;
  font-size: 12px;border: none;
  color: var(--primary-black);}

  
/* Single colors */

.custom-metal.white-gold .metal-icon{
    background:linear-gradient(30deg,#b3b2af 0,#f7f7f7 55%,#f7f7f7 60%,#b3b2af 100%);
}

.custom-metal.yellow-gold .metal-icon{
    background:linear-gradient(30deg,#e1b94f 0,#fcf1d5 55%,#fcf1d5 60%,#e1b94f 100%);
}

.custom-metal.rose-gold .metal-icon{
    background:linear-gradient(30deg,#ec8a55 0,#fcede2 55%,#fcede2 60%,#ec8a55 100%);
}

/* Two-tone */

.custom-metal.white-yellow .metal-icon{
    background:linear-gradient(90deg,#b3b2af 50%,#d9b126 50%);
}

.custom-metal.white-rose .metal-icon{
    background:linear-gradient(90deg,#b3b2af 50%,#d59a8a 50%);
}

/* Two-tone (head | shank) */

.custom-metal.yellow-white .metal-icon{
    background:linear-gradient(90deg,#d9b126 50%,#b3b2af 50%);
}

.custom-metal.rose-white .metal-icon{
    background:linear-gradient(90deg,#d59a8a 50%,#b3b2af 50%);
}

.custom-metal .metal-label {
  font-size: 12px;
  margin: 0 0 15px;width:100%;
}
.custom-gem {
  font-size: 12px;
}

.custom-metal.custom-gem .metal-label {
  font-size: 12px;
  margin: 0 0 15px;width:100%;
}