/* cart-drawer.css (flex layouts updated) */
.cart-drawer {
  position: fixed;
  top: 0;
  right: -350px;
  width: 350px;
  height: 100%;
  background: #EBEEDD;
  box-shadow: -2px 0 8px rgba(0,0,0,0.1);
  overflow-y: auto;
  transition: right 0.3s ease;
  z-index: 9999;
  box-sizing: border-box;
  padding: 20px;
}

body.cart-drawer-open {
  overflow: hidden;
}

.cart-drawer__content {
  overflow-y: auto;
}

.cart-drawer.open { right: 0; }

.cart-drawer__overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.4);
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s ease;
  z-index: 9998;
}
.cart-drawer__overlay.open { opacity: 1; visibility: visible; }

.cart-drawer__close {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  position: absolute;
  top: 20px; right: 20px;
  z-index: 10;
}

.cart-drawer__close:hover{
    background: none;
}



.mini-cart-header {
  border-bottom: 1px solid #9D9E8F;
  padding-bottom: 0px; /* justér afstand efter behov */
  margin-bottom: 20px;  /* skaber plads til indholdet under */
}

.mini-cart-header p {
  margin: 0 0 20px 0;
  font-family: 'Poppins', serif;
  font-size: 24px;
  letter-spacing: -0.05em;
  line-height: 1;
  color: #000;
  font-weight: 500;
}

.cart-items-wrapper { padding: 0; margin: 0; }
.woocommerce-mini-cart.cart_list { list-style: none; margin: 0; padding: 0; }


.woocommerce-mini-cart-item.mini_cart_item {
    margin:0 !important;
    padding: 0 !important;
}


/* Flex: thumbnail left, details right */
.mini-cart-item-header {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 30px;
}
.cart-item-thumbnail-wrapper {
  background: #ffffff;
  padding: 15px !important;
  border-radius: 25px;
  flex-shrink: 0;
   margin: 0 !important;
}
.cart-item-thumbnail-wrapper img { 
    display: block;
    max-width: 50px !important; 
    width: 50px !important;
    height: auto; 
    margin: 0 !important;
}

.cart-item-details {
  display: flex;
  flex-direction: column;
  flex: 1; /* take remaining width */
}

.cart-item-name a,
.cart-item-name {
  font-family: 'Poppins', serif;
  font-size: 18px;
  letter-spacing: -0.05em;
  line-height: 1;
  color: #000;
  font-weight: 500 !important;
  text-decoration: none;
}
.cart-item-name a:hover { 
    text-decoration: underline; 
    color: #000;
}

































/* Footer */
.cart-drawer-footer {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  box-sizing: border-box;
  padding: 0;
}
.cart-drawer-footer .woocommerce-mini-cart__total.total {
  display: flex;
  border-top: 1px solid #9D9E8F;
  justify-content: space-between;
  align-items: center;
  margin: 20px 0;
  padding-top: 20px;
  font-family: 'Poppins', serif;
  font-size: 20px;
  line-height: 1;
  letter-spacing: -0.05em;
  color: #000;
  font-weight: 600;
}
.cart-drawer-footer .woocommerce-mini-cart__total.total strong { 
    font-size: 16px;
    font-family: 'Poppins', serif;
    line-height: 1;
    font-weight: 400;
    color: #575851;
}
    
    
.cart-drawer-footer .footer-button .button {
  display: block;
  width: 100%;
  padding: 15px 0;
  font-family: 'Poppins', serif;
  font-size: 16px;
  letter-spacing: -0.03em;
  line-height: 1;
  font-weight: 600;
  text-align: center;
  background-color: #095509;
  color: white;
  border-radius: 50px;
  box-shadow: rgba(149,157,165,0.2) 0px 8px 24px;
  text-decoration: none;
}
.cart-drawer-footer .footer-button .button:hover { 
    background-color: #095509; 
    color: white;
}





/* Tom‐kurv‐stil */
.empty-cart-wrapper {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  width: 100%;
}

.empty-cart-wrapper .woocommerce-mini-cart__empty-message {
  margin: 0 0 30px;
  font-family: 'Poppins', serif;
  font-size: 24px;
  line-height: 1;
  letter-spacing: -0.05em;
  color: #000;
  font-weight: 500;
}

.empty-cart-wrapper .woocommerce-mini-cart__empty-button {
  margin: 0;
}

.empty-cart-wrapper .woocommerce-mini-cart__empty-button .button {
  display: inline-block;
  padding: 12px 25px;
  font-family: 'Poppins', serif;
  font-size: 18px;
  line-height: 1;
  font-weight: 500;
  letter-spacing: -0.03em;
  background-color: #095509;
  color: white;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
}

.empty-cart-wrapper .woocommerce-mini-cart__empty-button .button:hover {
  background-color: #095509;
}






.show-cart-drawer {
  position: relative;
  display: inline-flex;
  vertical-align: middle; 
}

/* selve badgen – skjult som default */
.show-cart-drawer .cart-count {
  position: absolute;
  bottom: -6px;
  right: -6px;
  width: 18px;
  height: 18px;
  background-color: #095509;
  color: #ffffff;
  border-radius: 50%;
  display: none;               /* skjul som default */
  align-items: center;
  justify-content: center;
  font-family: 'Poppins', serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 1;
  pointer-events: none;
  z-index: 10;
}

/* når der ER tekst i span’en, vis som flex-cirkel */
.show-cart-drawer .cart-count:not(:empty) {
  display: flex;
}








/* Price + remove icon under name */
.price-remove-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  justify-content: space-between;
  width: 100%;
  margin-top: 10px;
}

.price-remove-wrapper .unit-price {
  font-family: 'Poppins', serif;
  font-size: 18px;
  line-height: 1;
  letter-spacing: -0.03em;
  color: #575851;
  font-weight: 400;
}

/* Remove button (trash) */
.remove-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: 50%;
  color: #4D4C49;
  text-decoration: none;
}

.remove-item:hover {
  background: transparent;
}


