.spx_lp_custom_text {
	/* margin-top: 35px; */
}

.spx_lp_input_wrap {
    padding-right: 10px;
    border: 1px solid #333;
}

#spx_lp_text {
	margin-bottom: 0px;
	width: 100%;
	border: none;
}

#spx_lp_counter_price {
	font-weight: bold;
    color: #15607f;
}

#spx_lp_counter {
	font-size: 12px;
    color: #333;
    margin-top: 0px;
}

.variations_form .single_variation_wrap.hide .price {
	opacity: 0;
}

.column_product_price .price {
	display: none;
}

/* Guide Wrapper */
.spx_lp_text_preview_label {
	margin-top: 65px;
    padding-top: 10px;
    border-top: 1px solid rgba(0, 0, 0, .04);
    margin-bottom: 10px;
}

.spx_lp_price_guide {
    font-size: 13px;
    line-height: 18px;
    background-color: #F7F7F7;
    padding: 15px 15px;
    border-radius: 7px;
    margin-top: 7px;
    margin-bottom: 20px;
}

.spx_lp_price_guide ul {
    list-style: circle;
    margin-bottom: 7px;
    margin-top: 7px;
}

.spx_lp_price_guide ul li {
    margin-left: 20px;
}

.spx_lp_infos_wrapper {
    margin-bottom: 80px;
}

.spx_lp_text_infos_label {
    margin-bottom: 10px;
}

/* Preview Section */
.spx_lp_preview_section {
    margin-bottom: -35px;
}

#spx_lp_text_preview {
    font-size: 46px;
    line-height: 46px;
    margin: 7px 0px 0px;
    display: block;
    min-height: 46px;
    /*font-weight: bold;*/
    font-feature-settings: "calt" 0, "rand" 0;
        /* désactive les variations */
    color: #b69771;
    color: #333333;
    /*text-shadow: 1px 1.5px 0px rgba(0, 0, 0, 0.20);*/

    background-color: #eeeeee5e;
    padding: 20px 0px;
    min-height: 105px;
}

/* Tailles de police selon la variation de taille */
#spx_lp_text_preview.size-m {
    font-size: 65px;
    line-height: 65px;
    /*min-height: 65px;*/
}

#spx_lp_text_preview.size-l {
    font-size: 91px;
    line-height: 91px;
    /*min-height: 91px;*/
}

#spx_lp_message_box {
	color: red;
	font-size: 13px;
    line-height: 13px;
    margin-top: 7px;
}

#spx_lp_counter .info-box {
	display: inline-block;
	background-color: #F7F7F7;
    border-radius: 14px;
    padding: 5px 8px;
    font-size: 13px;
    line-height: 13px;
    margin-right: 3px;
}

#spx_lp_counter .info-box span.metric {
    font-weight: bold;
    font-size: 16px;
}

.info-box .crossed-out-rate {
	text-decoration:line-through;
	font-weight: normal;
	font-size: 11px;
}

/* ========================================== */
/*          RÈGLE DE 100CM DYNAMIQUE          */
/* ========================================== */

#spx_lp_ruler_container {
    transition: opacity 0.3s ease;
    margin-bottom: 50px;
}

#spx_lp_ruler_container.spx-lp-ruler-hidden {
    display: none;
}

.spx-lp-ruler {
    position: relative;
    width: 100%;
    height: 60px;
    margin-bottom: 10px;
}

.spx-lp-ruler-line {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: #333;
    transform: translateY(-50%);
}

