/* --- Compact premium gift module (mobile-first) --- */
.wcfgpp-mini {
  margin-top: 12px;
  margin-bottom: 12px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,0.06);
  background: linear-gradient(135deg, rgba(255,255,255,0.92), rgba(248,248,248,0.92));
  box-shadow: 0 10px 26px rgba(0,0,0,0.06);
  position: relative;
  overflow: hidden;
}

.wcfgpp-mini::before {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle at 35% 35%, rgba(255,184,0,0.26), rgba(255,184,0,0));
  transform: rotate(8deg);
  pointer-events: none;
}

.wcfgpp-mini__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.wcfgpp-mini__left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.wcfgpp-mini__badge {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,184,0,0.16);
  border: 1px solid rgba(255,184,0,0.32);
  flex-shrink: 0;
}

.wcfgpp-mini__title {
  font-weight: 900;
  font-size: 13px;
  letter-spacing: 0.2px;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wcfgpp-mini__value {
  flex-shrink: 0;
  padding: 7px 10px;
  border-radius: 12px;
  background: rgba(0,0,0,0.03);
  border: 1px solid rgba(0,0,0,0.05);
  text-align: right;
}

.wcfgpp-mini__value-label {
  display: block;
  font-size: 11px;
  opacity: 0.72;
  line-height: 1.1;
}

.wcfgpp-mini__value-amt {
  font-weight: 900;
  font-size: 12px;
}

/* Horizontal rail (feels native, premium) */
.wcfgpp-mini__rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 78%;
  gap: 10px;

  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 6px;

  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.wcfgpp-mini__rail::-webkit-scrollbar { display: none; }

@media (min-width: 520px) {
  .wcfgpp-mini__rail { grid-auto-columns: 48%; }
}
@media (min-width: 900px) {
  .wcfgpp-mini__rail { grid-auto-columns: 32%; }
}

/* Card: compact height, high impact */
.wcfgpp-mini__card {
  scroll-snap-align: start;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,0.06);
  background: #fff;
  box-shadow: 0 10px 18px rgba(0,0,0,0.05);
  overflow: hidden;

  display: grid;
  grid-template-columns: 76px 1fr;
  min-height: 76px;
}

.wcfgpp-mini__media {
  position: relative;
  display: block;
  background: rgba(0,0,0,0.02);
}

.wcfgpp-mini__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.wcfgpp-mini__tag {
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.4px;
  padding: 1px 5px;
  border-radius: 999px;
  background: rgba(255,184,0,0.95);
  color: #111;
  box-shadow: 0 8px 14px rgba(0,0,0,0.12);
}

.wcfgpp-mini__body {
  padding: 10px 10px 10px 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.wcfgpp-mini__name {
  font-weight: 800;
  font-size: 12.5px;
  line-height: 1.15;
  text-decoration: none;
  color: inherit;

  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 6px;
}

.wcfgpp-mini__price {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.wcfgpp-mini__old {
  font-size: 12px;
  opacity: 0.55;
}

.wcfgpp-mini__free {
  font-weight: 950;
  font-size: 11.5px;
  letter-spacing: 0.25px;
  padding: 3px 7px;
  border-radius: 10px;
  background: rgba(16,185,129,0.12);
  border: 1px solid rgba(16,185,129,0.22);
}

/* subtle premium hover on desktop */
@media (hover:hover) {
  .wcfgpp-mini__card {
    transition: transform 160ms ease, box-shadow 160ms ease;
  }
  .wcfgpp-mini__card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 26px rgba(0,0,0,0.08);
  }
}
/* --- Peek effect wrapper (adds fade edges + encourages swipe) --- */
.wcfgpp-mini__railwrap {
  position: relative;
  margin-left: -12px;   /* align to section padding for full-bleed feel */
  margin-right: -12px;
  padding-left: 12px;   /* keep first card aligned */
  padding-right: 12px;  /* allow last card breathing */
}

.wcfgpp-mini__railwrap::before,
.wcfgpp-mini__railwrap::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 26px;
  pointer-events: none;
  z-index: 3;
}

.wcfgpp-mini__railwrap::before {
  left: 0;
  background: linear-gradient(to right, rgba(248,248,248,1), rgba(248,248,248,0));
}

