/* Table show in my account page start */
.wxgiveaway-instant-win-table {
    margin: 20px 0;
}
.wxgiveaway-instant-win-table table {
    width: 100%;
    border-collapse: collapse;
}
.wxgiveaway-instant-win-table th,
.wxgiveaway-instant-win-table td {
    padding: 12px;
    border: 1px solid #ddd;
    text-align: left;
}
.wxgiveaway-instant-win-table th {
    background-color: #f5f5f5;
    font-weight: bold;
}

.wxgiveaway-prize-status-not-available {
    background-color: #f8d7da;
    color: #721c24;
    padding: 4px 8px;
    border-radius: 3px;
    font-weight: bold;
}
/* Table show in my account page end */

/*Order thank you page modal show start*/

/* Modal Styles */
#instant-win-modal {
    position: fixed;
    z-index: 9999999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    animation: fadeIn 0.5s forwards;
    padding: 20px;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

.instant-win-modal-content {
    background: linear-gradient(135deg, #ffffff 0%, #f9f9f9 100%);
    padding: 40px;
    border-radius: 20px;
    max-width: 700px;
    margin: auto;
    width: 100%;
    max-height: 90vh;
    text-align: center;
    position: relative;
    z-index: 10000000;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    animation: zoomIn 0.5s forwards;
    border: 1px solid #e0e0e0;
}

.instant-win-modal-content-order-view{
    background: linear-gradient(135deg, #ffffff 0%, #f9f9f9 100%);
    padding: 40px;
    border-radius: 20px;
    max-width: 700px;
    margin: auto;
    width: 100%;
    max-height: 90vh;
    text-align: center;
    position: relative;
    transform: scale(0.9);
    border: 1px solid #e0e0e0;
}

.instant-winner-wrapper{
    overflow: auto;
    max-height: 80vh;
    padding-bottom: 5px;
}

@keyframes zoomIn {
    to { transform: scale(1); }
}

.modal-header {
    margin-bottom: 25px;
    position: relative;
}

.confetti-icon {
    font-size: 40px;
    color: #FFD700;
    margin-bottom: 15px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(-20px);}
    60% {transform: translateY(-10px);}
}

.modal-header h2 {
    color: #2c3e50;
    font-size: 32px;
    margin: 0 0 10px 0;
    font-weight: 700;
}

.modal-header p {
    color: #7f8c8d;
    font-size: 18px;
    margin: 0;
}

.instant-win-prizes {
    margin: 30px 0;
}

.instant-win-prize {
    background: linear-gradient(to right, #f8f9fa 0%, #ffffff 100%);
    padding: 20px;
    margin: 15px 0;
    border-radius: 12px;
    border-left: 5px solid #4CAF50;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: left;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.instant-win-prize:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.instant-win-prize::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    border-width: 0 30px 30px 0;
    border-style: solid;
    border-color: #4CAF50 #fff;
    border-radius: 0 0 0 5px;
}

.instant-win-ticket-number {
    background: #4CAF50;
    color: white;
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 15px;
}

.prize-details {
    color: #2c3e50;
    font-size: 16px;
    line-height: 1.6;
}

.wxgiveaway-instant-win-close-button {
    background: linear-gradient(to right, #4CAF50 0%, #2E8B57 100%);
    color: white;
    border: none;
    padding: 14px 35px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    margin-top: 20px;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(46, 139, 87, 0.4);
}

.wxgiveaway-instant-win-close-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(46, 139, 87, 0.6);
}

.wxgiveaway-instant-win-close-button:active {
    transform: translateY(0);
}

/* Fireworks container */
#fireworks-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999998;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .instant-win-modal-content {
        padding: 25px;
        width: 100%;
    }

    .modal-header h2 {
        font-size: 26px;
    }

    .modal-header p {
        font-size: 16px;
    }

    .instant-win-prize {
        padding: 15px;
    }
}

/*Order thank you page modal show end*/

/*Style two start*/

.wxgiveaway-instant-win-style-two {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.wxgiveaway-prize-card-style-two {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.wxgiveaway-prize-card-style-two.active {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.wxgiveaway-prize-header-style-two {
    background-color: #f8f8f8;
    padding: 15px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s ease;
}

.wxgiveaway-prize-header-style-two:hover {
    background-color: #f0f0f0;
}

.wxgiveaway-prize-header-style-two h4 {
    margin: 0;
    font-size: 18px;
    color: #333;
}

.wxgiveaway-prize-header-style-two small {
    color: #666;
    font-size: 14px;
}

.wxgiveaway-instant-style-two-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background-color: #fff;
}

.wxgiveaway-prize-card-style-two.active .wxgiveaway-instant-style-two-body {
    max-height: 500px; /* Adjust based on your content */
}

.wxgiveaway-instant-style-two-body > p {
    padding: 15px 20px 5px;
    margin: 0;
    font-weight: 500;
    color: #444;
}

.wxgiveaway-tickets-style-two {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px 20px 20px;
}

.wxgiveaway-ticket-style-two {
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    text-align: center;
    min-width: 80px;
}

.ticket-available {
    background-color: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

.ticket-not-available {
    background-color: #ffebee;
    color: #c62828;
    border: 1px solid #ffcdd2;
}

.prize-icon-style-two{
    width: 40px;
    height: 40px;
    object-fit: contain;
    opacity: 0.85;
    border-radius: 8px;
    background: rgba(255,255,255,0.2);
    padding: 4px;
}
/*Style two end*/

/*Style three start*/

.wxgiveaway-instant-win-style-three {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.wxgiveaway-prize-card-style-three {
    background: linear-gradient(135deg, #ffffff 0%, #f5f7ff 100%);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.wxgiveaway-prize-card-style-three:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.wxgiveaway-prize-header-style-three {
    background: #96a3d1;
    color: white;
    padding: 20px;
    position: relative;
}

.prize-icon-style-three {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    object-fit: contain;
    opacity: 0.85;
    border-radius: 8px;
    background: rgba(255,255,255,0.2);
    padding: 4px;
}


.wxgiveaway-prize-header-style-three h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    padding-right: 40px;
}

.wxgiveaway-prize-header-style-three .remaining {
    font-size: 14px;
    opacity: 0.9;
}

.wxgiveaway-instant-style-three-body {
    padding: 20px;
}

.ticket-section-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #444;
    display: flex;
    align-items: center;
}

.ticket-section-title i {
    margin-right: 10px;
    color: #6a11cb;
}

.wxgiveaway-tickets-style-three {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.wxgiveaway-ticket-style-three {
    padding: 8px 14px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 80px;
    transition: all 0.2s ease;
}

.ticket-available {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}

.ticket-not-available {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ef9a9a;
    position: relative;
}


.winner-info {
    background: #f5f5f5;
    padding: 15px;
    border-radius: 12px;
    margin-top: 15px;
    border-left: 4px solid #6a11cb;
}

.winner-info h5 {
    font-size: 14px;
    color: #6a11cb;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.winner-info h5 i {
    margin-right: 8px;
}

.winner-details {
    font-size: 14px;
    color: #555;
    line-height: 1.5;
}

.prize-status-style-three {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    margin-top: 10px;
}

.prize-status-style-three .status-icon {
    margin-right: 4px;
    stroke: currentColor; /* inherits text color */
}


.status-available {
    background: #e8f5e9;
    color: #2e7d32;
}

.status-claimed {
    background: #ffebee;
    color: #c62828;
}

@media (max-width: 768px) {
    .wxgiveaway-instant-win-style-three {
        display: flex;
        flex-direction: column;
    }

    .wxgiveaway-tickets-style-three {
        justify-content: center;
    }
}

/*Style three end*/