/**
 * @file
 * Styles for the checkout form.
 */

/* Narrow screens */
.layout-region {
  box-sizing: border-box;
}

/* Wide screens */
@media screen and (min-width: 780px), (orientation: landscape) and (min-device-height: 780px) {
  .layout-region-checkout-main,
  .layout-region-checkout-footer {
    float: left; /* LTR */
    box-sizing: border-box;
    width: 65%;
    padding-right: 2em; /* LTR */
  }

  [dir="rtl"] .layout-region-checkout-main,
  [dir="rtl"] .layout-region-checkout-footer {
    float: right;
    padding-right: 0;
    padding-left: 2em;
  }

  .layout-region-checkout-secondary {
    float: right; /* LTR */
    width: 35%;
  }

  [dir="rtl"] .layout-region-checkout-secondary {
    float: left;
  }
}

/**
 * The vertical toolbar mode gets triggered for narrow screens, which throws off
 * the intent of media queries written for the viewport width. When the vertical
 * toolbar is on, we need to suppress layout for the original media width + the
 * toolbar width (240px). In this case, 240px + 780px.
 */
@media screen and (max-width: 1020px) {
  .toolbar-vertical.toolbar-tray-open .layout-region-checkout-main,
  .toolbar-vertical.toolbar-tray-open .layout-region-checkout-footer,
  .toolbar-vertical.toolbar-tray-open .layout-region-checkout-secondary {
    float: none;
    width: auto;
    padding-right: 0;
  }
}

.checkout-review-edit-link::before {
  content: " (";
}

.checkout-review-edit-link::after {
  content: ")";
}

/* BAW-D CHECKOUT LOGIN BUTTONS */
#edit-login-returning-customer input[type="submit"],
#edit-login-register input[type="submit"],
#edit-login-returning-customer button[type="submit"],
#edit-login-register button[type="submit"] {
  appearance: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 46px !important;
  margin: 0 !important;
  padding: 0.7rem 1.35rem !important;
  border: 2px solid #087f8c !important;
  border-radius: 8px !important;
  color: #ffffff !important;
  background: #087f8c !important;
  background-image: none !important;
  box-shadow: none !important;
  text-shadow: none !important;
  font-family: inherit !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  cursor: pointer !important;
}

#edit-login-returning-customer input[type="submit"]:hover,
#edit-login-register input[type="submit"]:hover,
#edit-login-returning-customer button[type="submit"]:hover,
#edit-login-register button[type="submit"]:hover,
#edit-login-returning-customer input[type="submit"]:focus,
#edit-login-register input[type="submit"]:focus,
#edit-login-returning-customer button[type="submit"]:focus,
#edit-login-register button[type="submit"]:focus {
  border-color: #056975 !important;
  background: #056975 !important;
  color: #ffffff !important;
  outline: 3px solid rgba(8, 127, 140, 0.2) !important;
  outline-offset: 2px !important;
}

/* BAW-D CHECKOUT ORDER INFORMATION */
.commerce-checkout-flow {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
}

.checkout-pane-payment-information {
  padding: 1.75rem;
  border: 1px solid #d9e4e7;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 5px 20px rgba(20, 57, 65, 0.07);
}

.checkout-pane-payment-information > legend {
  padding: 0 0.65rem;
  color: #173f47;
  font-size: 1.45rem;
  font-weight: 700;
}

.checkout-pane-payment-information label,
.layout-region-checkout-secondary label {
  color: #213f45;
  font-weight: 700;
}

.checkout-pane-payment-information input[type="text"],
.checkout-pane-payment-information input[type="email"],
.checkout-pane-payment-information input[type="tel"],
.checkout-pane-payment-information select {
  min-height: 44px;
  padding: 0.65rem 0.8rem;
  border: 1px solid #b9cdd1;
  border-radius: 8px;
  background: #ffffff;
  box-sizing: border-box;
}

.checkout-pane-payment-information input:focus,
.checkout-pane-payment-information select:focus {
  border-color: #087f8c;
  outline: 3px solid rgba(8, 127, 140, 0.14);
  outline-offset: 1px;
}

.layout-region-checkout-secondary {
  padding: 1.5rem;
  border: 1px solid #c8dadd;
  border-radius: 14px;
  background: #f7fbfc;
  box-shadow: 0 5px 20px rgba(20, 57, 65, 0.07);
  box-sizing: border-box;
}

#edit-sidebar-coupon-redemption-form-coupon-code {
  width: 100%;
  min-height: 48px;
  margin-top: 0.4rem;
  padding: 0.65rem 0.8rem;
  border: 2px solid #087f8c !important;
  border-radius: 8px;
  background: #fff9df !important;
  box-shadow: 0 0 0 4px rgba(8, 127, 140, 0.08);
  box-sizing: border-box;
}

