.cwm-wheel-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 500px;
    padding: 0 20px; /* Add padding to prevent overflow */
}

.cwm-wheel-wrapper {
    
    position: relative;
    width: 100%;
    max-width: 780px;
    display: flex;
    justify-content: center;
    align-content: center;

}

.cwm-center-wheel {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cwm-wheel-bg {
    position: relative;
    width: 370px;
    height: 322px;
}

.cwm-wheel-default {
    width: 100%;
    height: 100%;
}

.cwm-wheel-highlight {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.3s ease; /*peyman*/
    pointer-events: none;
}

.cwm-wheel-highlight.active {
    opacity: 1 !important;
}

.cwm-icon-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 780px;
    height: 500px; /* ارتفاع اصلی ثابت بماند */
    pointer-events: none;
}

/* اضافه کردن بخش پایین */
.cwm-icon-overlay::after {
    content: "";
    position: absolute;
    bottom: -100px;   /* این مقدار تعیین می‌کند چقدر به پایین ادامه پیدا کند */
    left: 0;
    width: 100%;
    height: 150px;    /* ارتفاع بخش اضافه */
    background-color: inherit; 
    /*background-color: inherit; */
    z-index: -1;
}

.cwm-icon-item {
    position: absolute;
    pointer-events: all;
    transform-origin: center;
    transition: all 0.3s ease;
    cursor: pointer;
    padding: 20px;
    border-radius: 10px;
	touch-action: manipulation; /* Prevents double-tap zoom and improves touch responsiveness */
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1); /* Subtle tap highlight on iOS */
    user-select: none; /* Prevents text selection on touch */
    -webkit-touch-callout: none; /* Prevents callout menu on iOS long press */
    transition: transform 0.1s ease; /* Smooth transitions for all devices */
}

.cwm-icon-item:hover {
    transform: scale(1.05);
}

.cwm-icon-item.active {
    transform: scale(1.1);
    z-index: 4;
}

/* Position icons around the wheel - like clock positions */


.cwm-icon-left-layout,
.cwm-icon-right-layout {
    display: flex;
    align-items: center;
    gap: 0px;
}

.cwm-icon-left-layout {
    flex-direction: column-reverse;
}

.cwm-icon-right-layout {
    flex-direction: column;
}

/* Icon circles */
.cwm-icon-circle {
    width: 100%;
    height: 100px;/*peyme*/
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: 3px solid transparent;
    position: relative;
    overflow: hidden;
}

.cwm-icon-circle img {
    width: 100%;
    height: 120px;
    object-fit: contain;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease;
	pointer-events: none; /* Let parent handle all events */
    user-select: none;
}

.cwm-icon-hover {
    opacity: 0;
}

.cwm-icon-item.active .cwm-icon-normal {
    opacity: 0;
}

.cwm-icon-item.active .cwm-icon-hover {
    opacity: 1;
}

/* Icon labels */
.cwm-icon-label {
    display: none;
}

/*.cwm-icon-right-layout .cwm-icon-label {
    text-align: center;
  
}*/

/*.cwm-icon-item.active .cwm-icon-label {
    color: #4285f4;
   
}*/

/* Popup styling */
.cwm-popup {
    position: absolute;
    width: 370px;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    z-index: 10;
    border: 1px solid #e0e0e0;
    transform: scale(0.9);
}

.cwm-popup.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.cwm-popup-left-icons {
    top: -5%;
    left: 18%;
}

.cwm-popup-right-icons {
    top: -5%;
    right: 18%;
}

.cwm-popup-content {
    padding: 20px;
}

.cwm-popup-title {
    margin: 0 0 12px 0;
    font-size: 20px !important;
    font-weight: 800;
    color: #333;
}

.cwm-popup-description {
    margin: 0 0 15px 0;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    color: #666;
}

.cwm-popup-video {
    margin: 0 0 15px 0;
    border-radius: 8px;
    overflow: hidden;
    /*background: #f5f5f5;*/
}

.cwm-popup-video iframe,
.cwm-popup-video video {
    width: 100%;
    height: 200px;
    border-radius: 8px;
    border: none;
}

