/* Tegeloutlet M² ↔ dozen calculator */
#to-m2dc-root,
#to-m2dc-root *{
  box-sizing:border-box;
}

.to-m2dc-box{
  position:relative;
  overflow:hidden;
  background:#fff;
  border:1px solid rgba(0,0,0,.10);
  border-radius:22px;
  padding:18px;
  margin:0 0 18px;
  box-shadow:0 12px 32px rgba(0,0,0,.055);
  font-family:inherit;
}

.to-m2dc-box:before{
  content:"";
  position:absolute;
  right:-28px;
  top:-34px;
  width:150px;
  height:150px;
  background:url('https://tegeloutlet.be/wp-content/uploads/2026/05/android-chrome-512x512-1.png') center/contain no-repeat;
  opacity:.045;
  pointer-events:none;
  transform:rotate(-8deg);
}

.to-m2dc-head{
  position:relative;
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:16px;
  padding-bottom:14px;
  margin-bottom:14px;
  border-bottom:1px solid #eef1f4;
}

.to-m2dc-kicker{
  display:inline-flex;
  align-items:center;
  gap:6px;
  color:#00a3a6;
  font-size:12px;
  line-height:1;
  font-weight:900;
  letter-spacing:.02em;
  text-transform:uppercase;
  margin-bottom:7px;
}

.to-m2dc-kicker:before{
  content:"";
  width:8px;
  height:8px;
  border-radius:999px;
  background:#c7017f;
  display:block;
}

.to-m2dc-title{
  color:#000;
  font-size:22px;
  line-height:1.08;
  font-weight:900;
  margin:0;
}

.to-m2dc-subtitle{
  color:#555b61;
  font-size:13px;
  line-height:1.35;
  margin:6px 0 0;
}

.to-m2dc-pack{
  flex:0 0 auto;
  min-width:98px;
  padding:10px 12px;
  border:1px solid rgba(0,163,166,.22);
  border-radius:16px;
  background:rgba(0,163,166,.055);
  text-align:right;
}

.to-m2dc-pack strong{
  display:block;
  color:#000;
  font-size:17px;
  line-height:1.05;
  font-weight:950;
}

.to-m2dc-pack span{
  display:block;
  margin-top:3px;
  color:#5f666d;
  font-size:11px;
  font-weight:800;
}

.to-m2dc-grid{
  position:relative;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
  margin-bottom:12px;
}

.to-m2dc-control{
  border:1px solid #e7ebef;
  border-radius:18px;
  background:#fbfcfc;
  padding:12px;
}

.to-m2dc-control-label{
  display:block;
  margin:0 0 8px;
  color:#171717;
  font-size:12px;
  font-weight:900;
  letter-spacing:.035em;
  text-transform:uppercase;
}

.to-m2dc-stepper{
  display:grid;
  grid-template-columns:42px 1fr 42px;
  align-items:center;
  width:100%;
  height:48px;
  overflow:hidden;
  border:1px solid rgba(0,163,166,.28);
  background:#fff;
  border-radius:999px;
}

.to-m2dc-stepper input{
  width:100%;
  min-width:0;
  height:48px;
  padding:0 8px !important;
  border:0 !important;
  border-left:1px solid #eef1f4 !important;
  border-right:1px solid #eef1f4 !important;
  background:#fff !important;
  color:#000;
  text-align:center;
  font-size:17px;
  line-height:48px;
  font-weight:900;
  outline:none !important;
  box-shadow:none !important;
}

.to-m2dc-btn{
  width:42px !important;
  height:48px !important;
  min-width:42px !important;
  padding:0 !important;
  border:0 !important;
  border-radius:0 !important;
  background:#f2fbfb !important;
  color:#008b8e !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  cursor:pointer;
  transition:background .16s ease, color .16s ease;
}

.to-m2dc-btn:hover{
  background:#e6f7f7 !important;
  color:#006f72 !important;
}

