/*============================
	REFERRAL
============================*/

#banner {
  display: none;
  background-color: var(--blue_light);
  color: var(--blue);
  padding-inline: 10px;
  border-radius: 5px ;
  vertical-align: middle;
  font-weight: 600;
  font-size: 13px;
  line-height: 26px;
  height: 26px;
  margin-left: 10px;
  z-index: 100;
}

h1 #banner {
  display: inline-block;
}

#banner a {
  color: var(--blue);
  text-decoration: none;
}

#banner a:hover {
  text-decoration: underline;
}
#banner * {
  color: inherit;
  text-decoration: inherit;
}

.banner_text_md  {
  display: none;
}

@media (min-width: 600px) {

  .banner_text_sm  {
    display: none;
  }

  .banner_text_md  {
    display: inline-block;
  }
}

.referral .cellbloc {
  font-size: 16px;
  border-top: 1px solid var(--grey_border);
}

.referral .cellbloc h3 {
  font-size: 20px;
  color: var(--blue);
  margin-block: 36px 20px;
}

.referral .cellbloc h4 {
  font-size: 16px;
  color: var(--blue);
  margin-block: 24px 20px;
}

.referral .cellbloc h3:first-child {
  margin-top: 0;
} 

.referral .cellbloc:first-of-type {
  border-top: 0;
}

.referral .cellbloc:first-of-type h3:first-child {
  color: var(--font);
}

.referral .cellbloc .ro-accordion {
  font-size: 16px;
}

.referral .cellbloc .ro-accordion[open] {
  padding-bottom: 20px;
}

.referral .cellbloc .ro-accordion summary {
  font-size: 16px;
  font-weight: 700;
}

#input_referral_wrapper {
  --input-height: 60px;
  display: flex;
}

#input_referral_wrapper .btn {
  height: var(--input-height);
  line-height: var(--input-height);
  padding-inline: 20px;
  margin-left: 12px;
}

.referral #input_referral_email_picto {
  position: absolute;
  z-index: 2;
  width: 50px;
  height: var(--input-height);
  background: url(/img/email.svg) no-repeat center center;
  background-size: 26px;
  pointer-events: none;
}

.referral #input_referral_email {
  height: var(--input-height);
  line-height: var(--input-height);
  max-width: 300px;
  width: 100%;
  border-radius: 8px;
  border: 0;
  box-shadow: none;
  background: var(--blue_light);
  padding: 0 20px 0 50px;
}

.referral #referral_link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 60px;
  line-height: 60px;
  border-radius: 8px;
  background: url(/img/link.svg) no-repeat 10px center var(--blue_light);
  background-size: 30px;
  padding-inline: 50px 10px;
  max-width: calc(100% - 60px);
}

#referral_link .btn.copy {
  display: flex;
  align-items: center;
  gap: 8px;
}

#referral_link .icon.copy {
  opacity: 0.7;
  position: static;
  filter: invert(1) brightness(1);
  transform: none;
}

#referral_link.success .icon.copy {
  background-image: url(/img/check.svg);
}

#referral_link_url {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  white-space: nowrap;
}

.referral .referral_social_media {
  display: inline-block;
  height: 60px;
  line-height: 60px;
  border-radius: 8px;
  background-repeat: no-repeat;
  background-position: 10px center;
  background-color: var(--blue_light);
  background-size: 30px;
  padding: 0 20px 0 50px;
  margin-bottom: 4px;
  cursor: pointer;
}

.referral .referral_social_media.facebook {
  background-image: url(/img/store/facebook.svg);
}

.referral .referral_social_media.twitter {
  background-image: url(/img/store/twitter.svg);
}

.referral .referral_social_media.linkedin {
  background-image: url(/img/store/linkedin.svg);
}

.referral .referral_social_media:hover {
  background-color: var(--blue_light_hover);
}

.gift_cards {
  width: 200px;
  aspect-ratio: 1.65;
  position: relative;
  z-index: 0;
}

.gift_cards_item {
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 1ch;
  padding: 15px;
  box-sizing: border-box;
  background-color: #273a53;
  color: white;
  border-radius: 8px;
  position: absolute;
  inset: 0;
  z-index: 3;
}

.gift_cards_item:nth-child(2) {
  transform: translate(-5px, -30px) rotate(-15deg);
  background-color: var(--blue);
  z-index: 2;

}

.gift_cards_item:nth-child(3) {
  transform: translate(-20px, -55px) rotate(-30deg);
  background-color: var(--blue_light);
  z-index: 1;
}

.gift_cards_item > * {
  color: inherit;
}

.gift_cards_item .referral_amount {
  line-height: 1;
  font-size: 32px;
  font-weight: 900;
  color: var(--orange);
  position: absolute;
  right: 10px;
  top: 10px;
}

.gift_cards_item p {
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.15;
}

.gift_cards_item img {
  width: 36px;
  aspect-ratio: 1;
}

@media screen and (max-width: 1023.98px) {
  .referral .gift_cards {
    margin: 150px auto 50px;
  }
}

@media screen and (min-width: 768px) {
  .referral .cellbloc {
    padding-inline: 60px;
    padding-block: 36px;
  }
}

@media screen and (min-width: 1024px) {
  .referral .cellbloc:first-of-type {
    padding-right: 500px;
    min-height: 220px;
  }

  .referral .gift_cards {
    position: absolute;
    right: 140px;
    bottom: 20%;
    z-index: 0;
  }

  .referral ol {
    max-width: 500px;
  }
}



.cellbloc.cellbloc--recommendees {
  font-size: inherit;
}


#cont_referral .line--flex {
  flex-wrap: wrap;
  padding: 20px 25px;
}

.cell.referral_name {
  width: 100%;
  color: var(--font);
  font-weight: 600;
  font-size: 14px;
}

.cell.referral_sponsored_at {
  width: 100%;
}

.cell.referral_gift_amount {
  margin-right: 6px;
  margin-block: 10px;
}

.cell.referral_gift_type,
.cell.referral_gift_amount {
 color: var(--font);
}

.cell.referral_gift_sent_at {
  width: 100%;
}

@media (min-width:1024px) {
  #cont_referral .line--flex {
    flex-wrap: nowrap;
    padding-block: 0;
    height: 60px;
  }

  .cell.referral_name {
    flex-grow: 1;
    width: auto;
    color: var(--font);
    font-weight: 600;
    font-size: 14px;
  }
  
  .cell.referral_sponsored_at {
    flex: 0 0 30ch;
  }
  
  .cell.referral_gift_type {
    flex: 0 0 20ch;
  }
  
  .cell.referral_gift_amount {
    flex: 0 0 15ch;
  }
  
  .cell.referral_gift_sent_at {
    flex: 0 0 20ch;
  }

  .cell.referral_gift_type,
  .cell.referral_gift_amount {
    color: inherit;
  }
}

#cont_referral.wait {
  height: 100px;
  background: url(/img/loader.svg) no-repeat center center var(--white);
  border-radius: 15px;
}

#cont_referral.empty {
  height: 100px;
  background: url(/img/nouser.svg) no-repeat center center var(--white);
  background-size: 24px;
  border-radius: 15px;
}


.referral_popup {
  text-align: center;
}

.referral_popup .gift_cards {
  text-align: left;
  margin: 100px auto 30px;
}

.referral_popup > p {
  font-size: 16px;
  margin-bottom: 5px;
}

#popup_content .referral_popup .menu_item {
  margin-right: 0;
  font-size: 16px;
  width: 14ch;
}