#edit-sidebar-coupon-redemption-form-coupon-code:focus {
  border-color: #056975 !important;
  outline: 3px solid rgba(8, 127, 140, 0.16);
  outline-offset: 1px;
}

#edit-sidebar-coupon-redemption-form-apply {
  appearance: none !important;
  min-height: 44px !important;
  margin-top: 0.8rem !important;
  padding: 0.65rem 1.2rem !important;
  border: 2px solid #087f8c !important;
  border-radius: 8px !important;
  color: #ffffff !important;
  background: #087f8c !important;
  background-image: none !important;
  box-shadow: none !important;
  font-weight: 700 !important;
  cursor: pointer;
}

#edit-sidebar-coupon-redemption-form-apply:hover,
#edit-sidebar-coupon-redemption-form-apply:focus {
  border-color: #056975 !important;
  background: #056975 !important;
}

.checkout-pane-order-summary {
  margin-top: 1.5rem;
  padding: 1.25rem;
  border: 1px solid #c8dadd;
  border-radius: 12px;
  background: #ffffff;
}

.checkout-pane-order-summary .view-commerce-checkout-order-summary {
  overflow: hidden;
  border: 1px solid #d9e4e7;
  border-radius: 10px;
  background: #ffffff;
}

.checkout-pane-order-summary table {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
  background: #ffffff;
}

.checkout-pane-order-summary th,
.checkout-pane-order-summary td {
  padding: 0.9rem 0.75rem;
  border-bottom: 1px solid #e0e8ea;
  vertical-align: top;
}

.checkout-pane-order-summary tr:last-child th,
.checkout-pane-order-summary tr:last-child td {
  border-bottom: 0;
}

.layout-region-checkout-footer input[type="submit"],
.layout-region-checkout-footer button[type="submit"] {
  appearance: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 46px !important;
  padding: 0.7rem 1.35rem !important;
  border: 2px solid #087f8c !important;
  border-radius: 8px !important;
  color: #ffffff !important;
  background: #087f8c !important;
  background-image: none !important;
  box-shadow: none !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  cursor: pointer;
}

.layout-region-checkout-footer input[type="submit"]:hover,
.layout-region-checkout-footer input[type="submit"]:focus,
.layout-region-checkout-footer button[type="submit"]:hover,
.layout-region-checkout-footer button[type="submit"]:focus {
  border-color: #056975 !important;
  background: #056975 !important;
}

/* BAW-D CHECKOUT COMPLETE */
.checkout-complete {
  max-width: 760px;
  margin: 2rem auto;
  padding: 2.25rem;
  border: 1px solid #c8dadd;
  border-top: 5px solid #087f8c;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 8px 28px rgba(20, 57, 65, 0.09);
  text-align: center;
}

.checkout-complete h1,
.checkout-complete h2 {
  margin: 0 0 0.75rem;
  color: #173f47;
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.2;
}

.checkout-complete p {
  max-width: 620px;
  margin: 0.75rem auto;
  color: #526b70;
  font-size: 1rem;
  line-height: 1.6;
}

.checkout-complete .button,
.checkout-complete a.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  margin: 1rem 0;
  padding: 0.7rem 1.35rem;
  border: 2px solid #087f8c;
  border-radius: 8px;
  color: #ffffff;
  background: #087f8c;
  background-image: none;
  box-shadow: none;
  font-weight: 700;
  text-decoration: none;
}

.checkout-complete .button:hover,
.checkout-complete .button:focus,
.checkout-complete a.button:hover,
.checkout-complete a.button:focus {
  border-color: #056975;
  color: #ffffff;
  background: #056975;
}

.checkout-complete__payment-instructions {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #d9e4e7;
}

@media (max-width: 760px) {
  #edit-login-returning-customer input[type="submit"],
  #edit-login-register input[type="submit"],
  #edit-login-returning-customer button[type="submit"],
  #edit-login-register button[type="submit"],
  #edit-sidebar-coupon-redemption-form-apply,
  .layout-region-checkout-footer input[type="submit"],
  .layout-region-checkout-footer button[type="submit"] {
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .layout-region-checkout-main,
  .layout-region-checkout-footer,
  .layout-region-checkout-secondary {
    float: none;
    width: 100%;
    padding-right: 0;
  }

  .layout-region-checkout-secondary {
    margin-top: 1.25rem;
    padding: 1.25rem;
  }

  .checkout-pane-payment-information {
    padding: 1.25rem;
  }

  .checkout-complete {
    margin: 1rem auto;
    padding: 1.5rem;
  }

  .checkout-complete .button,
  .checkout-complete a.button {
    width: 100%;
    box-sizing: border-box;
  }
}
