.js-store-prod-text a {
  display: inline-block;
  padding: 10px 15px;
  margin-right: 15px;
  margin-top: 20px;
  border-radius: 0;
  font-weight: 600;
}

.js-store-prod-text a:first-of-type {
  background-color: #333333;
  color: #ffffff !important;
}

.js-store-prod-text a:last-of-type {
  background-color: #333333;
  color: #ffffff !important;
}

.t706__cartwin_showed {
  z-index: 999999999;
}

/* =========================
   MOONRISE 3D MODEL VIEWER
   CSS
   ========================= */

/* скрываем технические ссылки на модели в описании товара */
.js-store-prod-all-text .moonrise-hidden-model-url,
.js-store-prod-all-text .moonrise-hidden-model-url a,
.t-store__card__descr .moonrise-hidden-model-url,
.t-store__card__descr .moonrise-hidden-model-url a {
  display: none !important;
}

/* курсивные ссылки не должны выделяться как обычные ссылки */
.js-store-prod-all-text em a,
.js-store-prod-all-text i a,
.t-store__card__descr em a,
.t-store__card__descr i a {
  color: inherit !important;
  text-decoration: none !important;
  font-style: italic !important;
}

/* ===== базовые цвета ===== */
:root{
  --mr-black-1:#06080c;
  --mr-black-2:#0b0d12;
  --mr-black-3:#141922;
  --mr-gold:#c3a06b;
  --mr-gold-soft:rgba(195,160,107,0.18);
  --mr-gold-line:rgba(195,160,107,0.28);
  --mr-text:#f3eee8;
  --mr-text-soft:#b7a48c;
}

/* ===== WRAP ===== */
.moonrise-model-wrap{
  position:relative;
  width:100%;
  max-width:100%;
  box-sizing:border-box;
  margin:24px 0 28px;
  padding:14px;
  border-radius:28px;
  background:
    radial-gradient(circle at 20% 0%, rgba(195,160,107,0.10) 0%, rgba(195,160,107,0) 34%),
    radial-gradient(circle at 80% 100%, rgba(195,160,107,0.06) 0%, rgba(195,160,107,0) 30%),
    linear-gradient(180deg, rgba(20,25,34,0.98) 0%, rgba(11,13,18,0.99) 100%);
  border:1px solid var(--mr-gold-soft);
  box-shadow:
    0 28px 80px rgba(0,0,0,0.45),
    inset 0 1px 0 rgba(255,255,255,0.03),
    inset 0 0 0 1px rgba(195,160,107,0.05);
  overflow:hidden;
}

.moonrise-model-wrap::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.025) 0%, rgba(255,255,255,0) 22%),
    radial-gradient(circle at center, rgba(255,255,255,0.02) 0%, rgba(255,255,255,0) 45%);
  z-index:0;
}

/* ===== TOP BAR ===== */
.moonrise-model-topbar{
  position:absolute;
  top:18px;
  left:18px;
  right:18px;
  z-index:4;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  pointer-events:none;
}

.moonrise-model-badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:10px 14px;
  border-radius:999px;
  background:rgba(11,13,18,0.72);
  border:1px solid var(--mr-gold-line);
  color:var(--mr-gold);
  font-size:11px;
  line-height:1;
  letter-spacing:.18em;
  text-transform:uppercase;
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
}

.moonrise-model-badge-dot{
  width:7px;
  height:7px;
  border-radius:50%;
  background:var(--mr-gold);
  box-shadow:0 0 10px rgba(195,160,107,0.7);
}

.moonrise-model-hint{
  max-width:340px;
  padding:10px 14px;
  border-radius:18px;
  background:rgba(11,13,18,0.56);
  border:1px solid rgba(195,160,107,0.16);
  color:var(--mr-text-soft);
  font-size:12px;
  line-height:1.45;
  text-align:right;
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
}

/* ===== VIEWER ===== */
.moonrise-model-viewer{
  position:relative;
  z-index:1;
  display:block;
  width:100%;
  height:640px;
  border-radius:22px;
  background:
    radial-gradient(circle at 50% 35%, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0) 35%),
    radial-gradient(circle at 50% 75%, rgba(195,160,107,0.08) 0%, rgba(195,160,107,0) 28%),
    linear-gradient(180deg, #161b24 0%, #0b0d12 100%);
  overflow:hidden;
}

