/* Remove the global shadow remover */
/* 
.lottery-container, 
.lottery-container *, 
.lottery-container *:before, 
.lottery-container *:after {
    box-shadow: none !important;
}
*/

/* Target specific inner containers that might have shadows */
.half-column {
    padding: 15px;
    border-radius: 8px;
    border: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
}

/* Add a clean container without shadow */
.lottery-container {
    text-align: center;
    font-family: Arial, sans-serif;
    padding-top: 20px;
    max-width: 1040px;
    margin: 60px auto !important;
    background: white;
    padding: 0;
    border-radius: 0;
    box-shadow: none !important;
}

/* Additional selector to target potential nested divs */
.elementor-widget-container .lottery-container,
.wpb_wrapper .lottery-container,
.vc_column-inner .lottery-container {
    padding: 0 !important;
    margin: 0 auto !important;
    box-shadow: none !important;
    max-width: 100% !important;
}

#lottery-form {
    margin-bottom: 20px;
}
#lottery-form button {
    min-width: 120px;
    background-color: var(--wd-primary-color);
    color: white;
    border-radius: 6px;
    text-transform: uppercase;
    padding: 15px 30px;
    font-size: 1.0em;
}
#lottery-form button:hover {
    background-color: #0a3d9f;
}
.lottery-checkbox-container {
    margin: 15px 0 40px;
}
#lottery-grid {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 20px;
    margin: 0 auto;
    width: 80%;
    max-width: 80%;
}

.lottery-card {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1/1;
    cursor: pointer;
    background: #fff !important;
    box-sizing: border-box !important;
    position: relative;
}

.lottery-card.flipped {
    /* border: 1px solid #000 !important; */
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1/1 !important;
}

.lottery-card:not(.flipped) {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1/1;
    background-color: transparent !important;
    background-image: url('6664427-v2.png') !important;
    background-size: contain !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    border: none !important;
    border-width: 0 !important;
    border-style: none !important;
    border-color: transparent !important;
    outline: none !important;
}

/* Additional rule for stronger specificity */
.lottery-container .lottery-card:not(.flipped) {
    border: none !important;
}

.lottery-card-inner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.lottery-card.flipped .lottery-card-inner {
    transform: rotateY(180deg);
}

.lottery-card-front,
.lottery-card-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    color: white;
    font-weight: bold;
    font-size: 14px;
    box-sizing: border-box !important;
}

.lottery-card-front {
    background-color: #ffffff;
    color: #000000;
    /* border: 1px solid #000000; */
}

.lottery-card-back {
    background-color: #ffffff;
    transform: rotateY(180deg);
    padding: 5px;
    color: #000;
    line-height: 100%;
    border: 1px solid #ddd;
}

.grand-prize {
    background-color: #ffd700;
    color: #000;
}

.second-prize {
    background-color: #c0c0c0;
    color: #000;
}

.third-prize {
    background-color: #cd7f32;
    color: #fff;
}

.normal-prize {
    background-color: #6c757d;
    color: #fff;
}

#lottery-result {
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #1e73be12;
    max-width: 500px;
    margin: 70px auto 0;
    position: relative;
}
p#coupon-code span {
    font-weight: 700;
    color: #000;
}
#lottery-result:before,
#lottery-result:after{
    position: absolute;
    content: "";
    height: 40px;
    border-radius: 40px;
    z-index: 1;
    top: 70px;
    background-color: #ffffff;
    width: 40px;
}
#lottery-result:before {
    left: -20px;
}
#lottery-result:after {
    right: -20px;
}
.newsletter-checkbox {
    margin: 10px 0;
    display: flex;
    justify-content: center;
    align-items: center;
}
p.error {
    margin: 0;
    color: red;
}
.main-column ul li {
    list-style-type: none;
}
.main-column ul {
    padding: 0;
    margin: 0;
}
/* Make main column full width */
.main-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    text-align: left;
    gap: 20px;
    margin-bottom: 30px;
    width: 100%;
}
#lottery-form .form-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
/* Ensure no extra nested containers */
.lottery-intro, 
.lottery-container > div {
    width: 100%;
    padding: 0;
    margin: 0 auto;
}
@media(max-width: 767px){
    #lottery-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 16px;
        width: 96%;
        max-width: 96%;
    }
    .lottery-container {
        padding: 0 10px;
    }
    .lottery-card, 
    .lottery-card:not(.flipped) {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 1/1;
    }
    .lottery-card-back {
        font-size: 12px;
    }
    .main-column {
        grid-template-columns: 1fr;
        gap: 10px;
        margin-bottom: 20px;
    }
    #lottery-form .form-group {
        grid-template-columns: 1fr;
    }
    .lottery-checkbox-container {
        text-align: left;
    }
    .lottery-checkbox-container input {
        width: 30px;
        height: 30px;
    }
}

/* Remove the global shadow remover at the bottom */
/*
body .lottery-container,
.elementor .lottery-container,
.wpb_content_element .lottery-container,
.elementor-element .lottery-container,
.elementor-widget-container .lottery-container {
    box-shadow: none !important;
}
*/

.lottery-header {
    text-align: center;
    margin-bottom: 20px;
}

.lottery-logo {
    max-width: 150px;
    height: auto;
    margin: 0 auto 20px;
    display: block;
}