
/* ------------- */
/* Checkout CSS */
/* ------------- */
:root {
  --borderColour: rgb(222, 218, 215);
  --quantityColour: #f3f5f9;
  --greyColour: #aaa;
  --priceWidth: 130px;
} 
.woocommerce {
  padding: 0 1em;
}

h1 {
  margin-bottom: 1.5rem!important;
}


.sub-header {
  font-weight: bold;
  font-size: 20px;
  margin-bottom: 1em;
}

.sub-sub-header {
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 1em;
}

.checkout {
  position: relative;
}


.checkout-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.7);
  z-index: 1;
}



/* Customer type */
.templ-customer-types-wrapper {
	position: relative;
	display: flex;
	align-items: center;
	max-width: max(350px, 50%);
}

select.templ-customer-types {
  color: black;
}

.templ-customer-types-wrapper::after, .chevron-down {
  display: inline-block;
  width: 12px;
	height: 12px;
	border: solid rgba(0, 0, 0, .3);
	border-width: 0 3px 3px 0;
	transform: rotate(45deg);
	pointer-events: none;
}

.templ-customer-types-wrapper::after {
  content: '';
  position: absolute;
  right: 1.5em;
}

select.templ-customer-types {
	border-color: rgba(0, 0, 0, .2);
	border-radius: 0;
	appearance: none;
}

select.templ-customer-types:focus-visible {
	outline: 1px solid rgba(0, 0, 0, .5);
}
/* ---- */



/* Wrappers */
#kco-wrapper, #briqpay-wrapper {
  padding-top: 20px;
}

.shipping-methods,
#kco-iframe, #briqpay-iframe-wrapper  {
  margin-top: 5rem;
}

#kco-wrapper > * {
  padding: 0;
  width: 100% !important;
}

#kco-order-review, #briqpay-order-review {
  margin-bottom: unset !important;
  padding: 0 !important;
  margin-top: 3em;
}
/* ---- */



/* Woocommerce info (add coupon) */
.woocommerce-info {
  border: none !important;
  background-color: unset !important;
  margin: 0 !important;
  padding: 0 !important;
}

.woocommerce-info::before {
  display: none !important;
}

.woocommerce-info a {
  display: inline-block;
  width: 100%; 
}

.woocommerce-info a .chevron-down {
  margin-left: 1em;
  border-color: black;
  transform: translateY(-3px) rotate(45deg);
}

.showcoupon {
  margin-top: 1em;
  position: relative;
  width: unset!important;
}

/*  */


/* Order table */

.checkout .cart_item>div:not(.flex-wrap),
.checkout .flex-wrap>div:not(.checkout-spacer),
.checkout .cart-footer .cart-contents-total .price,
.checkout .cart-footer .cart-subtotal .price,
.checkout .cart-footer .coupons .cart-discount .coupon-effect {
  padding: 0 12px;
}

/** Cart item */
.checkout .cart_item {
  padding: 1em 0!important;
}

