/* Header cart and successful add confirmation. */
.iz-header-cart { position: relative; }
.iz-header-cart > summary.iz-cart-link {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 46px;
  padding: 9px 13px;
  border: 1px solid #cbdcd6;
  border-radius: 10px;
  background: #f1f7f4;
  color: #073c43;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.iz-header-cart > summary::-webkit-details-marker { display: none; }
.iz-cart-icon { width: 25px; height: 25px; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.iz-cart-chevron { width: 12px; height: 12px; stroke: currentColor; stroke-width: 1.5; }
.iz-cart-count { display: grid; place-items: center; min-width: 26px; height: 26px; padding: 0 6px; border-radius: 999px; background: #073c43; color: #fff; font-size: 12px; }
.iz-header-cart[open] > summary { border-color: #073c43; }
.iz-header-cart[open] .iz-cart-chevron { transform: rotate(180deg); }
.iz-header-cart summary:focus-visible, .iz-cart-preview a:focus-visible { outline: 2px solid #073c43; outline-offset: 3px; }
.iz-cart-preview {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: min(410px, calc(100vw - 32px));
  border: 1px solid #d8e4df;
  border-radius: 14px;
  background: #fff;
  color: #073c43;
  box-shadow: 0 14px 44px #073c4326;
  white-space: normal;
  z-index: 90;
  animation: iz-cart-preview-in .18s ease-out;
}
.iz-cart-preview-heading { display: flex; align-items: center; justify-content: space-between; padding: 18px; border-bottom: 1px solid #e3ece7; }
.iz-cart-preview-heading strong { font-size: 18px; }
.iz-cart-preview-heading span { font-size: 12px; color: #607771; }
.iz-cart-preview-items { max-height: min(390px, 48vh); overflow-y: auto; overscroll-behavior: contain; padding: 0 18px; }
.iz-cart-preview-items > p { font-size: 13px; padding: 12px 0; }
.iz-cart-preview-item { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 13px; padding: 16px 0; border-bottom: 1px solid #e3ece7; }
.iz-cart-preview-item:last-child { border-bottom: 0; }
.iz-cart-preview-image { display: block; width: 76px; height: 76px; overflow: hidden; border-radius: 9px; background: #f2f6f3; }
.iz-cart-preview-image .iz-product-visual { display: block; width: 100%; height: 100%; object-fit: cover; }
.iz-cart-preview-name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 13px; font-weight: 600; line-height: 1.45; text-decoration: none; }
.iz-cart-preview-item p { margin: 6px 0 0; font-size: 12px; }
.iz-cart-preview-item small { display: block; margin-top: 5px; color: #607771; font-size: 11px; line-height: 1.4; overflow-wrap: anywhere; }
.iz-cart-preview-empty { padding: 24px 0; text-align: center; }
.iz-cart-preview-empty p, .iz-cart-preview-empty a { font-size: 13px; }
.iz-cart-preview-footer { padding: 16px 18px; border-top: 1px solid #e3ece7; }
.iz-cart-preview-total { display: flex; justify-content: space-between; margin-bottom: 14px; font-size: 14px; }
.iz-cart-preview-total[hidden] { display: none; }
.iz-cart-preview-footer .iz-button { display: flex; justify-content: center; width: 100%; }
.iz-button.iz-cart-add-success:disabled {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  background: #e1f4e8;
  color: #16733c;
  border-color: #16733c;
  opacity: 1;
  cursor: default;
}
.iz-cart-add-check { width: 26px; height: 26px; flex: 0 0 26px; fill: none; stroke: currentColor; stroke-width: 2; animation: iz-cart-check-in .35s ease-out; }
.iz-cart-add-check path { stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 20; stroke-dashoffset: 0; animation: iz-cart-check-draw .45s ease-out; }
.iz-cart-add-status { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@keyframes iz-cart-check-draw { from { stroke-dashoffset: 20; } to { stroke-dashoffset: 0; } }
.iz-cart-bump .iz-cart-count { animation: iz-cart-count-bump .55s ease-out; }
@keyframes iz-cart-preview-in { from { opacity: 0; transform: translateY(-7px); } to { opacity: 1; transform: translateY(0); } }
@keyframes iz-cart-check-in { from { transform: scale(.5); } to { transform: scale(1); } }
@keyframes iz-cart-count-bump { 35% { transform: scale(1.35); } 70% { transform: scale(.92); } 100% { transform: scale(1); } }
@media (max-width: 700px) {
  .iz-header-cart > summary.iz-cart-link { padding: 8px 10px; gap: 7px; font-size: 14px; }
  .iz-cart-preview { position: fixed; top: var(--cart-preview-top, 90px); right: 16px; max-height: calc(100dvh - var(--cart-preview-top, 90px) - 16px); overflow-y: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .iz-cart-add-check, .iz-cart-add-check path, .iz-cart-preview, .iz-cart-bump .iz-cart-count { animation: none; }
}