.wcfgpp-mini__railwrap::after {
  right: 0;
  background: linear-gradient(to left, rgba(248,248,248,1), rgba(248,248,248,0));
}
.wcfgpp-mini__rail {
  display: grid;
  grid-auto-flow: column;

  /* PEEK: cardul curent + un pic din următorul */
  grid-auto-columns: calc(86% - 8px);

  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 6px;

  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.wcfgpp-mini__rail::-webkit-scrollbar { display: none; }

@media (min-width: 520px) {
  grid-auto-columns: calc(52% - 8px);
}
@media (min-width: 900px) {
  grid-auto-columns: calc(34% - 8px);
}
.wcfgpp-mini__icon {
  display: block;
  color: rgba(17,17,17,0.9);
}

.wcfgpp-mini__chip {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,0.035);
  border: 1px solid rgba(0,0,0,0.06);
}

.wcfgpp-mini__chip-label {
  font-size: 11px;
  opacity: 0.72;
  line-height: 1;
}

.wcfgpp-mini__chip-amt {
  font-weight: 950;
  font-size: 11.5px;
  letter-spacing: 0.2px;
}
.wcfgpp-mini__card {
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,0.06);
  background: #fff;
  box-shadow: 0 10px 18px rgba(0,0,0,0.05);
  overflow: hidden;

  display: grid;
  grid-template-columns: 76px 1fr;
  min-height: 74px;
}

.wcfgpp-mini__media {
  background: linear-gradient(135deg, rgba(0,0,0,0.02), rgba(0,0,0,0.01));
}

.wcfgpp-mini__tag {
  backdrop-filter: blur(6px);
}
/* Title + info icon (premium micro-UI) */
.wcfgpp-mini__titlewrap{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.wcfgpp-mini__info{
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  border: 1px solid rgba(0,0,0,0.08);
  background: rgba(255,255,255,0.75);
  box-shadow: 0 6px 14px rgba(0,0,0,0.06);
  color: rgba(17,17,17,0.85);

  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
}

@media (hover:hover) {
  .wcfgpp-mini__info:hover{
    transform: translateY(-1px);
    box-shadow: 0 10px 18px rgba(0,0,0,0.08);
  }
}

/* Modal */
.wcfgpp-modal{
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
}

.wcfgpp-modal.is-open{
  display: block;
}

.wcfgpp-modal__overlay{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(6px);
}

.wcfgpp-modal__panel{
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;

  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.14);
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(248,248,248,0.96));
  box-shadow: 0 24px 60px rgba(0,0,0,0.28);

  transform: translateY(16px);
  opacity: 0;
  transition: transform 180ms ease, opacity 180ms ease;
}

.wcfgpp-modal.is-open .wcfgpp-modal__panel{
  transform: translateY(0);
  opacity: 1;
}

@media (min-width: 768px){
  .wcfgpp-modal__panel{
    left: 50%;
    right: auto;
    bottom: auto;
    top: 50%;
    transform: translate(-50%, calc(-50% + 16px));
    width: min(520px, calc(100% - 24px));
  }
  .wcfgpp-modal.is-open .wcfgpp-modal__panel{
    transform: translate(-50%, -50%);
  }
}

.wcfgpp-modal__top{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 14px 10px 14px;
}

.wcfgpp-modal__heading{
  display: flex;
  align-items: center;
  gap: 10px;
}

.wcfgpp-modal__pill{
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,184,0,0.16);
  border: 1px solid rgba(255,184,0,0.32);
  flex-shrink: 0;
}

.wcfgpp-modal__title{
  font-weight: 950;
  letter-spacing: 0.2px;
  font-size: 14px;
}

.wcfgpp-modal__subtitle{
  margin-top: 2px;
  font-size: 12.5px;
  opacity: 0.72;
}

.wcfgpp-modal__close{
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  border: 1px solid rgba(0,0,0,0.08);
  background: rgba(255,255,255,0.75);
  box-shadow: 0 10px 22px rgba(0,0,0,0.10);
  cursor: pointer;
  padding: 0;
}

.wcfgpp-modal__content{
  padding: 0 14px 14px 14px;
}

.wcfgpp-modal__list{
  margin: 0;
  padding: 0;
  list-style: none;

  display: grid;
  gap: 10px;
}

.wcfgpp-modal__list li{
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(0,0,0,0.03);
  border: 1px solid rgba(0,0,0,0.06);
  font-size: 13px;
  line-height: 1.25;
}

.wcfgpp-modal__note{
  margin-top: 12px;
  display: flex;
  gap: 10px;
  align-items: flex-start;

  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(16,185,129,0.10);
  border: 1px solid rgba(16,185,129,0.18);
  font-size: 12.5px;
  line-height: 1.25;
}

.wcfgpp-modal__noteicon{
  flex-shrink: 0;
}

/* Lock background scroll when modal open */
.wcfgpp-lock{
  overflow: hidden;
}