.cwm-popup-video .video-placeholder {
    width: 100%;
    height: 200px;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 12px;
}

.cwm-popup-button {
    background: #4285f4;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
    width: 100%;
}

.cwm-popup-button:hover {
    background: #3367d6;
}

@media (min-width: 769px) and (max-width: 1024px) {
  /* Tablet-specific styles here */
  .cwm-wheel-bg {
    width: 300px;
    height: 278px;
	}
	
	/* Position icons around the wheel - like clock positions */
	.cwm-icon-item[data-arc="1"] { /* 10 o'clock */
		top: 5%;
		left: 6%;
        width: 30%;
	}

	.cwm-icon-item[data-arc="2"] { /* 8 o'clock */
        background-color: red;
		top: 34%;
		left: 0%;
        width: 30%;
	}

	.cwm-icon-item[data-arc="3"] { /* 6 o'clock */
		bottom: 5%;
		left: 6%;
        width: 30%;
	}

	.cwm-icon-item[data-arc="4"] { /* 4 o'clock */
		bottom: 5%;
		right: 6%;
        width: 30%;
	}

	.cwm-icon-item[data-arc="5"] { /* 2 o'clock */
		top: 34%;
		right: 0%;
        width: 30%;
	}

	.cwm-icon-item[data-arc="6"] { /* 12 o'clock */
		top: 5%;
		right: 6%;
        width: 30%;
	}
	
	.cwm-icon-item[data-arc="7"] { /* 6 o'clock */
		top: 82%;        
        left: 50%;        
        width: 30%;
        transform: translate(-50%, 0); 
	}
	
	
	.resm{
        height: 100px !important;
        width: 190px !important;
	}
	
}

/* Responsive design - Fixed */
@media (max-width: 768px) {
    .cwm-wheel-container {
        padding: 20px 10px;
        min-height: 450px;
        overflow: hidden; /* Prevent horizontal scroll */
    }
    
    .cwm-wheel-wrapper {
        max-width: 100vw;
        padding: 0 40px; /* Add padding to contain icons */
    }
    
    .cwm-icon-overlay {
        width: 400px; /* Reduce overlay width */
        height: 350px; /* Reduce overlay height */
    }
    
    .cwm-wheel-bg {
        width: 250px;
        height: 220px;
    }
	
	.cwm-icon-left-layout {
    flex-direction: column-reverse;
	}

	.cwm-icon-right-layout {
		flex-direction: column;
	}
    
    .cwm-icon-circle {
        width: 150% ;
        height: 150% ;
    }
    
    .cwm-icon-circle img {
        width: 100% ;
        height: 100% ;
    }
    
    /*.cwm-icon-label {
        font-size: 12px;
        width: 80px;
        padding: 2px 4px;
		text-align: center !important;
    }*/
    
    .cwm-icon-item {
		/* Ensure minimum touch target size (44px minimum recommended) */
        min-width: 44px;
        min-height: 44px;
        padding: 10px;
		/* Ensure enough spacing between touch targets */
        margin: 4px;
        /* Center content in larger touch targets */
        display: flex;
        align-items: center;
        justify-content: center;
		pointer-events: none;
    }
    
    /* Adjusted positions for tablet */
    .cwm-icon-item[data-arc="1"] { 
        top: 0%;
        left: -10%;
        width: 30%;
        height: 100px;
    }
    
    .cwm-icon-item[data-arc="2"] { 
        /*background-color: blue;*/
        bottom: 35%;
        left: -20%;
        width: 30%;
        height: 100px;
    }
    
    .cwm-icon-item[data-arc="3"] { 
        bottom: 0%;
        left: -10%;
        width: 30%;
        height: 100px;
    }
    
    .cwm-icon-item[data-arc="4"] { 
        bottom: 0%;
        right: -10%;
        width: 30%;
        height: 100px;
    }
    
    .cwm-icon-item[data-arc="5"] { 
        top: 34.2%;
        right: -20%;
        width: 30%;
        height: 100px;
    }
    
    .cwm-icon-item[data-arc="6"] { 
        top: 0%;
        right: -10%;
        width: 30%;
        height: 100px;
    }
	
	.cwm-icon-item[data-arc="7"] { 
       top: 90%;         
    left: 48.5%;        
    width: 30%;
        height: 100px;  
    transform: translate(-50%, 0);
    }
	
	.resm{
        height: 75px !important;
        width: 230% !important;
	}
	
	.cwm-icon-link {
        /* Ensure minimum touch target size */
        min-width: 44px;
        min-height: 44px;
        /* Improve touch responsiveness */
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0.2);
		pointer-events: all !important;
    }
	
	.cwm-popup {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 90%;
        max-width: 350px;
        z-index: 1000;
    }
    
    .cwm-popup.active {
        transform: translate(-50%, -50%) scale(1);
    }
    
    .cwm-popup::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: -1;
    }
    
    .cwm-popup-left-icons,
    .cwm-popup-right-icons {
        position: fixed;
        top: 50%;
        left: 50%;
        right: auto;
        transform: translate(-50%, -50%);
    }
}


