#loading {
  text-align: center;
  background: url('../../../HMI-Human-Machine-Interface/ez3series/img/4.gif') no-repeat center;
  height: 150px;
}

.checkbox,
.radio {
  position: relative;
  display: block;
  margin: 10px 0;
}

.checkbox + .checkbox,
.radio + .radio {
  margin-top: -5px;
}

.list-group {
  width: auto;
  padding-left: 0;
  margin: 10px;
  background: #fff;
}

.list-group h4 {
  padding: 10px 10px 0 10px;
}

.list-group-item {
  width: auto;
  position: relative;
  display: block;
  padding: 10px 15px;
  margin-bottom: -1px;
  background: #fff;
  border: 1px solid #ddd;
}

.i:after {
  content: "";
  display: table;
  clear: both;
}


#whole {
  width: auto;
}

#popUpDiv {
  /* visibility:hidden; */
}

.part {
  color: #333;
  font-size: 7pt;
  font-weight: bold;
  height: 30px;
  overflow: hidden;
  border-bottom: 1px solid;
  text-align: center;
}

.desc {
  color: #334D55;
  font-size: 7pt;
  padding: 3px;
  height: 135px;
  overflow-wrap: break-word;
  overflow: hidden;
  border-bottom: 1px solid;
  line-height: initial;
  text-align: center;
}

#ioPrice {
  color: #333;
  font-size: 10pt;
  font-weight: bold;
  height: 55px;
  line-height: 25px;
  text-align: center;
}

.wrapper {
  margin-left: 0;
  width: 100%;
}

.columnM1,
.columnM2,
.columnM3,
.columnM4,
.columnM5,
.columnM6,
.columnM7,
.columnM8,
.columnM9,
.columnM10,
.columnM11,
.columnM12 {
  margin-left: 0;
  vertical-align: top;
  display: inline-block;
  position: relative;
}

.column {
  margin-left: 0;
  vertical-align: top;
  display: inline-block;
  position: relative;
}

.column0 {
  margin-left: 0;
  display: inline-block;
  position: relative;
}

.filter_data {
  float: left;
  width: 110px;
}

.filter_data0 {
  float: left;
  width: 70px;
}

.addCart a:hover,
.addCart a:link,
.addCart a:visited,
.addCart a:active {
  text-decoration: none;
  color: #FFF;
}

.addCart {
  font: bold 11px Arial;
  text-decoration: none;
  background: #FC0509;
  color: #FFF;
  padding: 2px 6px;
  border-top: 1px solid #CCC;
  border-right: 1px solid #333;
  border-bottom: 1px solid #333;
  border-left: 1px solid #CCC;
}

.acc_data,
.acc_data1,
.acc_data2,
.acc_data3,
.acc_data4,
.acc_data5,
.acc_data6,
.acc_data7,
.acc_data8,
.acc_data9,
.acc_data10,
.acc_data11,
.acc_data12,
.acc_data13,
.acc_data14,
.acc_data15,
.acc_data16,
.acc_data17,
.acc_data18,
.acc_data19,
.acc_data20,
.acc_data21,
.acc_data22,
.acc_data23,
.acc_data24,
.acc_data25,
.acc_data26 {
  margin-left: 0;
  vertical-align: top;
  display: inline-block;
  position: relative;
}

div.io {
  position: absolute;
  cursor: move;
  z-index: 10;
}

div.highlight {
  border: 5px solid red;
  opacity: .6;
  display: inline-block;
  filter: alpha(opacity=60);
  z-index: 9;
}

div.highlight img {
  opacity: 0;
}

.hidden-select {
  display: none;
}


#ioModalOverlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .35);
  z-index: 9998;
}

#ioModal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(820px, 92vw);
  max-height: 85vh;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .2);
  overflow: hidden;
}

#ioModalHeader {
  padding: 12px 16px;
  border-bottom: 1px solid #eee;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#ioModalTitle {
  font-size: 18px;
  font-weight: 700;
  color: #111;
}

#ioModalClose {
  cursor: pointer;
  font-size: 16px;
  border: none;
  background: transparent;
  padding: 6px 10px;
}

#ioModalBody {
  padding: 8px 0;
  overflow: auto;
  max-height: calc(85vh - 60px);
}

.option-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.option-item {
  padding: 10px 16px;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
}

.option-item:hover {
  background: #f9fafb;
}

.option-item.header {
  font-weight: 700;
  color: #111;
  cursor: default;
  background: #f2f2f2;
  text-align: center;
}

.option-item.disabled {
  color: #999;
  cursor: not-allowed;
}

.option-item[data-val="__REMOVE__"] {
  font-weight: 700;
}


.config-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 16px 18px 20px;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.06);
  margin: 0 28px 28px;
}

.config-card .config-steps-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 6px;
}

.config-step-cell {
  vertical-align: top;
  padding-right: 8px;
}

.config-step-cell:last-child {
  padding-right: 0;
}

