/* 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, .iz-cart-added a:focus-visible, .iz-cart-added button: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-cart-added {
  position: fixed;
  bottom: 26px;
  right: 26px;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 24px;
  gap: 12px;
  width: min(420px, calc(100vw - 32px));
  padding: 20px;
  border: 1px solid #bfd6cc;
  border-radius: 14px;
  background: #fff;
  color: #073c43;
  box-shadow: 0 14px 44px #073c4333;
  z-index: 120;
  animation: iz-cart-added-in .35s cubic-bezier(.16, 1, .3, 1);
}
.iz-cart-added-check { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #073c43; color: #fff; animation: iz-cart-check-in .4s ease-out; }
.iz-cart-added-content > strong { font-size: 17px; }
.iz-cart-added-product { display: flex; gap: 10px; margin: 12px 0; }
.iz-cart-added-product > .iz-product-visual { flex: 0 0 62px; width: 62px; height: 62px; border-radius: 8px; object-fit: cover; }
.iz-cart-added-product p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 0 0 5px; font-size: 12px; line-height: 1.4; }
.iz-cart-added-product small { font-size: 11px; color: #607771; }
.iz-cart-added a.iz-cart-added-view { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 48px; padding: 12px 20px; background: #ff8959; color: #073c43; border-radius: 6px; font-size: 16px; font-weight: 700; text-decoration: none; }
.iz-cart-added button { width: 24px; height: 24px; padding: 0; border: 0; background: none; color: #607771; font-size: 24px; cursor: pointer; }
.iz-cart-bump .iz-cart-count { animation: iz-cart-count-bump .55s ease-out; }
@keyframes iz-cart-added-in { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@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; }
  .iz-cart-added { bottom: 16px; right: 16px; padding: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .iz-cart-added, .iz-cart-added-check, .iz-cart-preview, .iz-cart-bump .iz-cart-count { animation: none; }
}
