/**
 * All of the CSS for your public-facing functionality should be
 * included in this file.
 */

/***************************************************************/
/****************** WOOCOMMERCE MON COMPTE *********************/
/***************************************************************/
body.woocommerce-account .container-wrap {
  padding: 10px 0;
}

form.edit-account .expedition-address-form,
.woocommerce-form-register .expedition-address-form,
form.edit-account .billing-address-form,
.woocommerce-form-register .billing-address-form,
#top form.edit-account input[name="account_display_name"],
#top form.edit-account label[for="account_display_name"],
#top form.edit-account input[name="account_display_name"] + span {
  display: none;
}

body.woocommerce-account .godfather-code-box {
  border: 1px solid var(--dark-blue);
  margin: 20px 0;
  padding: 18px;
}

body.woocommerce-account .woocommerce-MyAccount-content .renew-membership {
  display: block;
  float: none;
  width: max-content;
  margin-bottom: 20px;
}

body.woocommerce-account .products {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

body.woocommerce-account .products .product-item {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  padding: 20px;
  flex: 1 0 232px;
  border: 1px solid grey;
}

body.woocommerce-account .products .product-item .product-name {
  margin: 5px 0;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
}

body.woocommerce-account .products .product-item .price {
  margin: 16px 0;
  text-align: center;
}

body.woocommerce-account .products .product-item .price bdi {
  font-size: 24px;
}

body.woocommerce-account .products .product-item .price small {
  font-weight: light;
}

body.woocommerce-account button {
  cursor: pointer;
  outline: none;
  background: none;
  border: 1px solid var(--dark-blue);
  padding: 4px 8px;
  border-radius: 2px;
}

a.single_add_to_cart_button {
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: bold;
}

body#top.woocommerce-account form {
  margin-bottom: 0;
}

body.woocommerce-account .dl-icon::before,
body.woocommerce-account .cart-icon::before {
  font-family: "entypo-fontello", serif;
  display: inline-block;
  font-size: 16px;
  margin-right: 5px;
}

body.woocommerce-account .dl-icon::before {
  content: "\e82d";
}

body.woocommerce-account .cart-icon::before {
  content: "\e859";
}

body.woocommerce-account .dl-pdf-loader {
  width: 35px;
  height: 35px;
  border: 5px solid #fff;
  border-bottom-color: #ff3d00;
  border-radius: 50%;
  display: none;
  box-sizing: border-box;
  animation: rotation 1s linear infinite;
}

@keyframes rotation {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

body#top.woocommerce-checkout .woocommerce-message {
  margin: 20px 0 20px 0;
}

body.woocommerce-checkout .cart-contribution-year {
  text-align: initial;
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 20px;
}

body#top.woocommerce-checkout .chorus-infos {
  text-align: initial;
  border: 1px solid lightgrey;
  padding: 20px;
  margin-bottom: 40px;
}

body.woocommerce-checkout
.chorus-infos
:is(#chorusServiceCode_field, #contributionYear) {
  width: 47%;
}

body.woocommerce-checkout .chorus-infos .godfather-codes {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 60px;
}

.godfather-codes > div,
.godfather-codes > p {
  flex: 0 1 47%;
}

/* Woocommerce register form */
.woocommerce-form-register div {
  margin-bottom: 20px;
}

.woocommerce-form-register div .section-title {
  font-size: 16px;
}

.woocommerce-form-register .is-private-or-public {
  float: none;
}

.woocommerce-form-register .is-private-or-public .woocommerce-input-wrapper {
  display: flex;
  column-gap: 5px;
  margin-top: 5px;
}

.woocommerce-form-register .is-private-or-public input {
  margin: 0;
}

.woocommerce-form-register .coordonnees {
  float: left;
}

.woocommerce-form-register .billing-address-form,
.woocommerce-form-register .expedition-address-form,
.woocommerce-form-register .newsletters,
.woocommerce-form-register .parrains {
  float: left;
  width: 100%;
}

.woocommerce-form-register .newsletters {
  display: flex;
  flex-direction: column;
}

.woocommerce-form-register .g-recaptcha {
  clear: both;
}

#top .woocommerce-form-login .register {
  margin-top: -35px;
  background-color: var(--green);
}

.woocommerce-form-login__rememberme {
  margin-bottom: 15px;
}

#top .woocommerce-form-login.login .lost_password {
  top: -50px;
  left: 2%;
}

