/* 3Dupia Modern Model Page - clean override layer */

.model-page{
  max-width:1280px !important;
  margin:18px auto !important;
  padding:0 16px !important;
  display:grid !important;
  grid-template-columns:minmax(0,1fr) 360px !important;
  gap:18px !important;
  direction:ltr !important;
  align-items:start !important;
}

.model-left,
.model-right{
  direction:rtl !important;
}

.model-left{
  min-width:0 !important;
  width:auto !important;
}

.gallery-wrap{
  background:#101114 !important;
  border:1px solid #24262c !important;
  border-radius:14px !important;
  overflow:hidden !important;
  box-shadow:none !important;
}

.gallery-tabs{
  height:44px !important;
  min-height:44px !important;
  padding:0 10px !important;
  background:#111216 !important;
  border-bottom:1px solid #24262c !important;
  display:flex !important;
  align-items:center !important;
}

.gtab{
  height:34px !important;
  padding:0 12px !important;
  border-radius:8px !important;
  font-size:12px !important;
  font-weight:600 !important;
  color:#9ca3af !important;
}

.gtab.active{
  background:#ff5a1f !important;
  color:#fff !important;
  border:none !important;
}

.main-viewer{
  height:430px !important;
  min-height:430px !important;
  aspect-ratio:auto !important;
  background:#17191f !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
}

.main-img{
  width:100% !important;
  height:100% !important;
  object-fit:contain !important;
}

.thumbs-strip{
  padding:10px !important;
  gap:8px !important;
  background:#111216 !important;
  border-top:1px solid #24262c !important;
}

.thumb{
  width:68px !important;
  height:68px !important;
  border-radius:8px !important;
  background:#1b1d23 !important;
  border:1px solid #30333b !important;
}

.thumb.active{
  border:2px solid #ff5a1f !important;
}

.model-right{
  width:360px !important;
  min-width:360px !important;
  display:flex !important;
  flex-direction:column !important;
  position:sticky !important;
  top:76px !important;
  gap:12px !important;
}

.cc-card{
  border-radius:12px !important;
  background:#111216 !important;
  border:1px solid #24262c !important;
  box-shadow:none !important;
}

.cc-title{
  font-size:20px !important;
  line-height:1.35 !important;
}

.cc-model-head{
  padding:16px !important;
}

.cc-print-card{
  margin:10px 12px 12px !important;
}

.cc-est-grid{
  padding:0 12px 12px !important;
  display:grid !important;
  grid-template-columns:repeat(4,minmax(0,1fr)) !important;
  gap:10px !important;
}

.cc-est{
  min-height:72px !important;
  padding:12px 10px !important;
  border-radius:14px !important;
}


.cc-est span{
  display:block;
  font-size:9px;
  line-height:1.25;
  font-weight:500;
  color:#cfd3dc;
  margin-bottom:10px;
}



.cc-est b{
  display:block;
  font-size:11px;
  line-height:1.25;
  font-weight:500;
  color:#cfd3dc;
  white-space:nowrap;
}


@media(max-width:980px){

  .cc-est-grid{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  }

}

@media(max-width:980px){
  .model-page{
    grid-template-columns:1fr !important;
  }
  .model-right{
    position:relative !important;
    top:auto !important;
  }
  .main-viewer{
    height:360px !important;
    min-height:360px !important;
  }
}

/* ===== ACTION BAR + DOWNLOAD ROW ===== */

.cc-stats,
.cc-actions{
  display:none !important;
}

.cc-action-strip{
  margin-top:18px !important;
  margin-bottom:12px !important;
  display:grid !important;
  grid-template-columns:repeat(4,1fr) !important;
  border:1px solid #30333b !important;
  border-radius:14px !important;
  overflow:hidden !important;
  background:#0f1116 !important;
}

