.wg-matrix-print-active .woocommerce div.product .summary > p.price,
.wg-matrix-print-active .woocommerce div.product .summary > span.price {
  display: none !important;
}

.wg-matrix-print-active .woocommerce div.product .summary {
  background: #fff !important;
  color: #223840 !important;
}

.wg-matrix-print {
  width: 100%;
  box-sizing: border-box;
  margin: 16px 0 20px;
  padding: clamp(16px, 2.2vw, 26px);
  background: #fff;
  border: 1px solid #dfe6e8;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(19, 43, 51, .05);
  color: #243c43;
}

.wg-matrix-print * { box-sizing: border-box; }
.wg-matrix-eyebrow {
  display: block;
  margin-bottom: 4px;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--wg-orange, #f58220);
}

.wg-matrix-heading h2 {
  margin: 0 0 7px;
  font-size: clamp(19px, 2.2vw, 25px);
  line-height: 1.18;
  color: #17343c;
}

.wg-matrix-heading p, .wg-matrix-footnote {
  margin: 0;
  color: #60737a;
  font-size: 12px;
  line-height: 1.6;
}

.wg-matrix-fieldset {
  min-width: 0;
  margin: 18px 0 0;
  padding: 0;
  border: 0;
}

.wg-matrix-fieldset legend {
  margin-bottom: 10px;
  padding: 0;
  color: #244049;
  font-size: 13px;
  font-weight: 800;
}

.wg-matrix-batches, .wg-matrix-turnarounds {
  display: grid;
  gap: 9px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.wg-matrix-option {
  position: relative;
  display: block;
  cursor: pointer;
  min-width: 0;
}

.wg-matrix-option input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.wg-matrix-option > span {
  min-height: 51px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 11px 9px;
  background: #f7fafb;
  border: 1.5px solid #dce5e8;
  border-radius: 10px;
  color: #27424b;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
  transition: border-color .15s, box-shadow .15s, background .15s;
}

.wg-matrix-option.is-selected > span,
.wg-matrix-option input:checked + span {
  color: #663587;
  background: #fcf7ff;
  border-color: #8854a6;
  box-shadow: 0 0 0 1px #8854a6;
}

.wg-matrix-option input:focus-visible + span {
  outline: 3px solid rgba(245,130,32,.45);
  outline-offset: 2px;
}

.wg-matrix-turnaround > span {
  min-height: 91px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  justify-content: center;
}

.wg-matrix-turnaround strong { font-size: 12px; color: inherit; }
.wg-matrix-turnaround small { font-size: 10px; font-weight: 600; color: #75878a; }
.wg-matrix-turnaround b { display: block; margin-top: 4px; font-size: 15px; font-weight: 850; color: #1d3840; }
.wg-matrix-turnaround.is-selected b { color: #71358e; }

.wg-matrix-extras-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 18px;
  align-items: start;
}

.wg-matrix-extras { display: grid; gap: 8px; }

.wg-matrix-check {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 10px 11px;
  min-height: 51px;
  background: #fbfcfd;
  border: 1px solid #dfe6e8;
  border-radius: 10px;
}

.wg-matrix-check.is-selected,
.wg-matrix-check:has(input:checked) {
  border-color: #9158ad;
  background: #fcf8ff;
}

.wg-matrix-check input {
  flex: 0 0 auto;
  accent-color: #7b3d98;
  width: 16px;
  height: 16px;
}

.wg-matrix-check span { flex: 1 1 auto; min-width: 0; }
.wg-matrix-check strong { display: block; font-size: 11px; color: #29434b; font-weight: 750; }
.wg-matrix-check small { display: block; font-size: 9px; margin-top: 3px; color: #9a6a21; }
.wg-matrix-check b { font-size: 11px; color: #613580; white-space: nowrap; }

.wg-matrix-total {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 22px;
  padding: 17px;
  background: linear-gradient(135deg, #163c45, #264f58);
  color: #fff;
  border-radius: 13px;
}

.wg-matrix-total > div { display: flex; flex-direction: column; gap: 6px; }
.wg-matrix-total small {
  color: #d1e5e9;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.wg-matrix-total strong { color: #fff; font-size: clamp(20px, 2.5vw, 30px); font-weight: 850; line-height: 1.1; }
.wg-matrix-total span { color: #d8e6e9; font-size: 10px; line-height: 1.5; }
.wg-matrix-footnote { margin-top: 11px; }

.wg-matrix-print-active .woocommerce div.product form.cart .quantity {
  margin-right: 12px;
}

@media (max-width: 860px) {
  .wg-matrix-extras-grid { grid-template-columns: 1fr; gap: 0; }
}

@media (max-width: 600px) {
  .wg-matrix-print { padding: 14px; border-radius: 12px; }
  .wg-matrix-batches { gap: 6px; }
  .wg-matrix-option > span { padding: 10px 5px; font-size: 10px; }
  .wg-matrix-turnarounds { grid-template-columns: 1fr; gap: 7px; }
  .wg-matrix-turnaround > span { min-height: 63px; flex-direction: row; justify-content: space-between; padding: 10px 14px; text-align: left; }
  .wg-matrix-turnaround small { flex: 1; text-align: center; }
  .wg-matrix-turnaround b { font-size: 14px; margin-top: 0; }
  .wg-matrix-total { grid-template-columns: 1fr; }
  .wg-matrix-total strong { font-size: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .wg-matrix-option > span { transition: none; }
}
