/* cartforlogged 2.1.10 - lightweight modal + temporary guest wishlist */
.cfl-noscroll, .cfl-noscroll body { overflow: hidden !important; }

.cfl-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(0,0,0,.55);
}

.cfl-overlay.cfl-open { display: flex; }

.cfl-dialog {
  width: 100%;
  max-width: 560px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 14px 50px rgba(0,0,0,.35);
  position: relative;
  overflow: hidden;
}

.cfl-body { padding: 18px 18px 16px; }

.cfl-title {
  font-size: 18px;
  font-weight: 700;
  margin: 0 30px 8px 0;
  line-height: 1.25;
}

.cfl-message {
  font-size: 14px;
  line-height: 1.5;
  opacity: .9;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  word-break: break-word !important;
}

.cfl-wishlist-hint {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.45;
  color: #2fb5d2;
}

.cfl-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
  align-items: center;
}

.cfl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none !important;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 14px;
  line-height: 1.2;
  border: 1px solid transparent;
  cursor: pointer;
  user-select: none;
  font-family: inherit;
}

.cfl-btn-primary {
  background: #2fb5d2;
  color: #fff !important;
}

.cfl-btn-primary:hover { filter: brightness(.96); }

.cfl-btn-ghost {
  background: #fff;
  color: #333 !important;
  border-color: #ddd;
}

.cfl-btn-wishlist {
  background: #f6f6f6;
  color: #333 !important;
  border-color: #d9d9d9;
}

.cfl-btn-wishlist:hover,
.cfl-btn-ghost:hover { background: #f2f2f2; }

.cfl-btn-small {
  padding: 8px 11px;
  font-size: 13px;
  white-space: nowrap;
}

.cfl-close {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 0;
  background: rgba(0,0,0,.05);
  color: #333;
  font-size: 22px;
  line-height: 34px;
  cursor: pointer;
}

.cfl-close:hover { background: rgba(0,0,0,.08); }

/* Small persistent wishlist access. It is shown only when at least one item is saved. */
.cfl-wishlist-launcher {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 99980;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 999px;
  background: #fff;
  color: #333;
  box-shadow: 0 6px 24px rgba(0,0,0,.18);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
}

.cfl-wishlist-launcher:hover { background: #f7f7f7; }
.cfl-heart { font-size: 19px; line-height: 1; }

.cfl-wishlist-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 21px;
  height: 21px;
  padding: 0 6px;
  border-radius: 999px;
  background: #2fb5d2;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.cfl-wishlist-dialog { max-width: 680px; }

.cfl-wishlist-list {
  max-height: min(62vh, 520px);
  overflow-y: auto;
  margin-top: 10px;
  padding-right: 3px;
}

.cfl-wishlist-item {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid #eee;
}

.cfl-wishlist-item:first-child { border-top: 0; }

.cfl-wishlist-image {
  width: 66px;
  height: 66px;
  object-fit: contain;
  background: #fafafa;
  border: 1px solid #eee;
  border-radius: 8px;
}

.cfl-wishlist-image-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 25px;
  color: #aaa;
}

.cfl-wishlist-info { min-width: 0; }

.cfl-wishlist-name {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  color: #333;
}

.cfl-wishlist-product-link {
  display: inline-block;
  margin-top: 4px;
  color: #666 !important;
  font-size: 12px;
  text-decoration: underline !important;
}

.cfl-wishlist-item-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 5px;
}

.cfl-remove-btn {
  border: 0;
  background: transparent;
  color: #777;
  font-size: 12px;
  cursor: pointer;
  padding: 4px 6px;
  text-decoration: underline;
}

.cfl-wishlist-empty {
  padding: 22px 0 10px;
  color: #777;
  font-size: 14px;
}

.cfl-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 100010;
  transform: translate(-50%, 14px);
  max-width: calc(100vw - 36px);
  padding: 11px 16px;
  border-radius: 10px;
  background: #333;
  color: #fff;
  box-shadow: 0 8px 30px rgba(0,0,0,.25);
  font-size: 13px;
  line-height: 1.35;
  opacity: 0;
  transition: opacity .2s ease, transform .2s ease;
  pointer-events: none;
}

.cfl-toast.cfl-toast-open {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 560px) {
  .cfl-actions { align-items: stretch; }
  .cfl-actions .cfl-btn { flex: 1 1 100%; }

  .cfl-wishlist-launcher {
    right: 12px;
    bottom: 12px;
  }

  .cfl-wishlist-item {
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .cfl-wishlist-image {
    width: 54px;
    height: 54px;
  }

  .cfl-wishlist-item-actions {
    grid-column: 2;
    flex-direction: row;
    align-items: center;
  }
}

.cfl-btn[disabled] { opacity: .65; cursor: wait; }


.cfl-title-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 30px 8px 0;
}

.cfl-title-row .cfl-title {
  margin: 0;
}

.cfl-info-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #66737f;
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  vertical-align: middle;
}

.cfl-info-toggle:hover,
.cfl-info-toggle:focus {
  color: #2fb5d2;
  background: transparent;
  outline: none;
}

.cfl-info-tooltip {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: min(320px, calc(100vw - 72px));
  padding: 10px 12px;
  border-radius: 10px;
  background: #2f3942;
  color: #fff;
  font-size: 12px;
  line-height: 1.4;
  box-shadow: 0 10px 28px rgba(0,0,0,.22);
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
  z-index: 3;
}

.cfl-info-tooltip:before {
  content: '';
  position: absolute;
  top: -6px;
  left: 14px;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 6px solid #2f3942;
}

.cfl-info-tooltip.cfl-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

@media (max-width: 560px) {
  .cfl-title-row {
    align-items: flex-start;
    padding-right: 18px;
  }
  .cfl-info-tooltip {
    width: min(280px, calc(100vw - 72px));
  }
}
