/* Luke smoothie page (/smoothie/{slug}/), classes luke-sp-.
   Loaded after luke-bundle-pdp.css: the card, How it works, Benefits, SEO and the bottom bar are its luke-bp- classes */

/***************************************************************************** CARD ***/
.luke-sp-note {
  align-items: center;
  background: #DAF1FE;
  border-radius: 30px;
  color: #00456C;
  display: flex;
  gap: 4px;
  padding: 4px 8px 4px 4px;
}
.luke-sp-note svg {
  flex-shrink: 0;
}
.luke-sp-note span {
  color: var(--c-dark);
  font-size: 13px;
  line-height: 18px;
}
.luke-sp-note b {
  font-weight: 700;
}

/* Per serving: three boxes */
.luke-sp-serving {
  border-top: 1px solid var(--c-beige0);
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 12px;
}
.luke-sp-serving-title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  line-height: 16px;
  text-transform: uppercase;
}
.luke-sp-unit { /* grams: g, not G */
  text-transform: none;
}
.luke-sp-serving-list {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.luke-sp-serving-list div {
  align-items: center;
  background: #F2F0E8;
  border: 1px solid var(--c-beige0);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 8px;
  text-align: center;
}
.luke-sp-serving-list b {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -.03em;
  line-height: 22px;
}
.luke-sp-serving-list span {
  font-size: 13px;
  line-height: 18px;
}

/* From CA$X per smoothie + 50% */
.luke-sp-price {
  align-items: flex-start;
  background: #E5D5F6;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
  padding: 11px 12px;
}
.luke-sp-price-val {
  font-size: 14px;
  line-height: 20px;
}
.luke-sp-price-val b {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -.03em;
  line-height: 22px;
}
.luke-sp-price-val span {
  color: var(--c-gray);
}

/* Stepper + Add to custom bundle */
.luke-sp-atc {
  display: flex;
  gap: 12px;
}
.luke-sp-step {
  align-self: stretch;
  border-radius: 16px;
  flex-shrink: 0;
  gap: 12px;
  padding: 5px 12px;
}
.luke-sp-step svg {
  height: 16px;
  width: 16px;
}
.luke-sp .luke-sp-add {
  flex: 1;
  min-width: 0;
  padding-left: 16px;
  padding-right: 16px;
  width: auto;
}
.luke-sp .luke-bp-go {
  border-top: 1px solid var(--c-beige0);
  padding-top: 16px;
}

/***************************************************************************** INGREDIENTS, NUTRITION FACTS ***/
.luke-sp-acc {
  display: flex;
  flex-direction: column;
}
.luke-sp-acc-item + .luke-sp-acc-item {
  border-top: 1px solid var(--c-beige1);
}
.luke-sp-acc-item {
  padding: 8px 0;
}
.luke-sp-acc-btn {
  align-items: center;
  color: var(--c-dark);
  display: flex;
  gap: 16px;
  padding: 4px 0;
  text-align: left;
  width: 100%;
}
.luke-sp-acc-btn span {
  flex: 1;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -.03em;
  line-height: 22px;
}
.luke-sp-acc-btn i {
  align-items: center;
  background: var(--c-beige1);
  border-radius: 50%;
  display: flex;
  flex-shrink: 0;
  height: 32px;
  justify-content: center;
  transform: rotate(180deg);
  transition: background-color .2s;
  width: 32px;
}
.luke-sp-acc-btn i svg {
  height: 20px;
  width: 20px;
}
.luke-sp-acc-btn:hover i,
.luke-sp-acc-item.open .luke-sp-acc-btn i {
  background: var(--c-accent);
}
.luke-sp-acc-item.open .luke-sp-acc-btn i {
  transform: none;
}
.luke-sp-acc-body {
  display: none;
  flex-direction: column;
  gap: 12px;
  padding: 8px 0 12px;
}
.luke-sp-acc-item.open .luke-sp-acc-body {
  display: flex;
}
.luke-sp-ingr {
  font-size: 14px;
  line-height: 20px;
  margin: 0;
}

/* Complex ingredient: bold + "i", its parts in a tooltip (hover, focus or tap) */
.luke-sp-cx {
  cursor: help;
  outline: 0;
  position: relative;
  white-space: nowrap;
}
.luke-sp-cx b {
  font-weight: 700;
}
.luke-sp-cx > svg {
  color: var(--c-green);
  display: inline-block;
  height: 18px;
  margin: 0 0 0 4px;
  vertical-align: -4px;
  width: 18px;
}
.luke-sp-tip {
  background: rgba(5, 25, 20, .9);
  border-radius: 8px;
  bottom: calc(100% + 10px);
  color: var(--c-white);
  font-size: 13px;
  font-weight: 500;
  left: calc(100% - 9px); /* the center of the "i" icon; --shift keeps the tooltip on the screen (luke-smoothie-pdp.js) */
  line-height: 18px;
  opacity: 0;
  padding: 9px 8px;
  pointer-events: none;
  position: absolute;
  text-align: center;
  transform: translateX(calc(-50% + var(--shift, 0px)));
  transition: opacity .2s, visibility .2s;
  visibility: hidden;
  white-space: normal;
  width: 220px;
  z-index: 5;
}
.luke-sp-tip::after {
  border: 8px solid transparent;
  border-bottom: 0;
  border-top-color: rgba(5, 25, 20, .9);
  content: '';
  left: calc(50% - var(--shift, 0px)); /* stays under the icon */
  margin-left: -8px;
  position: absolute;
  top: 100%;
}
.luke-sp-cx:hover .luke-sp-tip,
.luke-sp-cx:focus .luke-sp-tip,
.luke-sp-cx.open .luke-sp-tip {
  opacity: 1;
  visibility: visible;
}

.luke-sp-allergens {
  align-items: flex-start;
  background: #FEDFD3;
  border-radius: 20px;
  display: flex;
  font-size: 14px;
  gap: 12px;
  line-height: 20px;
  padding: 8px 12px;
}
.luke-sp-allergens svg {
  color: #A63104;
  flex-shrink: 0;
}
.luke-sp-allergens b {
  font-weight: 700;
}
.luke-sp-acc .luke-pv-nutra {
  align-self: stretch;
}

@media (min-width: 768px) {
  .luke-sp-note span {
    font-size: 16px;
    line-height: 22px;
  }
  .luke-sp-serving {
    gap: 16px;
    padding-top: 20px;
  }
  .luke-sp-serving-title {
    font-size: 14px;
    line-height: 20px;
  }
  .luke-sp-serving-list div {
    padding: 15px 12px;
  }
  .luke-sp-serving-list b {
    font-size: 24px;
    line-height: 28px;
  }
  .luke-sp-serving-list span {
    font-size: 14px;
    line-height: 20px;
  }
  .luke-sp-price {
    border-radius: 20px;
    margin-top: 0;
    padding: 14px 20px;
  }
  .luke-sp-price-val {
    font-size: 18px;
    letter-spacing: -.02em;
    line-height: 24px;
  }
  .luke-sp-price-val b {
    font-size: 24px;
    line-height: 28px;
  }
  .luke-sp-atc {
    gap: 24px;
  }
  .luke-sp-step {
    gap: 16px;
    padding: 12px 16px;
  }
  .luke-sp-step svg {
    height: 20px;
    width: 20px;
  }
  .luke-sp-step .luke-step-qty {
    font-size: 16px;
    line-height: 22px;
  }
  .luke-sp .luke-sp-add {
    font-size: 16px;
    line-height: 22px;
    padding-bottom: 11px;
    padding-top: 11px;
  }
  .luke-sp-acc-item {
    padding: 12px 0;
  }
  .luke-sp-acc-btn span {
    font-size: 24px;
    line-height: 28px;
  }
  .luke-sp-acc-btn i {
    height: 40px;
    width: 40px;
  }
  .luke-sp-acc-btn i svg {
    height: 24px;
    width: 24px;
  }
  .luke-sp-ingr,
  .luke-sp-allergens {
    font-size: 16px;
    line-height: 22px;
  }
  .luke-sp-tip {
    width: 255px;
  }
}
@media (min-width: 1200px) {
  .luke-sp-acc {
    padding: 0;
  }
}

/***************************************************************************** HOW IT WORKS ***/
.luke-sp-how .luke-bp-how-in {
  background: #E5D5F6;
}
@media (min-width: 1200px) {
  .luke-sp-how .luke-bp-how-mango { /* higher than on the bundle page, as in the design */
    right: -24px;
    top: -122px;
  }
  .luke-sp-how .luke-bp-steps li:first-child span { /* the mango covers the top right corner of the card */
    max-width: 380px;
  }
}

/***************************************************************************** BUNDLES WE KEEP COMING BACK TO ***/
/* Up to 4 bundle cards (.luke-card from luke-home.css): mobile - a row that scrolls sideways, from 768 - a grid */
.luke-sp-favs .luke-head {
  margin-bottom: 24px;
}
.luke-sp-favs-list {
  display: flex;
  gap: 16px;
  margin: 0 calc(-1 * var(--gutter));
  overflow-x: auto;
  padding: 0 var(--gutter) 10px;
  scroll-padding: 0 var(--gutter);
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.luke-sp-favs-list::-webkit-scrollbar {
  display: none;
}
.luke-sp-favs-list .luke-card {
  flex: 0 0 248px; /* wider than on the homepage: prices and Add to cart in one row */
  scroll-snap-align: start;
}
.luke-sp-favs .luke-card-title {
  color: var(--c-dark);
  display: block;
}
.luke-sp-favs .luke-card-title:hover {
  color: var(--c-green);
}
.luke-sp-favs .luke-card-photo > a {
  display: block;
}
/* Prices one under the other (as on /bundles/), Add to cart on the right */
.luke-sp-favs .luke-card-bottom {
  flex-wrap: nowrap;
}
.luke-sp-favs .luke-price-val {
  flex-direction: column;
  gap: 0;
  white-space: nowrap;
}
.luke-sp-favs .luke-price-val s {
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}
.luke-sp-favs .luke-card-bottom .lbtn {
  flex: 0 0 auto;
  font-size: 14px;
  padding-left: 14px;
  padding-right: 14px;
}
@media (min-width: 768px) {
  .luke-sp-favs .luke-card-bottom .lbtn {
    font-size: 16px;
    padding-left: 16px;
    padding-right: 16px;
  }
}
@media (min-width: 768px) {
  .luke-sp-favs .luke-head {
    margin-bottom: 40px;
  }
  .luke-sp-favs-list {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0;
    overflow: visible;
    padding: 0;
  }
}
@media (min-width: 1200px) {
  .luke-sp-favs .luke-head {
    margin-bottom: 50px;
  }
  .luke-sp-favs-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/***************************************************************************** BOTTOM BAR ***/
body.luke-smoothie-pdp {
  padding-bottom: 94px; /* the bar does not cover the footer (as body.luke-bundle-pdp) */
}
@media (min-width: 768px) {
  body.luke-smoothie-pdp {
    padding-bottom: 84px;
  }
}
.luke-sp-bar-sum {
  font-size: 14px;
  line-height: 20px;
}
.luke-sp-bar-sum b {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -.03em;
  line-height: 24px;
}
.luke-sp-bar-sum span {
  color: rgba(250, 247, 234, .7);
}
