/* cart-drawer.css (flex layouts updated) */
.cart-drawer {
      display: flex;
  flex-direction: column;
  overflow: hidden;
    
    
  position: fixed;
  top: 0;
  right: -350px;
  width: 350px;
  height: 100%;
  background: #E9F8FF;
  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;
     min-height: 0;
     padding-bottom: 100px;
}

.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 #284755;
  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: 'Recoleta', sans-serif;
  font-size: 24px;
  letter-spacing: -0.03em;
  line-height: 1;
  color: #284755;
  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: #FFFBF6;
  padding: 0;
  border-radius: 25px;
  flex-shrink: 0;
   margin: 0 !important;
}
.cart-item-thumbnail-wrapper img { 
    display: block;
    max-width: 90px !important;
    width: 90px !important;
    border-radius: 25px;
    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: 'Recoleta', sans-serif;
  font-size: 18px;
  letter-spacing: -0.03em;
  line-height: 1;
  color: #284755;
  font-weight: 500 !important;
  text-decoration: none;
}
.cart-item-name a:hover { 
    text-decoration: underline; 
    color: #284755;
}

































/* Footer */
.cart-drawer-footer {
  position: absolute;
  bottom: 0;
  background: #E9F8FF;
  left: 20px;
  right: 20px;
  box-sizing: border-box;
  padding-bottom: 20px;
  
}
.cart-drawer-footer .woocommerce-mini-cart__total.total {
  display: flex;
  border-top: 1px solid #284755;
  justify-content: space-between;
  align-items: center;
  margin: 20px 0;
  padding-top: 20px;
  font-family: 'Recoleta', sans-serif;
  font-size: 20px;
  line-height: 1;
  letter-spacing: -0.03em;
  color: #000;
  font-weight: 600;
}
.cart-drawer-footer .woocommerce-mini-cart__total.total strong { 
    font-size: 16px;
    font-family: 'Recoleta', sans-serif;
    line-height: 1;
      font-weight: 300;
    color: #7B8488;
}
    
    
.cart-drawer-footer .footer-button .button {
  display: block;
  width: 100%;
  padding: 15px 0;
  font-family: 'Recoleta', sans-serif;
  font-size: 18px;
  letter-spacing: -0.03em;
  line-height: 1;
  font-weight: 600;
  text-align: center;
  background-color: #89CFF0;
  color: white;
  border-radius: 50px;

  text-decoration: none;
}
.cart-drawer-footer .footer-button .button:hover { 
    background-color: #89CFF0; 
    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: 'Recoleta', sans-serif;
  font-size: 24px;
  line-height: 1;
  letter-spacing: -0.03em;
  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: 'Recoleta', sans-serif;
  font-size: 18px;
  line-height: 1;
  font-weight: 500;
  letter-spacing: -0.03em;
  background-color: #89CFF0;
  color: white;
  border-radius: 50px;
  text-decoration: none;

}

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






.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: #89CFF0;
  color: #ffffff;
  border-radius: 50%;
  display: none;               /* skjul som default */
  align-items: center;
  justify-content: center;
  font-family: 'Recoleta', sans-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;
}






@media screen and (max-width: 767px) {
  .show-cart-drawer svg {
    width: 18px;
    height: auto;
  }
  
  .show-cart-drawer .cart-count {
  bottom: -6px;
  right: -6px;
  width: 16px;
  height: 16px;
  font-size: 11px;

}
  
}









/* Variantlinjen under produktnavnet */
.cart-item-variation {
  margin-top: 5px;
  font-weight: 300;
  font-family: 'Recoleta', sans-serif;
  font-size: 14px;
  line-height: 1;
  color: #7B8488;

}



















/* Blocks quantity selector styling (samme som den anden webshop) */
.cart-drawer .wc-block-components-quantity-selector {
  display: flex;
  width: 92px;
  align-items: center;
  background: #FFFBF6;
  border-radius: 25px;
  overflow: hidden;
  border: 1px solid #EAE1D7;
  margin: 0;
  font-family: 'Recoleta', sans-serif;
}

.cart-drawer .wc-block-components-quantity-selector::after { content: none !important; border: none !important; }

.cart-drawer .wc-block-components-quantity-selector__button,
.cart-drawer .wc-block-components-quantity-selector__input {
  border: none; background: transparent; margin: 0; padding: 0;
}

.cart-drawer .wc-block-components-quantity-selector__input::-webkit-outer-spin-button,
.cart-drawer .wc-block-components-quantity-selector__input::-webkit-inner-spin-button {
  -webkit-appearance: none; margin: 0;
}

.cart-drawer .wc-block-components-quantity-selector__button {
  flex: 0 0 28px; height: 32px; display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: #284755;
}
.cart-drawer .wc-block-components-quantity-selector__button:focus,
.cart-drawer .wc-block-components-quantity-selector__button:active,
.cart-drawer .wc-block-components-quantity-selector__button:focus-visible {
  background-color: transparent; box-shadow: none; outline: none; color: #284755;
}

.cart-drawer .wc-block-components-quantity-selector__input { 
    -moz-appearance: textfield; 
    border: none !important; 
    flex: 0 0 36px; 
    height: 28px;
    line-height: 1 !important;
    text-align: center; 
    padding: 0 !important; 
    font-size: 16px !important; 
    font-weight: 400 !important; 
    color: #284755 !important; }



.cart-drawer .wc-block-components-quantity-selector__input:focus { 
    outline: none !important; 
    box-shadow: none !important; 
    border: none !important; }

.cart-drawer .wc-block-components-quantity-selector__button:hover { 
    background-color: transparent !important; 
    color: #284755; }

/* Quantity and price side by side under name (samme som den anden) */
.quantity-price-wrapper {
  display: flex; 
  align-items: center; 
  gap: 10px; 
  justify-content: 
  space-between; width: 100%;
  margin-top: 10px;
}


.quantity-price-wrapper .unit-price {
  font-family: 'Recoleta', sans-serif;
  font-weight: 300;
  font-size: 16px; 
  line-height: 1; 
  color: #7B8488; 
}




.cart-drawer-payment-methods{
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  justify-content: center;
  margin-top: 15px;
}

.payment-badge {
    width: 40px;
    height: 24px;
  background: #fff;
  margin: 0;
  box-sizing: border-box;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;

  border-radius: 4px;
  padding: 3px;
  box-shadow: 0 0 0 1px rgba(0,0,0,.05);
}

.payment-badge svg {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
}