.cc-mini-action{
  height:52px !important;
  min-width:0 !important;
  border:0 !important;
  border-left:1px solid #30333b !important;
  background:transparent !important;
  color:#d1d5db !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:8px !important;
  font-size:14px !important;
  font-weight:700 !important;
  text-decoration:none !important;
  cursor:pointer !important;
}

.cc-mini-action:last-child{
  border-left:0 !important;
}

.cc-mini-action span{
  white-space:nowrap;
}

.cc-mini-action svg,
.cc-download-main svg,
.cc-files-main svg{
  width:21px !important;
  height:21px !important;
  fill:none !important;
  stroke:currentColor !important;
  stroke-width:1.9 !important;
  stroke-linecap:round !important;
  stroke-linejoin:round !important;
}

.cc-mini-action.active,
.cc-mini-action:hover{
  color:#ff5a1f !important;
  background:rgba(255,90,31,.06) !important;
}

.cc-download-row{
  margin-top:0 !important;
  display:grid !important;
  grid-template-columns:1fr 1fr !important;
  gap:10px !important;
}

.cc-download-main,
.cc-files-main{
  height:50px !important;
  border-radius:14px !important;
  border:1px solid #30333b !important;
  background:#0f1116 !important;
  color:#e5e7eb !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:8px !important;
  text-decoration:none !important;
  font-weight:850 !important;
  font-size:14px !important;
}

.cc-download-main{
  background:#ff5a1f !important;
  border-color:#ff5a1f !important;
  color:#fff !important;
}

.cc-files-main:hover{
  border-color:#ff5a1f !important;
  color:#ff5a1f !important;
}

.cc-primary-download,
.cc-outline-file{
  display:none !important;
}

@media(max-width:520px){
  .cc-action-strip{
    grid-template-columns:repeat(2,1fr) !important;
  }

  .cc-download-row{
    grid-template-columns:1fr !important;
  }
}



/* Unified line icons */
.ui-line-icon{
  width:20px;
  height:20px;
  display:inline-block;
  vertical-align:middle;
  
  stroke:currentColor !important;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
  flex:0 0 auto;
}



.ui-line-icon.mini{
  width:15px;
  height:15px;
}

.gtab,
.vc-btn,
.cc-print-meta span{
  display:inline-flex;
  align-items:center;
  gap:7px;
}

.section-head{
  display:flex;
  align-items:center;
  gap:8px;
}

.cc-print-meta{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}

.lightbox-close{
  display:flex;
  align-items:center;
  justify-content:center;
}



#gtab-3d{
  height:520px !important;
  min-height:520px !important;
  background:#111216 !important;
  border-radius:0 0 14px 14px !important;
  overflow:hidden !important;
}

#viewer3d{
  width:100% !important;
  height:520px !important;
  display:block !important;
}

.viewer3d-controls{
  position:absolute !important;
  left:16px !important;
  bottom:16px !important;
  display:flex !important;
  gap:8px !important;
  z-index:5 !important;
}

/* ===== MODEL PAGE LIGHT THEME ===== */

[data-theme="light"] .gallery-wrap,
[data-theme="light"] .cc-card,
[data-theme="light"] .section-card{
  background:#ffffff !important;
  border-color:#d8d8e0 !important;
  color:#111114 !important;
}

[data-theme="light"] .gallery-tabs,
[data-theme="light"] .desc-box,
[data-theme="light"] .cc-file-row,
[data-theme="light"] .cc-est,
[data-theme="light"] .cc-print-card{
  background:#f7f7f9 !important;
  border-color:#d8d8e0 !important;
  color:#111114 !important;
}

[data-theme="light"] .main-viewer,
[data-theme="light"] #gtab-3d{
  background:#f1f1f4 !important;
}

[data-theme="light"] .cc-title,
[data-theme="light"] .cc-card-head strong,
[data-theme="light"] .section-head,
[data-theme="light"] .cc-file-name,
[data-theme="light"] .cc-est b,
[data-theme="light"] .cc-print-title{
  color:#111114 !important;
}