.to-m2dc-ico{
  width:15px;
  height:15px;
  display:block;
}

.to-m2dc-margin{
  position:relative;
  display:flex;
  align-items:center;
  gap:9px;
  width:fit-content;
  max-width:100%;
  margin:0 0 13px;
  padding:9px 12px;
  border:1px solid rgba(199,1,127,.16);
  border-radius:999px;
  background:rgba(199,1,127,.045);
  color:#222;
  font-size:13px;
  line-height:1.2;
  font-weight:800;
  cursor:pointer;
}

.to-m2dc-margin input{
  width:16px;
  height:16px;
  margin:0;
  accent-color:#c7017f;
}

.to-m2dc-msg{
  position:relative;
  margin:0;
  padding:12px 14px;
  border:1px solid rgba(0,163,166,.18);
  border-radius:16px;
  background:rgba(0,163,166,.045);
  color:#4a4f55;
  font-size:13px;
  line-height:1.45;
}

.to-m2dc-msg strong{
  color:#000;
  font-weight:900;
}

.to-m2dc-warn{
  position:relative;
  margin-top:10px;
  padding:10px 12px;
  border:1px solid rgba(199,1,127,.20);
  border-radius:14px;
  background:rgba(199,1,127,.06);
  color:#8a1b55;
  font-size:12px;
  line-height:1.35;
  font-weight:800;
}

.to-m2dc-totalwrap{
  position:relative;
  margin-top:12px;
  padding:0;
  border:1px solid #eef1f4;
  border-radius:18px;
  overflow:hidden;
  background:#fff;
}

.to-m2dc-total-line,
.to-m2dc-discount-line{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:baseline;
  gap:14px;
  padding:10px 14px;
  border-top:1px solid #eef1f4;
  color:#111;
  font-size:13px;
  line-height:1.3;
}

.to-m2dc-total-line:first-child,
.to-m2dc-discount-line:first-child{
  border-top:0;
}

.to-m2dc-total-label,
.to-m2dc-discount-label{
  min-width:0;
  font-weight:650;
  color:#1f2327;
}

.to-m2dc-total-value,
.to-m2dc-discount-value{
  white-space:nowrap;
  text-align:right;
  font-weight:850;
  color:#111;
}

.to-m2dc-discount-value.to-pink,
.to-m2dc-total-value.to-pink{
  color:#c7017f;
}

.to-m2dc-total-line.to-muted .to-m2dc-total-value{
  color:#6d7379;
  text-decoration:line-through;
}

.to-m2dc-total-line.to-current{
  background:#fbfcfc;
}

.to-m2dc-total-line.to-current .to-m2dc-total-label,
.to-m2dc-total-line.to-current .to-m2dc-total-value{
  font-weight:900;
}

.to-m2dc-discount-line.to-strong{
  margin:0;
  background:rgba(199,1,127,.055);
  border-color:rgba(199,1,127,.14);
}

.to-m2dc-discount-line.to-strong .to-m2dc-discount-label,
.to-m2dc-discount-line.to-strong .to-m2dc-discount-value{
  color:#c7017f;
  font-weight:950;
}

.to-m2dc-discount-note{
  padding:10px 14px 12px;
  border-top:1px solid #eef1f4;
  color:#697078;
  font-size:12px;
  line-height:1.35;
}

#to-m2dc-root input[type="number"]{
  appearance:textfield;
  -moz-appearance:textfield;
}
#to-m2dc-root input[type="number"]::-webkit-outer-spin-button,
#to-m2dc-root input[type="number"]::-webkit-inner-spin-button{
  -webkit-appearance:none;
  margin:0;
}