.config-card h4 {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 600;
  color: #111827;
}

.config-card .list-group {
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
}

.config-card select.list-group-item {
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  font-size: 14px;
  color: #111827;
  background-color: #ffffff;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #6b7280 50%),
    linear-gradient(135deg, #6b7280 50%, transparent 50%);
  background-position:
    calc(100% - 16px) 50%,
    calc(100% - 11px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  outline: none;
}

.config-card select.list-group-item:hover {
  background-color: #f3f4f6;
}

.config-card select.list-group-item:focus {
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.25);
  border-color: #2563eb;
}

.config-card select.list-group-item option[value=""],
.config-card select.list-group-item option[value=" , ,32"] {
  color: #6b7280;
}

#modnum {
  margin-top: 10px;
  margin-bottom: 8px;
}

.config-card #base {
  margin-top: 4px;
}


.plc-addons {
  margin-top: 8px;
  margin-bottom: 40px; 
}

.plc-addons-card {
  max-width: 1000px;
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 16px 18px 20px;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.06);
}

.plc-addons-card > h4 {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 600;
  color: #111827;
  text-align: center;
}

.plc-addons-table {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  align-items: stretch;
}

@media (min-width: 900px) {
  .plc-addons-table {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.plc-addon-item {
  height: 100%;
  border: 1px solid #d1d5db;
  background: #ffffff;
  border-radius: 6px;
  overflow: hidden;
  display: flex; 
}

.plc-addon-row {
  display: flex;
  flex: 1 1 auto;
}

.plc-addon-cell.image {
  flex: 0 0 90px;
  padding: 8px 10px;
  text-align: center;
  border-right: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
}

.plc-addon-cell.image img {
  max-width: 100%;
  border-radius: 4px;
  background: #f9fafb;
}

.plc-addon-cell.main {
  flex: 1 1 auto;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  font-size: 13px;
  line-height: 1.5;
  color: #111827;
}

.plc-addon-title {
  font-weight: 600;
  margin-bottom: 3px;
}

.plc-addon-title-code {
  font-size: 13px;
}

.plc-addon-desc {
  font-size: 12px;
  color: #374151;
  margin-bottom: 6px;
  flex: 1 1 auto; 
}

.plc-addon-bottom {
  margin-top: auto; 
  padding-top: 6px;
  border-top: 1px solid #e5e7eb;

  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.plc-addon-price {
  font-weight: 700;
  color: #b91c1c;
  font-size: 14px;
}

.plc-addon-add {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
  font-size: 12px;
}

.plc-addon-add input[type="checkbox"] {
  transform: scale(1.05);
}

/* =========================
   SubTotal: unified button styles for <a> and <button>
   ========================= */

#subTotal{
  margin-top: 12px;
  text-align: center;          /* 想居中就留着；不想就删 */
}

/* base style: both <a> and <button> look the same */
#subTotal a,
#subTotal button,
#subTotal input[type="button"],
#subTotal input[type="submit"],
#subTotal input[type="reset"]{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;

  padding: 8px 12px;
  border-radius: 8px;

  border: 1px solid #d1d5db;
  background: #FC0509;         /* 跟你原 addCart 的红色一致 */
  color: #fff;

  font: 700 12px/1.1 Arial, sans-serif;
  text-decoration: none;
  cursor: pointer;

  /* 旧版 button/anchor 默认样式清掉 */
  -webkit-appearance: none;
  appearance: none;
  box-sizing: border-box;
  user-select: none;
}

/* hover */
#subTotal a:hover,
#subTotal button:hover,
#subTotal input[type="button"]:hover,
#subTotal input[type="submit"]:hover,
#subTotal input[type="reset"]:hover{
  filter: brightness(0.95);
  text-decoration: none;
}

/* active */
#subTotal a:active,
#subTotal button:active,
#subTotal input[type="button"]:active,
#subTotal input[type="submit"]:active,
#subTotal input[type="reset"]:active{
  transform: translateY(1px);
}

/* focus (keyboard) */
#subTotal a:focus-visible,
#subTotal button:focus-visible,
#subTotal input[type="button"]:focus-visible,
#subTotal input[type="submit"]:focus-visible,
#subTotal input[type="reset"]:focus-visible{
  outline: none;
  box-shadow: 0 0 0 3px rgba(252, 5, 9, 0.25);
}

/* disabled */
#subTotal button:disabled,
#subTotal input[type="button"]:disabled,
#subTotal input[type="submit"]:disabled,
#subTotal input[type="reset"]:disabled{
  opacity: .55;
  cursor: not-allowed;
  transform: none;
}

/* if there are multiple buttons/links inside subtotal, add spacing */
#subTotal a + a,
#subTotal a + button,
#subTotal button + a,
#subTotal button + button,
#subTotal input + a,
#subTotal a + input,
#subTotal input + button,
#subTotal button + input{
  margin-left: 8px;
}

