/* Hide elements when cart is empty (not in Elementor editor) */
body.grupoap-cart-empty:not(.elementor-editor-active) #gap-quote-form,
body.grupoap-cart-empty:not(.elementor-editor-active) #gap-cart-actions,
body.grupoap-cart-empty:not(.elementor-editor-active) .grupoap-cotizar {
	display: none !important;
}

/* Hide quote form by default - revealed when user clicks Cotizar (not in Elementor editor) */
body:not(.elementor-editor-active) #gap-quote-form:not(.active) {
	display: none !important;
}

.gap-product-wrapper {
	display: grid;
	grid-template-columns: auto 1fr auto;
  gap: 2em;
  margin-bottom: 2em;
  padding-bottom: 1em;
  border-bottom: 1px solid #505C6C;
}

.gap-product-thumbnail img {
  width: 100%;
  max-width: 200px !important;
}

.gap-description-top {
  display: grid;
  grid-auto-columns: 1fr;
  grid-auto-rows: auto;
  grid-auto-flow: column;
  gap: 1em;
}

.gap-product-name, .gap-product-unit, .gap-product-actions {
	margin-block-start: 1em;
	margin-block-end: 1em;
}

.gap-description-bottom {
	display: grid;
}

.gap-product-name .label, .gap-product-unit .label {
	display: block;
}

.gap-product-actions {
  display: flex;
}

.gap-product-remove a{
  color: #FFFFFF !important;
}

.gap-product-name .label, .gap-product-unit .label, .gap-product-qty .label, .variation dt {
  font-family: "Kursk Light", Sans-serif;
  text-transform: uppercase;
  color: #000000;
}

.variation dd {
  font-family: "Basis Grotesque Arabic Pro Regular", Sans-serif;
  color: #000000;
}

.gap-product-name .value, .gap-product-unit .value, dd.variation-Tipo, dd.variation-Norma {
  font-family: "Basis Grotesque Arabic Pro Regular", Sans-serif;
  color: #AEAEAE;
}

.gap-product-description .variation {
  display: grid;
  grid-auto-rows: auto;
  grid-auto-columns: 1fr;
  grid-auto-flow: column;
  column-gap: 1em;
}

/* Place all <dd> in the second row */
.gap-product-description .variation dd {
  grid-row: 2;
  margin: 0;
}

/* Optional cleanup */
.gap-product-description .variation dt {
  margin: 0;
}

.gap-product-description .variation dd p {
  margin: 0;
}

.gap-product-type .variation > * {
  display: none;
}

.gap-product-type .variation .variation-Norma,
.gap-product-type .variation .variation-Tipo {
  display: revert; /* or block, inline, grid — revert restores natural display */
}

.gap-product-meta .variation .variation-Norma,
.gap-product-meta .variation .variation-Tipo {
  display: none;
}

/* Make quantity input look like plain text */
.quantity input.qty {
  border: none !important;
  background: transparent !important;
  pointer-events: none !important;
  padding: 0 !important;
  width: auto !important;
  -moz-appearance: textfield !important;
  appearance: textfield !important;
  font-size: inherit !important;
  font-family: "Basis Grotesque Arabic Pro Regular", Sans-serif !important;
  color: #AEAEAE !important;
}

.e-cart__column-end{
  display: none;
}

/* Hide number input arrows */
.quantity input.qty::-webkit-outer-spin-button,
.quantity input.qty::-webkit-inner-spin-button {
  -webkit-appearance: none !important;
  margin: 0 !important;
}

@media print {
  .hide-print {
    display: none !important;
  }
  .elementor-location-header, .elementor-location-footer, #gap-quote-header, #gap-quote-form {
    display: none !important;
  }
}

/* PDF generation mode - mirrors @media print for html2canvas capture */
body.printing-pdf .hide-print,
body.printing-pdf .elementor-location-header,
body.printing-pdf .elementor-location-footer,
body.printing-pdf #gap-quote-header,
body.printing-pdf #gap-quote-form,
body.printing-pdf .grupoap-download-pdf,
body.printing-pdf .grupoap-generate-pdf-for-form,
body.printing-pdf .hs-form-frame,
body.printing-pdf [data-form-id] {
  display: none !important;
}