[data-theme="light"] .cc-author,
[data-theme="light"] .cc-card-head span,
[data-theme="light"] .cc-file-sub,
[data-theme="light"] .cc-est span,
[data-theme="light"] .cc-print-meta,
[data-theme="light"] .desc-box{
  color:#55556a !important;
}

[data-theme="light"] .cc-mini-action,
[data-theme="light"] .cc-files-main,
[data-theme="light"] .cc-pill,
[data-theme="light"] .gtab,
[data-theme="light"] .vc-btn{
  background:#ffffff !important;
  border-color:#c8c8d0 !important;
  color:#333344 !important;
}

[data-theme="light"] .cc-download-main,
[data-theme="light"] .gtab.active,
[data-theme="light"] .cc-pill.active{
  background:#ff5a1f !important;
  color:#ffffff !important;
  border-color:#ff5a1f !important;
}

[data-theme="light"] .thumb{
  background:#ffffff !important;
  border-color:#d8d8e0 !important;
}


/* ===== SITE TOAST ===== */
.viewer-toast{
  position:fixed;
  left:50%;
  bottom:26px;
  transform:translateX(-50%) translateY(20px);
  z-index:9999;
  min-width:220px;
  max-width:calc(100vw - 32px);
  padding:12px 16px;
  border-radius:14px;
  background:#111216;
  border:1px solid #30333b;
  color:#e5e7eb;
  font-size:13px;
  font-weight:700;
  text-align:center;
  opacity:0;
  pointer-events:none;
  transition:.25s ease;
  box-shadow:0 12px 34px rgba(0,0,0,.35);
}

.viewer-toast.show{
  opacity:1;
  transform:translateX(-50%) translateY(0);
}

.viewer-toast.success{
  border-color:rgba(34,197,94,.55);
  color:#86efac;
}

.viewer-toast.error{
  border-color:rgba(239,68,68,.6);
  color:#fca5a5;
}

.viewer-toast.warning{
  border-color:rgba(245,158,11,.6);
  color:#fcd34d;
}

.viewer-toast.info{
  border-color:#30333b;
  color:#e5e7eb;
}

/* Like button active state */
#likeBtn.active{
  color:#ef4444 !important;
}

#likeBtn.active svg{
  stroke:#ef4444 !important;
  fill:rgba(239,68,68,.18) !important;
}

#likeBtn.active:hover{
  background:rgba(239,68,68,.08) !important;
}


/* ===== FILE LIST POLISH ===== */
.cc-files{
  overflow:hidden;
}

.cc-file-row{
  margin:0 12px 10px;
  padding:10px;
  display:grid;
  grid-template-columns:48px minmax(0,1fr) 82px;
  gap:10px;
  align-items:center;
  background:#0f1116;
  border:1px solid #24262c;
  border-radius:13px;
}

.cc-file-ext{
  height:40px;
  border-radius:10px;
  background:rgba(255,90,31,.12);
  color:#ff8a55;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:12px;
  font-weight:900;
  letter-spacing:.4px;
}

.cc-file-main{
  min-width:0;
}

