.fza-reactions,
.fza-reactions *,
.fza-site-bottom-nav,
.fza-site-bottom-nav *,
.fza-site-categories-sheet *,
.fza-managed-like-modal *,
.fza-share-sheet * {
  box-sizing: border-box;
}

.fza-reactions {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: nowrap;
  gap: 5px;
  min-width: 0;
  width: 100%;
  margin: 9px 0;
  padding: 5px 7px;
  direction: rtl;
  background: #fff;
  color: #101114;
  line-height: 1;
}

.fza-reaction-button,
.fza-action-button,
.fza-managed-like-open {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 40px;
  width: auto;
  min-height: 40px;
  margin: 0;
  padding: 5px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #101114;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  box-shadow: none;
  appearance: none;
  transition: color 0.16s ease, transform 0.16s ease, opacity 0.16s ease;
}

.fza-reaction-button:hover,
.fza-action-button:hover,
.fza-managed-like-open:hover {
  color: #101114;
  background: transparent;
  transform: scale(1.06);
}

.fza-reaction-button:disabled,
.fza-action-button:disabled,
.fza-managed-like-open:disabled {
  cursor: wait;
  opacity: 0.55;
}

.fza-like-button.is-active {
  color: #ff3040;
}

.fza-save-button {
  margin-inline-start: auto !important;
}

.fza-save-button.is-active {
  color: #101114;
}

.fza-reaction-icon {
  display: block;
  width: 28px;
  height: 28px;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: fill 0.16s ease, transform 0.16s ease;
}

.fza-like-button.is-active .fza-reaction-icon,
.fza-save-button.is-active .fza-reaction-icon {
  fill: currentColor;
  transform: scale(1.06);
}

.fza-reaction-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.fza-like-count {
  min-width: 9px;
  color: inherit;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  direction: ltr;
}

.fza-reaction-message {
  position: absolute;
  z-index: 3;
  top: calc(100% + 2px);
  right: 6px;
  left: 6px;
  padding: 4px 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.96);
  color: #555;
  font-size: 11px;
  line-height: 1.35;
  text-align: center;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  pointer-events: none;
}

.fza-reaction-message:empty {
  display: none;
}

/*
 * The row is moved by front.js to the visual image container. Until that move
 * is complete it stays collapsed, preventing the old "heart at card bottom"
 * flash on cards whose description or Prime box is tall.
 */
.fza-reactions--loop:not(.is-positioned) {
  max-height: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  visibility: hidden;
}

.fza-reactions--loop.is-positioned {
  margin: 0;
  padding: 6px 8px;
  border-bottom: 1px solid #f0f0f0;
  visibility: visible;
}

.fza-reactions--single {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 8px 5px;
  border-bottom: 1px solid #ededed;
  flex-wrap: nowrap;
}

.fza-reactions--loop .fza-reaction-button,
.fza-reactions--loop .fza-action-button {
  min-width: 36px;
  min-height: 36px;
  padding: 3px;
}

.fza-reactions--loop .fza-reaction-icon {
  width: 27px;
  height: 27px;
}

.fza-managed-like-open {
  min-width: 31px;
  min-height: 31px;
  padding: 3px 5px;
  border: 1px dashed #e9192d;
  border-radius: 999px;
  color: #c71425;
}

.fza-managed-like-open svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
}

