.wxgiveaway-ticket-picker-container {
    margin: 20px 0;
}

.wxgiveaway-ticket-number-grid {
    display: flex;
    align-items: baseline;
    margin: 0;
    padding: 0;
    list-style: none;
    flex-wrap: wrap;
}

.wxgiveaway-ticket-row {
    display: flex;
    justify-content: center;
}

.wxgiveaway-ticket-number-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    border: 1px solid #ddd;
    cursor: pointer;
    transition: all 0.2s;
}

.wxgiveaway-ticket-number-item.available:hover {
    background-color: #f0f0f0;
}

.wxgiveaway-ticket-number-item.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.wxgiveaway-ticket-number-item.loading {
    background-color: #eee;
    position: relative;
    margin-top: 0;
}

.wxgiveaway-ticket-number-item.loading:after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    border: 2px solid #0073aa;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

#wxgiveaway-ticket-picker-message {
    margin-top: 10px;
    text-align: center;
}

#wxgiveaway-ticket-picker-message .success {
    color: green;
}

#wxgiveaway-ticket-picker-message .error {
    color: red;
}

/* Style the tab for selecting tab content*/
.wxgiveaway-tab {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    overflow: hidden;
}

.wxgiveaway-tab-numbers {
    display: flex;
    gap: 5px;
}

.wxgiveaway-tab button {
    border: none;
    outline: none;
    cursor: pointer;
    padding: 8px 12px;
    background-color: aliceblue;
    transition: 0.3s;
    font-size: 14px;
    border-radius: 3px;
    margin: 0 2px;
}

.wxgiveaway-tab button:hover:not(:disabled) {
    background-color: #ddd;
}

.wxgiveaway-tab button.active {
    background-color: #0073aa;
    color: white;
}

.wxgiveaway-tab button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.wxgiveaway-tab-ellipsis {
    display: flex;
    align-items: center;
    padding: 0 5px;
}

/*Next Previous slide start*/

.wxgiveaway-slide-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.wxgiveaway-slide-content {
    flex-grow: 1;
}

.wxgiveaway-slide-prev,
.wxgiveaway-slide-next{
    border-radius: 3px;
    user-select: none;
    transition: opacity 0.2s;
}

.wxgiveaway-ticket-release-btn{
    cursor: pointer;
    padding: 0 10px;
    background: orangered;
    color: white;
    border-radius: 8px;
    user-select: none;
    transition: opacity 0.2s;
    border: 1px solid ;
    font-size: 15px;
}
.wxgiveaway-ticket-release-btn-no{
    cursor: pointer;
    padding: 0 10px;
    background: green;
    color: white;
    border-radius: 8px;
    user-select: none;
    transition: opacity 0.2s;
    border: 1px solid ;
    font-size: 15px;
}

.wxgiveaway-slide-prev:hover,
.wxgiveaway-slide-next:hover{
}

.wxgiveaway-ticket-release-btn:hover,
.wxgiveaway-ticket-release-btn-no:hover{
    background: #e0e0e0;
    border: 1px solid gray;
    color: black;
}

.wxgiveaway-slide-pagination {
    text-align: center;
    margin-top: 10px;
    font-size: 14px;
    color: #666;
}

.wxgiveaway-ticket-release-handle, #wxgiveaway-selected-ticket-message{
    margin-top: 10px;
    font-size: 20px;
    color: #666;
    margin-bottom: 10px;
}
.selected-tickets-container {
    display: flex;
    flex-wrap: wrap;
}
.wxgiveaway-ticket-number-item-select{
    outline: none;
}

/* Ticket picker pagination start */

.wxgiveaway-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    gap: 5px;
}

.wxgiveaway-pagination button {
    padding: 5px 10px;
    border: 1px solid #ddd;
    background: #f8f8f8;
    cursor: pointer;
    border-radius: 3px;
    min-width: 32px;
}

.wxgiveaway-pagination button:hover:not(:disabled) {
    background: #e8e8e8;
}

.wxgiveaway-pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.wxgiveaway-pagination button.active {
    background: #0073aa;
    color: white;
    border-color: #006799;
}

.wxgiveaway-page-numbers {
    display: flex;
    gap: 5px;
}

.wxgiveaway-page-ellipsis {
    display: flex;
    align-items: center;
    padding: 0 5px;
}


/* Spinner start when variation ajax call*/

.wxgiveaway-ticket-picker-container.loading {
    background-color: #eee;
    position: relative;
}

.wxgiveaway-ticket-picker-container.loading:after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    border: 2px solid #0073aa;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

/*Lucky Dip Start*/

/* Lucky Dip Wrapper */
/* Wrapper */
#wxgiveaway-ticket-picker-lucky-dip {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
}

/* Quantity Box */
.wxgiveaway-qty-wrapper {
    display: flex;
    align-items: center;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

/* Input */
.wxgiveaway-ticket-picker-lucky-dip-quantity {
    width: 60px;
    height: 42px;
    border: none;
    text-align: center;
    font-size: 15px;
    outline: none;
}

/* Remove default arrows */
.wxgiveaway-ticket-picker-lucky-dip-quantity::-webkit-outer-spin-button,
.wxgiveaway-ticket-picker-lucky-dip-quantity::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.wxgiveaway-ticket-picker-lucky-dip-quantity {
    -moz-appearance: textfield;
}

/* Plus & Minus Buttons */
.wxgiveaway-lucky-dip-qty-minus,
.wxgiveaway-lucky-dip-qty-plus {
    width: 40px;
    height: 42px;
    border: none;
    background: #f3f4f6;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
    outline: none;
}

.wxgiveaway-lucky-dip-qty-minus:hover,
.wxgiveaway-lucky-dip-qty-plus:hover {
    background: #e5e7eb;
}

/* Lucky Dip Button */
.wxgiveaway-ticket-picker-lucky-dip-button, .wxgiveaway-ticket-picker-quick-add-button {
    height: 42px;
    padding: 0 18px;
    background: #7c3aed;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

.wxgiveaway-ticket-picker-lucky-dip-button:hover, .wxgiveaway-ticket-picker-quick-add-button:hover {
    background: #6d28d9;
}

/*Lucky Dip End*/