.preview-wrapper {
    /* width: 600px; */
    margin-bottom: 15px;
    position: relative;
}

.tapis {
    width: 600px;
    height: 850px;
    background-size: cover;
    background-position: center 640px ;
    position: relative;
}
.cm-tapis-bg .tapis {
    background-position: center center !important;
}

body .tapis-tile-layer {
    z-index: 1;
    transform: perspective(820px) rotateX(58deg);
    opacity: 1;
    transform-origin: center;
    background-repeat: no-repeat !important;
    background-size: 100% !important;
    width: 76%;
    height: 85%;
    top: 57.7%;
    left: 16%;
}


.color {
    width: 28px;
    height: 28px;
    display: inline-block;
    margin: 4px;
    border: 1px solid #000;
    cursor: pointer;
}






/* ================================
   MAIN GRID
================================ */
.configurator-grid{
    display:grid;
    grid-template-columns: 1fr 1fr;
    gap:30px;
    align-items:start;
}

/* ================================
   LEFT SIDE
================================ */
.config-left .preview-wrapper{
    width:100%;
}

.tapis{
    width:100%;
    background-size:cover;
    background-position:center 640px;
    position:relative;
    border-radius:10px;
    overflow:hidden;
}

.tapis-tile-layer{
    position:absolute;
    inset:0;
}

/* ================================
   RIGHT SIDE
================================ */
.config-right{
    /* background:#fff;
    padding:20px;
    border-radius:10px;
    box-shadow:0 0 10px rgba(0,0,0,0.08); */
}

/* tabs */
.tabs{
    margin-bottom:15px;
	display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
	gap: 5px;
}

.tab{
    /* display:inline-block;
    padding:6px 12px;
    margin:4px;
    background:#eee;
    cursor:pointer;
    font-size:14px;
	*/
    padding: 6px 12px;
    background: #eee;
    cursor: pointer;
    font-size: 14px;
    width: 100%;
	text-align: center;
}

.tab.active{
    background:#000;
    color:#fff;
}

/* palette */
.palette{
    display:flex;
    flex-wrap:wrap;
    gap:2px;
	border: 3px solid #e1e1e1;
}

.color{
    width:18px;
    height:18px;
    /* border-radius:100%; */
    cursor:pointer;
    border:2px solid #ddd;
}

/* ================================
   MOBILE RESPONSIVE
================================ */
@media(max-width:768px){
    .configurator-grid{
        grid-template-columns:1fr;
    }
}


.tile-area-calculator {
    max-width: 700px;
    font-family: Arial, sans-serif;
}

.calculator-row {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.calculator-col {
    flex: 1;
}

.calculator-col label,
.price-section label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
}

.qty-box {
    display: flex;
    align-items: center;
    border: 1px solid #ccc;
    width: 180px;
}

.qty-box button {
    width: 40px;
    height: 40px;
    border: none;
    background: #f3f3f3;
    font-size: 18px;
    cursor: pointer;
}

.qty-box button:hover {
    background: #e5e5e5;
}

.qty-input {
    width: 100%;
    height: 40px;
    border: none;
    text-align: center;
    font-size: 16px;
}

.qty-input:focus {
    outline: none;
}

.price-section {
    margin-top: 10px;
}

.price-input {
    width: 200px;
    height: 40px;
    border: 1px solid #ccc;
    padding: 5px 10px;
    font-size: 16px;
}




button.button.alt.tile-custom-add-to-cart {
    width: 100%;
    background: #4f4f4c;
    font-size: 18px;
}


.acf-logo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    align-items: center;
}

.logo-item img {
    width: 100%;
    height: auto;
    transition: 0.3s ease;
}

.logo-item img:hover {
    transform: scale(1.05);
}
/*new css */
/* Wrapper */
.tapis-preview-wrapper {
    margin-top: 20px;
}

/* Box with border */
.tapis-preview-box {
    width: 100%;
    max-width: 500px;
    height: 300px;
    border: 3px solid #ddd;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    background: #f9f9f9;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* tapis background */
.tapis-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: bottom;
}

/* Tile overlay */
.tapis-tile-layer {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}
.tapis-tile-layer {
    position: absolute;
    inset: 0;
    z-index:-1;
    width: 100%;
    height: 100%;
    transform: rotateX(45deg);
    transform-origin: center;
    opacity: 1;
}
.cm-tapis-bg {
    overflow: hidden;
    position: relative;
}

.cm-tapis-bg .tapis {
    background-position: top center;
 
}


@media(max-width:768px){
body .tapis-tile-layer {
    transform: perspective(417px) rotateX(67deg);
    width: 70%;
    height: 83%;
    top: 49.7%;
    left: 20%;
}
body .tapis {
    height: 360px;
}
}

@media (min-width: 769px) and (max-width:989px){
body .tapis-tile-layer {
    transform: perspective(504px) rotateX(67deg);
    width: 70%;
    height: 83%;
    top: 48.4%;
    left: 21%;
}
body .tapis {
    height: 450px;
}
}


