/*
 Theme Name:   Bricks Child Theme
 Theme URI:    https://bricksbuilder.io/
 Description:  Use this child theme to extend Bricks.
 Author:       Bricks
 Author URI:   https://bricksbuilder.io/
 Template:     bricks
 Version:      1.1
 Text Domain:  bricks
*/

.center{align-items:center;align-self:center;text-align:center}


.splide__pagination.splide__pagination--ltr li {
  margin:
0 3px;
}

.woocommerce-variation-description {
  display: none !important;
}

body:not(.admin-bar) {
  --wp-admin--admin-bar--height: 0px;
}

a.brxe-text-basic:hover {text-decoration: underline;}

:where(.brxe-image):before {
    z-index: 1;
}

.brx-animated .perfmatters-lazy.pmloaded, .brx-animated .perfmatters-lazy.pmloaded>img, .brx-animated .perfmatters-lazy>img.pmloaded, .brx-animated .perfmatters-lazy[data-ll-status=entered] {
    animation: inherit !important;
}
@keyframes fade-in {0% {opacity: 0;}100% {opacity: 1;}}
@keyframes move {0% {background-position: 0 0;}100% {background-position: 50px 50px;}}

.brxe-text h2,
.brxe-text h3,
.brxe-text h4 {
	margin-bottom: 15px;
}

/**** HEADER ****/


header nav ul.bricks-nav-menu > li.current-menu-item:not(.menu-item-has-children) a::after,
header nav ul.bricks-nav-menu>li:hover:not(.menu-item-has-children) a::after{content:"";width:100%;height:3px;background-color:var(--primary);position:absolute;bottom:-7px;animation:fade-in .3s ease}
header div.brx-offcanvas-inner nav ul.bricks-nav-menu>li a::after{display: none;}


header nav ul.bricks-nav-menu li a{position:relative}
header nav li:hover .brx-submenu-toggle button{transform:rotate(180deg)}
header nav ul.bricks-nav-menu > li.menu-item-has-children ul.sub-menu a:before {
	content: "-";
	margin-right: 10px;
	transition: margin 0.3s ease;
}

header nav ul.bricks-nav-menu > li.menu-item-has-children ul.sub-menu a:hover:before {
	margin-right: 15px;
}

header nav ul.bricks-nav-menu > li.menu-item-has-children ul.sub-menu li {
    padding: 15px 10px;
}
header nav ul.bricks-nav-menu > li.menu-item-has-children ul.sub-menu a {
	width: fit-content;
}



/*** CHECKOUT ***/
.no-header-footer>header, .no-header-footer footer {display: none !important;}



.block-progress {
    background-color: rgb(178 130 40 / 10%);
    padding: 20px;
    margin-bottom: 20px;
}

.discount-progress-bar {
    width: 100%;
    background-color: #f3f3f3;
    margin: 20px 0;
    height: 22px;
    position: relative;
    padding: 5px;
    border: 1px solid;
    border-radius: 15px;
	margin-bottom: 5px;
}

.progress-bar-filled {
    height: 100%;
    background-color: green;
	background-image: linear-gradient(-45deg,rgba(255,255,255,.2) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.2) 50%,rgba(255,255,255,.2) 75%,transparent 75%,transparent);
  	animation: move 4s linear infinite;
  	background-size: 50px 50px;
  	transition: width 1s ease;
    border-radius: 15px;
	position: relative;

}
.discount-marker {
    position: absolute;
    text-align: center;
    transform: translateX(-50%) translateY(-100%);
	z-index: 1;
	top: 0;
}

.discount-marker.last-marker {
    transform: translateX(-100%) translateY(-100%);
}




.discount-marker.active-marker .marker-label {
    background: green;
    color: #fff;
}

.discount-marker::before {
    content: "";
    background-color: #d4d4d4;
    display: flex;
    width: 1px;
    height: 20px;
    position: absolute;
    transform: translateY(100%) translateX(-1px);
    bottom: 0;
    left: 50%;
    z-index: -1;
}


