/* MAIN Start */
.fr-checkout-alpha {
  /* Customer Details Styling */
  --f-size-label: var(--text-s);
  --f-weight-label: 400;

  /* Input Styling */
  --input-gap: var(--fr-card-gap);
  --input-bg-color: var(--neutral-ultra-light);
  --input-bg-color-hover: var(--neutral-trans-10);
  --input-text-color: var(--text-dark);
  --input-text-color-hover: var(--text-dark);
  --input-placeholder-color: var(--neutral-trans-40);

  /* Order Review Styling */
  --review-bg-color: var(--bg-light);
  --review-text-color: var(--text-dark);
  --review-radius: var(--radius);
  --review-shadow: var(--box-shadow-m);
  --order-gap: var(--fr-card-gap);
  --section-gap: var(--content-gap);
  --product-qty-weight: 400; /* default bold */

  /* Payment Box Styling */
  --pay-box-bg: var(--neutral-light);
  --pay-box-text-color: var(--text-dark);
  --pay-box-radius: var(--radius);

  /* Button Styling */
  --button-color: var(--primary);
  --button-color-hover: var(--primary-hover);
  --button-text: var(--text-light);
  --button-text-hover: var(--text-light);
  --button-font-size: var(--text-m);
  --button-width: 100%;
}
/* MAIN End */

/* Billing/Shipping Fileds Start */
.fr-checkout-alpha__customer-details .woocommerce-billing-fields,
.fr-checkout-alpha__customer-details .woocommerce-additional-fields,
.fr-checkout-alpha__customer-details .col-2 {
  display: flex;
  flex-direction: column;
  gap: var(--input-gap);
  margin: 0 !important;
}

.fr-checkout-alpha__customer-details .woocommerce-shipping-fields,
.fr-checkout-alpha__customer-details .col2-set {
  display: flex;
  flex-direction: column;
  margin: 0 !important;
  gap: var(--section-gap);
}

.fr-checkout-alpha__customer-details .woocommerce-billing-fields__field-wrapper,
.fr-checkout-alpha__customer-details
  .woocommerce-shipping-fields__field-wrapper {
  display: grid;
  grid-template-columns: var(--grid-2);
  grid-template-rows: var(--grid-1);
  gap: var(--input-gap);
}

.fr-checkout-alpha__customer-details p.form-row {
  width: 100% !important;
}

.fr-checkout-alpha__customer-details label {
  font-size: var(--f-size-label);
  font-weight: var(--f-weight-label);
  letter-spacing: 0;
}

.fr-checkout-alpha__customer-details .woocommerce-form__label-for-checkbox {
  font-size: var(--h3) !important;
  font-weight: 700;
  margin: 0 !important;
}

/* ACSS Paragraph Fix */
.fr-checkout-alpha__customer-details
  .woocommerce-billing-fields__field-wrapper
  p,
.fr-checkout-alpha__customer-details
  .woocommerce-shipping-fields__field-wrapper
  p {
  margin-block: 0 !important;
}
.fr-checkout-alpha__customer-details
  .woocommerce-billing-fields__field-wrapper
  p#billing_address_2_field,
.fr-checkout-alpha__customer-details
  .woocommerce-shipping-fields__field-wrapper
  p#shipping_address_2_field {
  margin-block-start: auto !important;
}

/* Input Styling */
.fr-checkout-alpha__customer-details input,
.fr-checkout-alpha__customer-details textarea,
.fr-checkout-alpha__customer-details .select2-container {
  background: var(--input-bg-color);
  padding: calc(var(--btn-pad-y) / 2) calc(var(--btn-pad-x) / 2);
  color: var(--input-text-color);
  border-width: var(--btn-border-size);
  border-radius: var(--btn-radius);
  border-style: solid;
  line-height: var(--btn-line-height);
  font-style: var(--btn-text-style);
  font-size: var(--button-font-size);
  font-weight: var(--btn-weight);
}

.fr-checkout-alpha__customer-details input::placeholder {
  color: var(--input-placeholder-color);
}
.fr-checkout-alpha__customer-details textarea::placeholder {
  color: var(--input-placeholder-color);
}
/* asterisk Styling */
.fr-checkout-alpha__customer-details abbr[title] {
  text-decoration: none !important;
}
/* Billing/Shipping Fileds End*/

/* Order review Start*/

