/*!
 * Printman sticker calculator — widget styles.
 *
 * Carried over byte-for-byte from the live v1 widget (reference/live-style.css.html) so
 * /sticker-calculator-v2/ renders pixel-identically. Self-contained: depends on no theme class,
 * inherits only the page font.
 */
.sp-wrap,.sp-wrap *{box-sizing:border-box}
.sp-wrap{
  max-width:1060px;
  margin:0 auto;
  padding:8px;
}

.sp-card{
  border:0;
  border-radius:18px;
  background:#fff;
  overflow:hidden;
  box-shadow:0 8px 24px rgba(0,0,0,.04);
}

.sp-head{
  padding:14px 16px 10px;
  border-bottom:1px solid #efefef;
}

.sp-title{
  font-size:20px;
  font-weight:900;
  color:#111;
  letter-spacing:.2px;
  line-height:1.15;
}

.sp-sub{
  margin-top:4px;
  color:#555;
  font-size:11px;
  line-height:1.45;
}

.sp-wrap button,
.sp-wrap input{
  font:inherit;
}

.sp-tab,
.sp-shape-btn,
.sp-field input{
  transition:background-color .2s ease,border-color .2s ease,box-shadow .2s ease;
}

.sp-mode{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
  padding:10px 16px;
  border-bottom:1px solid #efefef;
  background:#fff;
}

.sp-tab{
  appearance:none;
  -webkit-appearance:none;
  border:1px solid #111;
  border-radius:14px;
  padding:12px 14px;
  background:#fff;
  color:#111;
  font-weight:900;
  cursor:pointer;
  min-height:50px;
  text-align:center;
  line-height:1.15;
  white-space:normal;
  word-break:break-word;
  overflow-wrap:anywhere;
}

.sp-tab:not(.sp-tab-active):hover{
  background:#fafafa;
  border-color:#d8d8d8;
}

.sp-tab-active{
  background:#FF0D00;
  border-color:#FF0D00;
  color:#fff;
}

.sp-shapebox{
  padding:12px 16px;
  border-bottom:1px solid #efefef;
}

.sp-section-label{
  font-size:11px;
  color:#111;
  font-weight:900;
  margin-bottom:8px;
}

.sp-shape-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
}

.sp-shape-btn{
  appearance:none;
  -webkit-appearance:none;
  width:100%;
  min-height:92px;
  border:1px solid #111;
  border-radius:16px;
  background:#fff;
  color:#111;
  padding:12px 14px;
  cursor:pointer;
  display:flex;
  align-items:center;
  gap:10px;
  text-align:left;
  line-height:1.2;
}

.sp-shape-btn:not(.sp-shape-active):hover{
  background:#fafafa;
  border-color:#d8d8d8;
}

.sp-shape-active{
  background:#fff5f5;
  border-color:#FF0D00;
  box-shadow:0 0 0 2px rgba(255,13,0,.08) inset;
}

.sp-shape-icon{
  flex:0 0 auto;
  width:28px;
  height:28px;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#FF0D00;
  font-size:26px;
  line-height:1;
}

.sp-shape-text{
  min-width:0;
  display:block;
}

.sp-shape-title{
  display:block;
  font-size:14px;
  font-weight:900;
  color:#111;
  line-height:1.2;
  white-space:normal;
  word-break:break-word;
  overflow-wrap:anywhere;
}

.sp-shape-sub{
  display:block;
  margin-top:4px;
  font-size:10.5px;
  color:#555;
  font-weight:700;
  line-height:1.35;
  white-space:normal;
  word-break:break-word;
  overflow-wrap:anywhere;
}

.sp-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
  padding:12px 16px 14px;
}

.sp-field{
  display:flex;
  flex-direction:column;
  gap:5px;
  min-width:0;
}

.sp-field span{
  font-size:11.5px;
  color:#111;
  font-weight:800;
  line-height:1.3;
}

.sp-min{
  color:#FF0D00;
  font-weight:900;
  margin-left:6px;
}

.sp-field input{
  width:100%;
  padding:10px 12px;
  border:1px solid #111;
  border-radius:14px;
  font-size:15px;
  outline:none;
  min-height:50px;
  background:#fff;
}

.sp-field input:hover{
  border-color:#d8d8d8;
  background:#fafafa;
}

.sp-field input:focus{
  border-color:#d8d8d8;
  background:#fafafa;
  box-shadow:0 0 0 3px rgba(0,0,0,.04);
}

.sp-hide{display:none!important}

.sp-live{
  display:grid;
  grid-template-columns:minmax(0,1.18fr) minmax(290px,.82fr);
  gap:12px;
  padding:0 16px 14px;
  align-items:start;
}

.sp-previewbox,
.sp-sidebox{
  border:1px solid #efefef;
  border-radius:16px;
  background:#fff;
  overflow:hidden;
}

.sp-previewhead{
  padding:12px 14px;
  border-bottom:1px solid #efefef;
}

.sp-previewtitle{
  font-size:16px;
  font-weight:900;
  color:#111;
  line-height:1.2;
}

.sp-previewmeta{
  margin-top:4px;
  font-size:11px;
  color:#555;
  font-weight:800;
  line-height:1.35;
}

.sp-previewstage{
  padding:8px 10px 10px;
  background:#fff;
}

.sp-previewsvg{
  width:100%;
  height:248px;
  border-radius:14px;
  overflow:hidden;
  background:#fafafa;
}