/* ===== LOADER ===== */
.moonrise-model-loader{
  position:absolute;
  inset:14px;
  z-index:5;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:22px;
  background:
    radial-gradient(circle at center, rgba(195,160,107,0.05) 0%, rgba(11,13,18,0.82) 55%),
    linear-gradient(180deg, rgba(20,25,34,0.86) 0%, rgba(11,13,18,0.92) 100%);
  transition:opacity .4s ease, visibility .4s ease;
}

.moonrise-model-loader.is-hidden{
  opacity:0;
  visibility:hidden;
}

.moonrise-loader-inner{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:14px;
}

.moonrise-loader-ring{
  width:56px;
  height:56px;
  border-radius:50%;
  border:1px solid rgba(195,160,107,0.16);
  border-top-color:rgba(195,160,107,0.85);
  animation:moonriseSpin 1s linear infinite;
}

.moonrise-loader-text{
  color:var(--mr-gold);
  font-size:12px;
  letter-spacing:.2em;
  text-transform:uppercase;
}

@keyframes moonriseSpin{
  to{ transform:rotate(360deg); }
}

/* ===== BOTTOM ===== */
.moonrise-model-bottom{
  position:absolute;
  left:18px;
  right:18px;
  bottom:18px;
  z-index:4;
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:18px;
  padding:16px 18px;
  border-radius:22px;
  background:rgba(11,13,18,0.68);
  border:1px solid rgba(195,160,107,0.16);
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
}

.moonrise-model-copy{
  max-width:640px;
}

.moonrise-model-title{
  color:var(--mr-text);
  font-size:16px;
  line-height:1.3;
  font-weight:600;
  margin:0 0 6px;
  letter-spacing:.03em;
  text-transform:uppercase;
}

.moonrise-model-subtitle{
  color:var(--mr-text-soft);
  font-size:13px;
  line-height:1.55;
  margin:0;
}

.moonrise-model-actions{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
}

.moonrise-model-btn{
  appearance:none;
  border:1px solid rgba(195,160,107,0.30);
  background:linear-gradient(180deg, rgba(195,160,107,0.18) 0%, rgba(195,160,107,0.08) 100%);
  color:var(--mr-text);
  border-radius:999px;
  padding:12px 16px;
  font-size:11px;
  line-height:1;
  letter-spacing:.14em;
  text-transform:uppercase;
  cursor:pointer;
  text-decoration:none;
  white-space:nowrap;
  transition:transform .25s ease, box-shadow .25s ease, border-color .25s ease, filter .25s ease;
}

.moonrise-model-btn:hover{
  transform:translateY(-2px);
  border-color:rgba(195,160,107,0.55);
  box-shadow:0 12px 30px rgba(195,160,107,0.14);
  filter:brightness(1.04);
}

.moonrise-model-btn--ghost{
  background:rgba(11,13,18,0.38);
}

.moonrise-model-btn--gold{
  background:linear-gradient(180deg, rgba(195,160,107,0.28) 0%, rgba(195,160,107,0.14) 100%);
}

.moonrise-model-wrap.is-fullscreen{
  position:fixed;
  inset:18px;
  margin:0;
  z-index:99999;
  border-radius:28px;
}

.moonrise-model-wrap.is-fullscreen .moonrise-model-viewer{
  height:calc(100vh - 36px - 28px);
}

@media (max-width:980px){
  .moonrise-model-viewer{ height:500px; }
  .moonrise-model-bottom{
    flex-direction:column;
    align-items:flex-start;
  }
  .moonrise-model-actions{ justify-content:flex-start; }
  .moonrise-model-hint{ display:none; }
}

@media (max-width:640px){
  .moonrise-model-wrap{
    padding:10px;
    border-radius:20px;
  }
  .moonrise-model-viewer{
    height:380px;
    border-radius:16px;
  }
  .moonrise-model-loader{
    inset:10px;
    border-radius:16px;
  }
  .moonrise-model-topbar{
    top:12px;
    left:12px;
    right:12px;
  }
  .moonrise-model-badge{
    font-size:10px;
    padding:8px 10px;
  }
  .moonrise-model-bottom{
    left:12px;
    right:12px;
    bottom:12px;
    padding:12px;
    border-radius:16px;
    gap:12px;
  }
  .moonrise-model-title{ font-size:13px; }
  .moonrise-model-subtitle{ font-size:12px; }
  .moonrise-model-btn{
    width:100%;
    text-align:center;
  }
  .moonrise-model-actions{
    width:100%;
    flex-direction:column;
    align-items:stretch;
  }
}