/***** mini cart styles *****/
.wc-block-mini-cart__template-part .wc-block-cart-items__row:first-child {
  border-top: 1px solid #e0e0e1;
}
.wc-block-mini-cart__template-part .wc-block-cart-items__row {
  border-bottom: 1px solid #e0e0e1;
}
.wc-block-mini-cart__template-part
  .wp-block-woocommerce-mini-cart-title-block.wc-block-mini-cart__title {
  font-size: 22px !important;
}
.wc-block-mini-cart__template-part .wc-block-components-product-name {
  padding-right: 10px;
}
.wc-block-mini-cart__template-part .wc-block-components-product-name,
.wc-block-mini-cart__template-part .wc-block-components-product-price {
  font-size: 14px !important;
  font-weight: 500;
}
.wc-block-mini-cart__template-part .wc-block-components-product-metadata {
  display: none;
}
.wc-block-mini-cart__template-part .wc-block-cart-item__quantity {
  display: flex;
  gap: 10px;
}
.wc-block-mini-cart__template-part
  .wc-block-cart-item__quantity
  .wc-block-components-quantity-selector {
  margin-bottom: 0px !important;
}
.wc-block-mini-cart__template-part
  .wc-block-cart-item__quantity
  .wc-block-components-quantity-selector
  .wc-block-components-quantity-selector__input {
  font-size: 12px;
}
.wc-block-mini-cart__template-part .wc-block-mini-cart__footer {
  border-top: 1px solid #e0e0e1;
}
.wc-block-mini-cart__template-part .wc-block-mini-cart__footer:after {
  display: none;
}
.wc-block-mini-cart__template-part
  .wp-block-woocommerce-mini-cart-checkout-button-block {
  border-radius: 15px;
}

/***** cart and checkout styles *****/
body.woocommerce-checkout .site-content {
  background-color: var(--lightGrey);
  padding-top: 30px;
}
body.woocommerce-checkout .breadcrumb {
  display: none;
}
body.woocommerce-checkout .site-content input[type="text"],
body.woocommerce-checkout .site-content input[type="tel"],
body.woocommerce-checkout .site-content input[type="email"],
body.woocommerce-checkout .site-content textarea,
body.woocommerce-checkout .site-content select {
  background-color: #ffffff;
  border: 1px solid var(--mediumGrey);
  box-shadow: none;
}
.shop_table.woocommerce-checkout-review-order-table,
#payment,
#customer_details {
  background: #ffffff;
  margin-bottom: 30px !important;
  box-shadow: 0px 5px 10px 0px rgb(180 180 180 / 20%);
}
#payment,
#customer_details {
  padding: 30px;
}
.shop_table.woocommerce-checkout-review-order-table {
  padding: 0px 30px 30px 30px;
}
#order_review_heading {
  background: #ffffff;
  padding: 30px 30px 0px 30px;
}
form.svea-checkout.woocommerce-checkout .woocommerce-additional-fields {
  background: #ffffff;
  padding: 30px;
  margin-bottom: 30px !important;
}
.woocommerce-additional-fields h3 {
  display: none;
}
#billing_type_field_container {
  padding-top: 30px;
}
#billing_type_field_container span.title {
  font-weight: 600;
}
#billing_type_field_container #billing_type {
  padding: 10px;
}
form.checkout.woocommerce-checkout,
form.svea-checkout.woocommerce-checkout {
  display: flex !important;
  flex-direction: column;
  background: var(--lightGrey) !important;
}
form.checkout.woocommerce-checkout h3,
form.svea-checkout.woocommerce-checkout h3 {
  font-weight: 600;
}
h3#ship-to-different-address {
  font-size: 16px;
  padding-bottom: 30px;
}
#order_review_heading {
  order: 1;
}
#order_review {
  order: 2;
  background-color: var(--lightGrey) !important;
}
#customer_details {
  order: 3;
}
#customer_details,
#order_review_heading,
#order_review {
  width: 100% !important;
}
.woocommerce-shipping-totals.shipping td,
.woocommerce-shipping-totals.shipping th {
  border: none !important;
  padding: 30px 0px 0px 0px !important;
}
.woocommerce-shipping-totals.shipping td {
  background: #ffffff;
  padding: 0px !important;
}
ul.woocommerce-shipping-methods li {
  border: 1px solid var(--mediumGrey);
  margin-bottom: -1px !important;
}
ul.woocommerce-shipping-methods li input {
  display: none;
}
ul.woocommerce-shipping-methods li label {
  display: block;
  padding: 1.41575em;
  cursor: pointer;
}
ul.woocommerce-shipping-methods li label::before {
  content: "\f111";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  margin-right: 13px;
}
ul.woocommerce-shipping-methods
  li
  > input[type="radio"]:first-child:checked
  + label::before,