@media (min-width: 480px) and (max-width: 640px) {
    .cwm-wheel-container {
        min-height: 350px;
        padding: 15px 5px;
    }
    
    .cwm-wheel-wrapper {
        padding: 0 30px; /* Reduce padding for very small screens */
    }
    
    .cwm-icon-overlay {
        width: 320px; /* Further reduce for mobile */
        height: 280px;
    }
    
    .cwm-wheel-bg {
        width: 140px;
        height: 121px;
    }
    
    .cwm-icon-circle {
        width: 100% !important;
        height: 100% !important;
    }
    
    .cwm-icon-circle img {
        width: 80% !important;
        height: 80% !important;
    }
    
    
   /* .cwm-icon-label {
        font-size: 10px;
        width: 80px;
        padding: 1px 2px;
		text-align: center !important;
    }*/
    
    .cwm-icon-item {
        padding: 12px;
    }
    
    /* More conservative positioning for mobile */
    .cwm-icon-item[data-arc="1"] { 
        top: 2%;
        left: -23%;
        width: 65%;
        height: 110px;
    }
    
    .cwm-icon-item[data-arc="2"] { 
        /*background-color: green;*/
        bottom: 28.8%;
        left: -30%;
        width: 65%;
        height: 110px;
    }
    
    .cwm-icon-item[data-arc="3"] { 
        bottom: 2%;
        left: -23%;
        width: 65%;
        height: 110px;
    }
    
    .cwm-icon-item[data-arc="4"] { 
        bottom: 2%;
        right: -23%;
        width: 65%;
        height: 110px;
    }
    
    .cwm-icon-item[data-arc="5"] { 
        top: 29.2%;
        right: -31%;
        width: 65%;
        height: 110px;
    }
    
    .cwm-icon-item[data-arc="6"] { 
        top: 2%;
        right: -23%;
        width: 65%;
        height: 110px;
    }
	
	.cwm-icon-item[data-arc="7"] { 
       top: 71%;         
    left: 48.5%;   
    height: 120px;   
    width: 50%;    
    transform: translate(-50%, 0);
    }
    
	
	.resm{
        height: 114px !important;
        width: 230% !important;
	}
	/*
    .cwm-popup {
        width: 95%;
        max-width: 280px;
    }*/
}




