/**
 * Spin to Win Coupon Wheel CSS
 * Version: 3.0
 */

/* Wheel Container */
.wheel-container.coupon-wheel {
    text-align: center;
    background: transparent;
    padding: 0px 20px 20px 20px;
    border-radius: 15px;
    max-width: 600px;
    width: 100%;
    margin: 0px auto 20px auto;
    font-family: Arial, sans-serif;
}

.wheel-container.cpt-wheel {
    background: #ffffff;
    border: 1px solid #e1e1e1;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.coupon-wheel .title {
    font-size: 2rem;
    font-weight: bold;
    background: linear-gradient(45deg, #000, #FC0000);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
}

/* Wheel Styles */
.coupon-wheel .wheel-wrapper {
    position: relative;
    width: 330px;
    height: 330px;
    margin: 0 auto;
    isolation: isolate;
    overflow: hidden;
    border-radius: 50%;
    box-shadow: 0px 0px 12px 1px rgba(136, 136, 136, 0.56);
}

.coupon-wheel .wheel {
    background-image: conic-gradient(#ffd899, #622d05, #ffd899, #622d05, #ffd899);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    position: relative;
    overflow: hidden;
    border: 20px solid transparent;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 4.5s cubic-bezier(0.25, 0.1, 0.25, 1);
    transform: rotate(0deg);
}

/* Slice Styles */
.coupon-wheel .slice {
    position: absolute;
    width: 50%;
    height: 50%;
    transform-origin: 100% 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.coupon-wheel .slice:nth-child(odd) {
    background: linear-gradient(to left, #FEFEF5, #fffae6);
}

.coupon-wheel .slice:nth-child(even) {
    background: linear-gradient(to left, #FB1B15, #CB0710);
}

.coupon-wheel .wheel[data-slice-count="5"] .slice-text-one,
.coupon-wheel .wheel[data-slice-count="6"] .slice-text-one,
.coupon-wheel .wheel[data-slice-count="7"] .slice-text-one,
.coupon-wheel .wheel[data-slice-count="8"] .slice-text-one {
    font-size: 13px !important;
}

.coupon-wheel .wheel[data-slice-count="9"] .slice-text-one,
.coupon-wheel .wheel[data-slice-count="10"] .slice-text-one,
.coupon-wheel .wheel[data-slice-count="11"] .slice-text-one,
.coupon-wheel .wheel[data-slice-count="12"] .slice-text-one {
    font-size: 12px !important;
}

.coupon-wheel .wheel[data-slice-count="13"] .slice-text-one,
.coupon-wheel .wheel[data-slice-count="14"] .slice-text-one,
.coupon-wheel .wheel[data-slice-count="15"] .slice-text-one,
.coupon-wheel .wheel[data-slice-count="16"] .slice-text-one {
    font-size: 11px !important;
}

.coupon-wheel .wheel[data-slice-count="17"] .slice-text-one,
.coupon-wheel .wheel[data-slice-count="18"] .slice-text-one,
.coupon-wheel .wheel[data-slice-count="19"] .slice-text-one,
.coupon-wheel .wheel[data-slice-count="20"] .slice-text-one {
    font-size: 10px !important;
}

.coupon-wheel .wheel[data-slice-count="21"] .slice-text-one,
.coupon-wheel .wheel[data-slice-count="22"] .slice-text-one,
.coupon-wheel .wheel[data-slice-count="23"] .slice-text-one,
.coupon-wheel .wheel[data-slice-count="24"] .slice-text-one {
    font-size: 9px !important;
}
.coupon-wheel .slice-content {
    position: absolute;
    top: 30px;
    left: -17px;
    width: 100%;
    height: 100%;
    transform-origin: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform: rotate(32deg)!important;
}

.coupon-wheel .slice-text-one {
    font-size: 13px !important;
    font-weight: bold;
}

.coupon-wheel .slice-text-two {
    font-size: 12px !important;
   
}

.coupon-wheel .slice.red-text .slice-text-one,
.coupon-wheel .slice.red-text .slice-text-two {
    color: #FB1B15;
}

.coupon-wheel .slice.white-text .slice-text-one,
.coupon-wheel .slice.white-text .slice-text-two {
    color: #fff;
}

/* Pointer and Target */
.coupon-wheel .pointer {
    position: absolute;
    top: -6px;
    left: 49%;
    transform: translateX(-50%);
    z-index: 10;
}

.coupon-wheel .pointer img {
    width: 50px;
}

.coupon-wheel .wheel-target {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
}

.coupon-wheel .wheel-target img {
    width: 80px;
}

.coupon-wheel .wheel-stand {
    margin-top: -25px;
    text-align: center;
}

.coupon-wheel .wheel-stand img {
    width: 240px;
}

/* Button Styles */
.coupon-wheel .spin-btn {
    background: linear-gradient(45deg, #000000, #FC0000);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 1.3rem;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(255, 107, 53, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 20px;
}

.coupon-wheel .spin-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.6);
}

.coupon-wheel .spin-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* CPT Wheel Button Styles */
.cpt-wheel .spin-btn .dashicons {
    vertical-align: middle;
    margin-right: 8px;
    font-size: 1.2em;
    width: auto;
    height: auto;
}

/* Success Message */
.coupon-wheel .success-message {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease;
    margin-top: 20px;
}

.coupon-wheel .success-message.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.coupon-wheel .congrats-text {
    font-size: 1.3rem;
    font-weight: bold;
    color: #027F00;
    margin-bottom: 20px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* Coupon Result Styles */
.coupon-wheel .coupon-result {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    column-gap: 10px;
    margin-bottom: 15px;
}

.coupon-wheel .coupon-code {
    font-size: 1rem;
    font-weight: bold;
    color: #d35400;
    background: #f8f9fa;
    padding: 10px 25px;
    border: 2px dashed #e74c3c;
    border-radius: 10px;
    font-family: 'Courier New', monospace;
    letter-spacing: 2px;
}

.coupon-wheel .copy-coupon-btn {
    background: conic-gradient(#ffd899, #622d05, #ffd899, #622d05, #ffd899);
    color: white;
    border: none;
    padding: 12px 25px;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.coupon-wheel .copy-coupon-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

.coupon-wheel .copy-feedback {
    display: block;
    color: #27ae60;
    font-weight: bold;
    margin-top: 10px;
    font-size: 0.9rem;
}

.coupon-wheel .discount-btn {
    background: linear-gradient(45deg, #027F00, #07a104);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(40, 167, 69, 0.4);
    text-decoration: none;
    display: inline-block;
    margin-top: 20px;
}

.coupon-wheel .discount-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(40, 167, 69, 0.6);
    color: #f9f9f9;
}

/* Error Messages */
.spin-wheel-error {
    background: #ffeaa7;
    border: 1px solid #fdcb6e;
    padding: 15px;
    border-radius: 5px;
    text-align: center;
    color: #e17055;
    font-weight: bold;
}

/* Hide coupon result when not needed */
.coupon-wheel .success-message.no-coupon .coupon-result {
    display: none !important;
}

.coupon-wheel .success-message.no-coupon .congrats-text {
    margin-bottom: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .coupon-wheel .wheel-wrapper {
        width: 320px;
        height: 320px;
    }
    
    .coupon-wheel .slice-text-one {
        font-size: 14px !important;
    }
    
    .coupon-wheel .slice-text-two {
        font-size: 10px !important;
    }
    
    .coupon-wheel .spin-btn {
        padding: 12px 30px;
        font-size: 1.1rem;
    }
    
    .coupon-wheel .pointer img {
        width: 39px;
    }
    
    .coupon-wheel .wheel-target img {
        width: 72px;
    }
    
    .coupon-wheel .coupon-code {
        font-size: 1.4rem;
        padding: 12px 20px;
    }
    
    .coupon-wheel .coupon-result {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .coupon-wheel .wheel-wrapper {
        width: 280px;
        height: 280px;
    }
    
    .coupon-wheel .title {
        font-size: 1.8rem;
    }
    
    .coupon-wheel .slice-text-one {
        font-size: 12px !important;
    }
    
    .coupon-wheel .wheel-stand img {
        width: 180px;
    }
    
    .coupon-wheel .spin-btn {
        padding: 10px 25px;
        font-size: 1rem;
    }
}