/* =========================================================
   FG Storefront Benefit Card (NEW markup)
   Wrapper: .fg-storefront-benefit (and .fg-tier-*)
   Inside:
     .fg-storefront-benefit__tier + .fg-storefront-benefit__price
     .fg-storefront-benefit__card
       .fg-storefront-benefit__image img
       .fg-storefront-benefit__body
         .fg-storefront-benefit__title (h3) + link
         .fg-storefront-benefit__summary
         .fg-storefront-benefit__terms
     .fg-storefront-benefit__cta
   ========================================================= */

/* sanity test (remove when satisfied) */
.fg-storefront-benefit { outline: 4px solid hotpink !important; }

/* Card shell */
.fg-storefront-benefit{
  background: #f6f1e7;                 /* parchment */
  border: 1px solid #d8cbb2;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(0,0,0,0.10);
  margin: 0 0 22px;
  position: relative;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.fg-storefront-benefit:hover{
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.13);
}

/* Accent bar (default “gold”) */
.fg-storefront-benefit::before{
  content: "";
  position: absolute;
  left: 0; top: 0; right: 0;
  height: 5px;
  background: linear-gradient(135deg, #b48b2c, #d4af37);
}

/* Tier variants (optional but delicious) */
.fg-storefront-benefit.fg-tier-royal::before{
  background: linear-gradient(135deg, #b48b2c, #d4af37);
}
.fg-storefront-benefit.fg-tier-noble::before{
  background: linear-gradient(135deg, #6a3f1f, #a06a2e);
}
.fg-storefront-benefit.fg-tier-knight::before{
  background: linear-gradient(135deg, #4b4b4b, #7a7a7a);
}

/* Tier bar */
.fg-storefront-benefit__tier{
  padding: 12px 16px;
  background: rgba(255,255,255,0.55);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  font-size: 0.85rem;
  color: #6e5c3b;
  letter-spacing: 0.02em;
}

/* Make the label look intentional */
.fg-storefront-benefit__tier strong{
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  color: #7a6b4d;
  margin-right: 6px;
}

/* Price pill */
.fg-storefront-benefit__price{
  display: inline-block;
  margin-left: 8px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(180,139,44,0.14);
  border: 1px solid rgba(180,139,44,0.30);
  color: #5b4213;
  font-weight: 700;
  font-size: 0.82rem;
}

/* Card content wrapper */
.fg-storefront-benefit__card{
  padding: 14px 16px 10px;
}

/* Image block */
.fg-storefront-benefit__image{
  text-align: center;
}

.fg-storefront-benefit__image img{
  max-width: 280px;   /* adjust as desired */
  width: 100%;
  height: auto;
  display: inline-block;
  border-radius: 10px;
  margin: 0 0 14px;
}

.fg-storefront-benefit__card{
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.fg-storefront-benefit__image{
  flex: 0 0 200px;
}

.fg-storefront-benefit__image img{
  width: 100%;
  height: auto;
}

.fg-storefront-benefit__body{
  flex: 1;
}

/* Body text */
.fg-storefront-benefit__body{
  color: #3b3324;
  font-size: 0.95rem;
}

/* Title */
.fg-storefront-benefit__title{
  font-family: "Cinzel Decorative","Cinzel",serif;
  font-size: 1.45rem;
  line-height: 1.15;
  margin: 6px 0 10px;
}

.fg-storefront-benefit__titlelink{
  color: #2c2418;
  text-decoration: none;
}
.fg-storefront-benefit__titlelink:hover{
  text-decoration: underline;
}

/* Summary */
.fg-storefront-benefit__summary{
  margin: 0 0 10px;
  color: #3b3324;
}

/* Terms: render as “tags” */
.fg-storefront-benefit__terms{
  margin: 5px;
}
.fg-storefront-benefit{
  margin-top: 28px;   /* space above the whole card */
}

/* Handle common D7 term field output */
.fg-storefront-benefit__terms .field-item,
.fg-storefront-benefit__terms a{
  display: inline-block;
  margin: 0 8px 8px 0;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,0.05);
  border: 1px solid rgba(0,0,0,0.08);
  color: #5b4a2a;
  text-decoration: none;
  font-size: 0.82rem;
}
.fg-storefront-benefit__terms a:hover{
  background: rgba(180,139,44,0.14);
  border-color: rgba(180,139,44,0.30);
}

/* CTA area */
.fg-storefront-benefit__cta{
  padding: 12px 16px 16px;
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
  border-top: 1px solid rgba(0,0,0,0.06);
  background: rgba(255,255,255,0.35);
}

/* Button */
.fg-storefront-benefit__cta a{
  display: inline-block;
  padding: 9px 14px;
  border-radius: 6px;
  background: linear-gradient(135deg, #b48b2c, #d4af37);
  color: #fff !important;
  font-weight: 800;
  text-decoration: none !important;
  box-shadow: 0 6px 14px rgba(0,0,0,0.12);
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
}

.fg-storefront-benefit__cta a:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(0,0,0,0.16);
  filter: brightness(0.98);
}

/* Sold out state */
.fg-storefront-benefit__cta.fg-sold-out{
  justify-content: flex-start;
  font-weight: 800;
  color: #6e5c3b;
}
.fg-storefront-benefit__tierlink { margin: 6px; }
.fg-tier-details-link { font-size: 0.95em; font-weight:bold; }

/* =========================================================
 * App mode: stack benefit card vertically
 * ======================================================= */

/* If using fg_app body class */
body.fg-app-mode .fg-storefront-benefit__card {
  flex-direction: column !important;
  gap: 14px;
}

/* If your app pages rely on path-based class instead */
.page-app .fg-storefront-benefit__card {
  flex-direction: column !important;
  gap: 14px;
}

/* Let image expand naturally in app mode */
body.fg-app-mode .fg-storefront-benefit__image,
.page-app .fg-storefront-benefit__image {
  flex: none !important;
  width: 100% !important;
  text-align: center;
}

body.fg-app-mode .fg-storefront-benefit__image img,
.page-app .fg-storefront-benefit__image img {
  max-width: 100%;
}

/* Optional: center CTA in narrow layout */
body.fg-app-mode .fg-storefront-benefit__cta,
.page-app .fg-storefront-benefit__cta {
  justify-content: center;
}
.fg-storefront-benefit__tierrow{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.fg-storefront-benefit__tierright a{
  font-weight:600;
  text-decoration:underline;
}
.fg-storefront-benefit__cta.fg-already-purchased .fg-redeem-instructions{
  padding:10px 14px;
  border-radius:8px;
  font-weight:700;
}