@media (min-width: 360px) and (max-width: 480px) {
    .cwm-wheel-container {
        min-height: 350px;
        padding: 15px 5px;
    }
    
    .cwm-wheel-wrapper {
        padding: 0 30px; /* Reduce padding for very small screens */
    }
    
    .cwm-icon-overlay {
        width: 320px; /* Further reduce for mobile */
        height: 280px;
    }
    
    .cwm-wheel-bg {
        width: 140px;
        height: 121px;
    }
    
    .cwm-icon-circle {
        width: 100% !important;
        height: 100% !important;
    }
    
    .cwm-icon-circle img {
        width: 80% !important;
        height: 80% !important;
    }
    
    
   /* .cwm-icon-label {
        font-size: 10px;
        width: 80px;
        padding: 1px 2px;
		text-align: center !important;
    }*/
    
    .cwm-icon-item {
        padding: 12px;
    }
    
    /* More conservative positioning for mobile */
    .cwm-icon-item[data-arc="1"] { 
        top: 7%;
        left: -20%;
        width: 65%;
    }
    
    .cwm-icon-item[data-arc="2"] { 
        /*background-color: yellow;*/
        bottom: 30.2%;
        left: -27%;
        width: 65%;
    }
    
    .cwm-icon-item[data-arc="3"] { 
        bottom: 5%;
        left: -20%;
        width: 65%;
    }
    
    .cwm-icon-item[data-arc="4"] { 
        bottom: 5%;
        right: -20%;
        width: 65%;
    }
    
    .cwm-icon-item[data-arc="5"] { 
        top: 31.2%;
        right: -28%;
        width: 65%;
    }
    
    .cwm-icon-item[data-arc="6"] { 
        top: 7%;
        right: -20%;
        width: 65%;
    }
	
	.cwm-icon-item[data-arc="7"] { 
       top: 70%;         
    left: 48.5%;    
    height: 115px;      
    transform: translate(-50%, 0);
    }
    
	
	.resm{
        height: 90px !important;
        width: 230% !important;
	}
	/*
    .cwm-popup {
        width: 95%;
        max-width: 280px;
    }*/
}

/* Extra small screens */
@media (max-width: 360px) {
    .cwm-wheel-wrapper {
        padding: 0 20px;
    }
    
    .cwm-icon-overlay {
        width: 280px;
        height: 240px;
    }
    
    .cwm-wheel-bg {
        width: 180px;
        height: 160px;
    }
    
    .cwm-icon-circle {
        width: 125% !important;
        height: 150% !important;
    }
    
    .cwm-icon-circle img {
        width: 100% !important;
        height: 100% !important;
    }
    
   /* .cwm-icon-label {
        font-size: 9px;
        width: min-content;
		text-align: center;
    }*/
    
    /* Even more conservative positioning */
    .cwm-icon-item[data-arc="1"] { 
        top: -3%;
        left: -8%;
    }
    
    .cwm-icon-item[data-arc="2"] { 
        bottom: 24%;
        left: -16%;
        width: 32%;
    }
    
    .cwm-icon-item[data-arc="3"] { 
        bottom: -17%;
        left: -8%;
        width: 32%;
    }
    
    .cwm-icon-item[data-arc="4"] { 
        bottom: -12%;
        right: -8%;
        width: 32%;
    }
    
    .cwm-icon-item[data-arc="5"] { 
        top: 33%;
        right: -16%;
        width: 32%;
    }
    
    .cwm-icon-item[data-arc="6"] { 
        top: -3%;
        right: -8%;
        width: 32%;
    }
	
	.cwm-icon-item[data-arc="7"] { 
        top: 86%;       
    left: 48%;         
    transform: translate(-50%, 0); 
    }
	
	
	.resm{
        height: 60px !important;
        width: 200% !important;
	}
}










