/* 
* Flex align center all customer pages  
*/

#my-account section#wrapper>.container,
#identity section#wrapper>.container,
#addresses section#wrapper>.container,
#address section#wrapper>.container,
#history section#wrapper>.container,
#order-detail section#wrapper>.container,
#module-blockwishlist-lists section#wrapper>.container,
#view:has(.wishlist-products-container) section#wrapper>.container,
#order-slip section#wrapper>.container,
#discount section#wrapper>.container,
#module-psgdpr-gdpr section#wrapper>.container,
#module-myprestaloyalty-default section#wrapper>.container,
#authentication section#wrapper>.container,
#password section#wrapper>.container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* #identity section#wrapper>.container>.row, */
#my-account section#wrapper>.container>.row,
#addresses section#wrapper>.container>.row,
/* #address section#wrapper>.container>.row, */
#history section#wrapper>.container>.row,
#order-detail section#wrapper>.container>.row,
#module-blockwishlist-lists section#wrapper>.container>.row,
#view:has(.wishlist-products-container) section#wrapper>.container>.row,
#order-slip section#wrapper>.container>.row,
#discount section#wrapper>.container>.row,
#module-psgdpr-gdpr section#wrapper>.container>.row,
#module-myprestaloyalty-default section#wrapper>.container>.row,
#authentication section#wrapper>.container>.row,
#password section#wrapper>.container>.row {
  width: 100%;

  max-width: 1140px;
}

#identity.page-customer-account #content,
#history #content,
#address #content,
#module-blockwishlist-lists #content,
#view:has(.wishlist-products-container) #content,
#order-slip #content,
#discount #content,
#module-psgdpr-gdpr #content,
#module-myprestaloyalty-default #content,
#authentication #content,
#password #content {
  background: var(--color-white-light);
  color: var(--color-black-light);

  border-radius: 32px;
  padding: 32px;

  /* max-width: 1140px; */
  width: 100%;

  align-items: center;
}

#my-account section#wrapper>.container #main,
#identity section#wrapper>.container #main,
#history section#wrapper>.container #main,
#addresses section#wrapper>.container #main,
#address section#wrapper>.container #main,
#order-detail section#wrapper>.container #main,
#order-slip section#wrapper>.container #main,
#discount section#wrapper>.container #main,
#module-psgdpr-gdpr section#wrapper>.container #main,
#module-myprestaloyalty-default section#wrapper>.container #main,
#authentication section#wrapper>.container #main,
#password section#wrapper>.container #main {
  display: flex;
  flex-direction: column;
  align-items: center;
}

#my-account section#wrapper>.container #main .page-header,
#identity section#wrapper>.container #main .page-header,
#history section#wrapper>.container #main .page-header,
#addresses section#wrapper>.container #main .page-header,
#address section#wrapper>.container #main .page-header,
#order-detail section#wrapper>.container #main .page-header,
#order-slip section#wrapper>.container #main .page-header,
#discount section#wrapper>.container #main .page-header,
#module-psgdpr-gdpr section#wrapper>.container #main .page-header,
#module-myprestaloyalty-default section#wrapper>.container #main .page-header,
#authentication section#wrapper>.container #main .page-header,
#password section#wrapper>.container #main .page-header {
  text-align: center;
}


@media (max-width: 767px) {

  #identity section#wrapper>.container>.row,
  #my-account section#wrapper>.container>.row,
  #addresses section#wrapper>.container>.row,
  #address section#wrapper>.container>.row,
  #history section#wrapper>.container>.row,
  #order-detail section#wrapper>.container>.row,
  #module-blockwishlist-lists section#wrapper>.container>.row,
  #view:has(.wishlist-products-container) section#wrapper>.container>.row,
  #order-slip section#wrapper>.container>.row,
  #discount section#wrapper>.container>.row,
  #module-psgdpr-gdpr section#wrapper>.container>.row,
  #module-myprestaloyalty-default section#wrapper>.container>.row,
  #authentication section#wrapper>.container>.row,
  #password section#wrapper>.container>.row {
    padding: 0 12px;
  }


  #identity.page-customer-account #content,
  #history #content,
  #address #content,
  #module-blockwishlist-lists #content,
  #view:has(.wishlist-products-container) #content,
  #order-slip #content,
  #discount #content,
  #module-psgdpr-gdpr #content,
  #module-myprestaloyalty-default #content,
  #authentication #content,
  #password #content {
    padding: 12px;
  }


}








/* 
* Wishlists page 
*/

#module-blockwishlist-lists #content .wishlist-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#module-blockwishlist-lists #content .wishlist-list-item {
  display: flex;
  flex-direction: row;
  padding: 8px 12px;
  border-radius: 32px;
  background-color: var(--color-white);
  border: solid 1px transparent;
}