.fr-checkout-alpha__order-review {
  background-color: var(--review-bg-color);
  color: var(--review-text-color);
  border-radius: var(--review-radius);
  height: max-content;
}
.fr-checkout-alpha__order-review #order_review {
  display: flex;
  flex-direction: column;
  border-style: none;
}
/* Allows you to determine the width of the button. */
.fr-checkout-alpha__order-review .place-order {
  align-items: start;
}
/* Button Styling */
.fr-checkout-alpha__order-review .place-order button {
  border-radius: var(--btn-radius);
  min-inline-size: var(--btn-width);
  width: var(--button-width);
  line-height: var(--btn-line-height) !important;
  letter-spacing: var(--btn-letter-spacing);
  text-transform: var(--btn-text-transform);
  text-decoration: var(--btn-text-decoration);
  font-style: var(--btn-text-style);
  font-size: var(--button-font-size) !important;
  font-weight: var(--btn-weight);
  padding: var(--btn-pad-y) var(--btn-pad-x);
}
/* Button Hover Styling */
.fr-checkout-alpha__order-review .place-order button:hover {
  background-color: var(--button-color-hover);
  border-color: var(--button-color-hover);
  color: var(--button-text-hover);
}

/* Order Table */
.fr-checkout-alpha__order-review .woocommerce-checkout-review-order-table th,
.fr-checkout-alpha__order-review .woocommerce-checkout-review-order-table td {
  padding: 0 !important;
}
.fr-checkout-alpha__order-review .woocommerce-checkout-review-order,
.fr-checkout-alpha__order-review .woocommerce-checkout-review-order-table,
.fr-checkout-alpha__order-review .woocommerce-checkout-review-order-table tbody,
.fr-checkout-alpha__order-review
  .woocommerce-checkout-review-order-table
  tfoot {
  display: flex;
  flex-direction: column;
}
.fr-checkout-alpha__order-review .woocommerce-checkout-review-order-table tbody,
.fr-checkout-alpha__order-review
  .woocommerce-checkout-review-order-table
  tfoot {
  gap: var(--order-gap);
}
.fr-checkout-alpha__order-review .woocommerce-checkout-review-order,
.fr-checkout-alpha__order-review .woocommerce-checkout-review-order-table {
  gap: var(--section-gap);
}
.fr-checkout-alpha__order-review .woocommerce-checkout-review-order-table tr {
  display: grid;
  grid-template-columns: var(--grid-3-2);
  grid-template-rows: var(--grid-1);
}
.fr-checkout-alpha__order-review .product-quantity {
  font-weight: var(--product-qty-weight);
}
.fr-checkout-alpha__order-review td.product-name,
.fr-checkout-alpha__order-review td.product-total {
  display: flex;
  flex-direction: column;
  gap: 0.5em;
}
.fr-checkout-alpha__order-review td.product-name img {
  order: -2;
}
.fr-checkout-alpha__order-review td.product-name strong {
  order: -1;
}
.fr-checkout-alpha__order-review #payment,
.fr-checkout-alpha__order-review .place-order {
  display: flex;
  flex-direction: column;
  gap: var(--order-gap);
  padding: 0 !important;
}

.fr-checkout-alpha__order-review .shop_table dl.variation {
  display: block;
  font-size: var(--text-s);
  margin-inline: 0.5em;
}

.fr-checkout-alpha__order-review .shop_table dl.variation dt {
  clear: left;
  float: left;
  font-weight: bold;
  margin-inline-end: 0.5em;
}
.fr-checkout-alpha__order-review .shop_table dl.variation dd {
  margin-inline-start: 0;
}
.fr-checkout-alpha__order-review .shop_table dl.variation dd::after {
  display: block;
  content: "";
  clear: both;
}

.fr-checkout-alpha__order-review .payment_box {
  background-color: var(--pay-box-bg) !important;
  color: var(--pay-box-text-color);
  border-radius: var(--pay-box-radius);
  margin-block: 1em;
  font-size: var(--text-s) !important;
  padding: var(--space-xs) !important;
}
.fr-checkout-alpha__order-review li.woocommerce-notice {
  font-size: var(--text-s) !important;
  text-align: left;
  margin: 0 !important;
  font-size: var(--text-s) !important;
  padding: var(--space-xs) !important;
}
/* Stripe Payment Styling */
.fr-checkout-alpha__order-review .woocommerce-SavedPaymentMethods-saveNew {
  display: flex;
  flex-direction: row;
  gap: 0.5em;
}
.fr-checkout-alpha__order-review
  li.payment_method_woocommerce_payments
  > label {
  height: 3em;
}

/* Order review End*/
