/* Dejna – Modal rozmiary odzieży */

.jsc-overlay{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.62);
  display:none;
  align-items:flex-end;
  justify-content:center;
  z-index:2147483647;
  padding:14px;
}
.jsc-overlay.is-open{display:flex;}

.jsc-modal{
  width:min(1100px, 98vw);
  max-height:86vh;
  background:#fff;
  border-radius:16px 16px 0 0;
  overflow:hidden;
  box-shadow:0 18px 70px rgba(0,0,0,.35);
  transform:translateY(10px);
  opacity:0;
  transition:transform .18s ease, opacity .18s ease;
}
.jsc-overlay.is-open .jsc-modal{transform:translateY(0);opacity:1;}

@media (min-width: 900px){
  .jsc-overlay{align-items:center;}
  .jsc-modal{border-radius:16px;}
}

.jsc-modal-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:14px 16px;
  border-bottom:1px solid #eee;
}
.jsc-modal-header h2{
  margin:0;
  font-size:18px;
  line-height:1.2;
}
.jsc-modal-close{
  border:0;
  background:transparent;
  cursor:pointer;
  font-size:28px;
  line-height:1;
  padding:2px 10px;
}
.jsc-modal-body{
  padding:16px;
  overflow:auto;
  max-height:calc(86vh - 58px);
}

/* Floating button */
.jsc-float-btn{
  position:fixed;
  right:18px;
  bottom:18px;
  z-index:2147483646;
  border:0;
  cursor:pointer;
  padding:12px 14px;
  border-radius:999px;
  box-shadow:0 12px 30px rgba(0,0,0,.25);
  background:#111;
  color:#fff;
  font-weight:700;
  font-size:14px;
}
.jsc-float-btn:hover{filter:brightness(1.1);}

/* Tabs */
.jsc-tabs-header{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin:0 0 14px;
}
.jsc-tab-button{
  border:1px solid #ddd;
  background:#f7f7f7;
  color:#111;
  border-radius:999px;
  padding:8px 12px;
  cursor:pointer;
  font-weight:700;
  font-size:13px;
}
.jsc-tab-button.jsc-active{
  background:#111;
  color:#fff;
  border-color:#111;
}

/* Layout blocks */
.jsc-image-container{
  display:flex;
  justify-content:flex-start;
  margin:8px 0 12px;
}
.jsc-image-container img{
  border-radius:12px;
  border:1px solid #eee;
  background:#fff;
}

.jsc-size-tables h4{
  margin:10px 0 10px;
  font-size:15px;
}

.jsc-size-table-grid{
  display:grid;
  grid-template-columns:repeat(1, minmax(0, 1fr));
  gap:12px;
}
@media (min-width: 780px){
  .jsc-size-table-grid{
    grid-template-columns:repeat(3, minmax(0, 1fr));
  }
}

.jsc-size-table-block{
  border:1px solid #eee;
  border-radius:14px;
  padding:12px;
  background:#fff;
}
.jsc-size-table-block h5{
  margin:0 0 8px;
  font-size:14px;
}

table.jsc-size-table, table.jsc-spec-table{
  width:100%;
  border-collapse:collapse;
  font-size:13px;
}
table.jsc-size-table th, table.jsc-size-table td,
table.jsc-spec-table th, table.jsc-spec-table td{
  border-bottom:1px solid #eee;
  padding:8px 8px;
  text-align:left;
  vertical-align:top;
}
table.jsc-size-table thead th,
table.jsc-spec-table thead th{
  border-bottom:1px solid #ddd;
  font-weight:800;
  background:#fafafa;
}

/* Spec table wrapper (scroll on mobile) */
.jsc-table-container{margin-top:14px;}
.jsc-table-wrapper{
  overflow:auto;
  border:1px solid #eee;
  border-radius:14px;
}
table.jsc-spec-table{min-width:860px;}
@media (min-width: 980px){
  table.jsc-spec-table{min-width:0;}
}

/* Colors */
.color-swatches{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  margin:2px 0 6px;
}
.color-swatch{
  width:14px;
  height:14px;
  border-radius:50%;
  border:1px solid rgba(0,0,0,.2);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.18);
}
.color-names{
  font-size:12px;
  line-height:1.25;
  opacity:.85;
}

/* Swatch palette (podstawowe przybliżenia) */
.color-white{background:#ffffff;}
.color-black{background:#000000;}
.color-navy{background:#0b1b3a;}
.color-royal{background:#1f4fe0;}
.color-red{background:#d61f26;}
.color-bottle{background:#0f3b2e;}
.color-kelly{background:#1e7a3a;}
.color-gold{background:#f1c40f;}
.color-orange{background:#ff7a1a;}
.color-pink{background:#ff6ea8;}
.color-peach{background:#ffb79a;}
.color-pistachio{background:#a6d98a;}
.color-graphite{background:#3f3f46;}
.color-grey-melange{background:#b8b8b8;}
.color-ash-melange{background:#d7d7d7;}
.color-fucsia{background:#e4007f;}
.color-raspberry{background:#c2185b;}
.color-sky{background:#46b3ff;}
.color-turquoise{background:#00b3b3;}
.color-lime{background:#9cff00;}
.color-dk-grey{background:#5a5a5a;}
.color-burgundy{background:#6b1020;}
.color-brown{background:#6b4b2a;}
.color-purple{background:#6f42c1;}
.color-sand{background:#d6c29b;}

/* Note */
.jsc-note{
  margin:14px 0 0;
  font-size:12px;
  opacity:.85;
}

/* Hide/Show panes */
.jsc-tab-pane{display:none;}
.jsc-tab-pane.jsc-active{display:block;}