#module-blockwishlist-lists #content .wishlist-list-item:hover {
  background-color: transparent;
  border: solid 1px var(--color-primary);
  color: var(--color-black);
}

#module-blockwishlist-lists #content .wishlist-list-item .wishlist-list-item-link {
  width: 100%;
}

@media (max-width: 767px) {

  #module-blockwishlist-lists .wishlist-container-header {
    display: flex;
    justify-content: center;
    margin-bottom: 1.25rem;
    flex-direction: column;
    align-content: center;
    gap: 16px;
  }
}









/* 
* GDPR Page
*/

#module-psgdpr-gdpr #content .page_content {

  display: flex;
  flex-direction: column;

  gap: 32px;
}

#module-psgdpr-gdpr #content .page_content>div {
  background-color: transparent;

  display: flex;
  flex-direction: column;

  align-items: center;

  gap: 12px;

  padding: 0;
  margin: 0;
}

#module-psgdpr-gdpr #content .page_content>div>.btn-primary {
  width: fit-content;
}




/* Les vaches - Fidelité */

#module-myprestaloyalty-default #wrapper #main .block-center  {
  overflow: hidden;
  overflow-x: scroll;
}








/* 
* Order Details 
*/

#order-detail #content {
  display: flex;
  flex-direction: column;

  gap: 12px;
  align-items: center;

  width: 100%;
}

#order-detail #content>div,
#order-detail #content>section {
  background: var(--color-white-light);
  color: var(--color-black-light);

  border-radius: 32px;
  padding: 24px;

  margin: 0;
  width: 100%;

  align-items: center;

}

.page-order-detail #order-infos {
  display: flex;
  flex-direction: column;

  gap: 12px;
}

.page-order-detail #order-infos .box {
  background: var(--color-white-light);
  margin: 0;
  padding: 0;

  width: 100%;
}

.page-order-detail #order-infos .box>.row {
  display: flex;
  flex-direction: row;

  justify-content: space-between;
  width: 100%;
}

.page-order-detail #order-infos .box>.row>div {
  display: flex;
  flex-direction: column;

  justify-content: center;
  padding: 0 !important;
}

.page-order-detail #order-infos .box>.row>.clearfix {
  display: none;
}

.page-order-detail h3 {
  color: var(--color-black);
  text-transform: none;
}

.page-order-detail .addresses {
  display: flex;
  gap: 32px;
}

.page-order-detail .addresses .clearfix {
  display: none;
}

.page-order-detail .addresses>div {
  padding: 0;
  margin: 0;
}

.page-order-detail .addresses #invoice-address,
.page-order-detail .addresses #delivery-address {
  border: 1px solid transparent;
  border-radius: 32px;
  padding: 18px 24px;
  background-color: var(--color-white);
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0 !important;
  width: 100%;
  flex: 1 0 48%;
}

.page-order-detail #order-history .history-lines .history-line {
  border-bottom: 1px solid var(--color-white);
}

#history .orders .order .label,
.page-order-detail #order-history .history-lines .history-line .label {
  color: var(--color-white-light);
  border-radius: 3px;
}

.page-order-detail .order-items .order-item {
  border-bottom: 1px solid var(--color-white);
}

.page-order-detail .messages .message {
  border-bottom: 1px solid var(--color-white);
}

@media (max-width: 767px) {
  .page-order-detail #order-infos .box>.row {
    flex-direction: column;
    gap: 12px;
  }
}









/* 
* Customer Infos Form
*/

#customer-form {
  gap: 32px;
}

#customer-form .form-section .form-row {
  display: flex;
  flex-direction: row;
  gap: 12px;
  width: 100%;
}

@media (max-width: 767px) {
  #customer-form .form-section .form-row {
    flex-direction: column;
  }
}

#customer-form .form-section .form-row>div {
  width: 100%;
}

#customer-form .form-section .form-row .form-field {
  width: 100%;
  flex-grow: 1;
}

#customer-form .form-section .form-row .form-field.title-field {
  flex: 1 0 20%;
  max-width: 100px;
}

/* Message at the top when creating account */
section.register-form>p {
  text-align: center;
  margin-bottom: 16px;
}

/* Fix select input height in customer forms */
#customer-form select.form-control:not([size]):not([multiple]) {
  height: 100%;
}

/* Left align date on iPhone */
#customer-form input::-webkit-date-and-time-value {
  text-align: left;
}

#customer-form input[type="date"] {
  -webkit-appearance: none;
  appearance: none;
}

/* Required field asterisks for checkboxes - hide on label, show after checkbox text */
#customer-form .form-group:has(.custom-checkbox) .form-control-label.required::after {
  display: none;
}