.progress-end-circle {
    width: 18px;
    height: 18px;
    background-color: green;
    border-radius: 50%;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translate(50%, -50%);
	border: 5px solid #fff;
	z-index: 2;
}

.marker-label {
    padding: 3px 8px;
    background: #e0e0e0;
    border-radius: 3px;
    font-size: 12px;
}

.text-progress {
    font-size: 13px;
    width: 100%;
    text-align: center;
}


/*** EDIT PROFIL ****/




.edit-profil-block .acf-field p.description {
  display: block;
  margin-top: 0;
  color: var(--gris);
  font-size: 14px;
}

.edit-profil-block .acf-repeater .acf-row-handle .acf-icon {
  	display: block;
	margin: 0;
    width: 17px;
    height: 17px;
    font-size: 12px;
    line-height: 12px;
}

.edit-profil-block a.acf-icon.-plus.small.acf-js-tooltip.hide-on-shift {
    display: none;
}

.edit-profil-block .acf-icon.-duplicate.small {
	display: none;
}

.edit-profil-block .edit-title-container form {
    display: flex;
    align-items: center;
    gap: 10px;
	margin-bottom: 30px;
}
.edit-profil-block .input-btn {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 5px;
	flex: 1;
}
.edit-profil-block .btn-header {
    display: flex;
    align-items: center;
    gap: 10px;
	margin-bottom: 10px;
}

.edit-profil-block .js-aiarc-upload-progress[style*="display: none;"]::before {
	display: none;
}

.edit-profil-block .js-aiarc-upload-progress:before {
	content: "En cours d'importation \A Ne pas quitter la page.";
	white-space: pre; /* or pre-wrap */
	width: 100%;
	height: 100%;
	background-color: rgb(0 0 0 / 90%);
	position: fixed;
	top: 0;
	left: 0;
	z-index: 99999999999;
	color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}


.edit-profil-block div.updated {
  width: fit-content;
  background-color: #cce5ff;
  color: #004085;
  padding: 15px;
  max-width: 100%;
  font-size: 14px;
  margin-bottom: 30px;
}

.edit-profil-block a.back-btn {
    font-size: 14px;
    color: var(--gold);
    text-decoration: underline;
    display: flex;
    align-items: center;
    gap: 5px;
}

.edit-profil-block {
    max-width: 500px;
}

.edit-profil-block .hide-if-value {
    display: block;
    background-color: #ebebeb;
    padding: 10px;
}

.edit-profil-block div.acf-field {
    border: 1px solid #c7c7c7 !important;
    padding: 15px !important;
    margin-bottom: 20px !important;
}

.edit-profil-block .hide-if-value a.acf-button.button {
    margin-left: 10px;
}

.edit-profil-block a.acf-button.button {
    background-color: var(--gold);
    font-size: 14px;
    padding: 5px 15px;
}

.edit-profil-block .acf-form-submit {
    margin-top: 20px;
}

.edit-profil-block input[type=file] {
    border-width: 0px;
    padding: 0;
   line-height: 1.2 !important;
}


.edit-profil-block input::-webkit-file-upload-button {
    background: var(--gold);
    color: #fff;
    padding: 5px 5px !important;
	border: 0;

}


.edit-profil-block .acf-repeater > table {
  margin: 0;
  background: transparent;
  border: 0;
}
.edit-profil-block .acf-repeater .acf-row-handle.order {
  background: transparent;
}

.edit-profil-block .acf-repeater .acf-row-handle.order,
.edit-profil-block .acf-repeater div.acf-field {
	border: 0 !important;
}

.edit-profil-block .acf-repeater div.acf-field {
	padding: 0 !important;
    margin-bottom: 0 !important;
}

.edit-profil-block .acf-repeater .acf-table>tbody>tr>td {
	background: transparent;
}