ul.woocommerce-shipping-methods
  li
  > input[type="hidden"]:first-child
  + label::before {
  color: var(--primary);
  content: "\f192";
}
.ship-desc,
.pay-desc {
  padding-left: 32px;
  font-size: 14px;
  padding-bottom: 20px;
  line-height: 18px;
}
#payment .payment_methods > .wc_payment_method > label {
  padding: 0px 1.41575em 0px 1.41575em;
}
.payment_box.payment_method_swish {
  display: none !important;
}
.order-country-wrapper {
  padding: 20px 0px 0px 0px;
}
#sco-change-payment {
  text-align: center;
}
.wp-block-woocommerce-mini-cart-cart-button-block.wc-block-mini-cart__footer-cart {
  display: none !important;
}
h2.wp-block-woocommerce-mini-cart-title-block.wc-block-mini-cart__title {
  font-size: 2em !important;
  padding-top: 0px !important;
}
.woocommerce-checkout-review-order table:not(.has-background) th {
  background: transparent;
  border-bottom: 1px solid var(--mediumGrey);
}
.cart_item .product-name,
.cart_item .product-total {
  background: transparent !important;
  border-bottom: 1px solid var(--mediumGrey);
  vertical-align: middle;
}
.cart_item .product-name {
  display: flex;
  width: 100% !important;
  min-width: 100%;
  align-items: center;
}
.cart_item .product-name a {
  display: block;
  align-items: center;
}
.wc-block-components-product-name {
  font-weight: 500;
}
table.woocommerce-checkout-review-order-table th,
table.woocommerce-checkout-review-order-table td {
  padding: 15px 0px !important;
}
table.woocommerce-checkout-review-order-table .product-name.left {
  width: 50% !important;
}
table.woocommerce-checkout-review-order-table .product-total.middle {
  width: 25% !important;
}
table.woocommerce-checkout-review-order-table .product-total.right {
  width: 25% !important;
}
table.woocommerce-checkout-review-order-table .product-name a {
  text-decoration: none;
  font-weight: 500;
  color: var(--black);
}
.cart_item .product-name img {
  object-fit: contain;
  height: 70px;
  width: 70px;
  border: 1px solid var(--mediumGrey);
}
table.woocommerce-checkout-review-order-table .product-name a .cart-sku,
table.woocommerce-checkout-review-order-table .product-name a .cart-skrymmande {
  font-weight: 400;
  color: var(--darkGrey);
  font-size: 14px;
  margin-bottom: 0px;
}
table.woocommerce-checkout-review-order-table .product-name a .cart-skrymmande {
  padding-top: 10px;
}
table.woocommerce-checkout-review-order-table .product-quantity {
  float: right;
  display: flex;
  align-items: center;
}
table.woocommerce-checkout-review-order-table
  .product-quantity
  .custom-quantity {
  display: flex;
  flex-direction: row;
  align-items: center;
  border: 1px solid var(--mediumGrey);
  border-radius: 4px;
}
table.woocommerce-checkout-review-order-table .product-quantity .qty-btn {
  background-color: transparent;
  color: var(--darkGrey);
  padding: 0px 10px;
  cursor: pointer;
  border: none;
  font-size: 16px;
  line-height: 1;
}
table.woocommerce-checkout-review-order-table .cart_item .product-quantity a {
  color: var(--black);
  cursor: pointer;
  text-decoration: none;
}
table.woocommerce-checkout-review-order-table .product-quantity input {
  padding: 0px !important;
  border: none !important;
  background: #ffffff !important;
  font-size: 14px;
  width: 20px;
  box-shadow: none !important;
  font-weight: 600;
  text-align: center;
}
table.woocommerce-checkout-review-order-table
  .product-quantity
  input[type="number"]::-webkit-inner-spin-button,