.fza-managed-like-progress {
  max-width: 82px;
  overflow: hidden;
  color: #8f1020;
  font-size: 9px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/*
 * Progress is available in the manager dialog. Keeping it out of the compact
 * product row guarantees that Save stays beside the other icons on mobile.
 */
.fza-reactions--loop .fza-managed-like-progress {
  display: none;
}

.fza-saved-note {
  padding: 12px 14px;
  border-right: 4px solid #2271b1;
  border-radius: 8px;
  background: #f2f7ff;
  color: #26364b;
}

.fza-ar-note {
  padding: 12px 14px;
  border-right: 4px solid #11843b;
  border-radius: 8px;
  background: #f1fbf4;
  color: #164c28;
}

.fza-empty-state {
  padding: 30px 18px;
  border: 1px dashed #c7cbd1;
  border-radius: 14px;
  background: #fafafa;
  color: #555;
  text-align: center;
}

.fza-pagination {
  display: flex;
  justify-content: center;
  gap: 5px;
  margin: 24px 0;
}

.fza-pagination .page-numbers {
  min-width: 34px;
  padding: 7px 9px;
  border: 1px solid #ddd;
  border-radius: 8px;
  text-align: center;
}

.fza-pagination .current {
  border-color: #e9192d;
  background: #e9192d;
  color: #fff;
}

.fza-modal-open {
  overflow: hidden !important;
}

.fza-managed-like-modal,
.fza-share-sheet {
  position: fixed;
  z-index: 100100;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.fza-managed-like-modal[hidden],
.fza-share-sheet[hidden] {
  display: none !important;
}

.fza-managed-like-backdrop,
.fza-share-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.56);
}

.fza-managed-like-dialog,
.fza-share-panel {
  position: relative;
  z-index: 1;
  width: min(440px, 100%);
  max-height: min(680px, 90vh);
  padding: 22px;
  overflow: auto;
  border-radius: 18px;
  background: #fff;
  color: #202124;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.28);
}

.fza-managed-like-dialog h3 {
  margin: 0 0 6px;
  font-size: 20px;
}

.fza-managed-product-title {
  margin: 0 0 10px;
  color: #c71425;
  font-weight: 800;
}

.fza-managed-like-dialog .description {
  margin-bottom: 15px;
  color: #5f6368;
  font-size: 12px;
  line-height: 1.7;
}

.fza-managed-like-close {
  position: absolute;
  top: 8px;
  left: 10px;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #555;
  font-size: 29px;
  line-height: 1;
  cursor: pointer;
}

.fza-managed-like-form > label {
  display: block;
  margin: 11px 0;
  font-weight: 700;
}

.fza-managed-like-form > label span {
  display: block;
  margin-bottom: 6px;
}

.fza-managed-like-form input[type="number"] {
  width: 100%;
  min-height: 43px;
  padding: 7px 10px;
  border: 1px solid #c9cdd2;
  border-radius: 9px;
  background: #fff;
  color: #202124;
  font: inherit;
}

.fza-managed-like-current {
  margin: 12px 0;
  padding: 10px 12px;
  border-radius: 9px;
  background: #fff4f5;
  color: #7c1320;
  line-height: 1.7;
}

.fza-managed-like-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 15px;
}

.fza-managed-like-actions .button {
  min-height: 40px;
  margin: 0;
  padding: 8px 13px;
  border: 1px solid #c8cbd0;
  border-radius: 8px;
  background: #fff;
  color: #303236;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.fza-managed-like-actions .button-primary {
  border-color: #e9192d;
  background: #e9192d;
  color: #fff;
}

.fza-managed-like-actions .button:disabled {
  cursor: wait;
  opacity: 0.55;
}

.fza-managed-like-message {
  min-height: 20px;
  margin: 10px 0 0;
  color: #365c3c;
  font-size: 12px;
  line-height: 1.6;
}

.fza-share-sheet {
  align-items: flex-end;
  padding: 0;
}

.fza-share-panel {
  width: min(520px, 100%);
  max-height: 70vh;
  padding: 16px;
  border-radius: 20px 20px 0 0;
}

.fza-share-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 2px 12px;
  border-bottom: 1px solid #eee;
}

.fza-share-heading button {
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  font-size: 27px;
  cursor: pointer;
}

.fza-share-choice {
  display: block;
  width: 100%;
  margin: 8px 0 0;
  padding: 13px 14px;
  border: 0;
  border-radius: 10px;
  background: #f5f6f7;
  color: #202124;
  font: inherit;
  font-weight: 700;
  line-height: 1.4;
  text-align: right;
  text-decoration: none;
  cursor: pointer;
}

