/* IPT Instant Quote. Scoped to .iptq so it doesn't leak into the theme. */
.iptq {
  --q-red: #aa0000;
  --q-red-dk: #8a0000;
  --q-ink: #1b2430;
  --q-mute: #5f6b7a;
  --q-line: #dfe3e8;
  --q-bg: #f6f7f9;
  --q-ok: #1f9d55;
  --q-okbg: #e7f5ea;
  --q-warn: #d97706;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--q-ink);
  max-width: 1440px;
  margin: 0 auto;
  text-align: left;
}
.iptq *, .iptq *::before, .iptq *::after { box-sizing: border-box; }
.iptq h2, .iptq h3 { font-family: Poppins, Inter, sans-serif; color: var(--q-ink); margin: 0; line-height: 1.25; letter-spacing: 0; text-transform: none; }
.iptq p { margin: 0; }
.iptq button { font: inherit; cursor: pointer; letter-spacing: 0; text-transform: none; }
.iptq input, .iptq select, .iptq textarea { font: inherit; color: inherit; }

/* buttons */
.iptq .iptq-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--q-red); color: #fff; border: 1px solid var(--q-red); border-radius: 6px;
  padding: 10px 22px; font-weight: 500; line-height: 1.3; transition: background .15s, box-shadow .15s;
}
.iptq .iptq-btn:hover { background: var(--q-red-dk); border-color: var(--q-red-dk); color: #fff; }
.iptq .iptq-btn:focus-visible, .iptq button:focus-visible, .iptq input:focus-visible, .iptq select:focus-visible, .iptq textarea:focus-visible { outline: 2px solid var(--q-red); outline-offset: 2px; }
.iptq .iptq-btn.is-outline { background: #fff; color: var(--q-red); }
.iptq .iptq-btn.is-outline:hover { background: #fff5f5; }
.iptq .iptq-btn.is-ghost { background: #fff; color: var(--q-ink); border-color: var(--q-line); }
.iptq .iptq-btn.is-ghost:hover { border-color: var(--q-red); color: var(--q-red); }
.iptq .iptq-btn.is-block { width: 100%; }
.iptq .iptq-btn.is-lg { padding: 14px 22px; font-size: 18px; }
.iptq .iptq-btn.is-wide { min-width: 340px; }
.iptq .iptq-btn:disabled { opacity: .5; cursor: not-allowed; }
.iptq .iptq-link { background: none; border: 0; padding: 0; color: var(--q-red); text-decoration: none; }
.iptq .iptq-link:hover { text-decoration: underline; }
.iptq .iptq-link.is-center { display: block; margin: 14px auto 0; }

/* start view */
.iptq .iptq-card { background: #fff; border-radius: 14px; box-shadow: 0 6px 24px rgba(20, 30, 45, .08); padding: 28px; }
.iptq .iptq-start { padding: 36px 52px 52px; }
.iptq .iptq-start > h2 { text-align: center; font-size: 34px; font-weight: 700; }
.iptq .iptq-sub { text-align: center; color: var(--q-mute); font-size: 20px; margin: 12px 0 34px; }

.iptq .iptq-ic { flex: none; display: inline-flex; margin-top: -2px; }
.iptq .iptq-row { display: flex; gap: 12px; flex-wrap: wrap; }

.iptq .iptq-drop {
  border: 2px dashed #b9bfc7; border-radius: 6px; text-align: center; padding: 34px 20px;
  background: linear-gradient(110deg, #f7f8fa, #eef5fd); transition: border-color .15s, background .15s;
}
.iptq .iptq-drop h3 { font-family: Inter, sans-serif; font-weight: 400; font-size: 24px; color: #2d3744; }
.iptq .iptq-drop p { color: #3a4553; margin: 10px 0 22px; }
.iptq .iptq-drop.is-over { border-color: var(--q-red); background: #fff3f3; }
.iptq .iptq-drop.is-off { opacity: .55; }
.iptq .iptq-drop.is-small { margin-top: 48px; }
.iptq .iptq-types { color: #6b7685; margin-top: 30px; line-height: 1.75; }
.iptq .iptq-types b { color: #6b7685; }

.iptq .iptq-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 70px; }
.iptq .iptq-step { display: flex; gap: 18px; border: 1px solid var(--q-line); border-radius: 6px; padding: 28px; }
.iptq .iptq-step > span { flex: none; width: 40px; height: 40px; border-radius: 50%; background: #e4e9ef; display: grid; place-items: center; font-weight: 600; }
.iptq .iptq-step b { font-size: 17px; }
.iptq .iptq-step p { color: #3a4553; margin-top: 4px; line-height: 1.7; }

.iptq .iptq-flash { background: #fdeceb; color: var(--q-red-dk); border-radius: 6px; padding: 10px 14px; margin: 0 0 16px; font-size: 14px; }
.iptq .iptq-flash[hidden], .iptq [hidden] { display: none !important; }

/* parts view */
.iptq .iptq-layout { display: grid; grid-template-columns: minmax(0, 1fr) 430px; gap: 32px; align-items: start; }
.iptq .iptq-bar-head { background: #000; color: #fff; display: flex; align-items: center; justify-content: space-between; padding: 20px 30px; border-radius: 12px 12px 0 0; margin-bottom: 20px; gap: 12px; }
.iptq .iptq-bar-head h2 { color: #fff; font-size: 24px; font-family: Inter, sans-serif; font-weight: 600; }
.iptq .iptq-bar-head small { font-weight: 400; font-size: 17px; margin-left: 6px; }
.iptq .iptq-parts { display: grid; gap: 18px; }

.iptq .iptq-part { border: 2px solid var(--q-line); border-radius: 4px; padding: 30px; background: #fff; transition: border-color .15s, background .15s; }
.iptq .iptq-part.is-incomplete { border-color: #e14b4b; background: #fff0f0; }
.iptq .iptq-part-head { display: flex; gap: 18px; align-items: flex-start; }
.iptq .iptq-thumb { width: 110px; height: 64px; flex: none; border: 2px solid #cfd5dc; border-radius: 4px; background: #fff; display: grid; place-items: center; color: #7d8794; overflow: hidden; }
.iptq .iptq-thumb img { width: 100%; height: 100%; object-fit: contain; }
.iptq .iptq-part-meta { flex: 1; min-width: 0; }
.iptq .iptq-part-title { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.iptq .iptq-name { font-weight: 600; font-size: 20px; border: 1px solid transparent; border-radius: 4px; padding: 2px 6px; margin-left: -6px; background: transparent; max-width: 100%; width: auto; min-width: 8ch; }
.iptq .iptq-name:hover, .iptq .iptq-name:focus { border-color: var(--q-line); background: #fff; }
.iptq .iptq-dims { color: var(--q-mute); font-size: 15px; }
.iptq .iptq-files { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; margin-top: 10px; color: var(--q-mute); font-size: 17px; }
.iptq .iptq-files small { font-size: 15px; color: #3a4553; font-weight: 500; }
.iptq .iptq-file { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.iptq .iptq-file em { color: var(--q-red); font-style: normal; font-size: 13px; }
.iptq .iptq-fbar { width: 60px; height: 4px; background: #e2e6eb; border-radius: 2px; overflow: hidden; display: inline-block; }
.iptq .iptq-fbar i { display: block; height: 100%; background: #2f80ed; transition: width .2s; }
.iptq .iptq-fbar.is-done { display: none; }
.iptq .iptq-fbar.is-err i { background: var(--q-red); }
.iptq .iptq-pend { background: none; border: 0; padding: 0; display: inline-flex; align-items: center; gap: 6px; color: #2d3744; font-size: 17px; }
.iptq .iptq-pend svg:first-of-type { color: var(--q-warn); }
.iptq .iptq-pend:hover { color: var(--q-red); }
.iptq .iptq-x { background: none; border: 0; padding: 2px; color: #8a94a1; display: inline-flex; }
.iptq .iptq-x:hover { color: var(--q-red); }
.iptq .iptq-tools { display: flex; gap: 10px; }
.iptq .iptq-tools button { background: none; border: 0; padding: 6px; color: #3a4553; border-radius: 4px; display: inline-flex; }
.iptq .iptq-tools button:hover { background: rgba(0, 0, 0, .06); color: var(--q-red); }

.iptq .iptq-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 26px; }
.iptq .iptq-grid2 { display: grid; grid-template-columns: 140px 1fr; gap: 10px; margin-top: 12px; }
.iptq .iptq-field { display: flex; flex-direction: column; gap: 6px; margin: 0 0 14px; font-weight: 400; }
.iptq .iptq-grid .iptq-field, .iptq .iptq-grid2 .iptq-field { margin: 0; }
.iptq .iptq-field > span { font-size: 17px; color: var(--q-ink); }
.iptq .iptq-field > span em { color: var(--q-red); font-style: normal; }
.iptq .iptq-field input, .iptq .iptq-field select, .iptq .iptq-field textarea {
  width: 100%; border: 1px solid #ccd2d9; border-radius: 4px; background: #fff; padding: 12px 14px; min-height: 48px; margin: 0; box-shadow: none;
}
.iptq .iptq-field textarea { min-height: 48px; resize: vertical; }
.iptq .iptq-field select { appearance: none; -webkit-appearance: none; padding-right: 36px; font-size: 15px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%23555' stroke-width='1.6'%3E%3Cpath d='M2 5l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 14px center; }
.iptq .is-bad, .iptq .iptq-field .is-bad { border-color: var(--q-red) !important; box-shadow: 0 0 0 1px var(--q-red) !important; }
.iptq .iptq-miss { color: var(--q-red-dk); font-size: 14px; margin-top: 12px; }

/* sidebar */
.iptq .iptq-side { position: sticky; top: 24px; }
.iptq .iptq-side .iptq-card { padding: 22px 26px 30px; border-radius: 4px; }
.iptq .iptq-side-title { display: flex; align-items: center; gap: 10px; font-size: 28px; font-family: Inter, sans-serif; font-weight: 600; }
.iptq .iptq-side-sub { font-size: 17px; margin: 4px 0 14px 32px; }
.iptq .iptq-sum { list-style: none; margin: 0 0 18px; padding: 0 0 22px; border-bottom: 1px solid var(--q-line); display: grid; gap: 8px; max-height: 340px; overflow: auto; }
.iptq .iptq-sum li { display: flex; align-items: center; gap: 14px; background: var(--q-bg); padding: 20px; border-radius: 4px; cursor: pointer; margin: 0; }
.iptq .iptq-sum li:hover { background: #eef1f4; }
.iptq .iptq-sum li > span:nth-child(2) { flex: 1; min-width: 0; }
.iptq .iptq-sum b { display: block; font-weight: 500; font-size: 17px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.iptq .iptq-sum small { font-size: 15px; }
.iptq .iptq-sum small.is-warn { color: var(--q-warn); }
.iptq .iptq-sum small.is-ok { color: var(--q-mute); }
.iptq .iptq-sum i { width: 14px; height: 14px; border-radius: 50%; background: #c9ced6; flex: none; }
.iptq .iptq-sum i.is-ok { background: var(--q-ok); }
.iptq .iptq-mini { width: 38px; height: 38px; border: 2px solid #cfd5dc; border-radius: 4px; background: #fff; display: grid; place-items: center; overflow: hidden; color: #7d8794; flex: none; }
.iptq .iptq-mini img { width: 100%; height: 100%; object-fit: contain; }
.iptq .iptq-who { font-size: 14px; color: var(--q-mute); margin-bottom: 18px; }
.iptq .iptq-two { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.iptq .iptq-check { display: flex; gap: 10px; align-items: center; margin: 6px 0 24px; font-size: 17px; padding: 4px; border-radius: 4px; }
.iptq .iptq-check input { width: 20px; height: 20px; accent-color: var(--q-red); margin: 0; }
.iptq .iptq-check a { color: var(--q-ink); font-weight: 600; text-decoration: underline; }
.iptq .iptq-fine { text-align: center; color: #4a5563; font-size: 13px; margin-top: 12px; line-height: 1.8; }
.iptq .iptq-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

/* modals */
.iptq .iptq-overlay { position: fixed; inset: 0; background: rgba(40, 44, 50, .55); z-index: 99999; display: flex; align-items: center; justify-content: center; padding: 20px; overflow: auto; }
.iptq .iptq-modal { position: relative; background: #fff; border-radius: 6px; box-shadow: 0 20px 60px rgba(0, 0, 0, .25); width: 100%; max-height: calc(100vh - 40px); overflow: auto; }
.iptq .iptq-modal.is-sm { max-width: 600px; padding: 30px; }
.iptq .iptq-modal.is-lg { max-width: 1690px; }
.iptq .iptq-close { position: absolute; top: 20px; right: 22px; background: none; border: 0; color: #6b7685; padding: 4px; display: inline-flex; }
.iptq .iptq-close:hover { color: var(--q-ink); }
.iptq .iptq-mtitle { margin: 0 0 18px; font-size: 17px; }
.iptq .iptq-modal .iptq-two { gap: 10px; }
.iptq .iptq-err { color: var(--q-red); font-size: 14px; margin-bottom: 10px; }
.iptq .iptq-modal form .iptq-btn { margin-top: 18px; }
.iptq .iptq-mhead { text-align: center; padding: 34px 40px 36px; border-bottom: 1px solid var(--q-line); }
.iptq .iptq-mhead h3 { font-family: Inter, sans-serif; font-weight: 600; font-size: 26px; }
.iptq .iptq-mhead p { color: #6b7d95; margin-top: 12px; font-size: 18px; }
.iptq .iptq-mbody { padding: 28px 52px 34px; }
.iptq .iptq-mcols, .iptq .iptq-mrow { display: grid; grid-template-columns: 1fr 1fr 34px; gap: 20px; align-items: center; }
.iptq .iptq-mcols { text-align: center; font-size: 24px; font-weight: 500; color: #3a4553; margin-bottom: 36px; }
.iptq .iptq-mrow { margin-bottom: 32px; }
.iptq .iptq-slot { border: 1px solid #ccd2d9; min-height: 90px; display: grid; place-items: center; padding: 14px; transition: background .15s, border-color .15s; }
.iptq .iptq-slot.is-over { border-color: var(--q-red); background: #fff3f3; }
.iptq .iptq-chip { display: inline-flex; align-items: center; gap: 10px; border: 1px dashed #333; padding: 10px 20px; background: #fff; cursor: grab; font-size: 17px; max-width: 100%; }
.iptq .iptq-chip > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.iptq .iptq-chip button { background: none; border: 0; padding: 0; color: var(--q-red); display: inline-flex; }
.iptq .iptq-add { display: inline-flex; align-items: center; gap: 12px; background: #f4f5f7; border: 1px solid #ccd2d9; border-radius: 3px; padding: 10px 20px; color: #3a4553; font-size: 17px; }
.iptq .iptq-add:hover { border-color: var(--q-red); color: var(--q-red); }
.iptq .iptq-rowx { background: none; border: 0; padding: 0; color: #e03131; display: inline-flex; align-self: start; }
.iptq .iptq-mfoot { border-top: 1px solid var(--q-line); padding: 32px; text-align: center; }

/* done */
.iptq .iptq-done { text-align: center; }
.iptq .iptq-ic.is-big { color: var(--q-ok); margin-bottom: 14px; }
.iptq .iptq-ic.is-big svg { width: 64px; height: 64px; }

/* toast */
.iptq-toast { position: fixed; right: 20px; bottom: 20px; width: 370px; max-width: calc(100vw - 40px); background: #fff; border-radius: 8px; box-shadow: 0 8px 30px rgba(0, 0, 0, .18); z-index: 99998; overflow: hidden; }
.iptq-toast .iptq-toast-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 16px 14px; font-size: 17px; }
.iptq-toast .iptq-toast-head button { background: none; border: 0; padding: 4px 8px; color: #3a4553; display: inline-flex; }
.iptq-toast .iptq-toast-head button:not(.is-open) svg { transform: rotate(180deg); }
.iptq-toast ul { list-style: none; margin: 0; padding: 0 16px 10px; max-height: 180px; overflow: auto; font-size: 14px; }
.iptq-toast li { display: flex; justify-content: space-between; gap: 10px; padding: 4px 0; margin: 0; }
.iptq-toast li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.iptq-toast li small { color: var(--q-mute); flex: none; }
.iptq-toast li em { color: var(--q-red); font-style: normal; }
.iptq-toast .iptq-bar { height: 5px; background: #e2e6eb; margin: 0 14px 14px; border-radius: 3px; overflow: hidden; }
.iptq-toast .iptq-bar i { display: block; height: 100%; background: #1e88e5; transition: width .2s; }
.iptq-toast .iptq-bar.is-err i { background: var(--q-warn); }

.iptq .iptq-spin { width: 24px; height: 24px; border: 3px solid #d7dce2; border-top-color: var(--q-red); border-radius: 50%; animation: iptq-spin 0.8s linear infinite; }
@keyframes iptq-spin { to { transform: rotate(360deg); } }
html.iptq-noscroll { overflow: hidden; }

/* responsive */
@media (max-width: 1200px) {
  .iptq .iptq-layout { grid-template-columns: 1fr; }
  .iptq .iptq-side { position: static; }
}
@media (max-width: 900px) {
  .iptq .iptq-start { padding: 26px 20px 30px; }
  .iptq .iptq-start > h2 { font-size: 26px; }
  .iptq .iptq-sub { font-size: 17px; }
  .iptq .iptq-steps { grid-template-columns: 1fr; gap: 12px; margin-top: 36px; }
  .iptq .iptq-grid { grid-template-columns: 1fr 1fr; }
  .iptq .iptq-part { padding: 18px; }
  .iptq .iptq-mbody { padding: 20px; }
  .iptq .iptq-mcols { font-size: 18px; margin-bottom: 16px; }
  .iptq .iptq-btn.is-wide { min-width: 0; width: 100%; }
}
@media (max-width: 560px) {
  .iptq .iptq-grid, .iptq .iptq-grid2, .iptq .iptq-two { grid-template-columns: 1fr; gap: 10px; }
  .iptq .iptq-mcols, .iptq .iptq-mrow { grid-template-columns: 1fr 1fr 26px; gap: 8px; }
  .iptq .iptq-add { padding: 8px 10px; font-size: 14px; }
  .iptq .iptq-chip { padding: 8px 10px; font-size: 14px; }
  .iptq .iptq-bar-head { padding: 16px; flex-wrap: wrap; }
}