#customer-form .custom-checkbox label:has(input[required])::after {
  content: " *";
  color: var(--color-error);
}











/* 
 * Login Page
 */

#authentication #content {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 32px 16px;
  max-width: unset;
  border: none;
}

#login-form,
#login-form>div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

#login-form div.form-group {
  width: 100%;
}

#login-form div.form-group .js-input-column {
  padding: 0;
  width: 100%;
}

#login-form .help-block,
#login-form .help-block ul,
#login-form .help-block li {
  margin: 0;
}

#login-form .help-block li {
  padding: 0;
  background: transparent;
  color: var(--color-error);
  border: none;
  font-size: 14px;
  line-height: 15px;
  font-weight: 600;
}

#login-form hr {
  width: 40vw;
}












/* 
* Forgot my password 
*/

.forgotten-password .form-fields .form-group>div {
  width: 100%;
}


.forgotten-password .form-fields .form-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  justify-content: center;
  width: 100%;
}












/* 
* Reset password
*/

#password .form-fields .container-fluid {
  display: flex;
  flex-direction: column;
  align-items: center;

  gap: 12px;
  width: 100%;
}

#password .form-fields .form-group>.offset-md-5,
#password .form-fields .form-group>.offset-md-5 .btn {
  margin: 0;
  margin-left: 0 !important;

  display: flex;
  flex-direction: column;
  align-items: center;
}











/* 
 * Formulaire Addresses
 */

.js-address-form form {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}

.js-address-form form .block-address-selection {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.address-selector.js-address-selector {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 12px;
  flex: 50% 50%;
}

body#checkout section.checkout-step .add-address {
  margin: 0;
}

.js-address-form form .different-billing-address {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
}

#address .name-row {
  display: flex;
  gap: 20px;
}

#address .name-row .form-field {
  flex: 1;
}

#address .postcode-city-row {
  display: flex;
  gap: 20px;
}

#address .postcode-city-row .form-field {
  flex: 1;
}

/* Make them stack on mobile */
@media (max-width: 767px) {

  #address .name-row,
  #address .postcode-city-row {
    flex-direction: column;
  }
}


/* 
* Customer Addresses page 
*/

.page-addresses .page-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.page-addresses .page-content>.customer-addresses {
  display: grid;
  grid-template-columns: repeat(3, 250px);
  gap: 20px;

  justify-content: center;
  /* Centers the grid horizontally */

}

/* Make them stack on mobile */
@media (max-width: 767px) {

  .page-addresses .page-content>.customer-addresses {
    display: flex;
    flex-wrap: wrap;
  }
}

/* Address Card Selector */

article.address-item,
.page-addresses .address {
  border: 1px solid transparent;
  border-radius: 32px;
  padding: 18px 24px;
  background-color: var(--color-white);
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0 !important;
  width: 100%;
  min-width: 250px;
  flex: 1 0 48%;
}

.page-addresses .address {
  background-color: var(--color-white-light);
}

.page-addresses .page-content>div {
  padding: 12px;
}

/* Address cards */

.page-addresses .address .address-body h4 {
  margin: 0;
  font-size: 17px;
  line-height: 18px;
}

.page-addresses .address .address-body {
  display: flex !important;
  flex-direction: column;
  gap: 12px;

  padding: 0;
}

.page-addresses .address .address-footer {
  border-top: 1px solid var(--color-white);
}

.page-addresses .address .address-footer a {
  padding-top: 12px;
  color: var(--color-primary);
}

.page-addresses .address .address-footer a:hover {
  color: var(--color-secondary);
}

article.address-item.selected {
  border-color: var(--color-primary);
}

article.address-item .radio-block {
  display: flex;
  align-items: center;
  flex-direction: row;
  gap: 12px;
  padding: 0 !important;
  margin: 0;
  width: 100%;
}

article.address-item .radio-block input[type="radio"] {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border: 1px solid var(--color-black-light);
  background-color: var(--color-white-light);
  border-radius: 50%;
  cursor: pointer;
}

article.address-item .radio-block input[type="radio"]:checked::after {
  content: "";
  display: block;
  width: 12px;
  height: 12px;
  margin: 2px;
  border-radius: 50%;
  background-color: var(--color-primary);
}

article.address-item .radio-block .address-alias {
  margin: 0 !important;
  width: 100%;
}

article.address-item .address-content .address {
  color: var(--color-black);
}

/* Address Card Footer */
article.address-item .address-footer,
.page-addresses .address .address-footer {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 0 !important;
}

article.address-item .address-footer a,
.page-addresses .address .address-footer a {
  display: flex !important;
  flex-direction: row;
  align-items: center;
  gap: 4px;
  margin: 0 !important;
}