/* FDO Exclusives 1.0 – front end. Cards reuse the theme's rv2-card / rv-home-offer styles; this adds the
   exclusive accents. The peel-away code box styles come from FDO Locker (peel_css), added inline. */
:root {
  --fdo-x-gold: #c99b36;
  --fdo-x-navy: #0a1826;
  --fdo-x-olive: #8c9a45;
}

.fdo-x-section { margin: 0 0 14px; }
.fdo-x-list { display: grid; grid-template-columns: 1fr; gap: 10px; }
.fdo-x-heading { margin: 0 0 10px; }

.fdo-x-card.rv2-card { border: 2px solid var(--fdo-x-gold); position: relative; }
.fdo-x-card.rv2-card::before {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 5px; border-radius: 10px 0 0 10px; background: var(--fdo-x-gold);
}
.fdo-x-badge {
  display: inline-block; margin: 0 0 6px; padding: 3px 9px; border-radius: 3px;
  background: var(--fdo-x-gold); color: var(--fdo-x-navy);
  font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; line-height: 1.4;
}
.fdo-x-tile-badge { background: var(--fdo-x-gold) !important; color: var(--fdo-x-navy) !important; }
.fdo-x-tile { outline: 2px solid var(--fdo-x-gold); outline-offset: -2px; }

/* Code box: before reveal it is the peel; after, the real code. Same look as the theme's .rv2-code. */
.fdo-x-code {
  display: inline-flex; gap: 8px; align-items: center; margin: 6px 0 2px; padding: 10px 12px;
  border-radius: 10px; border: 2px dashed rgba(0, 160, 160, .35); background: rgba(0, 160, 160, .06);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35), 0 1px 4px rgba(0, 0, 0, .08);
  cursor: pointer; font-weight: 900; font-family: inherit; font-size: inherit; color: inherit; max-width: 100%;
}
.fdo-x-code--sm { font-size: 13px; }
.fdo-x-code .rv2-codehint { font-weight: 700; opacity: .7; font-size: 12px; }
.fdo-x-code.is-revealed { cursor: copy; }
.fdo-x-code__value { font-weight: 900; letter-spacing: .1em; user-select: all; }
.fdo-x-code.is-copied { border-color: #1a9c5b !important; background: rgba(26, 156, 91, .08) !important; }
.fdo-x-code.is-busy { cursor: progress; }
.fdo-x-soldout {
  display: inline-block; margin: 6px 0 2px; padding: 9px 12px; border-radius: 10px;
  border: 2px solid #ddd; color: #666; font-weight: 700; font-size: 13px;
}

.fdo-x-msg { font-size: 13px; line-height: 1.45; margin: 6px 0 0; color: #1e2b38; }
.fdo-x-msg:empty { display: none; }
.fdo-x-msg a, .fdo-x-resend {
  color: #0a5c8a; font-weight: 700; text-decoration: underline; background: none; border: 0; padding: 0; cursor: pointer; font: inherit;
}
.fdo-x-spin {
  display: inline-block; width: 12px; height: 12px; margin-right: 6px; vertical-align: -2px;
  border: 2px solid #ddd; border-top-color: var(--fdo-x-gold); border-radius: 50%; animation: fdoXSpin .8s linear infinite;
}
@keyframes fdoXSpin { to { transform: rotate(360deg); } }

.fdo-x-terms { margin: 6px 0 0; font-size: 12px; color: #555; }
.fdo-x-terms summary { cursor: pointer; font-weight: 700; }
.fdo-x-terms__body { padding: 6px 0 0; }
.fdo-x-terms__body p { margin: 0 0 .4em; }

.fdo-x-card.is-expired { opacity: .55; }
.fdo-x-card.is-expired .fdo-x-go { pointer-events: none; }
.fdo-x-flash { animation: fdoXFlash 1.6s ease-out 1; }
@keyframes fdoXFlash { 0% { box-shadow: 0 0 0 0 var(--fdo-x-gold); } 40% { box-shadow: 0 0 0 6px rgba(201, 155, 54, .45); } 100% { box-shadow: none; } }

/* Sticky reminder (from Coupon Popups): bottom bar on phones, corner card on desktop. */
.fdo-x-sticky {
  position: fixed; z-index: 99990; display: flex; align-items: center; gap: 10px; box-sizing: border-box;
  background: var(--fdo-x-navy); color: #fff; transition: transform .25s ease, opacity .25s ease;
  font-family: inherit;
}
.fdo-x-sticky.is-hidden { opacity: 0; pointer-events: none; }
.fdo-x-sticky__badge {
  flex: none; padding: 2px 7px; border-radius: 3px; background: var(--fdo-x-gold); color: var(--fdo-x-navy);
  font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
}
.fdo-x-sticky__text { flex: 1; min-width: 0; font-weight: 700; font-size: .92rem; line-height: 1.25; color: #fff; }
.fdo-x-sticky__btn {
  flex: none; padding: 10px 14px; border: 0; border-radius: 5px; cursor: pointer;
  background: linear-gradient(180deg, #dcb75b, #b98723); color: var(--fdo-x-navy);
  font-weight: 900; font-size: 13px; letter-spacing: .03em; text-transform: uppercase; font-family: inherit;
}
.fdo-x-sticky__close {
  flex: none; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  background: transparent; color: #cbd5e1; font-size: 22px; line-height: 1;
}
.fdo-x-sticky__close:hover { background: rgba(255, 255, 255, .12); color: #fff; }

@media (max-width: 782px) {
  .fdo-x-sticky {
    left: 0; right: 0; bottom: 0; padding: 10px 10px 10px 14px; flex-wrap: wrap;
    padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    border-top: 2px solid var(--fdo-x-gold); box-shadow: 0 -4px 20px rgba(0, 0, 0, .25);
  }
  .fdo-x-sticky.is-hidden { transform: translateY(110%); }
  .fdo-x-sticky__text { font-size: .86rem; }
  body.fdo-x-sticky-visible #fcs-mobile-sticky { bottom: 86px; }
}
@media (min-width: 783px) {
  .fdo-x-sticky {
    right: 20px; bottom: 24px; width: 330px; padding: 14px 14px 14px 16px; flex-wrap: wrap;
    border: 2px solid var(--fdo-x-gold); border-radius: 10px; box-shadow: 0 10px 30px rgba(0, 0, 0, .3);
  }
  .fdo-x-sticky.is-hidden { transform: translateY(16px); }
  .fdo-x-sticky__close { position: absolute; top: 4px; right: 4px; }
  .fdo-x-sticky__text { width: 100%; padding-right: 26px; }
  .fdo-x-sticky__btn { width: 100%; }
  body.fdo-x-sticky-visible #fcs-float-btn { bottom: 190px; }
}

@media (prefers-reduced-motion: reduce) {
  .fdo-x-sticky, .fdo-x-flash, .fdo-x-spin { transition: none; animation: none; }
}
