/* ============================================================
   FORTIUM SUBSCRIPTIONS
   Panier
   ============================================================ */

.fortium-cart {
  width: 100%;
  min-height: 40vh;
}


/* ------------------------------------------------------------
   Lignes du panier
   ------------------------------------------------------------ */

.fortium-cart-items {
  border-top: 1px solid rgba(0, 0, 0, .12);
}

.fortium-cart-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 2rem;
  align-items: center;
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, .12);
}


/* ------------------------------------------------------------
   Formule
   ------------------------------------------------------------ */

.fortium-cart-item-content strong {
  display: block;
  font-size: 1.1rem;
}

.fortium-cart-item-content>div {
  margin-top: .2rem;
  opacity: .7;
}


/* ------------------------------------------------------------
   Prix
   ------------------------------------------------------------ */

.fortium-cart-item-price {
  text-align: right;
  white-space: nowrap;
}

.fortium-cart-item-price strong {
  display: block;
  font-size: 1.1rem;
}


/* ------------------------------------------------------------
   Retirer
   ------------------------------------------------------------ */

.fortium-cart-item-remove {
  text-align: right;
}

.fortium-cart-item-remove a {
  font-size: .875rem;
  text-decoration: underline;
  text-underline-offset: .15em;
}


/* ------------------------------------------------------------
   Total
   ------------------------------------------------------------ */

.fortium-cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  margin-top: 1.5rem;
  font-size: 1.2rem;
}

/* ------------------------------------------------------------
   Actions
   ------------------------------------------------------------ */


.fortium-subscriptions-actions {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 3rem;
}



.fortium-subscriptions-actions>.btn {
  width: 100%;
  min-width: 0;
  max-width: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.fortium-subscription-form label[for] {
  font-size: 0.8rem;
  margin-bottom: .3rem;
}

/* ------------------------------------------------------------
   Desktop
   ------------------------------------------------------------ */

@media (min-width: 768px) {


  .fortium-subscriptions-actions {
    flex-direction: row;
  }


  .fortium-subscriptions-actions>.btn {
    flex: 1 1 0;
    width: 0;
  }
}

.fortium-password-field {
  position: relative;
}

.fortium-password-field .form-control {
  padding-right: 3rem;
}

.fortium-password-field .fortium-password-toggle {
  position: absolute;
  z-index: 5;

  top: 50%;
  right: .75rem;
  transform: translateY(-50%);

  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 2rem;
  height: 2rem;
  padding: 0;
  margin: 0;

  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;

  color: #555;
  opacity: .65;

  cursor: pointer;
}

.fortium-password-field .fortium-password-toggle:hover,
.fortium-password-field .fortium-password-toggle:focus {
  color: #000;
  background: transparent;
  opacity: 1;
  box-shadow: none;
}

.fortium-password-field .fortium-password-toggle svg {
  display: block;
  width: 20px;
  height: 20px;
  stroke: currentColor;
}




/* ============================================================
   HEADER : COMPTE + PANIER
   ============================================================ */

.fortium-header-actions {
  display: flex;
  align-items: center;
  gap: .8rem;
}

.fortium-header-action {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 2rem;
  height: 2rem;

  padding: 0;

  border: 0;
  background: none;

  color: inherit;
  text-decoration: none;

  cursor: pointer;

}

.fortium-header-action:hover,
.fortium-header-action:focus {
  color: var(--brand-secondary);
  background-color: none !important;
}

.fortium-header-action svg {
  display: block;
  width: 1.4rem;
  height: 1.4rem;
}

.user-dropdown .fortium-header-action svg {
  transform: scale(1.25);
}

.fortium-header-action svg {
  display: block;
  width: 1.4rem;
  height: 1.4rem;
}


.fortium-header-cart-badge {
  position: absolute;
  top: -.35rem;
  right: -.55rem;
  min-width: 1.15rem;
  padding: .2rem .35rem;
  font-size: .65rem;
  line-height: 1;

}

.fortium-header-cart .badge {
  --bs-badge-padding-x: 0.35em;
  --bs-badge-padding-y: 0.2em;
  --bs-badge-font-size: 0.65em;
  --bs-badge-font-weight: 700;
}