@media (max-width:680px){
  .to-m2dc-box{
    border-radius:18px;
    padding:14px;
    margin-bottom:14px;
    box-shadow:0 10px 24px rgba(0,0,0,.045);
  }

  .to-m2dc-head{
    display:block;
    padding-bottom:12px;
    margin-bottom:12px;
  }

  .to-m2dc-title{
    font-size:20px;
  }

  .to-m2dc-pack{
    margin-top:10px;
    width:100%;
    text-align:left;
  }

  .to-m2dc-grid{
    grid-template-columns:1fr;
    gap:10px;
  }

  .to-m2dc-control{
    padding:11px;
    border-radius:16px;
  }

  .to-m2dc-stepper{
    grid-template-columns:48px 1fr 48px;
    height:50px;
  }

  .to-m2dc-btn{
    width:48px !important;
    height:50px !important;
    min-width:48px !important;
  }

  .to-m2dc-stepper input{
    height:50px;
    line-height:50px;
    font-size:18px;
  }

  .to-m2dc-total-line,
  .to-m2dc-discount-line{
    padding:10px 12px;
    gap:10px;
  }
}

/* v1.3.1 refinements */
.to-m2dc-grid.to-m2dc-grid-single{
  grid-template-columns:1fr;
}

.to-m2dc-box.is-accessory .to-m2dc-grid{
  margin-bottom:12px;
}

.to-m2dc-box.is-accessory .to-m2dc-totalwrap{
  margin-top:0;
}

.to-m2dc-actions{
  position:relative;
  display:grid;
  grid-template-columns:1fr;
  gap:10px;
  margin-top:14px;
}

.to-m2dc-actions .single_add_to_cart_button.button,
.to-m2dc-actions button.single_add_to_cart_button,
.to-m2dc-actions .added_to_cart.wc-forward{
  width:100% !important;
  min-height:52px !important;
  border-radius:999px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  text-align:center !important;
  font-size:16px !important;
  line-height:1.15 !important;
  font-weight:900 !important;
  letter-spacing:.01em !important;
  white-space:nowrap !important;
  text-decoration:none !important;
  box-shadow:none !important;
}

.to-m2dc-actions .single_add_to_cart_button.button,
.to-m2dc-actions button.single_add_to_cart_button{
  border:0 !important;
  background:#c7017f !important;
  color:#fff !important;
  box-shadow:0 12px 28px rgba(199,1,127,.22) !important;
}

.to-m2dc-actions .single_add_to_cart_button.button:hover,
.to-m2dc-actions button.single_add_to_cart_button:hover{
  background:#a9006d !important;
  color:#fff !important;
}

.to-m2dc-actions .single_add_to_cart_button.loading,
.to-m2dc-actions .single_add_to_cart_button.disabled,
.to-m2dc-actions .single_add_to_cart_button:disabled{
  opacity:.55 !important;
  cursor:not-allowed !important;
}

.to-m2dc-actions .added_to_cart.wc-forward{
  border:1px solid rgba(0,163,166,.28) !important;
  background:#fff !important;
  color:#008b8e !important;
  box-shadow:none !important;
}

.to-m2dc-actions .added_to_cart.wc-forward:hover{
  background:#f2fbfb !important;
  color:#006f72 !important;
}

.to-m2dc-total-line.to-muted .to-m2dc-total-label,
.to-m2dc-total-line:not(.to-current) .to-m2dc-total-label,
.to-m2dc-discount-line:not(.to-strong) .to-m2dc-discount-label{
  font-weight:650;
}

@media (max-width:680px){
  .to-m2dc-actions{
    margin-top:12px;
  }

  .to-m2dc-actions .single_add_to_cart_button.button,
  .to-m2dc-actions button.single_add_to_cart_button,
  .to-m2dc-actions .added_to_cart.wc-forward{
    min-height:50px !important;
    font-size:15px !important;
    padding-left:14px !important;
    padding-right:14px !important;
  }
}

/* v1.3.5: de standaard WooCommerce link "Winkelwagen bekijken" is overbodig door de nieuwe popup. */
form.cart a.added_to_cart.wc-forward,
.to-m2dc-actions a.added_to_cart.wc-forward{
  display:none !important;
}
