/* Fresh Fusion Pack Offers — scoped styles only */
.ffpo {
  --ffpo-green: #0E4F3D;
  --ffpo-white: #FFFFFF;
  --ffpo-selected: #EDF5F0;
  --ffpo-border: #DCE7E1;
  --ffpo-text: #173F32;
  --ffpo-muted: #64756D;
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0 0 20px;
  color: var(--ffpo-text);
  clear: both;
}
.ffpo-title {
  margin: 0 0 14px;
  color: var(--ffpo-text);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  text-transform: none;
}
.ffpo-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  width: 100%;
  padding: 12px 0 0;
  margin: 0;
  box-sizing: border-box;
}
.ffpo .ffpo-card {
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  min-width: 0;
  min-height: 166px;
  margin: 0;
  padding: 22px 12px 12px;
  border: 1.5px solid var(--ffpo-border);
  border-radius: 12px;
  background: var(--ffpo-white);
  box-shadow: none;
  color: var(--ffpo-text);
  cursor: pointer;
  text-align: center;
  text-transform: none;
  line-height: 1.35;
  white-space: normal;
  overflow-wrap: anywhere;
  transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
  box-sizing: border-box;
}
.ffpo .ffpo-card:hover {
  border-color: var(--ffpo-green);
  background: var(--ffpo-selected);
  color: var(--ffpo-text);
}
.ffpo .ffpo-card:focus-visible {
  outline: 2px solid var(--ffpo-green);
  outline-offset: 3px;
}
.ffpo .ffpo-card.is-active {
  border-color: var(--ffpo-green);
  background: var(--ffpo-selected);
  box-shadow: inset 0 0 0 1px var(--ffpo-green);
  color: var(--ffpo-text);
}
.ffpo .ffpo-card input[type="radio"] {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.ffpo .ffpo-name {
  display: block;
  margin: 0;
  color: var(--ffpo-text);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
}
.ffpo .ffpo-price {
  display: block;
  color: var(--ffpo-green);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
}
.ffpo .ffpo-old {
  display: block;
  color: var(--ffpo-muted);
  font-size: 12px;
  line-height: 1.3;
  text-decoration: line-through;
}
.ffpo .ffpo-per {
  display: block;
  color: var(--ffpo-muted);
  font-size: 12px;
  line-height: 1.3;
}
.ffpo .ffpo-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  z-index: 1;
  max-width: calc(100% - 16px);
  transform: translateX(-50%);
  padding: 4px 10px;
  border-radius: 20px;
  background: var(--ffpo-green);
  color: var(--ffpo-white);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap;
}
.ffpo .ffpo-summary {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
  color: var(--ffpo-text);
}
.ffpo .ffpo-summary .t {
  color: var(--ffpo-green);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
}
.ffpo .ffpo-summary .o {
  color: var(--ffpo-muted);
  font-size: 14px;
  text-decoration: line-through;
}
.ffpo .ffpo-summary .p {
  padding: 4px 10px;
  border-radius: 20px;
  background: var(--ffpo-selected);
  color: var(--ffpo-green);
  font-size: 13px;
  font-weight: 600;
}
.ffpo .ffpo-summary .n {
  color: var(--ffpo-muted);
  font-size: 13px;
}
/* Do not hide WooCommerce's native price: it belongs below the title and above the excerpt. */

@media (max-width: 767px) {
  .ffpo-cards { gap: 9px; }
  .ffpo .ffpo-card { min-height: 158px; padding: 20px 7px 10px; gap: 6px; }
  .ffpo .ffpo-name, .ffpo .ffpo-price { font-size: 14px; }
  .ffpo .ffpo-badge { padding: 4px 7px; font-size: 10px; }
}
@media (max-width: 420px) {
  .ffpo-cards { gap: 6px; }
  .ffpo .ffpo-card { min-height: 152px; padding-right: 4px; padding-left: 4px; border-radius: 9px; }
  .ffpo .ffpo-name, .ffpo .ffpo-price { font-size: 12px; }
  .ffpo .ffpo-per, .ffpo .ffpo-old { font-size: 10px; }
  .ffpo .ffpo-badge { font-size: 9px; }
}

/* The native WooCommerce quantity field is the single source of quantity. */
.ffpo .ffpo-card { cursor:pointer; }