.sp-previewsvg svg{
  display:block;
  width:100%;
  height:100%;
}

.sp-previewnote{
  padding:0 14px 10px;
  font-size:11px;
  color:#444;
  font-weight:700;
  line-height:1.45;
}

.sp-previewnote:empty{
  display:none;
}

.sp-sidebox{
  padding:12px 12px 10px;
  position:sticky;
  top:12px;
}

.sp-sidehead{
  font-size:12px;
  font-weight:900;
  color:#111;
  margin-bottom:8px;
}

.sp-pricebox{
  border:1px solid #efefef;
  border-radius:16px;
  padding:14px;
  background:linear-gradient(180deg,#fff 0%,#fcfcfc 100%);
}

.sp-price-k{
  font-size:11px;
  color:#555;
  font-weight:900;
  line-height:1.25;
}

.sp-price-hero{
  display:flex;
  align-items:flex-end;
  gap:8px;
  margin-top:4px;
  color:#111;
  font-weight:900;
  line-height:.95;
  letter-spacing:-.02em;
  white-space:normal;
  word-break:break-word;
  overflow-wrap:anywhere;
}

.sp-price-hero span{
  font-size:48px;
}

.sp-price-hero small{
  font-size:14px;
  font-weight:900;
  color:#444;
  margin-bottom:6px;
}

.sp-price-divider{
  height:1px;
  background:#eee;
  margin:10px 0;
}

.sp-unit-row{
  display:grid;
  grid-template-columns:1fr auto;
  align-items:center;
  gap:12px;
}

.sp-unit-k{
  font-size:11px;
  color:#555;
  font-weight:800;
  line-height:1.3;
}

.sp-unit-v{
  display:flex;
  align-items:baseline;
  justify-content:flex-end;
  gap:6px;
  color:#111;
  font-size:20px;
  font-weight:900;
  line-height:1.15;
  text-align:right;
  white-space:normal;
  word-break:break-word;
  overflow-wrap:anywhere;
}

.sp-unit-v small{
  font-size:11px;
  font-weight:800;
  color:#555;
  margin:0;
}

.sp-hint{
  margin-top:8px;
  color:#444;
  font-size:11px;
  font-weight:800;
  line-height:1.4;
}

.sp-hint:empty{
  display:none;
}

.sp-sidegrid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
  margin-top:10px;
}

.sp-mini{
  border:1px solid #efefef;
  border-radius:14px;
  background:#fff;
  padding:10px 12px;
  min-width:0;
}

.sp-mini-full{
  grid-column:1 / -1;
}

.sp-mini-k{
  font-size:10.5px;
  color:#555;
  font-weight:800;
  line-height:1.25;
}

.sp-mini-v{
  margin-top:5px;
  font-size:17px;
  color:#111;
  font-weight:900;
  line-height:1.2;
  white-space:normal;
  word-break:break-word;
  overflow-wrap:anywhere;
}

.sp-actions{
  margin-top:10px;
}

.sp-wa{
  appearance:none;
  -webkit-appearance:none;
  width:100%;
  padding:12px 16px;
  border:0;
  border-radius:14px;
  background:#25D366;
  color:#fff;
  font-weight:900;
  cursor:pointer;
  line-height:1.15;
  text-align:center;
  min-height:50px;
}

.sp-wa:hover{
  filter:brightness(.96);
}

.sp-note{
  margin-top:8px;
  padding:10px 12px;
  border:1px solid #efefef;
  border-left:4px solid #FF0D00;
  border-radius:10px;
  font-size:11px;
  color:#111;
  background:#fff;
  line-height:1.45;
}

.sp-msg{
  margin-top:8px;
  color:#FF0D00;
  font-weight:900;
  font-size:11px;
  line-height:1.4;
}

.sp-msg:empty{
  display:none;
}

@media (max-width:980px){
  .sp-live{
    grid-template-columns:1fr;
  }

  .sp-sidebox{
    position:static;
  }

  .sp-previewsvg{
    height:236px;
  }
}

@media (max-width:700px){
  .sp-mode{
    grid-template-columns:1fr 1fr;
  }

  .sp-shape-grid{
    grid-template-columns:1fr;
  }

  .sp-grid{
    grid-template-columns:1fr 1fr;
  }

  .sp-previewsvg{
    height:226px;
  }

  .sp-tab{
    font-size:14px;
    padding:11px 10px;
    min-height:48px;
  }

  .sp-price-hero span{
    font-size:42px;
  }

  .sp-unit-v{
    font-size:18px;
  }
}

@media (max-width:560px){
  .sp-wrap{
    padding:6px;
  }

  .sp-head,.sp-mode,.sp-shapebox,.sp-grid,.sp-live{
    padding-left:12px;
    padding-right:12px;
  }

  .sp-grid{
    grid-template-columns:1fr;
  }

  .sp-sidegrid{
    grid-template-columns:1fr;
  }

  .sp-mini-full{
    grid-column:auto;
  }

  .sp-previewsvg{
    height:212px;
  }

  .sp-title{
    font-size:18px;
  }

  .sp-price-hero span{
    font-size:38px;
  }

  .sp-shape-btn{
    min-height:84px;
    padding:11px 12px;
  }

  .sp-shape-icon{
    width:26px;
    height:26px;
    font-size:24px;
  }

  .sp-tab{
    font-size:13px;
  }
}