.checkout .cart_item .flex-wrap {
  width: 100%;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.checkout .cart_item .product-img {
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 60px;
  max-width: 60px;
  height: 60px;
  box-sizing: content-box!important;
}

.checkout .cart_item .product-img img {
  max-width: 100%;
  max-height: 100%;
}


.checkout .product-name {
  flex: 1 0;
}

.checkout .cart_item .cart_item-buttons .remove {
  margin-right: 1em;
  font-size: 1rem;
}

.checkout .cart_item .cart_item-buttons .remove:hover {
  background-color: unset!important
}

.checkout .cart_item .cart_item-buttons .fa-trash {
  color: var(--quantityColour);
  filter:brightness(.6);
}

.checkout .cart_item .cart_item-buttons .fa-trash:hover {
  color: black;
}

.checkout .cart_item .cart_item-buttons {
  margin: 0.5em 2em 0.5em auto;
}

.checkout .cart_item,
.checkout .shipping-methods li {
  display: flex;
  padding: 1em 0;
  align-items: center;
}

.checkout .cart_item:not(:last-child),
.checkout .shipping-methods li:not(:last-child) {
  padding: 1.5em 0;
  border-bottom: 2px solid #ccc;
}

.checkout .checkout .cart_item:not(:last-child) {
  border-width: 1px;
}

.cart_item .cart_item-price {
	margin-left: auto!important 
}

.checkout .cart_item-price {
  align-content: center;
}

@media (max-width: 640px) {
  .checkout .cart_item .cart_item-buttons {
    margin-top: 1em;
    margin-left: 0;
    margin-right: 0;
  }

  .cart_item .checkout-spacer {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .checkout .cart_item .product-name {
    font-size: 12px;
    flex-basis: 75px!important;
  }
  
  .checkout .cart-item, .checkout .cart-footer .cart-subtotal,
  .checkout .cart-item, .checkout .cart-footer .cart-contents-total {
    flex-wrap: wrap;
    margin-left: 0;
    width: 100%;
  }
  
  .checkout .cart_item .cart_item-buttons {
    flex-basis: unset;
    justify-content: flex-start;
    padding: 0!important;
  }

  .checkout .cart-footer {
    flex-wrap: wrap;
  }
}


/** Cart footer */

.checkout .shipping-methods li,
.checkout .cart-footer .coupon {
  flex: 1 1;
}

.checkout .cart-footer .coupons {
  width: 100%;
  margin-bottom: 1em;
}

.checkout .cart-footer .coupons .cart-discount {
  display: flex;
}

.checkout .cart-footer .coupons .cart-discount .coupon-effect {
  margin: .5em 0 .5em auto;
  flex: 0 0 var(--priceWidth);
}

.checkout .cart_item-buttons,
.checkout .cart-footer .cart-subtotal,
.checkout .cart-footer .cart-contents-total {
  display: flex;
  margin-left: auto;
  align-items: center;
  justify-content: end;
}

.checkout .cart-footer .cart-subtotal,
.checkout .cart-footer .cart-contents-total {
  font-size: 1.2em;
  width: 100%;
}

.checkout .cart-footer .cart-subtotal-header,
.checkout .cart-footer .cart-contents-total-header {
  flex: 1 1 100px;
}

.checkout .price, .checkout .shipping-methods .amount {
  flex: 0 0 var(--priceWidth);
  padding-left: 12px;
}

.checkout .price {
  display: flex;
  flex-wrap: wrap;
  flex: 0 1 var(--priceWidth);
  padding: 1em 0;
}

.checkout .price del {
  color: var(--greyColour);
  width: 100%;
}

.checkout .price ins {
  width: 100%;
}

.checkout .price .excl-vat {
  width: 100%;
  font-size: .75rem;
  color: var(--greyColour);
  font-weight: 100;
}

.checkout .cart-footer {
  display: flex;
  font-weight: bold;
  margin: 2em 0;
  flex-wrap: wrap;
}


@media (max-width: 350px) {
  .checkout .shipping-cost {
    flex-basis: 50px;
  }

  .checkout .cart-item, .checkout .cart-footer .cart-subtotal,
  .checkout .cart-item, .checkout .cart-footer .cart-contents-total {
    justify-content: unset;
  }
}

/*  Quantity buttons */

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
}

input.qty {
  border: none;
  background-color: transparent;
  padding-left: 0;
  padding-right: 0;
  width: 2em!important;
}

input.qty:focus {
  outline: none;
}

.cart_item-quantity-buttons {
  display: inline-flex;
  align-items: center;
  border: 2px solid var(--quantityColour);
  height: 41px;
  box-sizing: content-box;
}

.cart_item-quantity-buttons button {
  position: relative;
  height: 100%;
  width: 50px;
  outline: none;
  font-family: 'Red Hat Display';
  
  border: none!important;
  font-size: 22px;
  line-height: 1em; 
  outline: none!important;
}

.cart_item-quantity-buttons button,
.cart_item-quantity-buttons button:hover,
.cart_item-quantity-buttons button:focus {
  background-color: var(--quantityColour);
  color: black;
}

.cart_item-quantity-buttons button:disabled {
  color: #999;
}

.cart_item-quantity-buttons .quantity {
  width: 50px;
  text-align: center;
}


.product-quantity {
  color: #999;
  font-size: .8em;
  display: inline-block;
  width: 2em;
  text-align: center;
}


/* Shipping */

.shipping-methods label {
  position: relative;
  padding-left: 3.5em !important;
}

.shipping-methods label::before {
  position: absolute;
  left: 1em;

  content: '';
  border-radius: 50%;
  min-height: 20px;
  max-height: 20px;
  min-width: 20px;
  max-width: 20px;
  border: 1px solid var(--borderColour);
  box-sizing: border-box;
}

.shipping-methods label::before {
  margin-left: 0;
}

.shipping-methods input:checked + label::before, .shipping-methods input[type='hidden'] + label::before {
  border: 7px solid black;
}

.shipping-methods li {
  padding: 2em 0;
  margin: 0 !important;
  font-weight: 100;
  font-size: 16px;
  display: flex;
}

.shipping-methods li .shipping-rate {
  margin-left: auto;
  margin-right: 10%;
}

.shipping-methods input {
  display: none;
}

.shipping-methods label {
  display: flex !important;
  width: 100%;
  cursor: pointer;
}

.shipping-methods .amount {
  margin-left: auto;
}

.shipping-totals bdi {
  font-weight: 100;
}


/* Subscriptions data table styling (ergonemang) */
table.subscription-data th {
  text-align: start;
  padding-left: unset;
}

table.subscription-data th, table.subscription-data td {
  font-family: "Red Hat Display";
  color:black;
  background-color: unset!important;
  border: none!important;
  padding-bottom: unset;
  font-size: 16px;
}

#order_review {
  color: black;
} 

#order_review label {
  color: black!important;
}

table.subscription-data .order-total {
  display: flex;
  width: 100%;
}

table.subscription-data .order-total th {
  flex: 1 1;
}

table.subscription-data .order-total td {
  flex: 0 0 var(--priceWidth);
  padding: 15px 0 0 12px!important;
}

table.subscription-data .order-total .includes_tax {
  color: #aaa;
  font-size: 0.75rem;
}

table.subscription-data .order-total .price {
  font-weight: 700;
}

table.subscription-data .order-total .price .first-payment-date {
  font-weight: 100;
}