#fb-popup {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fb-popup-inner {
  width: 360px;
  background: #fff;
  border-radius: 14px;
  padding: 16px;
  position: relative;
}

/* CLOSE */
.fb-close {
  position: absolute;
  top: 12px;
  right: 14px;
  font-size: 22px;
  cursor: pointer;
}

/* HEADER */
/* HEADER FULL WIDTH WITH SHADOW */
.fb-header {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 110%; 
  padding: 12px 16px;
  margin: -16px -16px 14px; /* pull to popup edges */
  background: #fff;
  border-radius: 14px 14px 0 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.fb-product-img {
  width: 35px;
  height: 35px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #eee;
}

.fb-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 0px; 
}

/* VARIATION LIST */
.fb-variations label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  border: 1px solid #eee;
  border-radius: 10px;
  margin-bottom: 10px;
  cursor: pointer;
}

.fb-variations input {
  display: none;
}

.fb-variations label span {
  font-size: 14px;
}

/* ACTIVE VARIATION */
.fb-variations input:checked + span {
  color: #2ecc71;
  font-weight: 600;
}

/* BOTTOM BAR */
.fb-bottom-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
}

/* QTY */
.fb-qty {
  display: flex;
  align-items: center;
  border: 1px solid #ddd;
  border-radius: 10px;
  overflow: hidden;
}

.fb-qty button {
  width: 32px !important;
  height: 32px !important;
  background: #f7f7f7 !important;
  border: none !important;
  cursor: pointer !important;
}

.fb-qty input {
	width: 36px !important;
	text-align: center !important;
	border: none !important;
	outline: none !important;
}

.fb-qty input[type="number"] {
	-webkit-appearance: textfield;
	-moz-appearance: textfield;
	appearance: textfield;
}

/* ADD BUTTON */
.fb-add {
  background: #2ecc71 !important;
  color: #fff !important;
  border: none !important;
  padding: 10px 16px !important;
  border-radius: 10px !important;
  font-size: 14px !important;
  cursor: pointer !important;
}