/* PrecisionsPeptides.com — checkout parity with peptides.com */

.woocommerce-checkout .site-main .container {
  max-width: 100%;
  padding-left: 0;
  padding-right: 0;
}

@media (min-width: 769px) {
  .woocommerce-checkout .site-main .container {
    padding-right: 0;
  }
}

@media (max-width: 768px) {
  .woocommerce-checkout .site-main .container {
    padding-left: 20px;
    padding-right: 20px;
  }
}

.woocommerce-checkout .page__section {
  padding-top: 40px;
  padding-bottom: 0;
}

.woocommerce-checkout .wp-block-woocommerce-checkout {
  container-type: inline-size;
  width: 100%;
}

.woocommerce-checkout .wc-block-components-sidebar-layout {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  margin: 0 auto 16px;
  position: relative;
}

@media (min-width: 769px) {
  .woocommerce-checkout .wc-block-components-sidebar-layout .wc-block-components-main {
    box-sizing: border-box;
    flex: 1 1 62%;
    max-width: 62%;
    width: 62%;
    margin: 0;
    padding-right: 20px;
  }

  .woocommerce-checkout .wc-block-components-sidebar-layout .wc-block-components-sidebar {
    box-sizing: border-box;
    flex: 1 1 38%;
    max-width: 38%;
    width: 38%;
    margin: 0;
    padding-left: 0;
  }

  .woocommerce-checkout .wc-block-components-sidebar {
    position: relative;
    top: -40px;
  }
}

@media (max-width: 768px) {
  .woocommerce-checkout .wc-block-components-sidebar-layout {
    flex-direction: column-reverse !important;
    margin-bottom: 0;
  }

  .woocommerce-checkout .wc-block-components-sidebar-layout .wc-block-components-main,
  .woocommerce-checkout .wc-block-components-sidebar-layout .wc-block-components-sidebar {
    width: 100%;
    max-width: 100%;
    padding: 0;
  }

  .woocommerce-checkout .wc-block-components-sidebar {
    top: 0;
  }
}

.woocommerce-checkout .wp-block-woocommerce-checkout-order-summary-block {
  border-radius: 0;
  background-color: #c7d6d4;
  border: none;
  padding: 32px 40px;
}

@media (max-width: 768px) {
  .woocommerce-checkout .wp-block-woocommerce-checkout-order-summary-block {
    padding: 24px 20px;
  }
}

.woocommerce-checkout .wc-block-components-address-form__address-line-two-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

@media (max-width: 768px) {
  .woocommerce-checkout .wc-block-components-address-form__address-line-two-columns {
    grid-template-columns: 1fr;
  }
}

.woocommerce-checkout .wc-block-card-elements.wc-block-nmi-gateway-container {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.woocommerce-checkout .wc-block-card-elements.wc-block-nmi-gateway-container .wc-card-number-element {
  flex: 0 0 100%;
}

.woocommerce-checkout .wc-block-card-elements.wc-block-nmi-gateway-container .wc-card-expiry-element,
.woocommerce-checkout .wc-block-card-elements.wc-block-nmi-gateway-container .wc-card-cvc-element {
  flex: 1 1 0;
  min-width: 0;
}

.woocommerce-checkout .wc-block-components-payment-method-icons {
  justify-content: flex-start;
  margin: 8px 0 0;
}

.woocommerce-checkout .route-insurance.wc-block-components-checkbox {
  margin-top: 0;
  margin-bottom: 20px;
}

.woocommerce-checkout .wc-block-components-sidebar .wp-block-woocommerce-checkout-order-summary-coupon-form-block {
  border: 1px solid rgba(26, 122, 109, 0.2);
  background: #fff;
  margin-top: 1px;
  margin-bottom: 32px;
  border-radius: 1000px;
  padding-top: 0;
  padding-bottom: 0;
}

.woocommerce-checkout .wc-block-components-sidebar .wp-block-woocommerce-checkout-order-summary-coupon-form-block .wc-block-components-panel__button {
  color: #5c6170;
  font-family: "Source Serif 4", serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  padding: 12px 44px 12px 12px !important;
  margin-bottom: 0;
  width: 100%;
  text-align: left;
  position: relative;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.woocommerce-checkout .wc-block-components-panel__button-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  fill: #a0a0a0;
  width: 16px;
  height: 16px;
}

.woocommerce-checkout .wc-block-components-address-form__peptides-business-name,
.woocommerce-checkout .wc-block-components-select-input-peptides-business-type {
  margin-bottom: 16px;
}

.woocommerce-checkout #order-peptides-business-name,
.woocommerce-checkout #order-peptides-business-type {
  height: 40px;
  min-height: 40px;
  font-size: 12px;
  line-height: 16px;
}

.woocommerce-checkout .wc-block-components-address-form__peptides-business-name label,
.woocommerce-checkout .wc-block-components-select-input-peptides-business-type label {
  font-size: 12px !important;
  font-weight: 400 !important;
  line-height: 16px !important;
}

@media (max-width: 767px) {
  .woocommerce-checkout #order-peptides-business-name,
  .woocommerce-checkout #order-peptides-business-type {
    font-size: 16px;
    line-height: 1.4;
    min-height: 44px;
  }

  .woocommerce-checkout .wc-block-components-address-form__peptides-business-name label,
  .woocommerce-checkout .wc-block-components-select-input-peptides-business-type label {
    font-size: 14px !important;
    line-height: 1.4 !important;
  }
}

.woocommerce-checkout .wc-block-checkout__actions .button,
.woocommerce-checkout #place_order {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 52px !important;
  min-height: 52px;
  padding: 0 32px;
  border-radius: 1000px !important;
  box-sizing: border-box;
  font-family: "Source Serif 4", serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  text-align: center;
}

.woocommerce-checkout .pp-checkout-return-cart {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  padding: 0 32px;
  border: 1px solid #1a7a6d;
  border-radius: 1000px;
  background: transparent;
  box-sizing: border-box;
  font-family: "Source Serif 4", serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  text-decoration: none;
}

.woocommerce-checkout .header-cart {
  pointer-events: none;
}

.woocommerce-checkout .wc-block-components-checkbox .wc-block-components-checkbox__input {
  accent-color: #1a7a6d;
}

.woocommerce-checkout .wc-block-components-text-input.has-error input,
.woocommerce-checkout .wc-block-components-text-input.has-error select {
  color: #ec5b48 !important;
  border-color: #ec5b48 !important;
  background-color: rgba(236, 91, 72, 0.1) !important;
}

.woocommerce-checkout .wc-block-components-text-input .pp-field-error {
  order: 3;
  color: #ec5b48;
  font-size: 13px;
  line-height: 1.3;
  margin-top: 6px;
}