table.woocommerce-checkout-review-order-table
  .product-quantity
  input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
table.woocommerce-checkout-review-order-table
  .product-quantity
  input[type="number"] {
  -moz-appearance: textfield;
}
table.woocommerce-checkout-review-order-table .product-quantity a.remove {
  display: inline-block;
  margin-left: 15px;
}
table.woocommerce-checkout-review-order-table
  .product-quantity
  a.remove::before {
  content: "\f1f8";
  color: var(--black);
}
tfoot td {
  border-bottom: 1px solid var(--mediumGrey);
}
.woocommerce-billing-fields input,
.woocommerce-shipping-fields input,
.woocommerce-additional-fields textarea {
  box-shadow: none;
  background: #ffffff;
  border-radius: 5px;
}
#billing_orgnr_field .optional,
#billing_orgnr_field .required {
  display: none;
}
.form-row.woocommerce-invalid input.input-text {
  box-shadow: inset 2px 0 0 var(--red);
}
.required {
  color: var(--red);
  text-decoration: none !important;
}
#payment .payment_methods > li:not(.woocommerce-notice),
#payment .payment_methods > li:not(.woocommerce-notice):hover,
#payment .payment_methods > li .payment_box,
#payment .place-order {
  background-color: #ffffff !important;
  border: 1px solid var(--mediumGrey);
  margin-bottom: -1px;
}
#payment .payment_methods li:last-child:not(.woocommerce-notice) {
  border: 1px solid var(--mediumGrey) !important;
}
.checkout_coupon.woocommerce-form-coupon input {
  background: #ffffff;
  box-shadow: none;
  border-radius: 5px;
}
input#place_order {
  border-radius: 15px;
  font-weight: 400;
  font-size: 18px;
  padding: 12px;
}
.form-row.place-order,
.wc-svea-checkout-page-inner .custom-policy-text,
.wc-svea-checkout-page-inner #place_order {
  display: none;
}
.woocommerce-form-coupon-toggle .woocommerce-info {
  background: transparent !important;
  border: 0px;
  padding: 0px;
  margin: 0px;
}
.woocommerce-form-coupon-toggle .woocommerce-info::before {
  display: none;
}
.woocommerce-form-coupon-toggle .woocommerce-info .showcoupon {
  background: transparent !important;
}
.contact-select select {
  padding: 2px 8px;
  color: #444;
  line-height: 28px;
  font-family: var(--fontFamily);
  border-radius: 5px;
}

/***** thank you page & order pay page styles *****/
.woocommerce-order-received .order_details,
.woocommerce-order-received table:not(.has-background) th,
.woocommerce-order-received address,
.woocommerce-order-pay table:not(.has-background) th,
.woocommerce-order-pay .shop_table {
  background: #ffffff;
}
.woocommerce-order-received address {
  padding: 22px;
}

