/**
 * Mini-panier Elementor — drawer header Cubner
 */
.elementor-widget-woocommerce-menu-cart .elementor-menu-cart__container {
  background: rgb(0 55 94 / 45%);
}

.elementor-widget-woocommerce-menu-cart .elementor-menu-cart__main {
  display: flex;
  flex-direction: column;
  width: min(420px, 100vw);
  max-width: 420px;
  height: 100%;
  margin-left: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: var(--cubner-color-white, #fff);
  box-shadow: -8px 0 32px rgb(0 0 0 / 8%);
  font-family: var(--cubner-font-family, "Switzer", Arial, sans-serif);
  color: var(--cubner-text-primary, #1c1c1b);
}

.elementor-widget-woocommerce-menu-cart .elementor-menu-cart__close-button {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  width: 44px;
  height: 44px;
  margin: 0;
  border: 0;
  border-radius: 50%;
  background: var(--cubner-color-neutral-025, #fbfbfd);
  cursor: pointer;
}

.elementor-widget-woocommerce-menu-cart .elementor-menu-cart__close-button::before,
.elementor-widget-woocommerce-menu-cart .elementor-menu-cart__close-button::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 2px;
  border-radius: 1px;
  background: var(--cubner-color-brand-blue, #00518c);
}

.elementor-widget-woocommerce-menu-cart .elementor-menu-cart__close-button::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.elementor-widget-woocommerce-menu-cart .elementor-menu-cart__close-button::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.elementor-widget-woocommerce-menu-cart .widget_shopping_cart_content {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
  padding: 24px 24px 28px;
  overflow: hidden;
}

.cubner-mini-cart__header {
  padding: 4px 44px 20px 0;
  border-bottom: 1px solid var(--cubner-border-blog, #e0e8ed);
}

.cubner-mini-cart__title {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  line-height: 28px;
  color: var(--cubner-color-brand-black, #1c1c1b);
}

.cubner-mini-cart__empty {
  margin: 32px 0 0;
  font-size: 16px;
  line-height: 24px;
  text-align: center;
  color: var(--cubner-text-secondary, #616161);
}

.cubner-mini-cart__products {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0;
  min-height: 0;
  margin: 0;
  padding: 8px 0 0;
  overflow-y: auto;
  list-style: none;
}

.cubner-mini-cart__product,
.elementor-widget-woocommerce-menu-cart .cubner-mini-cart__product.elementor-menu-cart__product {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 44px;
  grid-template-rows: auto;
  gap: 12px;
  align-items: center;
  padding: 16px 0;
  padding-inline-end: 0;
  border-bottom: 1px solid var(--cubner-border-blog, #e0e8ed);
}

.cubner-mini-cart__product-image,
.elementor-widget-woocommerce-menu-cart .cubner-mini-cart__product-image {
  grid-row: auto;
  width: 72px;
}

.cubner-mini-cart__product-image img,
.cubner-mini-cart__img {
  display: block;
  width: 72px;
  height: 56px;
  object-fit: cover;
  border-radius: var(--cubner-radius-shop);
}

.cubner-mini-cart__product-image img.woocommerce-placeholder,
.cubner-mini-cart__img.woocommerce-placeholder {
  object-fit: contain;
  background: var(--cubner-color-neutral-050, #f5f6f9);
}

.cubner-mini-cart__product-body {
  min-width: 0;
}

.cubner-mini-cart__product-name,
.cubner-mini-cart__product-name a {
  font-size: 15px;
  font-weight: 600;
  line-height: 21px;
  color: var(--cubner-color-brand-black, #1c1c1b);
  text-decoration: none;
}

.cubner-mini-cart__product-name a:hover {
  color: var(--cubner-color-brand-blue, #00518c);
}

.cubner-mini-cart__meta {
  margin: 6px 0 0;
  font-size: 12px;
  font-weight: 400;
  line-height: 17px;
  color: var(--cubner-text-secondary, #616161);
}

.cubner-mini-cart__product-price,
.cubner-mini-cart__product-price .amount {
  margin-top: 8px;
  font-size: 15px;
  font-weight: 700;
  line-height: 21px;
  color: var(--cubner-color-brand-blue, #00518c);
}

.cubner-mini-cart__product-price .cubner-price-period {
  white-space: nowrap;
}

.cubner-mini-cart__product-price .product-quantity {
  font-weight: 400;
  color: var(--cubner-text-secondary, #616161);
}

.cubner-mini-cart__remove,
.elementor-widget-woocommerce-menu-cart .cubner-mini-cart__remove.elementor-menu-cart__product-remove,
.elementor-widget-woocommerce-menu-cart:not(.elementor-menu-cart--show-remove-button-yes) .cubner-mini-cart__remove {
  position: static !important;
  inset: auto !important;
  top: auto !important;
  bottom: auto !important;
  right: auto !important;
  left: auto !important;
  transform: none !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 44px !important;
  height: 44px !important;
  border: 0 !important;
  border-radius: 0 !important;
  overflow: visible !important;
  color: transparent !important;
}

.cubner-mini-cart__remove::before,
.cubner-mini-cart__remove::after,
.elementor-widget-woocommerce-menu-cart .cubner-mini-cart__remove::before,
.elementor-widget-woocommerce-menu-cart .cubner-mini-cart__remove::after {
  content: none !important;
  display: none !important;
}

.cubner-mini-cart__remove-link,
.elementor-widget-woocommerce-menu-cart .cubner-mini-cart__remove > a,
.elementor-widget-woocommerce-menu-cart .cubner-mini-cart__remove > a.remove_from_cart_button,
.elementor-widget-woocommerce-menu-cart .cubner-mini-cart__remove > a.elementor_remove_from_cart_button {
  display: flex !important;
  position: static !important;
  align-items: center;
  justify-content: center;
  width: 44px !important;
  height: 44px !important;
  opacity: 1 !important;
  overflow: visible !important;
  border-radius: 0;
  color: transparent !important;
  font-size: 0 !important;
  line-height: 0 !important;
  text-decoration: none !important;
  background-color: transparent;
  background-image: url("../assets/cart-figma/icon-trash.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 14px 14px;
}

.cubner-mini-cart__remove-link span,
.cubner-mini-cart__remove-link::before,
.cubner-mini-cart__remove-link::after {
  display: none !important;
}

.cubner-mini-cart__remove-link img {
  display: block;
  width: 14px;
  height: 14px;
}

.cubner-mini-cart__remove-link:hover {
  background-color: var(--cubner-color-neutral-025, #fbfbfd);
  background-image: url("../assets/cart-figma/icon-trash.svg");
}

.cubner-mini-cart__subtotal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 20px 0 0;
  padding: 16px 0 0;
  border-top: 1px solid var(--cubner-border-blog, #e0e8ed);
  font-size: 16px;
  line-height: 22px;
}

.cubner-mini-cart__subtotal-label {
  font-weight: 600;
  color: var(--cubner-color-brand-black, #1c1c1b);
}

.cubner-mini-cart__subtotal-value,
.cubner-mini-cart__subtotal-value .amount {
  font-size: 18px;
  font-weight: 700;
  color: var(--cubner-color-brand-blue, #00518c);
}

.cubner-mini-cart__footer {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}

.elementor-widget-woocommerce-menu-cart .elementor-menu-cart__footer-buttons {
  display: flex !important;
  flex-direction: column !important;
  grid-template-columns: none !important;
  gap: 10px !important;
  margin-top: 16px !important;
  font-size: 16px !important;
}

.elementor-widget-woocommerce-menu-cart .elementor-menu-cart__footer-buttons .elementor-button {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100% !important;
  min-height: 44px;
  height: auto !important;
  padding: 10px 16px !important;
  border-radius: var(--cubner-radius-button);
  font-family: var(--cubner-font-family, "Switzer", Arial, sans-serif);
  font-size: 16px !important;
  font-weight: 600 !important;
  line-height: 22px;
  text-decoration: none;
  white-space: normal;
}

.elementor-widget-woocommerce-menu-cart .elementor-menu-cart__footer-buttons .elementor-button-text {
  display: inline !important;
  opacity: 1 !important;
  color: inherit !important;
  -webkit-text-fill-color: currentcolor !important;
  font: inherit !important;
  line-height: inherit !important;
}

.cubner-mini-cart__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: var(--cubner-radius-button);
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  line-height: 22px;
  text-align: center;
  text-decoration: none;
  white-space: normal;
}

.cubner-mini-cart__btn--secondary,
.elementor-widget-woocommerce-menu-cart .elementor-menu-cart__footer-buttons .elementor-button--view-cart {
  border: 1px solid var(--cubner-color-brand-blue, #00518c) !important;
  background: var(--cubner-color-white, #fff) !important;
  color: var(--cubner-color-brand-blue, #00518c) !important;
}

.cubner-mini-cart__btn--secondary:hover,
.elementor-widget-woocommerce-menu-cart .elementor-menu-cart__footer-buttons .elementor-button--view-cart:hover {
  background: var(--cubner-color-blue-050, #eaf6ff) !important;
  color: var(--cubner-color-brand-blue, #00518c) !important;
}

.cubner-mini-cart__btn--secondary .elementor-button-text,
.elementor-widget-woocommerce-menu-cart .elementor-menu-cart__footer-buttons .elementor-button--view-cart .elementor-button-text {
  color: var(--cubner-color-brand-blue, #00518c) !important;
  -webkit-text-fill-color: var(--cubner-color-brand-blue, #00518c) !important;
}

.cubner-mini-cart__btn--primary,
.elementor-widget-woocommerce-menu-cart .elementor-menu-cart__footer-buttons .elementor-button--checkout {
  border: 0 !important;
  background: var(--cubner-color-brand-orange, #f49b27) !important;
  color: var(--cubner-color-white, #fff) !important;
}

.cubner-mini-cart__btn--primary:hover,
.elementor-widget-woocommerce-menu-cart .elementor-menu-cart__footer-buttons .elementor-button--checkout:hover {
  filter: brightness(0.92);
  background: var(--cubner-color-brand-orange, #f49b27) !important;
  color: var(--cubner-color-white, #fff) !important;
}

.cubner-mini-cart__btn--primary .elementor-button-text,
.elementor-widget-woocommerce-menu-cart .elementor-menu-cart__footer-buttons .elementor-button--checkout .elementor-button-text {
  color: var(--cubner-color-white, #fff) !important;
  -webkit-text-fill-color: var(--cubner-color-white, #fff) !important;
}

@media (max-width: 767px) {
  .elementor-widget-woocommerce-menu-cart .elementor-menu-cart__main {
    width: 100vw;
    max-width: none;
  }
}