/*
.edit-profil-block .acf-repeater tr.acf-row:nth-child(odd) {
    background-color: #f9f9f9;
}*/

.edit-profil-block .acf-repeater .acf-table>tbody>tr {
    z-index: 1;
    border-bottom: 30px solid #fff;
	position: relative;
}

.edit-profil-block .acf-repeater tr.acf-row:not(:first-child)::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 2px;
    background: #333;
    top: 0;
	left: 0;
}

.edit-profil-block .acf-repeater  td.acf-fields {
	padding: 10px 0 15px 10px !important;
	border: 0;
}

.edit-profil-block .acf-repeater .acf-row-handle.remove {
	border: 0;
}

.edit-profil-block .acf-repeater td.acf-fields div.acf-field:first-child {
	margin-bottom: 15px !important;
}

@media (max-width: 600px) {

/*	
.edit-profil-block {
    padding: 0 20px;
}
*/
	
.acf-image-aspect-ratio-crop-modal-wrapper {
	padding: 20px;
}

.acf-image-aspect-ratio-crop-modal-footer {
    padding: 0 !important;
}

.acf-image-aspect-ratio-crop-modal .acf-image-aspect-ratio-crop-modal-footer button {
    margin-left: 10px !important;
}

.acf-image-aspect-ratio-crop-modal .acf-image-aspect-ratio-crop-modal-footer button.acf-image-aspect-ratio-crop-reset {
	font-size: 0;
}

.acf-image-aspect-ratio-crop-modal .acf-image-aspect-ratio-crop-modal-footer button.acf-image-aspect-ratio-crop-reset svg {
	font-size: initial;
}

.acf-image-aspect-ratio-crop-modal .acf-image-aspect-ratio-crop-modal-footer {
    justify-content: flex-start !important;
}
	
}


/** MON PROFIL **/



/* Conteneur principal */
.nfc-profiles-container {
    display: grid;
}

/* Structure en grille pour les éléments */
.nfc-profiles-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 10px;
    border: 1px solid #eee;
	align-items: center;
}

.nfc-profile-action,
.nfc-profiles-grid.header div:last-of-type {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: flex-end;
	flex-wrap: wrap;
}

.nfc-profiles-grid.header div:last-of-type {
    justify-content: center;
}


.nfc-profiles-grid.header {
    font-weight: bold;
    background-color: var(--primary);
	color: #fff;
}

/* Styles pour les cellules de titre et d'action */
.nfc-profile-title a {
    text-decoration: underline;
}

.nfc-profiles-line:nth-child(even) {
    background-color: #f9f9f9;
}

.nfc-profiles-line:hover {
    background-color: #e1e1e1;
}


.nfc-profiles-container .button {
    background-color: var(--gold) !important;
    padding: 5px 10px !important;
	transition: opacity 0.3s ease !important;
}

.nfc-profiles-container .button:hover {
    opacity: 0.8;
}

@media (max-width: 768px) {
.nfc-profiles-grid {
    grid-template-columns: 1fr;
}
	
.nfc-profile-action {
    justify-content: flex-start;
}
.nfc-profiles-grid.header div:last-of-type {
		display: none;
}
.nfc-profiles-container .button {
	font-size: 14px;
}	
}



/*** WOOCOMMERCE CHECKOUT ***/

form.woocommerce-checkout section ~ div.blockUI.blockOverlay:before {
    position: fixed !important;
    z-index: 99999;
}

.woocommerce-order .woocommerce-order-details h2 {
    font-size: 1.4rem;
    margin-bottom: 20px;	
}

.woocommerce-order .woocommerce-columns {
    gap: 20px;
}

.woocommerce-order {
    padding: 0 16px;
}


.woocommerce-order td.woocommerce-table__product-total.product-total {
    font-weight: bold;
}

@media (max-width: 768px) {
.woocommerce-order .woocommerce-columns {
    flex-direction: column;
}	
}