/* Per-offer quantity controls, kept separate from WooCommerce's native quantity field. */
.ffpo .ffpo-card-quantity {
  display: inline-flex;
  align-items: stretch;
  justify-content: center;
  flex: 0 0 auto;
  height: 30px;
  max-width: 100%;
  margin-top: 5px;
  overflow: hidden;
  border: 1px solid var(--ffpo-border);
  border-radius: 6px;
  background: #fff;
  color: var(--ffpo-text);
  box-sizing: border-box;
}
.ffpo .ffpo-card-quantity button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 29px;
  min-width: 29px;
  height: 28px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #fff;
  color: var(--ffpo-green);
  box-shadow: none;
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  text-transform: none;
  cursor: pointer;
}
.ffpo .ffpo-card-quantity button:hover,
.ffpo .ffpo-card-quantity button:focus-visible {
  background: var(--ffpo-selected);
  color: var(--ffpo-green);
}
.ffpo .ffpo-card-quantity input.ffpo-card-qty {
  display: block;
  width: 42px;
  min-width: 32px;
  height: 28px;
  margin: 0;
  padding: 0 3px;
  border: 0;
  border-right: 1px solid var(--ffpo-border);
  border-left: 1px solid var(--ffpo-border);
  border-radius: 0;
  background: #fff;
  color: var(--ffpo-text);
  box-shadow: none;
  font-size: 13px;
  line-height: 28px;
  text-align: center;
  appearance: textfield;
  -moz-appearance: textfield;
}
.ffpo .ffpo-card-quantity input.ffpo-card-qty::-webkit-inner-spin-button,
.ffpo .ffpo-card-quantity input.ffpo-card-qty::-webkit-outer-spin-button {
  margin: 0;
  -webkit-appearance: none;
}
.ffpo .ffpo-card-quantity input.ffpo-card-qty:focus-visible {
  outline: 2px solid var(--ffpo-green);
  outline-offset: -2px;
}
@media (max-width: 420px) {
  .ffpo .ffpo-card-quantity { height: 27px; }
  .ffpo .ffpo-card-quantity button { width: 24px; min-width: 24px; height: 25px; }
  .ffpo .ffpo-card-quantity input.ffpo-card-qty { width: 30px; min-width: 26px; height: 25px; font-size: 12px; line-height: 25px; }
}


/* Alternate compact package-list layout; scoped to products configured for this layout. */
.ffpo.ffpo-layout-list .ffpo-cards {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding-top: 12px;
}
.ffpo.ffpo-layout-list .ffpo-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  grid-template-rows: auto auto;
  align-items: center;
  justify-content: stretch;
  gap: 3px 14px;
  min-height: 74px;
  padding: 13px 16px;
  text-align: left;
}
.ffpo.ffpo-layout-list .ffpo-name { grid-column: 1; grid-row: 1; text-align: left; }
.ffpo.ffpo-layout-list .ffpo-per { grid-column: 1; grid-row: 2; text-align: left; }
.ffpo.ffpo-layout-list .ffpo-price { grid-column: 2; grid-row: 1; text-align: right; white-space: nowrap; }
.ffpo.ffpo-layout-list .ffpo-old { grid-column: 2; grid-row: 2; text-align: right; }
.ffpo.ffpo-layout-list .ffpo-card-quantity { grid-column: 3; grid-row: 1 / span 2; margin: 0; }
.ffpo.ffpo-layout-list .ffpo-badge { top: -9px; left: auto; right: 12px; transform: none; }
@media (max-width: 520px) {
  .ffpo.ffpo-layout-list .ffpo-card { grid-template-columns: minmax(0,1fr) auto; gap: 4px 8px; padding: 14px 10px 10px; }
  .ffpo.ffpo-layout-list .ffpo-card-quantity { grid-column: 1 / -1; grid-row: 3; justify-self: start; margin-top: 5px; }
  .ffpo.ffpo-layout-list .ffpo-name { font-size: 14px; }
  .ffpo.ffpo-layout-list .ffpo-price { font-size: 14px; }
}

/* Per-product quantity rules (v1.5.0) */
.ffpo-rule-note{margin-top:10px;padding:10px 12px;border-radius:8px;background:#fff7e6;border:1px solid #f0d9a8;color:#6b4e16;font-size:14px;line-height:1.4}
form.cart .quantity.ffpo-hidden-qty{display:none!important}