/* ====== Popup پایه مخصوص آیتم ۷ (بدون تداخل با JS) ====== */
.cwm-popup-arc7{
    position: absolute;
    width: clamp(420px, 60vw, 700px);
    box-sizing: border-box;
  
    /* ارتفاع ریسپانسیو */
    height: auto;            /* ارتفاع متناسب با محتوا */
    max-height: 80vh;        /* حداکثر 80٪ ارتفاع صفحه */
    
  
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    border: 1px solid #e0e0e0;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) scale(0.9);
    transition: all 0.3s ease;
    z-index: 10;
  }
  
  /* موقعیت مخصوص ۶-اُکلاک: بالای آیکن وسط شود */
  .cwm-arc7 .cwm-popup-bottom-center{
    bottom: 120%;
    left: 50%;
    width:350%;
    cursor: default;
  }
  
  /* نمایش روی هاورِ خود آیتم ۷ */
  .cwm-arc7:hover .cwm-popup-arc7{
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) scale(1);
    z-index: 20;
    color: #ffffff;
  }
  

  .cwm-arc7 .cwm-popup-button{
    background: #6679FC;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 13px;
    text-align: center;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
    width: 100%;
  }


  .cwm-arc7 .cwm-popup-button:hover {
    color: #ffffff;
  }
  
  /* فلش رو به آیکن */
  .cwm-arc7 .cwm-popup-arc7::after{
    content:"";
    position:absolute;
    bottom:-14px;
    left:50%;
    transform: translateX(-50%);
    border-width:14px 14px 0 14px;
    border-style:solid;
    border-color:#eaedff transparent transparent transparent;
    filter: drop-shadow(0 2px 2px rgba(0,0,0,.08));
  }
  
  /* دو ستونه کردن محتوا */
  .cwm-arc7 .cwm-popup-grid{
    display:grid;
    grid-template-columns: 1fr 1fr;
    border-radius: 10px;
    gap:16px;
    background: #eaedff;
  }
  .cwm-popup-left{ display:flex; flex-direction:column; gap:12px }
  .cwm-popup-right{ height:200px }
  .cwm-popup-right iframe, .cwm-popup-right video{ width:100%; height:100%; border:none; border-radius:8px }
  
  /* موبایل: تمام‌صفحه و تک‌ستونه */
  @media (max-width:640px){
    .cwm-arc7 .cwm-popup-arc7{
        display: none !important;
     /* position: fixed;
      top: 50%;
      left: 50%;
      bottom: auto;
      transform: translate(-50%, -50%) scale(1);
      width: 92%;
      max-width: 360px;*/
    }
    /*.cwm-popup-arc7 {
        width: 92%;
        max-width: 360px;
        height: auto;
        max-height: 90vh;   
        overflow-y: auto;  
      }*/
    .cwm-arc7 .cwm-popup-arc7::after{ display:none }
    .cwm-popup-grid{ grid-template-columns: 1fr }
    .cwm-popup-right{ height:180px }
  }
  

  



/*
.active-arrow:hover{
    opacity: 1 !important;
    z-index: -1 !important;
}*/





  /* ===== Hidden Hover Shape Under Popup ===== */
  .cwm-arc7-hover-zone {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translate(-50%, 0);
    width: 260px;
    height: 70px;
    background: transparent;
    pointer-events: auto;
    z-index: 5;
  }
  
  /* اتصال hover بین دکمه، shape، و popup */
  /*.cwm-icon-item.cwm-arc7:hover .cwm-popup-arc7.cwm-popup-center,
  .cwm-popup-arc7.cwm-popup-center:hover,
  .cwm-arc7-hover-zone:hover ~ .cwm-popup-arc7.cwm-popup-center {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translate(-50%, -50%) scale(1);
    z-index: 999 !important;
    pointer-events: all;
  }*/
  
  /* اطمینان از اینکه hover روی shape مدال را باز نگه می‌دارد */
  .cwm-arc7-hover-zone {
    cursor: default;
  }
  
  /* Popup مرکز چرخ */
  .cwm-popup-arc7.cwm-popup-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    opacity: 0;
    visibility: hidden;
    width: clamp(420px, 60vw, 700px);
    background: transparent !important;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 10;
  }




.cwm-icon-item[data-arc="7"]:hover ~ .cwm-wheel-bg .cwm-wheel-highlight-7 {
  opacity: 0 !important;
}





/* ===== ویدیوها در popup ها — نسبت تصویر استاندارد 16:9 ===== */
/*.cwm-popup-video iframe,
.cwm-popup-right iframe,
.cwm-popup-left iframe {
  width: 100% !important;
  aspect-ratio: 16 / 9 !important;
  height: auto !important;
  border-radius: 8px;
  border: none;
  display: block;
  background: #000;
  object-fit: cover;
}


.cwm-video-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  background: #000;
}

.cwm-video-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  object-fit: cover;
}

.cwm-popup-button, .cwm-popup-button{
	border-radius: 10px !important;
	padding: 0.8em !important;
	background-color: #6679FC;
    font-family: "NeurialGroteskBold", Sans-serif !important;
    font-size: 20px !important;
    font-weight: 700 !important;
	
}

.rll-youtube-player{
    border-radius: 10px;
}*/














/* ==== بزرگتر کردن آیکن‌ها در همه حالت‌ها ==== */
/*.cwm-icon-circle {
  width: 150% !important;
  height: 150% !important;
}

.cwm-icon-circle img {
  width: 100% !important;
  height: 100% !important;
}*/