@media (min-width: 1400px) and (max-width: 1550px) {
body .tapis-tile-layer {
	top: 52%;
	transform: perspective(626px) rotateX(58deg);
}
body .tapis {
    height: 800px;
}
}

@media (min-width: 1300px) and (max-width: 1400px) {
body .tapis-tile-layer {
	top: 50%;
	transform: perspective(626px) rotateX(58deg);
}
}

@media (min-width: 1200px) and (max-width: 1300px) {
body .tapis-tile-layer {
	top: 49%;
	transform: perspective(626px) rotateX(58deg);
}
}

@media (min-width: 990px) and (max-width: 1200px) {
body .tapis-tile-layer {
	width: 75%;
	height: 56%;
	top: 55%;
	left: 18%;
	transform: perspective(566px) rotateX(58deg);
}
body .tapis {
    height: 755px;
}
}

/* css 21-apr- 2026 */

.cm-tapis-bg {
    border-radius: 10px;
}
body .tapis-tile-layer {
    z-index: -1;
    width: 80%;
    transform: perspective(820px) rotateX(58deg);
    height: 100%;
    top: 18%;
    left: 16%;
}

.cm-tapis-bg .tapis {
		height: 570px;
            background-position: center 640px !important;
	}
@media (min-width: 1451px) and (max-width: 1550px) {

    body .tapis-tile-layer {
    top: 20%;
}
}
@media (min-width: 1440px) and (max-width: 1450px) {

    body .tapis-tile-layer {
    top: 24%;
}
}
@media (min-width: 1366px) and (max-width: 1439px) {
body .tapis-tile-layer {
    top: 27%;
}
}
@media (min-width: 1180px) and (max-width: 1365px) {
body .tapis-tile-layer {
    width: 100%;
    top: 35%;
    left: 5%;
}
}

@media (min-width: 1024px) and (max-width: 1179px) {
body .tapis-tile-layer {
    width: 100%;
    top: 41.5%;
    left: 5%;
}
}
@media (min-width: 820px) and (max-width: 1023px) {
body .tapis-tile-layer {
         width: 110%;
        top: 31.5%;
        left: 1%;
}
.cm-tapis-bg .tapis {
    background-position: center center !important;
}
}
@media (min-width: 768px) and (max-width: 819px) {
body .tapis-tile-layer {
    width: 110%;
    top: 31.5%;
    left: 2%;
}
.cm-tapis-bg .tapis {
    background-position: center center !important;
}
}

@media (max-width: 767px) {

.cm-tapis-bg .tapis {
        height: 380px;
    background-position: center center !important;
}
body .tapis-tile-layer {
    width: 100%;
}
}


@media (min-width: 412px) and (max-width: 767px) {

body .tapis-tile-layer {
    top: 34%;
    left: 5%;
}
}

@media (min-width: 390px) and (max-width: 411px) {

body .tapis-tile-layer {
    top: 33.8%;
    left: 5%;
}
}
@media (max-width: 389px) {
.cm-tapis-bg .tapis {
        height: 360px;
}}

@media (min-width: 375px) and (max-width: 389px) {

body .tapis-tile-layer {
    top: 34%;
    left: 6%;
}
}
@media (min-width: 320px) and (max-width: 374px) {
body .tapis-tile-layer {
    top: 33%;
    left: 5%;
}
}


/* css 15-may- 2026 Tapis Product */
@media (min-width: 768px) and (max-width: 1179px) {
    .cm-tapis-bg .tapis {
        background-position: center center !important;
    }
}


.product-template-default .tabs.testing .tab {
    padding: 6px 4px;
    font-size: 12px;
}

body .tapis-tile-layer {
    width: auto;
    top: 32%;
}
@media (min-width: 1440px) and (max-width: 1450px) {
    body .tapis-tile-layer {
        left: 13%;
    }
}
@media (min-width: 1366px) and (max-width: 1439px) {
    body .tapis-tile-layer {
        width: auto;
        left: 9%;
    }
}
@media (min-width: 1024px) and (max-width: 1179px) {
    body .tapis-tile-layer {
        left: 0%;
                top: 43.5%;
         width: auto;
    }
}
@media (min-width: 820px) and (max-width: 1023px) {
    body .tapis-tile-layer {
        width: auto;
               top: 43.5%;
        left: 0;
    }
        body  .cm-tapis-bg .tapis {
        height: 450px;
    }
}
@media (min-width: 768px) and (max-width: 819px) {
    body .tapis-tile-layer {
       width: auto;
        top: 44.5%;
    }
         body  .cm-tapis-bg .tapis {
        height: 400px;
    }
}
@media (max-width: 767px) {
       body .tapis-tile-layer {
        left: 0;
        width: 100%;
        top: 40%;
    }
          body  .cm-tapis-bg .tapis {
        height: 400px;
    }
}



@media (max-width: 1179px) and (min-width: 768px) {
    .tapis_tell_et .elementor-element-4c99756d,
    .tapis_tell_et .elementor-element-3671d29e {
        --width: 50% !important;
    }
}

body .tapis-tile-layer {
    left: 0;
}