/* Keep all four stage labels inside narrow phones. */
@media(max-width:390px){
  .ordercalc-mobile-stepper__inner { padding:0 8px; gap:4px; }
  .ordercalc-mobile-stepper__step { flex-direction:column; gap:2px; min-width:0; }
}

/* Material selector with existing Cuptrade option states. */
.test-material-switch {border:0;padding:0;margin:0 0 24px;display:flex;flex-wrap:wrap;gap:12px;min-width:0;}
.test-material-switch legend {font-weight:500;margin-bottom:12px;}
.test-material-switch .ordercalc-cup-option {flex:1;min-width:0;}
.test-material-switch label {justify-content:center;text-align:center;}
.test-material-switch input:focus-visible + label {outline:2px solid #df312f;outline-offset:3px;}
.test-material-editor {min-width:0;}
.test-material-editor {display:flex;flex-direction:column;gap:24px;}
.test-material-switch .ordercalc-cup-option {flex:0 1 auto;}
.test-material-switch label {min-width:130px;}

@media (max-width: 768px) {
  .ordercalc-addons-wrap {
    width: 100%;
  }

  .ordercalc-addons-wrap,
  .ordercalc-addons,
  .ordercalc-addons__panel,
  .ordercalc-addons-wrap .ordercalc-slider {
    min-width: 0;
    max-width: 100%;
  }
}

@media (max-width: 420px) {
  .ordercalc-addons__tabs {
    gap: 4px;
  }

  .ordercalc-addons__tab {
    padding-inline: 0;
  }
}

/* Keep the shared production heading inside the narrow viewport. */
@media (max-width: 339px) {
  .manufacture-page .manufacture-produces-section .section-info__title,
  .design-page .manufacture-produces-section .section-info__title {
    overflow-wrap: anywhere;
  }
}
