/* RFQ page checkout-like skin (scoped) */
#rfqform.checkout .gpls_woo_rfq_request_page {
  max-width: 1200px;
  margin: 0 auto;
}

#rfqform.checkout *,
#rfqform.checkout *::before,
#rfqform.checkout *::after {
  box-sizing: border-box;
}

#rfqform.checkout .e-checkout__container {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

#rfqform.checkout .e-checkout__column {
  flex: 1 1 0;
  min-width: 0;
}

#rfqform.checkout .e-checkout__column-end {
  flex: 0 0 420px;
}

@media (max-width: 1024px) {
  #rfqform.checkout .e-checkout__container {
    flex-direction: column;
  }

  #rfqform.checkout .e-checkout__column-end {
    flex: 1 1 auto;
  }
}

#rfqform.checkout .e-checkout__order_review,
#rfqform.checkout .rfq_shop_table_customer_info_div {
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.02);
  position: relative;
  z-index: 0;
  margin-bottom: 24px;
}

#rfqform.checkout .gpls_woo_rfq_request_cart,
#rfqform.checkout .rfq_shop_table_customer_info_div {
  float: none;
  width: 100%;
  clear: both;
}

#rfqform.checkout .e-checkout__order_review h3,
#rfqform.checkout .rfq_shop_table_customer_info_div h1,
#rfqform.checkout .rfq_shop_table_customer_info_div h3 {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 600;
}

#rfqform.checkout .rfq_shop_table_customer_info_div textarea,
#rfqform.checkout .rfq_shop_table_customer_info_div input,
#rfqform.checkout .rfq_shop_table_customer_info_div select {
  width: 100%;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  padding: 10px 12px;
  background: #fff;
  font-size: 14px;
}

#rfqform.checkout .update-rfq-cart.button,
#rfqform.checkout .gpls-woo-rfq_checkout_button.button {
  border-radius: 6px;
  padding: 10px 16px;
}

/* Div-based review table */
#rfqform.checkout .rfq-review-table {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#rfqform.checkout .rfq-review-header {
  display: grid;
  grid-template-columns: 1fr 110px;
  gap: 12px;
  font-weight: 600;
  font-size: 13px;
  color: #666;
  border-bottom: 1px solid #f0f0f0;
  padding-bottom: 8px;
}

#rfqform.checkout .rfq-review-header .product-quantity {
  text-align: right;
}

#rfqform.checkout .rfq-review-table .cart_item {
  display: grid;
  grid-template-columns: 22px 70px 1fr 110px;
  gap: 12px;
  align-items: start;
  border-bottom: 1px solid #f5f5f5;
  padding-bottom: 12px;
}

#rfqform.checkout .rfq-review-table .cart_item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

#rfqform.checkout .rfq-review-table .product-remove .remove {
  color: #b11;
  text-decoration: none;
  font-size: 18px;
  line-height: 1;
}

#rfqform.checkout .rfq-review-table .product-thumbnail img {
  max-width: 64px;
  height: auto;
  border-radius: 6px;
}

#rfqform.checkout .rfq-review-table .product-name {
  font-size: 14px;
}

#rfqform.checkout .rfq-review-table .product-name a {
  text-decoration: none;
}

#rfqform.checkout .rfq-review-table .product-quantity {
  text-align: right;
}

#rfqform.checkout .rfq-review-table .quantity input[type="number"] {
  max-width: 70px;
}

#rfqform.checkout .rfq-review-table .actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
}

@media (max-width: 767px) {
  #rfqform.checkout .rfq-review-header {
    grid-template-columns: 1fr 90px;
  }

  #rfqform.checkout .rfq-review-table .cart_item {
    grid-template-columns: 22px 52px 1fr;
  }

  #rfqform.checkout .rfq-review-table .product-quantity {
    grid-column: 1 / -1;
    text-align: left;
  }
}
