/* =========================================================
   CANNEFF+ info card (tooltip on desktop / bottom-sheet on mobile)
   ---------------------------------------------------------
   Replaces the old fullscreen modal. The points-notice coin
   icon, "i" badge suppression and the trigger styling live in
   the always-loaded style.css so the notice renders correctly
   regardless of whether this conditionally-enqueued file has
   loaded. Behaviour is in cf_canneff_plus_js.js.
   ========================================================= */

.cf-plus-info {
  display: none;
}

.cf-plus-info.is-tooltip,
.cf-plus-info.is-sheet {
  display: block;
}

.cf-plus-info-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
  padding: 20px 22px;
}

.cf-plus-info-title {
  margin: 0 0 12px;
  font-size: 18px;
}

.cf-plus-info-list {
  margin: 0;
  padding-left: 18px;
  text-align: left;
  list-style: disc;
}

.cf-plus-info-list li {
  list-style: disc;
  margin: 7px 0;
  font-size: 14px;
  line-height: 1.5;
}

.cf-plus-info-close {
  position: absolute;
  top: 6px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: none;
  border: 0;
  color: #888;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.cf-plus-info-backdrop {
  display: none;
}

/* --- Desktop tooltip ------------------------------------- */
.cf-plus-info.is-tooltip .cf-plus-info-card {
  position: fixed;
  z-index: 100000;
  width: 360px;
  max-width: calc(100vw - 24px);
}

.cf-plus-info.is-tooltip .cf-plus-info-close {
  display: none;
}

/* --- Mobile bottom-sheet --------------------------------- */
.cf-plus-info.is-sheet .cf-plus-info-backdrop {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cf-plus-info.is-sheet.is-open .cf-plus-info-backdrop {
  opacity: 1;
}

.cf-plus-info.is-sheet .cf-plus-info-card {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100000;
  width: 100%;
  max-height: 82vh;
  overflow: auto;
  padding-top: 30px;
  border-radius: 16px 16px 0 0;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.cf-plus-info.is-sheet.is-open .cf-plus-info-card {
  transform: translateY(0);
}

/* Teal round close button on the mobile bottom-sheet. */
.cf-plus-info.is-sheet .cf-plus-info-close {
  top: 10px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #739fa0;
  color: #fff;
  font-size: 22px;
}

body.cf-plus-info-open {
  overflow: hidden;
}