/*
Theme Name: Medify Child
Author: WebGeniusLab
Author URI: http://webgeniuslab.net
Description: -
Version: 1.2.6
Template: medify
Text Domain:  medify-child
*/

/*Mini Cart*/
/*Heading*/
.mini-cart__heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0px;
}

.mini-cart__heading h3 {
    line-height: 1;
    color: black;
}

.mini-cart__close {
    position: relative;
    text-shadow: none;
    margin: 0;
    line-height: inherit;
    font: 0/0 serif;
    background: transparent;
    display: inline-block;
    width: 14px;
    height: 14px;
    vertical-align: middle;
    cursor: pointer;
    color: rgba(0,0,0,0.5) !important
}

.mini-cart__close:before,.mini-cart__close:after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    box-sizing: border-box;
    border: 3px solid currentColor
}

.mini-cart__close:before {
    width: 0;
    height: 100%;
    border-radius: 0;
    border-width: .5px;
    left: 50%;
    background-color: currentColor;
    transition: all .3s,background-color 0s linear .3s;
    transform: translateX(-0.5px) rotate(45deg)
}

.mini-cart__close:after {
    border-width: .5px;
    width: 0;
    margin-left: 0;
    margin-top: 0;
    background-color: currentColor;
    transition: all .3s;
    height: 100%;
    left: 50%;
    top: 50%;
    transform: translate(-50%,-50%) rotate(-45deg)
}

.mini-cart__close:hover {
    background: transparent !important;
    color: rgba(0,0,0,0.5) !important
}
/*Content*/
.woo_mini_cart {
  display:flex;
  flex-direction:column;
  padding: 16px !important;
  height:100%;
  padding-top: 0 !important;
}

a.mini-cart_product-name {
  margin-left: 16px;
  color:black;
}

li.woocommerce-mini-cart-item.mini_cart_item {
  display: flex;
  flex-direction: column;
  position: relative;
  border-color: #e1e1e1 !important;
  border: solid 1px;
  border-radius: 12px;
  padding: 8px !important;
  margin-bottom:12px !important;
}

li.woocommerce-mini-cart-item a.remove.remove_from_cart_button {
  left: 12px !important;
  top:8px !important;
  width:12px !important;
  height:12px;
}
a.remove.remove_from_cart_button svg {
    width: 18px;
    height: 18px;
}
a.remove.remove_from_cart_button:before,a.remove.remove_from_cart_button:after{
    display:none;
}

.mini-cart__item-wrapper {
  display: flex;
  flex-direction: row;
  gap:12px;
}