#events {
  display: grid;
  grid-template-columns: repeat(2, 50%);
  margin: 40px 0;
  gap: 20px;
}

#events .event-item {
  border: 1px solid lightgrey;
  border-radius: 5px;
  padding: 20px;
}

#events .event-item .description {
  height: 330px;
  overflow-y: auto;
}

#events .event-item .description > p:empty {
  display: none;
}

#events .event-item .description p {
  margin: 0;
}

#events .event-item .event-sessions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  overflow-y: scroll;
  scroll-snap-type: x mandatory;
}

#events .event-item .event-sessions .session-item {
  position: relative;
  min-width: 312px;
  padding: 20px;
  border-radius: 5px;
  border: 1px solid lightgrey;
}

#events .event-item .event-sessions .session-item .lieu-prix {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  align-items: center;
}

#events .event-item .event-sessions .session-item .lieu::before {
  content: "\e842";
  font-family: "entypo-fontello", serif;
  display: inline-block;
  font-size: 16px;
  margin-right: 5px;
}

#events .event-item .event-sessions .session-item .prix {
  padding: 8px 12px;
  background-color: var(--green);
  color: white;
  font-weight: bold;
}

#events .event-item .event-sessions .session-item .registered-count::before {
  content: "\e80b";
  font-family: "entypo-fontello", serif;
  display: inline-block;
  font-size: 16px;
  margin-right: 5px;
}

#events .event-item .event-sessions .session-item .registered-count progress {
  display: block;
  margin-left: 25px;
}

#events .event-item .event-sessions .session-item .register-button {
  margin-left: auto;
  margin-top: 20px;
  display: block;
  padding: 6px 18px;
  background: #152659;
  color: white;
  border: none;
  border-radius: 3px;
  cursor: pointer;
}

#events .event-item .event-sessions .session-item .add_to_cart_inline {
  border: none !important;
  padding: 0;
  margin: 20px 0 0;
  text-align: right;
}

.alert-primary {
  background-color: #152659;
  color: white;
  padding: 0.75rem 1.25rem;
  border: 1px solid #152659;
  margin: 50px 0;
  border-radius: 0.25rem;
}

.login-button {
  margin: 20px auto;
  padding: 6px 18px;
  background: #152659;
  color: white !important;
  border: none;
  border-radius: 3px;
  cursor: pointer;
}

#top .password-input {
  position: relative;
}

#top .password-input input {
  display: inline-block;
}

#top .show-password-input {
  position: absolute;
  right: 0.7em;
  top: 50%;
  cursor: pointer;
  transform: translateY(-50%);
}

.show-password-input::after {
  content: "\e826";
  font-family: "entypo-fontello", serif;
  font-size: 16px;
}

.show-password-input.display-password::after {
  content: "\e820";
}

#revues .title {
  margin-bottom: 30px;
}

#revues .revues-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  max-width: 950px;
}

#top .woocommerce-info.warning {
  color: #856404;
  background-color: #fff3cd;
  border-color: #ffeeba;
}

i.italic {
  font-style: italic;
  margin-bottom: 10px;
  display: inline-block;
}

#top.woocommerce-cart table :is(.product-quantity, .product-thumbnail, .actions) {
  display: none;
}

#top.single-product .product .woocommerce-product-gallery {
  display: none;
}

.delete-registration-modale {
  display: none;
  position: fixed;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;

  .lightbox {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
  }

  .content {
    background: white;
    padding: 36px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;

    h2 {
        margin-bottom: 30px;
    }
  }
}

@media only screen and (max-width: 1275px) {
  /* Pour les écrans plus petits, on repasse sur une colonne */
  #main #events {
    grid-template-columns: 1fr;
  }

  #main #events .event-item .event-sessions .session-item .prix {
    padding: 6px 10px;
  }

  #main #events .event-item {
    display: inherit;
  }

  #main #events .event-item .event-sessions .session-item {
    min-width: 240px;
  }

  /* Visibilité de la barre de scroll sur mobile */
  ::-webkit-scrollbar:horizontal {
    height: 12px;
  }

  ::-webkit-scrollbar-thumb {
    background-color: var(--blue);
    border-radius: 10px;
    border: 2px solid #ffffff;
  }

  ::-webkit-scrollbar-track {
    border-radius: 10px;
    background-color: var(--green);
  }
}

@media only screen and (max-width: 767px) {
  #top .woocommerce-form-login .register {
    float: none;
    margin-top: 20px;
    display: block;
  }
}