@media only screen and (max-width: 767px) {
  .order-country-wrapper {
    padding: 10px;
  }
  .woocommerce-form-coupon-toggle .woocommerce-info,
  form.checkout.woocommerce-checkout .form-row label,
  form.svea-checkout.woocommerce-checkout .form-row label,
  form.checkout.woocommerce-checkout .form-row .input-text,
  form.svea-checkout.woocommerce-checkout .form-row .input-text,
  form.checkout.woocommerce-checkout .form-row .select2-selection__rendered,
  form.svea-checkout.woocommerce-checkout
    .form-row
    .select2-selection__rendered,
  form.checkout.woocommerce-checkout #ship-to-different-address,
  form.svea-checkout.woocommerce-checkout #ship-to-different-address,
  form.checkout.woocommerce-checkout .custom-policy-text,
  form.svea-checkout.woocommerce-checkout .custom-policy-text {
    font-size: 16px;
  }
  form.checkout.woocommerce-checkout,
  form.svea-checkout.woocommerce-checkout {
    padding: 0px;
  }
  form.checkout.woocommerce-checkout h3#order_review_heading,
  form.svea-checkout.woocommerce-checkout h3#order_review_heading {
    padding: 10px !important;
  }
  form.checkout.woocommerce-checkout h3,
  form.svea-checkout.woocommerce-checkout h3 {
    font-size: 20px;
    padding: 0px !important;
  }
  .woocommerce-checkout-review-order {
    font-size: 14px !important;
    padding: 0px !important;
  }
  table.woocommerce-checkout-review-order-table .product-name.left {
    width: 41% !important;
  }
  table.woocommerce-checkout-review-order-table .product-total.middle {
    width: auto !important;
  }
  table.woocommerce-checkout-review-order-table .product-total.right {
    width: 120px !important;
  }
  .cart_item .product-name,
  .cart_item .product-total {
    vertical-align: top;
  }
  .cart_item .product-name {
    align-items: start;
  }
  table.woocommerce-checkout-review-order-table .product-name a .cart-sku,
  table.woocommerce-checkout-review-order-table
    .product-name
    a
    .cart-skrymmande {
    font-size: 14px;
    margin-bottom: 10px;
  }
  table.woocommerce-checkout-review-order-table .product-quantity {
    float: none;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
  }
  table.woocommerce-checkout-review-order-table
    .product-quantity
    .custom-quantity {
    display: flex;
    flex-direction: row;
    align-items: center;
    width: auto;
    min-width: 90px;
    flex-shrink: 0;
  }
  table.woocommerce-checkout-review-order-table .product-quantity input {
    font-size: 14px;
    padding: 4px !important;
    min-width: 25px;
    max-width: 35px;
  }
  table.woocommerce-checkout-review-order-table .product-quantity .qty-btn {
    font-size: 16px;
    padding: 4px 6px;
  }
  table.woocommerce-checkout-review-order-table .product-quantity a.remove {
    margin-left: 0;
    white-space: nowrap;
    flex-shrink: 0;
  }
  table.shop_table.woocommerce-checkout-review-order-table thead th,
  table.shop_table.woocommerce-checkout-review-order-table td,
  #customer_details {
    padding: 10px;
  }
  .cart_item .product-name img {
    display: none;
  }
  #payment,
  #customer_details {
    padding: 10px;
  }
  #payment .payment_methods > .wc_payment_method > label img {
    max-height: 15px !important;
  }
  .shop_table.woocommerce-checkout-review-order-table {
    padding: 0px 10px 10px 10px;
  }
  h3#order_review_heading {
    margin-bottom: 0px;
  }
  .contact-select select {
    font-size: 14px;
  }
  .ship-desc,
  .pay-desc {
    padding-left: 26px;
    font-size: 14px;
    padding-bottom: 20px;
    line-height: 18px;
  }
  /* Increase font size for product names in cart */
  table.woocommerce-checkout-review-order-table .product-name a {
    font-size: 14px;
  }
  /* Increase font size for prices */
  .woocommerce-Price-amount {
    font-size: 14px;
  }
  /* Increase font size for payment method labels */
  #payment .payment_methods > .wc_payment_method > label {
    font-size: 14px;
  }
  /* Increase font size for headings */
  form.checkout.woocommerce-checkout h3,
  form.svea-checkout.woocommerce-checkout h3 {
    font-size: 18px;
  }
  /* Increase font size for total sum section */
  .custom-total-sum .total-label,
  .custom-total-sum .total-amount {
    font-size: 1.3em;
  }
  .custom-total-sum .tax-info {
    font-size: 1em;
  }
}

/* Custom Total bottom */
.custom-order-total-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0px 0px;
  border-bottom: 1px solid var(--mediumGrey);
  font-size: 16px;
}

.custom-order-total-wrapper p.title {
  font-weight: 600;
}

.custom-policy-text {
  padding-top: 10px;
}
