/* ─── TYPE BUTTON INFO POPUPS ───────────────────────────── */

.type-btn-wrap {
  position: relative;
}

.info-icon {
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  flex-shrink: 0;
  z-index: 1;
}
.info-icon:hover {
  background: rgba(255, 255, 255, 0.438) !important;
}

/* ── Popup card — fixed to viewport, JS positions it ─────── */
.info-popup {
  display: none;
  position: fixed;         /* JS sets top / left at open time */
  width: 760px;
  background: var(--surface);
  
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18), 0 2px 8px rgba(0,0,0,0.10);
  z-index: 200;
  /* horizontal padding leaves room for the absolutely-positioned arrows */
  padding: 18px 52px 25px 52px;
  animation: popupFadeIn 0.18s ease;
}
.info-popup.open {
  display: block;
}

@keyframes popupFadeIn {
  from { opacity: 0; transform: translateX(6px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ── Floating triangle — real element, JS moves its top ──── */
.info-popup-caret {
  position: fixed;         /* JS sets top / left */
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 8px solid var(--surface);
  filter: drop-shadow(1px 0 0 var(--border));
  z-index: 201;
  pointer-events: none;
  display: none;
}
.info-popup-caret.open {
  display: block;
}

/* ── Left / right nav arrows — absolutely on the popup ───── */
.info-popup-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%) scale(0.85);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg);
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s, opacity 0.2s;
  flex-shrink: 0;
  padding: 0;
  opacity: 0;
  pointer-events: none;
}
.info-popup-arrow.arrow-left  { left:  12px; }
.info-popup-arrow.arrow-right { right: 12px; }

/* Reveal arrows when the popup container is hovered */
.info-popup:hover .info-popup-arrow {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(-50%) scale(1);
}

/* Scale up a touch more on the arrow itself */
.info-popup:hover .info-popup-arrow:hover {
  background: var(--surface);
  transform: translateY(-50%) scale(1.12);
}
.info-popup-arrow:hover svg path {
  fill: var(--text);
}
.info-popup-arrow svg {
  width: 22px;
  height: 22px;
}
.info-popup-arrow svg path {
  fill: var(--text);
  transition: fill 0.15s;
}

/* ── Close button ─────────────────────────────────────────── */
.info-popup-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: none;
  background: var(--bg);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  line-height: 1;
  z-index: 1;
}
.info-popup-close:hover {
  background: var(--text);
  color: var(--bg);
}

/* ── Slide container ──────────────────────────────────────── */
.info-popup-slides {
  overflow: hidden;
}
.info-popup-slide {
  display: none;
}
.info-popup-slide.active {
  display: block;
  animation: slideIn 0.18s ease;
}
@keyframes slideIn {
  from { opacity: 0; transform: translateX(10px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ── Slide content ────────────────────────────────────────── */
.info-popup-slide-inner {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.info-popup-svg-and-body {
  display: flex;
  align-items: center;
  gap: 18px;
}

.info-popup-svg-wrap {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.info-popup-body-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.info-popup-text h1 {
  font-family: 'Jost', Arial, sans-serif;
  font-size: 21px;
  font-weight: 700;
  margin-bottom: -4px;
}
.info-popup-text h2 {
  font-family: 'Jost', Arial, sans-serif;
  font-size: 18px;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 5px;
}
.info-popup-text h3 {
  font-family: 'Jost', Arial, sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 5px;
}
.info-popup-text h4 {
  font-family: 'Jost', Arial, sans-serif;
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: -1px;
}
.info-popup-text p {
  font-size: 14px;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.01em;
  line-height: 1.4;
  margin-bottom: 10px;
}
.info-popup-text p + p {
  margin-top: 8px;
}
/* ─── CART CONFIRM POPUP ────────────────────────────────── */
.cart-confirm-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: rgba(0, 0, 0, 0.35);
}
.cart-confirm-overlay.open {
  display: block;
}

.cart-confirm-popup {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.96);
  width: 380px;
  background: var(--surface);
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18), 0 2px 8px rgba(0,0,0,0.10);
  z-index: 9999;
  padding: 28px 28px 24px 28px;
  animation: cartPopupIn 0.18s ease forwards;
}
.cart-confirm-popup.open {
  display: block;
}

@keyframes cartPopupIn {
  from { opacity: 0; transform: translate(-50%, -50%) scale(0.94); }
  to   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

.cart-confirm-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: none;
  background: var(--bg);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  line-height: 1;
  z-index: 1;
}
.cart-confirm-close:hover {
  background: var(--text);
  color: var(--bg);
}

.cart-confirm-title {
  font-family: 'Jost', Arial, sans-serif;
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 4px;
  padding-right: 24px;
}
.cart-confirm-sub {
  font-family: 'Jost', Arial, sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: var(--muted);
  margin-bottom: 22px;
  line-height: 1.5;
}

.cart-confirm-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.cart-confirm-keep-shopping {
  font-family: 'Jost', Arial, sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.15s;
  padding: 2px 0;
}
.cart-confirm-keep-shopping:hover {
  color: var(--text);
}

.cart-confirm-checkout {
  width: 100%;
  height: 38px;
  background: var(--bg);
  color: var(--text);
  border: none;
  border-radius: 100px;
  font-family: 'Jost', Arial, sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  box-shadow: 0 4px 12px rgba(0,0,0,0.18);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.cart-confirm-checkout:hover {
  background: var(--text);
  color: var(--bg);
}