.header-actions .header-action-label { display: none; }
.header-actions { gap: .55rem; }

@media (min-width: 601px) {
  .header-actions .header-action { width: 48px; min-width: 48px; min-height: 48px; justify-content: center; }
  .header-actions .action-icon { width: 25px; height: 25px; flex-basis: 25px; }
  .header-actions .action-icon svg { width: 24px; height: 24px; }
}

.fumot-cart-drawer-root {
  position: fixed;
  inset: 0;
  z-index: 10020;
  visibility: hidden;
  pointer-events: none;
}

.fumot-cart-drawer-root.is-open {
  visibility: visible;
  pointer-events: auto;
}

.fumot-cart-drawer-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  opacity: 0;
  background: rgba(7, 29, 53, .52);
  transition: opacity .24s ease;
}

.fumot-cart-drawer-root.is-open .fumot-cart-drawer-backdrop { opacity: 1; }
.fumot-cart-drawer-backdrop:hover,
.fumot-cart-drawer-backdrop:focus { background: rgba(7, 29, 53, .52); color: transparent; }

.fumot-cart-drawer {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  width: min(420px, 100%);
  height: 100%;
  overflow: hidden;
  transform: translateX(100%);
  background: #fff;
  color: var(--fumot-text, #1c2936);
  box-shadow: -14px 0 42px rgba(7, 29, 53, .18);
  transition: transform .28s cubic-bezier(.22, 1, .36, 1);
}

.fumot-cart-drawer-root.is-open .fumot-cart-drawer { transform: translateX(0); }
body.fumot-cart-drawer-open { overflow: hidden; }

body.admin-bar .fumot-cart-drawer { top: 32px; height: calc(100% - 32px); }

@media (max-width: 782px) {
  body.admin-bar .fumot-cart-drawer { top: 46px; height: calc(100% - 46px); }
}

.fumot-cart-drawer-content {
  display: flex;
  flex: 1;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
}

.fumot-cart-drawer-content.is-loading::after {
  position: absolute;
  inset: 0;
  z-index: 3;
  content: "";
  cursor: wait;
  background: rgba(255, 255, 255, .65);
}

.fumot-cart-drawer-header {
  display: flex;
  min-height: 66px;
  padding: 11px 13px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e3e7eb;
}

.fumot-cart-drawer-heading { display: flex; min-width: 0; align-items: center; gap: 8px; }
.fumot-cart-drawer-heading > .dashicons { width: 22px; height: 22px; color: var(--fumot-navy, #071d35); font-size: 22px; }
.fumot-cart-drawer-heading h2 { margin: 0; color: var(--fumot-navy, #071d35); font-size: 18px; font-weight: 800; line-height: 1.2; }
.fumot-cart-drawer-count { display: inline-grid; min-width: 21px; height: 21px; padding: 0 5px; place-items: center; border-radius: 999px; background: var(--fumot-blue, #1684e8); color: #fff; font-size: 12px; font-weight: 800; line-height: 1; }

.fumot-cart-drawer-close,
.fumot-cart-item-remove {
  display: inline-grid;
  width: 40px;
  min-width: 40px;
  min-height: 40px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: #f1f3f5;
  color: var(--fumot-text, #1c2936);
}

.fumot-cart-drawer-close:hover { background: #e1e6ea; color: var(--fumot-navy, #071d35); }
.fumot-cart-drawer-close .dashicons { width: 22px; height: 22px; font-size: 22px; }

.fumot-cart-shipping-progress { padding: 13px; border-bottom: 1px solid #e3e7eb; background: #f7f8f5; }
.fumot-cart-shipping-progress p { margin: 0 0 8px; color: #4a5662; font-size: 13px; line-height: 1.35; }
.fumot-cart-shipping-track { height: 4px; overflow: hidden; border-radius: 999px; background: #dfe3e6; }
.fumot-cart-shipping-track span { display: block; height: 100%; border-radius: inherit; background: var(--fumot-blue, #1684e8); }

.fumot-cart-drawer-summary-label { padding: 10px 13px; border-bottom: 1px solid #e3e7eb; color: #4a5662; font-size: 13px; line-height: 1.3; }
.fumot-cart-drawer-items { flex: 1; min-height: 0; padding-inline: 13px; overflow-y: auto; overscroll-behavior: contain; }

.fumot-cart-item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid #e8ebee;
}

.fumot-cart-item-image { align-self: start; overflow: hidden; border: 1px solid #edf0f2; border-radius: 8px; background: #f7f8fa; }
.fumot-cart-item-image a { display: block; }
.fumot-cart-item-image img { width: 72px; height: 72px; object-fit: cover; }
.fumot-cart-item-main { min-width: 0; }
.fumot-cart-item-title-row { display: flex; min-height: 40px; align-items: flex-start; justify-content: space-between; gap: 6px; }
.fumot-cart-item-title { color: var(--fumot-text, #1c2936); font-size: 13px; font-weight: 650; line-height: 1.35; text-decoration: none; }
.fumot-cart-item-title:hover { color: var(--fumot-blue-dark, #0869c2); }
.fumot-cart-item-remove { width: 32px; min-width: 32px; min-height: 32px; margin: -6px -7px 0 0; background: transparent; color: #9aa4ad; }
.fumot-cart-item-remove:hover { background: #f3f5f6; color: #bd2f2f; }
.fumot-cart-item-remove .dashicons { width: 18px; height: 18px; font-size: 18px; }
.fumot-cart-item dl.variation { display: flex; margin: 2px 0 8px; color: #697783; font-size: 11px; line-height: 1.35; }
.fumot-cart-item dl.variation dt { margin-right: 4px; font-weight: 500; }
.fumot-cart-item dl.variation dd { margin: 0 7px 0 0; }
.fumot-cart-item dl.variation p { margin: 0; }

.fumot-cart-item-actions { display: flex; margin-top: 8px; align-items: center; justify-content: space-between; gap: 10px; }
.fumot-cart-quantity { display: grid; overflow: hidden; grid-template-columns: 32px 34px 32px; border: 1px solid #d8dde2; border-radius: 6px; background: #fff; }
.fumot-cart-quantity button { display: inline-grid; width: 32px; min-width: 32px; min-height: 30px; padding: 0; place-items: center; border: 0; border-radius: 0; background: #f4f5f3; color: var(--fumot-text, #1c2936); }
.fumot-cart-quantity button:hover { background: #e6eaed; color: var(--fumot-navy, #071d35); }
.fumot-cart-quantity button:disabled { cursor: not-allowed; opacity: .45; }
.fumot-cart-quantity .dashicons { width: 16px; height: 16px; font-size: 16px; }
.fumot-cart-quantity > span { display: grid; min-width: 34px; place-items: center; border-right: 1px solid #d8dde2; border-left: 1px solid #d8dde2; font-size: 13px; font-weight: 750; line-height: 1; }
.fumot-cart-item-price { flex: 0 0 auto; color: var(--fumot-navy, #071d35); font-size: 14px; font-weight: 800; white-space: nowrap; }

.fumot-cart-drawer-footer { flex: 0 0 auto; padding: 14px 13px 16px; border-top: 1px solid #dfe4e8; background: #fff; box-shadow: 0 -8px 22px rgba(7, 29, 53, .04); }
.fumot-cart-totals { display: grid; gap: 7px; margin-bottom: 13px; }
.fumot-cart-totals > div { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; color: #46535f; font-size: 14px; line-height: 1.35; }
.fumot-cart-totals strong { color: var(--fumot-navy, #071d35); font-weight: 750; }
.fumot-cart-totals .fumot-cart-discount { color: var(--fumot-green-dark, #168348); }
.fumot-cart-totals .fumot-cart-discount strong { color: inherit; }
.fumot-cart-totals .fumot-cart-total { margin-top: 2px; padding-top: 9px; border-top: 1px solid #e3e7eb; color: var(--fumot-text, #1c2936); font-size: 16px; font-weight: 800; }
.fumot-cart-totals .fumot-cart-total strong { font-size: 18px; font-weight: 850; }

.fumot-cart-drawer .fumot-cart-checkout-button,
.fumot-cart-drawer .fumot-cart-secondary-button {
  display: flex;
  width: 100%;
  min-height: 48px;
  padding: 11px 16px;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}

.fumot-cart-drawer .fumot-cart-checkout-button { margin-bottom: 9px; border: 1px solid var(--fumot-green-dark, #168348); background: var(--fumot-green, #20a85b); color: #fff; box-shadow: 0 5px 14px rgba(32, 168, 91, .22); }
.fumot-cart-drawer .fumot-cart-checkout-button:hover { border-color: #11733d; background: var(--fumot-green-dark, #168348); color: #fff; }
.fumot-cart-drawer .fumot-cart-secondary-button { border: 1px solid #cfd6dc; background: #fff; color: var(--fumot-navy, #071d35); }
.fumot-cart-drawer .fumot-cart-secondary-button:hover { border-color: var(--fumot-navy-soft, #102d4b); background: #f5f7f9; color: var(--fumot-navy, #071d35); }

.fumot-cart-drawer-empty { display: grid; flex: 1; padding: 42px 24px; align-content: center; justify-items: center; gap: 12px; text-align: center; }
.fumot-cart-drawer-empty > .dashicons { width: 46px; height: 46px; color: #9aa6b2; font-size: 46px; }
.fumot-cart-drawer-empty p { margin: 0; color: #53616e; }
.fumot-cart-drawer-error { margin: 8px 13px 0; padding: 8px 10px; border-radius: 6px; background: #fff1f1; color: #9f1d1d; font-size: 12px; }

@media (max-width: 600px) {
  .fumot-cart-drawer { width: min(94vw, 390px); }
  .fumot-cart-item { grid-template-columns: 68px minmax(0, 1fr); gap: 10px; }
  .fumot-cart-item-image img { width: 68px; height: 68px; }
}

@media (prefers-reduced-motion: reduce) {
  .fumot-cart-drawer,
  .fumot-cart-drawer-backdrop { transition: none; }
}

/* The drawer replaces WooCommerce's "Warenkorb anzeigen" link after add to cart. */
a.added_to_cart.wc-forward {
	display: none !important;
}