.spx-lp-ruler-marks {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.spx-lp-ruler-mark {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.spx-lp-ruler-tick {
    width: 2px;
    height: 20px;
    background: #333;
}

.spx-lp-ruler-mark.special-mark .spx-lp-ruler-tick {
    height: 30px;
    background: #b69771;
    width: 3px;
}

.spx-lp-ruler-label {
    position: absolute;
    bottom: -9px;
    font-size: 11px;
    font-weight: bold;
    color: #333;
    white-space: nowrap;
    background-color: #F7F7F7;
    line-height: 12px;
    padding: 3px 4px;
    border-radius: 15px;
}

.spx-lp-ruler-mark.special-mark .spx-lp-ruler-label {
    color: #b69771;
    font-size: 12px;
}

.spx-lp-ruler-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 5px;
    justify-content: left;
    align-items: center;
    font-size: 13px;
    margin-top: 0px;
}

.spx-lp-ruler-legend-badge {
    display: inline-block;
    padding: 0px 14px;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.spx-lp-ruler-legend-badge.door-badge {
    background-color: #e8f5e9;
    color: #2e7d32;
    /*border: 2px solid #4caf50;*/
}

.spx-lp-ruler-legend-badge.door-badge.inactive {
    background-color: #f5f5f5;
    color: #999;
    border: 2px solid #ccc;
    opacity: 0.6;
}

.spx-lp-ruler-legend-badge.door-badge strong {
    color: #1b5e20;
}

.spx-lp-ruler-legend-badge.door-badge.inactive strong {
    color: #666;
}

.spx-lp-ruler-legend-badge.wall-badge {
    background-color: #e3f2fd;
    color: #1565c0;
    /*border: 2px solid #2196f3;*/
}

.spx-lp-ruler-legend-badge.wall-badge strong {
    color: #0d47a1;
}

/* Zone optimale pour une porte (45-65cm) */
.spx-lp-ruler-door-zone {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    height: 40px;
    background: rgba(76, 175, 80, 0.15);
    border: 2px dashed rgba(76, 175, 80, 0.4);
    border-radius: 4px;
    pointer-events: none;
    z-index: 1;
    transition: all 0.3s ease;
}

.spx-lp-ruler-door-zone.inactive {
    background: rgba(200, 200, 200, 0.1);
    border: 2px dashed rgba(150, 150, 150, 0.3);
}

/* Zone optimale pour un mur (60cm à l'infini) */
.spx-lp-ruler-wall-zone {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    height: 40px;
    background: rgba(33, 150, 243, 0.12);
    border: 2px dashed rgba(33, 150, 243, 0.35);
    border-radius: 4px;
    pointer-events: none;
    z-index: 1;
    transition: all 0.3s ease;
    display: none; /* Masquée par défaut, affichée seulement au-delà de 65cm */
}

.spx-lp-ruler-legend-badge.wall-badge {
    display: none; /* Masquée par défaut, affichée seulement au-delà de 65cm */
}

/* Anciennes classes à supprimer si présentes */
.spx-lp-ruler-optimal-zone,
.spx-lp-ruler-optimal-marker {
    display: none;
}

.spx-lp-ruler-legend-optimal {
    display: none;
}


/* ----------------------------------------- */
/*                RESPONSIVE                 */
/* ----------------------------------------- */

/* Custom*/
@media (max-width: 1350px) {
    /* Tailles de police selon la variation de taille */
    #spx_lp_text_preview {
        min-height: 93px;
    }

    #spx_lp_text_preview.size-m {
        font-size: 48px;
        line-height: 48px;
    }

    #spx_lp_text_preview.size-l {
        font-size: 77px;
        line-height: 77px;
    }
}

/* Menu burger break-point*/
@media (max-width: 1239px) {

}

/* Extra large devices (large desktops, 1200px and up) */
@media (max-width: 1199px) {

    /* Tailles de police selon la variation de taille */
    #spx_lp_text_preview {
        min-height: 85px;
    }

    #spx_lp_text_preview.size-m {
        font-size: 42px;
        line-height: 42px;
    }

    #spx_lp_text_preview.size-l {
        font-size: 71px;
        line-height: 71px;
    }

    .spx-lp-ruler-label {
        font-size: 10px;
    }

}

/* Large devices (desktops, 992px and up) */
@media (max-width: 991px) {
    
    .spx-lp-ruler-label {
        font-size: 9px;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (max-width: 767px) {
    .spx_lp_text_preview_label {
        margin-top: 35px;
    }
    .spx_lp_infos_wrapper {
        margin-bottom: 20px;
    }
    .spx_lp_price_guide {
        font-size: 13px;
        line-height: 16px;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (max-width: 575px) {

}

/* Extra Small Devices, Phones */
@media (max-width : 480px) {

}