/* 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, .wxgiveaway-instant-win-style-three {
    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;
}

.wxgiveaway-prize-type-header-style-two {
    transition: background-color 0.3s ease;
    margin-bottom: 10px;
}
/*Style two end*/

/*Style three start*/

.wxgiveaway-prize-type-header-style-three {
    transition: background-color 0.3s ease;
    margin-bottom: 10px;
}

.wxgiveaway-prize-type-header-style-three:hover {
    background-color: #f0f0f0;
}

.wxgiveaway-accordion-icon {
    font-size: 20px;
    font-weight: bold;
    color: #666;
    transition: transform 0.3s ease;
}
.wxgiveaway-prize-type-content-style-three{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
}

.wxgiveaway-ticket-style-three.ticket-available {
    background: #e8f5e8 !important;
    color: #2e7d32 !important;
    border: 1px solid #c8e6c9;
}

.wxgiveaway-ticket-style-three.ticket-not-available {
    background: #ffebee !important;
    color: #c62828 !important;
    border: 1px solid #ffcdd2;
}

/*Style three end*/

/*Style four start*/

.wxgiveaway-instant-win-style-four {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.wxgiveaway-prize-card-style-four {
    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-four:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.wxgiveaway-prize-header-style-four {
    color: white;
    padding: 20px;
    position: relative;
}

.prize-icon-style-four {
    position: absolute;
    top: 10px;
    right: 20px;
    width: 93px;
}


.wxgiveaway-prize-header-style-four h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    padding-right: 40px;
}

.wxgiveaway-prize-header-style-four .remaining {
    font-size: 14px;
    opacity: 0.9;
}

.wxgiveaway-instant-style-four-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-four {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.wxgiveaway-ticket-style-four {
    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-four {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    margin-top: 10px;
}

.prize-status-style-four .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-four {
        display: flex;
        flex-direction: column;
    }

    .wxgiveaway-tickets-style-four {
        justify-content: center;
    }
}

/*Style four end*/


/* Winner check form start*/
.ticket-checker-wrapper {
    max-width: 760px;
    margin: 24px auto;
    padding: 0 16px;
}

.ticket-checker-header {
    margin-bottom: 18px;
    text-align: center;
}

.ticket-checker-title {
    margin: 0 0 8px;
    font-size: 28px;
    line-height: 1.2;
    color: #1f2937;
}

.ticket-checker-subtitle {
    margin: 0;
    color: #6b7280;
    font-size: 15px;
}

.ticket-checker-form {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    padding: 28px;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    border: 1px solid #e5e7eb;
}

.ticket-checker-form .form-group {
    margin-bottom: 0;
}

.ticket-checker-form .form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 700;
    color: #111827;
    font-size: 14px;
}

.ticket-checker-input-row input {
    flex: 1;
    min-width: 0;
    margin-bottom: 5px;
}

.ticket-checker-form .form-group input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    font-size: 15px;
    box-sizing: border-box;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ticket-checker-form .form-group input:focus {
    outline: none;
    border-color: #16a34a;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.15);
}

.ticket-checker-form .form-group small {
    display: block;
    margin-top: 10px;
    color: #6b7280;
    font-size: 13px;
    line-height: 1.5;
}

.ticket-checker-form .submit-btn {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 700;
    min-width: 110px;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
    box-shadow: 0 8px 18px rgba(22, 163, 74, 0.25);
}

.ticket-checker-form .submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(22, 163, 74, 0.28);
}

.ticket-checker-form .submit-btn:disabled {
    opacity: 0.75;
    cursor: not-allowed;
    transform: none;
}

.ticket-checker-form .submit-btn.is-loading .submit-btn-text {
    opacity: 0;
}

.ticket-checker-form .submit-btn-spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: ticketCheckerSpin 0.8s linear infinite;
}

.ticket-checker-form .submit-btn.is-loading .submit-btn-spinner {
    display: inline-block;
    position: absolute;
}

@keyframes ticketCheckerSpin {
    to { transform: rotate(360deg); }
}

.ticket-checker-results {
    margin-top: 20px;
}

.ticket-checker-results .result-message {
    padding: 16px 18px;
    border-radius: 10px;
    margin-bottom: 16px;
    font-size: 15px;
    line-height: 1.5;
}

.ticket-checker-results .result-message.error {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.ticket-checker-results .result-message.success {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}

.ticket-checker-results .result-message.info {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

.ticket-checker-table-wrap {
    overflow-x: auto;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
}

.ticket-checker-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 620px;
}

.ticket-checker-table th,
.ticket-checker-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid #eef2f7;
    vertical-align: top;
}

.ticket-checker-table th {
    background: #f8fafc;
    color: #374151;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.ticket-checker-table tr:last-child td {
    border-bottom: none;
}

.ticket-checker-table tr.is-winner {
    background: #f0fdf4;
}

.ticket-status-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
}

.ticket-status-badge.is-winner {
    background: #dcfce7;
    color: #166534;
}

.ticket-status-badge.not-winner {
    background: #f3f4f6;
    color: #4b5563;
}

.ticket-checker-table .order-link {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
}

.ticket-checker-table .order-link:hover {
    text-decoration: underline;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: #4CAF50;
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 12px;
}

.submit-btn {
    background: #4CAF50;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    width: 100%;
}

.submit-btn:hover {
    background: #45a049;
}

.loading {
    text-align: center;
    margin-top: 15px;
    color: #666;
}

#ticket-results {
    margin-top: 20px;
}

.result-message {
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 10px;
}

.result-message.error {
    background: #ffebee;
    color: #c62828;
    border-left: 4px solid #c62828;
}

.result-message.success {
    background: #e8f5e9;
    color: #2e7d32;
    border-left: 4px solid #2e7d32;
}

.result-message.info {
    background: #e3f2fd;
    color: #1565c0;
    border-left: 4px solid #1565c0;
}

@media (max-width: 640px) {

    .ticket-checker-form .submit-btn {
        width: 100%;
        min-height: 48px;
    }

    .ticket-checker-table,
    .ticket-checker-table thead,
    .ticket-checker-table tbody,
    .ticket-checker-table th,
    .ticket-checker-table td,
    .ticket-checker-table tr {
        display: block;
        min-width: 0;
    }

    .ticket-checker-table thead {
        display: none;
    }

    .ticket-checker-table tr {
        border-bottom: 1px solid #e5e7eb;
        padding: 12px 0;
    }

    .ticket-checker-table td {
        border: none;
        padding: 8px 16px;
        position: relative;
        padding-left: 42%;
    }

    .ticket-checker-table td:before {
        content: attr(data-label);
        position: absolute;
        left: 16px;
        width: 38%;
        font-weight: 700;
        color: #6b7280;
        font-size: 12px;
        text-transform: uppercase;
    }
}

/* Winner check form end*/