.fza-share-choice:hover {
  background: #ebedef;
  color: #202124;
}

.fza-site-bottom-nav,
.fza-site-categories-sheet,
.fza-desktop-saved-link {
  display: none;
}

@media (max-width: 782px) {
  body.fza-site-mobile-nav-enabled {
    padding-bottom: 72px !important;
  }

  .fza-site-bottom-nav {
    position: fixed;
    z-index: 99990;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    align-items: stretch;
    justify-content: space-around;
    height: 70px;
    padding: 4px max(4px, env(safe-area-inset-right))
      max(4px, env(safe-area-inset-bottom))
      max(4px, env(safe-area-inset-left));
    border-top: 1px solid #e5e5e5;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.08);
    direction: rtl;
    backdrop-filter: blur(12px);
  }

  .fza-site-nav-item {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 20%;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
    margin: 0;
    padding: 4px 2px;
    border: 0;
    background: transparent;
    color: #8b8d91;
    font: inherit;
    font-size: 10px;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
  }

  .fza-site-nav-item:hover,
  .fza-site-nav-item:focus,
  .fza-site-nav-item.is-active {
    background: transparent;
    color: #e9192d;
    text-decoration: none;
  }

  .fza-site-nav-item svg {
    width: 25px;
    height: 25px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .fza-site-nav-item.is-active svg {
    fill: currentColor;
    stroke: currentColor;
  }

  .fza-site-categories-sheet:not([hidden]) {
    position: fixed;
    z-index: 100000;
    inset: 0;
    display: flex;
    align-items: flex-end;
  }

  .fza-site-sheet-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: rgba(0, 0, 0, 0.5);
  }

  .fza-site-sheet-panel {
    position: relative;
    z-index: 1;
    width: 100%;
    max-height: 78vh;
    padding-bottom: max(12px, env(safe-area-inset-bottom));
    overflow: hidden;
    border-radius: 20px 20px 0 0;
    background: #fff;
    box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.2);
  }

  .fza-site-sheet-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid #eee;
  }

  .fza-site-sheet-heading h2 {
    margin: 0;
    font-size: 18px;
  }

  .fza-site-sheet-heading button {
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #555;
    font-size: 28px;
    cursor: pointer;
  }

  .fza-site-category-list {
    max-height: calc(78vh - 66px);
    padding: 8px 14px 16px;
    overflow: auto;
  }

  .fza-site-category-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 8px;
    border-bottom: 1px solid #f0f0f0;
    color: #27292d;
    text-decoration: none;
  }

  .fza-site-category-list a:hover {
    color: #e9192d;
  }

  .fza-site-category-list small {
    color: #8c8f94;
  }

  .fza-site-category-all {
    color: #e9192d !important;
    font-weight: 800;
  }

  .fza-reactions--loop {
    gap: 1px;
    padding-right: 4px;
    padding-left: 4px;
  }

  .fza-reactions--loop .fza-reaction-button,
  .fza-reactions--loop .fza-action-button {
    min-width: 31px;
    min-height: 34px;
    padding: 2px;
  }

  .fza-reactions--loop .fza-reaction-icon {
    width: 25px;
    height: 25px;
  }

  .fza-reactions--loop .fza-managed-like-open {
    min-width: 28px;
    min-height: 28px;
    padding: 2px 4px;
  }

  .fza-managed-like-progress {
    display: none;
  }
}

@media (min-width: 783px) {
  body.fza-site-desktop-saved-enabled .fza-desktop-saved-link {
    position: fixed;
    z-index: 99950;
    bottom: 24px;
    left: 24px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border: 1px solid #e4e5e7;
    border-radius: 999px;
    background: #fff;
    color: #25272b;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.16);
  }

  body.fza-site-desktop-saved-enabled .fza-desktop-saved-link:hover {
    color: #e9192d;
    transform: translateY(-1px);
  }

  .fza-desktop-saved-link svg {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
}