.cc-file-name{
  color:#f3f4f6;
  font-size:13px;
  font-weight:750;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.cc-file-sub{
  margin-top:3px;
  color:#8b93a1;
  font-size:11px;
}

.cc-download{
  height:38px;
  border-radius:10px;
  background:#ff5a1f;
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  font-size:12px;
  font-weight:850;
}

.cc-download:hover{
  filter:brightness(1.05);
}

@media(max-width:520px){
  .cc-file-row{
    grid-template-columns:44px minmax(0,1fr);
  }

  .cc-download{
    grid-column:1 / -1;
  }
}


/* ===== MOBILE MODEL ACTION FIX ===== */
@media(max-width:520px){

  .model-page{
    margin-top:10px !important;
    padding:0 10px !important;
    gap:14px !important;
  }

  .cc-model-head{
    padding:18px 16px !important;
  }

  .cc-title{
    font-size:19px !important;
    text-align:right !important;
  }

  .cc-action-strip{
    display:grid !important;
    grid-template-columns:1fr 1fr !important;
    border-radius:18px !important;
    overflow:hidden !important;
  }

  .cc-mini-action{
    height:86px !important;
    flex-direction:column !important;
    gap:8px !important;
    border-left:1px solid #30333b !important;
    border-bottom:1px solid #30333b !important;
    font-size:14px !important;
  }

  .cc-mini-action:nth-child(2n){
    border-left:0 !important;
  }

  .cc-mini-action:nth-child(n+3){
    border-bottom:0 !important;
  }

  .cc-mini-action svg{
    width:26px !important;
    height:26px !important;
  }

  .cc-download-row{
    gap:12px !important;
  }

  .cc-download-main,
  .cc-files-main{
    height:64px !important;
    border-radius:18px !important;
    font-size:16px !important;
  }

  .cc-download-main svg,
  .cc-files-main svg{
    width:24px !important;
    height:24px !important;
  }

  .section-card{
    margin-top:10px !important;
  }

}

/* MOBILE CENTER MODEL CARD FIX */
@media (max-width: 768px){
  .cc-model-layout,
  .cc-model-page,
  .cc-model-wrap,
  .cc-main,
  .cc-content{
    width:100% !important;
    max-width:100% !important;
    margin-left:auto !important;
    margin-right:auto !important;
    box-sizing:border-box !important;
  }

  .cc-info-card,
  .cc-model-card,
  .cc-side-card{
    width:calc(100vw - 24px) !important;
    max-width:420px !important;
    margin-left:auto !important;
    margin-right:auto !important;
    box-sizing:border-box !important;
  }

  .cc-action-strip{
    width:100% !important;
    max-width:100% !important;
  }
}

/* REAL MOBILE MODEL PAGE CENTER FIX */
@media (max-width: 768px){
  .model-page{
    width:100% !important;
    max-width:100% !important;
    margin:0 auto !important;
    padding:12px !important;
    box-sizing:border-box !important;
    display:block !important;
  }

  .model-left,
  .model-right,
  .model-sidebar{
    width:100% !important;
    max-width:100% !important;
    margin:0 auto 18px auto !important;
    box-sizing:border-box !important;
  }

  .cc-card{
    width:100% !important;
    max-width:420px !important;
    margin-left:auto !important;
    margin-right:auto !important;
    box-sizing:border-box !important;
  }
}

/* FORCE MOBILE FULL WIDTH FIX */
@media (max-width: 768px){
  html, body{
    width:100% !important;
    max-width:100% !important;
    overflow-x:hidden !important;
  }

  .model-page{
    width:100vw !important;
    max-width:100vw !important;
    margin:0 !important;
    padding:8px !important;
    display:block !important;
    box-sizing:border-box !important;
    transform:none !important;
    left:auto !important;
    right:auto !important;
  }

  .model-left,
  .model-right,
  .model-sidebar{
    width:100% !important;
    max-width:100% !important;
    margin:0 0 16px 0 !important;
    padding:0 !important;
    box-sizing:border-box !important;
  }

  .cc-card{
    width:100% !important;
    max-width:none !important;
    margin:0 0 16px 0 !important;
  }

  .cc-action-strip{
    width:100% !important;
  }
}

/* FIX SIDEBAR WIDTH ON MOBILE */
@media (max-width:980px){

  .model-right,
  .model-sidebar{
    width:100% !important;
    min-width:0 !important;
    max-width:100% !important;
    position:relative !important;
    top:auto !important;
  }

  .cc-card{
    max-width:none !important;
  }

}

/* LIGHT THEME GALLERY FIX */
[data-theme="light"] .thumbs-strip{
  background:#f3f4f6 !important;
  border-top:1px solid #d1d5db !important;
}

[data-theme="light"] .gallery-wrap{
  background:#ffffff !important;
  border-color:#d1d5db !important;
}

[data-theme="light"] .gallery-tabs{
  background:#f9fafb !important;
  border-bottom:1px solid #d1d5db !important;
}

[data-theme="light"] .thumb{
  background:#ffffff !important;
  border-color:#d1d5db !important;
}


/* LIGHT THEME GALLERY ICONS + ARROWS FIX */
[data-theme="light"] .gallery-nav{
  background:#ffffff !important;
  border:1px solid #d1d5db !important;
  color:#374151 !important;
}

[data-theme="light"] .gallery-nav svg{
  stroke:#374151 !important;
}

[data-theme="light"] .ui-line-icon{
  stroke:#374151 !important;
}

[data-theme="light"] .gtab{
  color:#374151 !important;
}

[data-theme="light"] .gtab.active{
  color:#ffffff !important;
}

[data-theme="light"] .gtab.active .ui-line-icon{
  stroke:#ffffff !important;
}


/* LIGHT THEME FORCE SVG PATH COLORS */
[data-theme="light"] .gallery-nav,
[data-theme="light"] .gallery-nav *{
  color:#374151 !important;
  stroke:#374151 !important;
  fill:none !important;
}

[data-theme="light"] .gtab,
[data-theme="light"] .gtab *{
  color:#374151 !important;
  stroke:#374151 !important;
  fill:none !important;
}

[data-theme="light"] .gtab.active,
[data-theme="light"] .gtab.active *{
  color:#ffffff !important;
  stroke:#ffffff !important;
  fill:none !important;
}


/* LIGHT THEME GALLERY ARROWS FINAL */
[data-theme="light"] .gallery-nav,
[data-theme="light"] .gallery-nav *{
  color:#374151 !important;
  stroke:#374151 !important;
  fill:none !important;
}


/* LIGHT THEME GALLERY TAB SVG FIX */
[data-theme="light"] .gtab .ui-line-icon,
[data-theme="light"] .gtab .ui-line-icon *,
[data-theme="light"] .gtab svg,
[data-theme="light"] .gtab svg *{
  stroke:#333344 !important;
  fill:none !important;
}

[data-theme="light"] .gtab.active .ui-line-icon,
[data-theme="light"] .gtab.active .ui-line-icon *,
[data-theme="light"] .gtab.active svg,
[data-theme="light"] .gtab.active svg *{
  stroke:#ffffff !important;
  fill:none !important;
}


/* FINAL LIGHT THEME GALLERY TAB COLOR FIX */
html[data-theme="light"] .gallery-tabs .gtab{
  color:#333344 !important;
}

html[data-theme="light"] .gallery-tabs .gtab svg,
html[data-theme="light"] .gallery-tabs .gtab svg *{
  color:inherit !important;
  stroke:currentColor !important;
  fill:none !important;
}

html[data-theme="light"] .gallery-tabs .gtab.active{
  color:#ffffff !important;
}


/* FIX GALLERY ARROW DIRECTION */
.gallery-nav.prev{
  transform:none !important;
}

.gallery-nav.next{
  transform:scaleX(-1) !important;
}


/* Comments */
.cc-comments{
  margin-top:16px;
}

.cc-comment-form{
  display:flex;
  flex-direction:column;
  gap:10px;
  margin-bottom:16px;
}

.cc-comment-form textarea{
  width:100%;
  resize:vertical;
  border:1px solid var(--cc-border,#30333b);
  border-radius:14px;
  padding:12px;
  background:var(--cc-card-bg,#0f1116);
  color:var(--cc-text,#e5e7eb);
  font-family:inherit;
  outline:none;
}

.cc-comment-form button{
  align-self:flex-start;
  border:0;
  border-radius:12px;
  padding:10px 18px;
  background:#ff5a1f;
  color:#fff;
  cursor:pointer;
  font-family:inherit;
}

.cc-comment-item{
  padding:12px 0;
  border-top:1px solid var(--cc-border,#30333b);
}

.cc-comment-meta{
  display:flex;
  justify-content:space-between;
  gap:12px;
  font-size:13px;
  color:var(--cc-muted,#9ca3af);
  margin-bottom:6px;
}

.cc-comment-meta strong{
  color:var(--cc-text,#e5e7eb);
}

.cc-comment-text{
  line-height:1.9;
  font-size:14px;
  color:var(--cc-text,#e5e7eb);
}

.cc-comment-login,
.cc-comment-empty,
.cc-comment-alert{
  padding:12px;
  border-radius:14px;
  background:rgba(255,90,31,.08);
  color:var(--cc-text,#e5e7eb);
  font-size:14px;
}

.cc-comment-login a{
  color:#ff5a1f;
  font-weight:700;
}

/* Comments polish / light mode fix */
.cc-comments{
  overflow:hidden;
}

.cc-comment-form textarea{
  min-height:120px;
  line-height:1.9;
}

.cc-comment-list{
  margin-top:10px;
}

.cc-comment-item{
  padding:14px 0;
  border-top:1px solid rgba(148,163,184,.22);
}

.cc-comment-meta{
  direction:rtl;
}

.cc-comment-meta span{
  direction:ltr;
  unicode-bidi:plaintext;
}

.cc-comment-text{
  direction:rtl;
  text-align:right;
  color:#374151;
  word-break:break-word;
}

.cc-comment-empty,
.cc-comment-login{
  color:#374151;
}

html[data-theme="dark"] .cc-comment-text,
body.dark .cc-comment-text{
  color:#e5e7eb;
}

html[data-theme="dark"] .cc-comment-empty,
html[data-theme="dark"] .cc-comment-login,
body.dark .cc-comment-empty,
body.dark .cc-comment-login{
  color:#e5e7eb;
}

.cc-comments{
  background:linear-gradient(180deg,#fff,#fafafa);
  border:1px solid rgba(255,90,31,.15);
  box-shadow:0 8px 30px rgba(255,90,31,.08);
}


.model-comments-wrap{
  width:100%;
  max-width:1240px;
  margin:24px auto 0;
  padding:0 16px;
}

.model-comments-wrap .cc-comments{
  background:#fff;
  border:1px solid rgba(255,90,31,.22);
  box-shadow:0 10px 35px rgba(255,90,31,.08);
  border-radius:22px;
}

html[data-theme="dark"] .model-comments-wrap .cc-comments,
body.dark .model-comments-wrap .cc-comments{
  background:#111827;
  border-color:rgba(255,90,31,.25);
}


/* Comments size + placement fix */
.model-comments-wrap{
  max-width:1240px !important;
  margin:18px auto 0 !important;
  padding:0 24px !important;
}

.model-comments-wrap .cc-comments{
  max-width:100% !important;
  width:100% !important;
  border-radius:18px !important;
}

.cc-comments .cc-card-head{
  padding:18px 22px 10px !important;
}

.cc-comments .cc-comment-login,
.cc-comments .cc-comment-form{
  margin:0 22px 18px !important;
}

.cc-comments .cc-comment-list{
  padding:0 22px 22px !important;
}

.cc-comments .cc-comment-item{
  min-height:auto !important;
  padding:14px 0 !important;
}

/* Comments inside left column */
.model-left .model-comments-wrap{
  width:100% !important;
  max-width:none !important;
  margin:18px 0 0 !important;
  padding:0 !important;
}

.model-left .cc-comments{
  width:100% !important;
  border-radius:18px !important;
  overflow:hidden !important;
}


.model-left .model-comments-wrap{
  width:100% !important;
  max-width:none !important;
  margin:18px 0 0 !important;
  padding:0 !important;
}

.model-left .cc-comments{
  width:100% !important;
  border:1px solid rgba(255,90,31,.45) !important;
  border-radius:18px !important;
  box-shadow:none !important;
  overflow:hidden !important;
}

.model-left .cc-comment-list{
  padding:0 22px 22px !important;
}


/* Mobile: compact action/download row */
@media (max-width: 768px){

  .model-side .cc-action-grid{
    display:grid !important;
    grid-template-columns:repeat(4, 1fr) !important;
    gap:8px !important;
    border:0 !important;
    margin:12px 0 !important;
  }

  .model-side .cc-action-cell{
    min-height:58px !important;
    padding:8px 4px !important;
    border:1px solid #2b2f38 !important;
    border-radius:14px !important;
    display:flex !important;
    flex-direction:column !important;
    align-items:center !important;
    justify-content:center !important;
    gap:4px !important;
  }

  .model-side .cc-action-cell svg{
    width:21px !important;
    height:21px !important;
  }

  .model-side .cc-action-cell span,
  .model-side .cc-action-cell b{
    font-size:11px !important;
    line-height:1.1 !important;
  }

  .model-side .cc-download-row{
    display:grid !important;
    grid-template-columns:1fr 1fr !important;
    gap:8px !important;
    margin-top:8px !important;
  }

  .model-side .cc-download-main,
  .model-side .cc-files-main{
    height:48px !important;
    min-height:48px !important;
    padding:0 10px !important;
    border-radius:14px !important;
    font-size:14px !important;
    white-space:nowrap !important;
  }

  .model-side .cc-download-main svg,
  .model-side .cc-files-main svg{
    width:19px !important;
    height:19px !important;
  }
}

/* FINAL MOBILE COMPACT MODEL ACTIONS */
@media(max-width:520px){

  .cc-model-head{
    padding:16px 14px !important;
  }

  .cc-action-strip{
    grid-template-columns:repeat(4,1fr) !important;
    gap:6px !important;
    border:0 !important;
    background:transparent !important;
    overflow:visible !important;
    margin-top:14px !important;
    margin-bottom:8px !important;
  }

  .cc-mini-action{
    height:54px !important;
    min-height:54px !important;
    padding:6px 2px !important;
    border:1px solid #30333b !important;
    border-radius:14px !important;
    flex-direction:column !important;
    gap:3px !important;
    font-size:11px !important;
    line-height:1.1 !important;
  }

  .cc-mini-action:nth-child(n){
    border:1px solid #30333b !important;
  }

  .cc-mini-action svg{
    width:20px !important;
    height:20px !important;
  }

  .cc-download-row{
    display:grid !important;
    grid-template-columns:1fr 1fr !important;
    gap:8px !important;
    margin-top:8px !important;
  }

  .cc-download-main,
  .cc-files-main{
    height:48px !important;
    min-height:48px !important;
    border-radius:14px !important;
    font-size:13px !important;
    padding:0 8px !important;
    white-space:nowrap !important;
  }

  .cc-download-main svg,
  .cc-files-main svg{
    width:18px !important;
    height:18px !important;
  }
}

/* FINAL MOBILE COMPACT PRINT ESTIMATES */
@media(max-width:520px){

  .cc-est-grid{
    display:grid !important;
    grid-template-columns:repeat(4, minmax(0,1fr)) !important;
    gap:6px !important;
    margin-top:10px !important;
  }

  .cc-est{
    min-height:54px !important;
    padding:7px 4px !important;
    border-radius:12px !important;
    text-align:center !important;
    display:flex !important;
    flex-direction:column !important;
    align-items:center !important;
    justify-content:center !important;
    gap:3px !important;
  }

  .cc-est span{
    font-size:10px !important;
    line-height:1.1 !important;
    white-space:nowrap !important;
  }

  .cc-est b{
    font-size:11px !important;
    line-height:1.1 !important;
    white-space:nowrap !important;
  }
}
