/* =========================
   GFX B2B ORDER SYSTEM
   FRONTEND STYLING
========================= */

#ifc-order-app {
  max-width: 1400px;
  margin: 40px auto;
  padding: 30px;
  background: #111;
  border: 1px solid #222;
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
  color: #fff;
  font-family: Arial, sans-serif;
}

#ifc-order-app h2,
#ifc-order-app h3 {
  color: #ff2b2b;
  margin-bottom: 18px;
  letter-spacing: 0.5px;
}

#ifc-order-app label {
  display: block;
  font-weight: 400;
  margin-bottom: 8px;
  color: #ddd;
}

.ifc-order-top {
  margin-bottom: 25px;
  max-width: 420px;
}

#ifc-order-app select,
#ifc-order-app textarea,
#ifc-order-app input[type="number"] {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #333;
  border-radius: 10px;
  background: #1a1a1a;
  color: #fff;
  font-size: 12px;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

#ifc-order-app select:focus,
#ifc-order-app textarea:focus,
#ifc-order-app input[type="number"]:focus {
  border-color: #ff2b2b;
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 43, 43, 0.15);
}

#orderTable {
  width: 100%;
  border-collapse: collapse;
  margin-top: 25px;
  margin-bottom: 25px;
  background: #181818;
  border-radius: 14px;
  overflow: hidden;
}

#orderTable th {
  background: #1f1f1f;
  color: #fff;
  padding: 16px 12px;
  font-size: 12px;
  text-transform: uppercase;
  border-bottom: 1px solid #2a2a2a;
}

#orderTable td {
  padding: 14px 12px;
  border-bottom: 1px solid #262626;
  color: #f2f2f2;
  vertical-align: middle;
  text-align: center;
}

#orderTable tr:hover {
  background: rgba(255,255,255,0.03);
}

#orderTable td:first-child {
  text-align: left;
  font-weight: 400;
  color: #fff;
}

.qty-input {
  width: 80px;
  max-width: 100%;
  padding: 10px;
  text-align: center;
  font-weight: 500;
  background: #101010;
  border: 1px solid #444 !important;
  border-radius: 8px;
  color: #fff;
}

.qty-input:focus {
  border-color: #ff2b2b !important;
}

.ifc-total-wrap {
  margin-top: 25px;
  margin-bottom: 30px;
  padding: 18px 24px;
  background: linear-gradient(135deg, #1a1a1a, #101010);
  border: 1px solid #2c2c2c;
  border-radius: 14px;
  text-align: right;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.03);
}

.ifc-total-wrap h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  color: #ff2b2b;
}

#submitOrderBtn {
  display: inline-block;
  background: linear-gradient(135deg, #ff2b2b, #c40000);
  color: #fff;
  border: none;
  padding: 14px 28px;
  cursor: pointer;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
  box-shadow: 0 10px 30px rgba(255,43,43,0.25);
}

#submitOrderBtn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(255,43,43,0.35);
}

#submitOrderBtn:active {
  transform: translateY(0);
}

#orderOutput {
  margin-top: 35px !important;
  background: #151515;
  border: 1px solid #252525;
  border-radius: 16px;
  padding: 24px;
}

#orderSummaryText {
  min-height: 320px;
  resize: vertical;
  font-family: Consolas, monospace;
  font-size: 12px;
  line-height: 1.6;
  background: #121212;
  border: 1px solid #2d2d2d !important;
  color: #fff;
}

#orderTable tr.ifc-has-order {
  background: rgba(255, 43, 43, 0.08) !important;
}

@media (max-width: 768px) {
  #ifc-order-app {
    padding: 20px 16px;
    border-radius: 12px;
  }

  #orderTable {
    font-size: 12px;
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .qty-input {
    width: 60px;
  }

  .ifc-total-wrap {
    text-align: center;
  }

  .ifc-total-wrap h3 {
    font-size: 18px;
  }

  #submitOrderBtn {
    width: 100%;
    text-align: center;
  }
}