.mini-cart__item-details-wrapper {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.mini-cart__item-details {
  display: block;
  flex-direction: column;
  width: 100% !important;
}

dl.variation {
  position:static !important;
  direction:ltr;
  width: 100% !important;
  padding:8px 0px 0px !important;
  margin:3px 0px 8px!important;
  border:none !important;
  border-top:1px solid #f4f4f4!important;
  border-bottom:1px solid #f4f4f4!important;
  color:black;
  font-size:12px !important;
  float:right;
}

dl.variation dt,dd {
  margin:0 !important;
  padding:0 !important;
}

dl.variation dt{
  margin-right:8px !important;
  margin-bottom:5px!important;
  clear: left !important;
  float: left !important;
}
dl.variation dd{
  float: left !important;
}
.mini-cart__image-wrapper {
    display: flex;
    flex-direction: column;
    gap: 12px;
    justify-content: space-between;
}

img.attachment-woocommerce_thumbnail.size-woocommerce_thumbnail.wgl-woocommerce_thumbnail {
    aspect-ratio: 1/1 !important;
    height: auto;
    margin: 0px;
    min-width: 84px;
}

p.mini-cart__SKU {
    color: black !important;
    font-size: 12px;
}

p.woocommerce-mini-cart__total.total {
  display: flex !important;
  flex-direction: row;
  justify-content: space-between !important;
  align-items: center !important;
  width: 100% !important;
  margin-top: auto !important;
}

p.woocommerce-mini-cart__buttons.buttons {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 12px;
}

p.woocommerce-mini-cart__buttons.buttons a {
  font-size: 14px !important;
}

a.button.checkout.wc-forward {
  margin: unset !important;
}

  .wgl-theme-header .mini-cart.open_cart .woo_mini_cart {
  -webkit-transform: translate(0px) !important;
  -moz-transform: translate(0px) !important;
  -ms-transform: translate(0px) !important;
  -o-transform: translate(0px) !important;
  transform: translate(0px) !important;
  }

@media screen and (max-width:768px){
  .woo_mini_cart {
  width: calc(100% - 40px) !important;
  }
}

@media screen and (max-width:478px){
  img.attachment-woocommerce_thumbnail.size-woocommerce_thumbnail.wgl-woocommerce_thumbnail {
    min-width:70px;
  }
    p.woocommerce-mini-cart__buttons.buttons a {
    font-size: 12px !important;
    }

}


/*Cart Page*/
.woocommerce:has(.woocommerce-cart-form) {
    display: grid;
    width: 100% !important;
    row-gap: 0px;
    grid-template-areas: "notice notice notice"
        "form form ct";
    column-gap: 24px !important;
    justify-content: space-between;
}
.cart-collaterals {
    grid-area: ct;
}
form.woocommerce-cart-form {
    grid-area: form;
}
.woocommerce-notices-wrapper {
    width: 100%;
    flex-shrink: 1;
    grid-area: notice;
}
.cart__heading {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    align-items: center;
    gap: 24px;
    margin-bottom:12px;
}
a.cart__back-to-shop {
    height: 24px;
}

form.woocommerce-cart-form {
    width: 100%;
}

.woocommerce .cart-collaterals, .woocommerce-page .cart-collaterals {
    width: 100% !important;
}

form.woocommerce-cart-form a.remove {
    width: 24px !important;
    height: 24px !important;
    display: flex !important;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    margin:0 auto !important;
}

form.woocommerce-cart-form a.remove svg {
    width: 18px;
    height: 18px;
}

form.woocommerce-cart-form a.remove:before, form.woocommerce-cart-form a.remove:after{
  display:none;
}

.woocommerce table.shop_table td {
    padding-top: 8px !important;
    padding-bottom: 8px !important;
}

.woocommerce table.shop_table td.product-thumbnail {
    padding: 8px 5px 8px 5px !important;
}

.cart__image-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

form.woocommerce-cart-form span.cart__product-sku {
    font-size: 14px;
    line-height:1.32;
}

td.product-name {
    width: 30%;
    min-width: 250px;
    padding-left: 10px !important;
    padding-right: 10px !important;
}

.woocommerce table.shop_table_responsive.cart tr td.product-name .variation, .woocommerce-page table.shop_table_responsive.cart tr td.product-name .variation{
  display:block !important;
}

/*Cart Totals*/
.cart_totals {
    min-width: 270px;
}

.cart_totals td{
    padding: 0 !important;
}

.cart_totals h2 {
    padding: 20px 12px 0px!important;
    line-height: 1 !important;
    font-size:18px !important;
}
.cart_totals h2:after {
    margin-top: 16px !important;
}

.woocommerce-cart .cart-collaterals .cart_totals table {
    padding: 16px 12px!important;
}

tr.cart-subtotal {
    display: flex;
    width: 100%;
}
.woocommerce .cart-collaterals .cart_totals table tbody tr td, .woocommerce-page .cart-collaterals .cart_totals table tbody tr td {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
}

tr:has(.actions) td .coupon {
    margin-top: 24px;
}

button.button[name=update_cart] {
    display:none !important;
}

#add_payment_method .wc-proceed-to-checkout, .woocommerce-cart .wc-proceed-to-checkout, .woocommerce-checkout .wc-proceed-to-checkout {
    padding: 0 12px 20px !important;
}
/*Fix Quantity*/
.woocommerce .quantity-wrapper span.plus:after {
    top: 50% !important;
}
@media screen and (max-width:991px){
  .woocommerce:has(.woocommerce-cart-form){
    display:flex;
    flex-wrap:wrap;
    flex-direction:row;
  }
  .cart-collaterals {
    margin-top: 36px;
  }
  .cart_totals {
    min-width: 100% !important;
  }
  .woocommerce .cart-collaterals, .woocommerce-page .cart-collaterals {
    width: 100% !important;
  }
}
@media screen and (max-width:768px){

  .cart_totals {
    min-width: 100% !important;
  }
  .woocommerce .cart-collaterals, .woocommerce-page .cart-collaterals {
    width: 100% !important;
  }
  tr.woocommerce-cart-form__cart-item.cart_item {
    padding: 0px 12px !important;
  }
  .woocommerce table.shop_table_responsive.cart tr, .woocommerce-page table.shop_table_responsive.cart tr {
    margin-bottom: 12px !important;
  }
  td.product-remove {
    width: 0 !important;
    height: 0 !important;
  }
  .woocommerce table.shop_table_responsive.cart tr td.product-remove a, .woocommerce-page table.shop_table_responsive.cart tr td.product-remove a {
    left: 12px !important;
    right: auto;
    top: 12px !important;
  }
  .woocommerce table.shop_table td.product-thumbnail {
    padding: 0 !important;
  }
  .cart__image-wrapper {
    flex-direction: row;
  }
  td.product-name {
    width: 100%;
    padding-left: 0 !important;
    padding-right: 0 !important;
    justify-content:start !important;
  }
  .woocommerce table.shop_table td::before {
    font-size: 14px !important;
    font-weight: 700 !important;
    margin-left: 8px;
  }
  input#coupon_code {
    margin: 0 !important;
  }
  .woocommerce table.shop_table_responsive.cart tr:last-child, .woocommerce-page table.shop_table_responsive.cart tr:last-child {
    padding: 12px !important;
  }
  .cart__heading {
    z-index: 3;
    position: sticky;
    top: 0;
    background: white;
    width: 100%;
    right: 0;
  }
  tr:has(.actions) td .coupon {
    margin-top: 0px;
  }
}