.asp-rfw-raffle-duration-timer .asp-rfw-duration-timer-type{
    margin: 0;
    padding: 0;
    text-align: center;
    font-weight: 600;
    font-size: 18px;
    display: inline-block;
}

.asp-rfw-raffle-duration-timer-shop{
    margin: auto;
    background-color: lightgreen;
    padding: 6px;
    color: black;
}

.asp-rfw-raffle-badge-shop img,
.asp-rfw-raffle-badge-single img{
    float: left;
    width: 60px;
}

.asp-rfw-raffle-badge-single img{
    float:none;
}

.asp-rfw-raffle-duration-timer-shop .asp-rfw-duration-timer-type{
    font-size: 10px;
}

.asp-rfw-raffle-manual-tickets-form-wrapper{
    margin-bottom:15px;
    clear:both;
}

.asp-rfw-raffle-duration-timer span:not(:first-child){
    width:20%;
}

.asp-rfw-raffle-manual-tickets-form-tab-wrapper{
    max-height:300px;
    overflow:auto;
    display:grid;
    grid-template-columns:1fr 1fr 1fr 1fr 1fr;
}

.asp-rfw-raffle-manual-tickets-form-tab,
.asp-rfw-raffle-manual-tickets-form-tab:hover{
    border:1px solid darkgrey;
    border-radius:5px;
    margin:3px;
    padding:8px 16px;
    opacity:0.6;
}

.asp-rfw-tab-active,
.asp-rfw-tab-active:hover,
.asp-rfw-tab-active:focus{
    border:2px solid darkgrey;
    outline-color: darkgrey;
    opacity:1;
    color:#000;
}

.asp-rfw-raffle-manual-tickets-list{
    list-style: none;
    margin: 0;
    padding: 0;
    max-height:1000px;
    overflow: auto;
    display:grid;
    grid-template-columns:1fr 1fr 1fr 1fr;
}

.asp-rfw-remaining-ticket{
    display: block;
    list-style: none;
    border: 1px solid #000;
    padding: 1em;
    float: left;
    width: auto;
    height: auto;
    text-align: center;
    margin: 0.5em;
    cursor: pointer;
    font-size: 1em;
    font-weight: 700;
    word-wrap: break-word;
}

.asp-rfw-remaining-ticket:hover,
.asp-rfw-ticket-selected{
    background: lightgreen;
    color:#fff;
    border: 1px solid #000;
}

.asp-rfw-answers-ul{
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
}

.asp-rfw-answer-list{
    display: block;
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    background: #fff;
    cursor: pointer;
    border: 1px solid #cccccc;
    color: #000000;
}

.asp-rfw-sold-ticket,
.asp-rfw-sold-ticket:hover{
    background: red;
    color:#fff;
    border: 1px solid #000;
}

.asp-rfw-cart-ticket,
.asp-rfw-cart-ticket:hover,
.asp-rfw-answer-list:hover,
.asp-rfw-answer-selected,
.asp-rfw-answer-selected:hover{
    background: green;
    color:#fff;
    border: 1px solid #000;
}

/* Skill-based question card. Default questions keep the styles above. The selected
   answer uses the colours set in the raffle settings. */
.asp-rfw-question-card{
    margin: 0 0 18px;
    padding: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #ffffff;
}

.asp-rfw-question-card .asp-rfw-question-heading{
    margin: 0 0 4px;
    color: #6b7280;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.asp-rfw-question-card .asp-rfw-question{
    margin: 0 0 12px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.45;
}

.asp-rfw-question-card .asp-rfw-answers-ul{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 8px;
}

.asp-rfw-question-card .asp-rfw-answer-list{
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 11px 14px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    color: #111827;
    line-height: 1.35;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.asp-rfw-question-card .asp-rfw-answer-marker{
    position: relative;
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    border: 2px solid #9ca3af;
    border-radius: 50%;
    background: #ffffff;
}

.asp-rfw-question-card .asp-rfw-answer-selected .asp-rfw-answer-marker{
    border-color: currentColor;
}

.asp-rfw-question-card .asp-rfw-answer-selected .asp-rfw-answer-marker::after{
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
}

/* Hovering only hints; the configured colours mark the chosen answer. */
.asp-rfw-question-card .asp-rfw-answer-list:not(.asp-rfw-answer-selected):hover{
    border-color: #6b7280 !important;
    background: #f9fafb !important;
    color: #111827 !important;
}

.asp-rfw-question-card .asp-rfw-answer-list:focus-visible{
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

.asp-rfw-question-card .asp-rfw-question-error{
    margin: 10px 0 0;
    color: #b42318;
    font-size: 14px;
    font-weight: 600;
}

.asp-rfw-question-card .asp-rfw-question-error:empty{
    display: none;
}

.asp-rfw-question-card.asp-rfw-question-invalid{
    border-color: #f04438;
}

.asp-rfw-correct-answer{
    color:green;
}

.asp-rfw-wrong-answer{
    color:red;
}

.asp-rfw-progress-bar-wrapper-shop{
    margin-top: 10px;
    color: black;
}

.asp-rfw-progress-bar-wrapper-shop .asp-rfw-zero-span{
    width: auto;
    float: left;
}

.asp-rfw-progress-bar{
    display: inline-block;
    width: 100%;
    background: #f5f5f5;
}

span.asp-rfw-progress-bar-percentage::after {
    content: "";
    position: absolute;
    bottom: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: transparent transparent #d79f57 transparent;
}

.asp-rfw-progress-bar-wrapper-shop .asp-rfw-max-tickets-remaining-span{
    font-size:15px ;
}

.asp-rfw-progress-bar-percentage-wrapper{
    position:relative;
}

.asp-rfw-progress-bar-percentage-span{
    position: absolute;
    background: #d79f57;
    color: white;
    padding: 0 10px;
    border-radius: 5px;
    left: 50%;
    transform: translateX(-50%);
    bottom: -30px;
}

.asp-rfw-progress-bar-content-span{
    display:flex;
    justify-content:space-between;
}
.asp-rfw-progress-bar-wrapper-shop .asp-rfw-progress-bar-content-span{
    gap: 15px;
}

.asp-rfw-max-tickets-span{
    float:right;
}

.asp-rfw-product-name,
.asp-rfw-ticket-order-id{
    text-decoration: none !important;
}

.asp-rfw-product-name:focus{
    outline:unset;
}

.asp-rfw-ticket-order-id{
    color:#0000ff;
}

.asp-rfw-started{
    color:green;
    font-weight: 400;
}

.asp-rfw-finished{
    color:blue;
    font-weight: 400;
}

.asp-rfw-closed{
    color:purple;
    font-weight: 400;
}

.asp-rfw-failed{
    color:red;
    font-weight: 400;
}

.asp-rfw-raffle-instant-prizes-filter{
    margin-bottom:10px;
}

.asp-rfw-raffle-instant-prizes-filter{
    margin-right:10px;
}

.asp-rfw-raffle-instant-prizes-active{
    background-color:#5A5A5A !important;
    color:#fff !important;
}

.asp-rfw-available-ticket .asp-rfw-available-status-instant-prizes{
    color:green;
}

.asp-rfw-won-ticket .asp-rfw-available-status-instant-prizes{
    color:blue;
}

.asp-rfw-progress-bar-wrapper-shop .asp-rfw-max-tickets-remaining-span,
.asp-rfw-progress-bar-wrapper .asp-rfw-max-tickets-remaining-span{
    font-weight:600;
}

.asp-rfw-raffle-status.started,
.asp-rfw-raffle-status-shop.started{
    color:#1f8f1f;
}

.asp-rfw-raffle-status.not_started,
.asp-rfw-raffle-status-shop.not_started{
    color:#ffb300;
}

.asp-rfw-raffle-status.finished,
.asp-rfw-raffle-status-shop.finished{
    color:#22f;
}

.asp-rfw-raffle-status.failed,
.asp-rfw-raffle-status-shop.failed,
.asp-rfw-raffle-min-tickets-error{
    color:#ff3b3b;
}

.asp-rfw-raffle-status.closed,
.asp-rfw-raffle-status-shop.closed{
    color:#94660c;
}

.asp-rfw-raffle-awaiting-result-msg,
.asp-rfw-raffle-winner-msg{
    color:#228B22;
}

.asp-rfw-won-status{
    color:#1f8f1f;
}
.asp-rfw-lost-status{
    color:#ff3b3b;
}

.asp-rfw-purchased-tickets-heading{
    margin-top:0 !important;
}

.asp-rfw-quantity-range-slider {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-content: center;
    justify-content: flex-start;
    align-items: center;
    gap: 5px;
    width: 100%;
    cursor: pointer;
    position: relative;
    margin-top: 10px;
}

.asp-rfw-quantity-range-slider .asp-rfw-slider-decrement-span,
.asp-rfw-quantity-range-slider .asp-rfw-slider-increment-span{
    width: 6%;
    display: flex;
}

.asp-rfw-quantity-range-slider .asp-rfw-qty-range-span{
    width: 85%;
    display: flex;
}

.asp-rfw-quantity-range-slider .asp-rfw-slider-decrement,
.asp-rfw-quantity-range-slider .asp-rfw-slider-increment{
    width: 25px;
    height: 25px;
    color: #fff !important;
    background: #000 !important;
    border-radius: 15px !important;
    border: none !important;
    padding: 0 !important;
}

.asp-rfw-quantity-range-slider .asp-rfw-qty-tickets-info{
    position: absolute;
    background: #04AA6D;
    color: white;
    padding: 0 10px;
    border-radius: 5px;
    transform: translate(-50%, -150%);
    left: 50%;
    top: 50%;
}

.asp-rfw-quantity-range-slider .asp-rfw-qty-tickets-info::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #04aa6d transparent transparent transparent;
}

.asp-rfw-quantity-range-slider .asp-rfw-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 15px;
    border-radius: 5px;
    background: #d3d3d3;
    outline: none;
    opacity: 0.7;
    -webkit-transition: .2s;
    transition: opacity .2s;
}

.asp-rfw-quantity-range-slider .asp-rfw-slider:hover {
    opacity: 1;
}

.asp-rfw-quantity-range-slider .asp-rfw-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: #04AA6D;
    cursor: pointer;
    border: 1px solid green;
    box-shadow: unset;
}

.asp-rfw-quantity-range-slider .asp-rfw-slider::-moz-range-thumb{
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: #04AA6D;
    cursor: pointer;
    border: 1px solid green;
    box-shadow: unset;
}

.asp-rfw-quantity-range-slider .asp-rfw-slider::-moz-range-track,
.asp-rfw-quantity-range-slider .asp-rfw-slider::-webkit-slider-track{
    box-shadow: unset;
}

.asp-rfw-quantity-range-slider .asp-rfw-slider:focus{
    outline:unset !important;
}

.asp-rfw-quantity-range-slider .asp-rfw-slider::-webkit-slider-runnable-track {
    -webkit-appearance: none;
    appearance: none;
    box-shadow: none;
}

.asp-rfw-raffle-instant-prizes-filter-data{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 0;
}

.asp-rfw-raffle-instant-prizes-filter-data a{
    text-decoration: none !important;
}

.asp-rfw-raffle-instant-prizes-tab-wrapper {
    clear: both;
    margin: 24px 0;
}

.asp-rfw-raffle-instant-prizes-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 12px;
    margin-bottom: 12px;
    padding: 16px;
    background: #f8fafc;
    border: 1px solid #d8dee8;
    border-radius: 8px;
}

.asp-rfw-raffle-instant-prizes-toolbar label {
    display: block;
    margin: 0 0 5px;
    color: #1f2937;
    font-size: 13px;
    font-weight: 600;
}

.asp-rfw-raffle-instant-prizes-search-field {
    flex: 1 1 220px;
    min-width: 0;
}

.asp-rfw-raffle-instant-prizes-toolbar .asp-rfw-raffle-instant-prizes-filter {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    margin: 0;
    padding-right: 14px;
    padding-left: 14px;
    border-radius: 6px;
    white-space: nowrap;
}

.asp-rfw-raffle-instant-prizes-search {
    width: 100%;
    min-height: 42px;
    margin: 0;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #fff;
}

.asp-rfw-raffle-instant-prizes-search:focus {
    border-color: #64748b;
    outline: 2px solid rgba(100, 116, 139, 0.18);
    outline-offset: 1px;
}

.asp-rfw-raffle-instant-prizes-result-meta {
    margin: 0 0 10px;
    color: #475569;
    font-size: 13px;
    font-weight: 600;
}

.asp-rfw-raffle-instant-prizes-tab-content {
    overflow: hidden;
    border: 1px solid #d8dee8 !important;
    border-radius: 8px;
}

.asp-rfw-raffle-instant-prizes-table-scroll {
    max-height: 560px;
    overflow-y: auto;
    border: 1px solid #d8dee8;
    border-radius: 8px;
    background: #fff;
}

.asp-rfw-raffle-instant-prizes-table-scroll .asp-rfw-raffle-instant-prizes-tab-content {
    margin: 0;
    border: 0 !important;
    border-radius: 0;
}

.asp-rfw-raffle-instant-prizes-tab-content thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #f8fafc;
    color: #1f2937;
    font-weight: 700;
}

.asp-rfw-raffle-instant-prizes-tab-content tbody tr:nth-child(even) td {
    background: #fbfcfe;
}

.asp-rfw-raffle-instant-prizes-loader {
    padding: 12px;
    color: #475569;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
}

.asp-rfw-raffle-tickets-tab-wrapper {
    clear: both;
    margin: 24px 0;
}

.asp-rfw-raffle-tickets-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 12px;
    margin-bottom: 12px;
    padding: 16px;
    background: #f8fafc;
    border: 1px solid #d8dee8;
    border-radius: 8px;
}

.asp-rfw-raffle-tickets-toolbar label {
    display: block;
    margin: 0 0 5px;
    color: #1f2937;
    font-size: 13px;
    font-weight: 600;
}

.asp-rfw-raffle-tickets-search-field {
    flex: 1 1 220px;
    min-width: 0;
}

.asp-rfw-raffle-tickets-status-field {
    flex: 1 1 150px;
    min-width: 0;
    max-width: 240px;
}

.asp-rfw-raffle-tickets-my-filter,
.asp-rfw-raffle-tickets-clear {
    flex: 0 0 auto;
}

.asp-rfw-raffle-tickets-search,
.asp-rfw-raffle-tickets-status,
.asp-rfw-raffle-instant-prizes-search {
    box-sizing: border-box;
    height: 42px;
    padding-top: 0;
    padding-bottom: 0;
}

.asp-rfw-raffle-tickets-search,
.asp-rfw-raffle-tickets-status {
    width: 100%;
    min-height: 42px;
    margin: 0;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #fff;
}

.asp-rfw-raffle-tickets-search:focus,
.asp-rfw-raffle-tickets-status:focus {
    border-color: #64748b;
    outline: 2px solid rgba(100, 116, 139, 0.18);
    outline-offset: 1px;
}

.asp-rfw-raffle-tickets-my-filter {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    margin: 0 !important;
    padding: 0 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #fff;
    color: #1f2937;
    white-space: nowrap;
}

.asp-rfw-raffle-tickets-my-filter input {
    margin: 0;
}

.asp-rfw-raffle-tickets-my-filter,
.asp-rfw-raffle-tickets-clear,
.asp-rfw-raffle-instant-prizes-toolbar .asp-rfw-raffle-instant-prizes-filter {
    box-sizing: border-box;
    height: 42px;
}

.asp-rfw-raffle-tickets-clear {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    min-height: 42px;
    padding-right: 18px !important;
    padding-left: 18px !important;
    border-radius: 6px !important;
}

.asp-rfw-raffle-tickets-result-meta {
    margin: 0 0 10px;
    color: #475569;
    font-size: 13px;
    font-weight: 600;
}

.asp-rfw-raffle-tickets-tab-content {
    overflow: hidden;
    border: 1px solid #d8dee8 !important;
    border-radius: 8px;
}

.asp-rfw-raffle-tickets-table-scroll {
    max-height: 560px;
    overflow-y: auto;
    border: 1px solid #d8dee8;
    border-radius: 8px;
    background: #fff;
}

.asp-rfw-raffle-tickets-table-scroll .asp-rfw-raffle-tickets-tab-content {
    margin: 0;
    border: 0 !important;
    border-radius: 0;
}

.asp-rfw-raffle-tickets-tab-content thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #f8fafc;
    color: #1f2937;
    font-weight: 700;
}

.asp-rfw-raffle-tickets-tab-content tbody tr:nth-child(even) td {
    background: #fbfcfe;
}

/* Wide screens: keep short columns on one line and let a narrow panel scroll the table sideways. */
@media screen and (min-width: 769px) {
    .asp-rfw-raffle-tickets-table-scroll,
    .asp-rfw-raffle-instant-prizes-table-scroll {
        overflow: auto;
    }

    .asp-rfw-raffle-tickets-table-scroll .asp-rfw-raffle-tickets-tab-content {
        min-width: 420px;
    }

    .asp-rfw-raffle-instant-prizes-table-scroll .asp-rfw-raffle-instant-prizes-tab-content {
        min-width: 560px;
    }

    .asp-rfw-raffle-tickets-tab-content th,
    .asp-rfw-raffle-tickets-tab-content td:first-child,
    .asp-rfw-raffle-tickets-tab-content td:last-child,
    .asp-rfw-raffle-instant-prizes-tab-content th,
    .asp-rfw-raffle-instant-prizes-tab-content td:first-child,
    .asp-rfw-raffle-instant-prizes-tab-content td.asp-rfw-available-status-instant-prizes,
    .asp-rfw-raffle-instant-prizes-tab-content td:last-child {
        white-space: nowrap;
    }
}

/* Narrow tab panels (e.g. a theme sidebar on desktop): show each row stacked, like WooCommerce does on phones. */
.asp-rfw-raffle-tickets-tab-wrapper,
.asp-rfw-raffle-instant-prizes-tab-wrapper {
    container-type: inline-size;
}

@container (max-width: 600px) {
    .asp-rfw-raffle-instant-prizes-tab-wrapper .asp-rfw-raffle-instant-prizes-table-scroll table.asp-rfw-raffle-instant-prizes-tab-content {
        min-width: 0;
    }

    .asp-rfw-raffle-instant-prizes-tab-wrapper table.asp-rfw-raffle-instant-prizes-tab-content thead {
        display: none !important;
    }

    .asp-rfw-raffle-instant-prizes-tab-wrapper table.asp-rfw-raffle-instant-prizes-tab-content tbody tr {
        display: block !important;
        border-bottom: 1px solid #d8dee8;
    }

    .asp-rfw-raffle-instant-prizes-tab-wrapper table.asp-rfw-raffle-instant-prizes-tab-content tbody td {
        display: block !important;
        padding: 8px 16px !important;
        text-align: right !important;
        white-space: normal !important;
    }

    .asp-rfw-raffle-instant-prizes-tab-wrapper table.asp-rfw-raffle-instant-prizes-tab-content tbody td:not([data-title]) {
        text-align: left !important;
    }

    .asp-rfw-raffle-instant-prizes-tab-wrapper table.asp-rfw-raffle-instant-prizes-tab-content tbody td[data-title]::before {
        display: block !important;
        content: attr(data-title) ": ";
        float: left;
        margin-right: 12px;
        font-weight: 700;
    }
}

@container (max-width: 420px) {
    .asp-rfw-raffle-tickets-tab-wrapper .asp-rfw-raffle-tickets-table-scroll table.asp-rfw-raffle-tickets-tab-content {
        min-width: 0;
    }

    .asp-rfw-raffle-tickets-tab-wrapper table.asp-rfw-raffle-tickets-tab-content thead {
        display: none !important;
    }

    .asp-rfw-raffle-tickets-tab-wrapper table.asp-rfw-raffle-tickets-tab-content tbody tr {
        display: block !important;
        border-bottom: 1px solid #d8dee8;
    }

    .asp-rfw-raffle-tickets-tab-wrapper table.asp-rfw-raffle-tickets-tab-content tbody td {
        display: block !important;
        padding: 8px 16px !important;
        text-align: right !important;
        white-space: normal !important;
    }

    .asp-rfw-raffle-tickets-tab-wrapper table.asp-rfw-raffle-tickets-tab-content tbody td:not([data-title]) {
        text-align: left !important;
    }

    .asp-rfw-raffle-tickets-tab-wrapper table.asp-rfw-raffle-tickets-tab-content tbody td[data-title]::before {
        display: block !important;
        content: attr(data-title) ": ";
        float: left;
        margin-right: 12px;
        font-weight: 700;
    }
}

.asp-rfw-raffle-tickets-loader {
    padding: 12px;
    color: #475569;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
}

.asp-rfw-raffle-tickets-discount-grid-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 20px 0;
    clear:both;
}

.asp-rfw-raffle-tickets-discount-grid-wrapper h3{
    display:block;
    width: 100%;
}

.asp-rfw-raffle-tickets-discount-grid-row {
    flex: 1 1 calc(50% - 12px); /* 2 columns */
    background: #f9f9f9;
    border: 1px solid #e2e2e2;
    padding: 12px 15px;
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.asp-rfw-raffle-tickets-discount-grid-row:hover,
.asp-rfw-raffle-tickets-discount-grid-row.selected{
    background: #f1f7ff;
    border-color: #0073aa;
    transform: translateY(-2px);
}

@media screen and (max-width: 768px) {
    .asp-rfw-raffle-manual-tickets-form-tab-wrapper{
        grid-template-columns:1fr 1fr;
    }

    .asp-rfw-raffle-duration-timer .asp-rfw-duration-timer-type{
        margin: 10px 0;
        display:block;
    }

    .asp-rfw-raffle-duration-timer span:not(:first-child){
        width:auto;
    }

    .asp-rfw-quantity-range-slider .asp-rfw-slider-decrement-span,
    .asp-rfw-quantity-range-slider .asp-rfw-slider-increment-span{
        width: 8%;
        display: flex;
    }

    .asp-rfw-quantity-range-slider .asp-rfw-qty-range-span{
        width: 80%;
        display: flex;
    }

    .asp-rfw-raffle-tickets-toolbar,
    .asp-rfw-raffle-instant-prizes-toolbar{
        padding: 12px;
    }

    .asp-rfw-raffle-tickets-search-field,
    .asp-rfw-raffle-tickets-status-field,
    .asp-rfw-raffle-instant-prizes-search-field,
    .asp-rfw-raffle-instant-prizes-filter-data{
        flex: 1 1 100%;
        max-width: none;
    }

    .asp-rfw-raffle-tickets-my-filter,
    .asp-rfw-raffle-tickets-clear{
        flex: 1 1 auto;
        justify-content: center;
    }
}

.asp-rfw-download-tickets-pdf{
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin: 24px 0;
    padding: 20px 24px;
    background: linear-gradient(to right, #eff6ff, #ffffff 65%);
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, .05), 0 1px 3px rgba(0, 0, 0, .06);
}

.asp-rfw-download-tickets-pdf-icon{
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    font-size: 20px;
    background-color: #0ea5e9;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(14, 165, 233, .35);
}

.asp-rfw-download-tickets-pdf-content{
    flex: 1 1 auto;
    min-width: 200px;
}

.asp-rfw-download-tickets-pdf-title{
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: #111827;
}

.asp-rfw-download-tickets-pdf-text{
    margin: 2px 0 0;
    font-size: 13px;
    color: #6b7280;
}

.asp-rfw-download-tickets-pdf-button,
a.asp-rfw-download-tickets-pdf-button{
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    padding: 12px 22px;
    background-color: #0ea5e9;
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    border-radius: 8px;
    text-decoration: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
    transition: background-color .15s ease, transform .1s ease;
}

.asp-rfw-download-tickets-pdf-button:hover,
.asp-rfw-download-tickets-pdf-button:focus,
a.asp-rfw-download-tickets-pdf-button:hover,
a.asp-rfw-download-tickets-pdf-button:focus{
    background-color: #0284c7;
    color: #fff;
    transform: translateY(-1px);
}

.asp-rfw-instant-won-coupon-text{
    line-height: 1.6;
}

.asp-rfw-instant-won-code{
    display: inline-block;
    vertical-align: middle;
    padding: 2px 8px;
    background-color: #eef2ff;
    color: #4338ca;
    font-weight: 600;
    border-radius: 4px;
}

.asp-rfw-instant-won-order-badge{
    display: inline-block;
    vertical-align: middle;
    margin: 2px 0;
    padding: 3px 10px;
    background-color: #7c3aed;
    color: #fff !important;
    font-weight: 600;
    font-size: 12px;
    border-radius: 999px;
    text-decoration: none !important;
}

.asp-rfw-instant-won-order-badge:hover,
.asp-rfw-instant-won-order-badge:focus{
    background-color: #5b21b6;
    color: #fff !important;
}

.asp-rfw-reserved-ticket,
.asp-rfw-reserved-ticket:hover{
    background: #f5e6c4;
    color: #5c4300;
    border: 1px solid #b98900;
    cursor: not-allowed;
}

.asp-rfw-hide-sold-tickets .asp-rfw-sold-ticket{
    display: none;
}

.asp-rfw-ticket-picker-toolbar{
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px 20px;
    margin: 0 0 16px;
    padding: 14px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #f9fafb;
}

.asp-rfw-ticket-picker-search{
    flex: 1 1 260px;
    max-width: 380px;
}

.asp-rfw-ticket-picker-toolbar .asp-rfw-ticket-picker-search-label{
    display: block;
    margin: 0 0 6px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
}

.asp-rfw-ticket-picker-search-field{
    display: flex;
    align-items: stretch;
    height: 44px;
    overflow: hidden;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #ffffff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.asp-rfw-ticket-picker-search-field:focus-within{
    border-color: #1f2937;
    box-shadow: 0 0 0 3px rgba(31, 41, 55, 0.15);
}

.asp-rfw-ticket-picker-toolbar .asp-rfw-ticket-picker-search-input{
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    height: 100%;
    margin: 0;
    padding: 0 12px 0 38px;
    border: 0;
    border-radius: 0;
    outline: 0;
    background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat 13px center;
    box-shadow: none;
    color: inherit;
    font-size: 15px;
    line-height: normal;
}

.asp-rfw-ticket-picker-toolbar .asp-rfw-ticket-picker-search-button{
    flex: 0 0 auto;
    height: 100%;
    min-height: 0;
    margin: 0;
    padding: 0 22px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    font-size: 15px;
    line-height: 1;
    white-space: nowrap;
}

.asp-rfw-ticket-picker-hide-sold{
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    margin: 0;
    font-size: 14px;
    cursor: pointer;
    user-select: none;
}

.asp-rfw-ticket-picker-toolbar .asp-rfw-ticket-picker-hide-sold-input{
    position: absolute;
    width: 1px;
    height: 1px;
    margin: 0;
    opacity: 0;
}

.asp-rfw-ticket-picker-switch{
    position: relative;
    flex: 0 0 auto;
    width: 38px;
    height: 22px;
    border-radius: 999px;
    background: #d1d5db;
    transition: background-color 0.2s ease;
}

.asp-rfw-ticket-picker-switch::after{
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease;
}

.asp-rfw-ticket-picker-hide-sold-input:checked + .asp-rfw-ticket-picker-switch{
    background: #1f2937;
}

.asp-rfw-ticket-picker-hide-sold-input:checked + .asp-rfw-ticket-picker-switch::after{
    transform: translateX(16px);
}

.asp-rfw-ticket-picker-hide-sold-input:focus-visible + .asp-rfw-ticket-picker-switch{
    outline: 2px solid #1f2937;
    outline-offset: 2px;
}

.asp-rfw-ticket-picker-message{
    flex-basis: 100%;
    margin: 0;
    padding: 8px 12px;
    border-left: 3px solid #c62828;
    border-radius: 6px;
    background: #fdecec;
    color: #8e1c1c;
    font-size: 14px;
}

@media (max-width: 480px){
    .asp-rfw-ticket-picker-search{
        flex-basis: 100%;
        max-width: none;
    }

    .asp-rfw-ticket-picker-hide-sold{
        min-height: 0;
    }
}

.asp-rfw-ticket-picker-message:empty{
    display: none;
}

.asp-rfw-raffle-manual-tickets-list li[role="button"]:focus-visible{
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

.asp-rfw-ticket-picker-tray{
    margin-top: 14px;
}

.asp-rfw-ticket-picker-tray-heading{
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
}

.asp-rfw-ticket-picker-tray-list{
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.asp-rfw-ticket-picker-tray-list li{
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 4px 2px 10px;
    border: 1px solid #cccccc;
    border-radius: 999px;
    font-size: 14px;
}

.asp-rfw-ticket-picker-tray-list .asp-rfw-ticket-picker-tray-empty{
    padding: 0;
    border: 0;
}

.asp-rfw-ticket-picker-tray-remove{
    padding: 0 6px;
    border: 0;
    background: transparent;
    color: inherit;
    font-size: 16px;
    line-height: 1.2;
    cursor: pointer;
}

/* Free entry card on the raffle page. */
.asp-rfw-free-entry{
    margin: 24px 0;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05), 0 1px 3px rgba(16, 24, 40, 0.08);
}

.asp-rfw-free-entry-header{
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 70%);
}

.asp-rfw-free-entry-icon{
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #dcfce7;
    color: #15803d;
}

.asp-rfw-free-entry-heading{
    flex: 1 1 auto;
    min-width: 0;
}

.asp-rfw-free-entry .asp-rfw-free-entry-title{
    margin: 0;
    font-size: 18px;
    line-height: 1.3;
}

.asp-rfw-free-entry .asp-rfw-free-entry-subtitle{
    margin: 2px 0 0;
    color: #6b7280;
    font-size: 13px;
    line-height: 1.45;
}

.asp-rfw-free-entry .asp-rfw-free-entry-toggle,
.asp-rfw-free-entry .asp-rfw-free-entry-toggle:hover,
.asp-rfw-free-entry .asp-rfw-free-entry-toggle:focus{
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 9px 16px;
    border: 1px solid #15803d;
    border-radius: 999px;
    background: #15803d;
    box-shadow: none;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    text-transform: none;
    cursor: pointer;
}

.asp-rfw-free-entry .asp-rfw-free-entry-toggle::after{
    content: "";
    width: 7px;
    height: 7px;
    margin-top: -3px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.2s ease, margin 0.2s ease;
}

.asp-rfw-free-entry.asp-rfw-free-entry-open .asp-rfw-free-entry-toggle{
    background: transparent;
    color: #15803d;
}

.asp-rfw-free-entry.asp-rfw-free-entry-open .asp-rfw-free-entry-toggle::after{
    margin-top: 3px;
    transform: rotate(-135deg);
}

.asp-rfw-free-entry .asp-rfw-free-entry-toggle:focus-visible{
    outline: 2px solid #15803d;
    outline-offset: 2px;
}

.asp-rfw-free-entry-panel{
    padding: 18px;
    border-top: 1px solid #e5e7eb;
}

.asp-rfw-free-entry-panel[hidden],
.asp-rfw-free-entry-form[hidden],
.asp-rfw-free-entry-success[hidden],
.asp-rfw-free-entry .asp-rfw-free-entry-again[hidden]{
    display: none;
}

.asp-rfw-free-entry-instructions{
    margin: 0 0 16px;
    padding: 12px 14px;
    border-radius: 8px;
    background: #f9fafb;
    font-size: 14px;
}

.asp-rfw-free-entry-instructions p:last-child{
    margin-bottom: 0;
}

.asp-rfw-free-entry-mine{
    margin: 0 0 16px;
}

.asp-rfw-free-entry .asp-rfw-free-entry-mine-heading{
    margin: 0 0 8px;
    font-size: 14px;
    font-weight: 600;
}

.asp-rfw-free-entry .asp-rfw-free-entry-mine-list{
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.asp-rfw-free-entry-notice{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #f9fafb;
}

.asp-rfw-free-entry-notice p{
    margin: 0;
    font-size: 14px;
}

.asp-rfw-free-entry-fields{
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 16px;
}

.asp-rfw-free-entry .asp-rfw-free-entry-field{
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 0;
}

.asp-rfw-free-entry-field.asp-rfw-free-entry-field-textarea,
.asp-rfw-free-entry-field.asp-rfw-free-entry-field-checkbox{
    grid-column: 1 / -1;
}

.asp-rfw-free-entry-field label{
    margin: 0;
    font-size: 14px;
    font-weight: 600;
}

.asp-rfw-free-entry-field abbr.required{
    border: 0;
    color: #c62828;
    text-decoration: none;
}

.asp-rfw-free-entry-form .asp-rfw-free-entry-field input:not([type="checkbox"]),
.asp-rfw-free-entry-form .asp-rfw-free-entry-field select,
.asp-rfw-free-entry-form .asp-rfw-free-entry-field textarea{
    width: 100%;
    min-height: 44px;
    margin: 0;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background-color: #ffffff;
    box-shadow: none;
    color: inherit;
    font-size: 15px;
    line-height: 1.4;
}

.asp-rfw-free-entry-form .asp-rfw-free-entry-field input[readonly]{
    background-color: #f3f4f6;
    color: #4b5563;
}

.asp-rfw-free-entry-form .asp-rfw-free-entry-field input:focus,
.asp-rfw-free-entry-form .asp-rfw-free-entry-field select:focus,
.asp-rfw-free-entry-form .asp-rfw-free-entry-field textarea:focus{
    border-color: #15803d;
    outline: 0;
    box-shadow: 0 0 0 3px rgba(21, 128, 61, 0.18);
}

.asp-rfw-free-entry-field label.asp-rfw-free-entry-checkbox{
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-weight: 400;
    cursor: pointer;
}

.asp-rfw-free-entry-checkbox input[type="checkbox"]{
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin: 2px 0 0;
    accent-color: #15803d;
}

.asp-rfw-free-entry-field-hint{
    color: #6b7280;
    font-size: 12px;
}

.asp-rfw-free-entry-field-error{
    color: #c62828;
    font-size: 13px;
}

.asp-rfw-free-entry-field-error:empty{
    display: none;
}

.asp-rfw-free-entry-form .asp-rfw-free-entry-field-invalid input:not([type="checkbox"]),
.asp-rfw-free-entry-form .asp-rfw-free-entry-field-invalid select,
.asp-rfw-free-entry-form .asp-rfw-free-entry-field-invalid textarea{
    border-color: #c62828;
    background-color: #fffafa;
}

.asp-rfw-free-entry-form .asp-rfw-free-entry-website{
    position: absolute;
    left: -9999px;
}

.asp-rfw-free-entry-actions{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 16px;
    margin-top: 18px;
}

.asp-rfw-free-entry .asp-rfw-free-entry-submit{
    margin: 0;
    padding: 12px 22px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
}

.asp-rfw-free-entry-limit{
    color: #6b7280;
    font-size: 13px;
}

.asp-rfw-free-entry .asp-rfw-free-entry-result{
    margin: 14px 0 0;
    padding: 10px 12px;
    border-left: 3px solid #c62828;
    border-radius: 6px;
    background: #fdecec;
    color: #8e1c1c;
    font-size: 14px;
}

.asp-rfw-free-entry .asp-rfw-free-entry-result:empty{
    display: none;
}

.asp-rfw-free-entry-success{
    padding: 8px 0;
    text-align: center;
    outline: 0;
}

.asp-rfw-free-entry-success-icon{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: 10px;
    border-radius: 50%;
    background: #dcfce7;
    color: #15803d;
    font-size: 24px;
    font-weight: 700;
}

.asp-rfw-free-entry-success p{
    margin: 0 0 6px;
}

.asp-rfw-free-entry .asp-rfw-free-entry-success-message{
    font-size: 16px;
    font-weight: 600;
}

.asp-rfw-free-entry .asp-rfw-free-entry-success-label{
    margin-top: 14px;
    color: #6b7280;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.asp-rfw-free-entry .asp-rfw-free-entry-success-ticket{
    display: inline-block;
    padding: 8px 22px;
    border: 2px dashed #15803d;
    border-radius: 10px;
    color: #15803d;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.asp-rfw-free-entry .asp-rfw-free-entry-success-remaining{
    color: #6b7280;
    font-size: 13px;
}

.asp-rfw-free-entry-success-remaining:empty{
    display: none;
}

.asp-rfw-free-entry-success-actions{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 12px;
}

.asp-rfw-free-entry-badge{
    display: inline-block;
    padding: 2px 10px;
    border-radius: 999px;
    background: #dcfce7;
    color: #15803d;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.6;
    white-space: nowrap;
}

@media (max-width: 600px){
    .asp-rfw-free-entry-header{
        flex-wrap: wrap;
    }

    .asp-rfw-free-entry .asp-rfw-free-entry-toggle,
    .asp-rfw-free-entry .asp-rfw-free-entry-toggle:hover,
    .asp-rfw-free-entry .asp-rfw-free-entry-toggle:focus{
        justify-content: center;
        width: 100%;
    }

    .asp-rfw-free-entry-fields{
        grid-template-columns: 1fr;
    }
}

/* Prizes by place on the raffle page. */
.asp-rfw-prizes{
    margin: 16px 0 20px;
    padding: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #ffffff;
}

.asp-rfw-prizes-header{
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 14px;
}

.asp-rfw-prizes-header-icon{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: #fef3c7;
    color: #b45309;
}

.asp-rfw-prizes .asp-rfw-prizes-title{
    flex: 1 1 auto;
    margin: 0;
    font-size: 17px;
    line-height: 1.3;
}

.asp-rfw-prizes-total{
    padding: 3px 10px;
    border-radius: 999px;
    background: #f3f4f6;
    color: #4b5563;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.asp-rfw-prizes .asp-rfw-prizes-list{
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.asp-rfw-prizes .asp-rfw-prize{
    display: grid;
    grid-template-columns: auto auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    margin: 0;
    padding: 12px 14px;
    border: 1px solid #f0f1f3;
    border-radius: 12px;
    background: #fafafa;
}

.asp-rfw-prizes .asp-rfw-prize.asp-rfw-prize-place-1{
    border-color: #fde68a;
    background: linear-gradient(135deg, #fffbeb 0%, #ffffff 75%);
}

.asp-rfw-prize-medal{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 46px;
    height: 46px;
    padding: 0 10px;
    border-radius: 23px;
    background: #e5e7eb;
    color: #374151;
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
}

.asp-rfw-prize-place-1 .asp-rfw-prize-medal{
    background: linear-gradient(145deg, #fde68a 0%, #f59e0b 100%);
    box-shadow: 0 2px 6px rgba(245, 158, 11, 0.35);
    color: #78350f;
}

.asp-rfw-prize-place-2 .asp-rfw-prize-medal{
    background: linear-gradient(145deg, #f3f4f6 0%, #cbd5e1 100%);
    box-shadow: 0 2px 6px rgba(100, 116, 139, 0.25);
    color: #334155;
}

.asp-rfw-prize-place-3 .asp-rfw-prize-medal{
    background: linear-gradient(145deg, #fed7aa 0%, #d97706 100%);
    box-shadow: 0 2px 6px rgba(217, 119, 6, 0.3);
    color: #7c2d12;
}

.asp-rfw-prize-media{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    overflow: hidden;
    border-radius: 10px;
    background: #ffffff;
    color: #6b7280;
    box-shadow: inset 0 0 0 1px #eceef1;
}

.asp-rfw-prize-media img{
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    object-fit: cover;
}

.asp-rfw-prize-media-coupon{
    background: #ecfdf5;
    color: #059669;
}

.asp-rfw-prize-media-custom{
    background: #f5f3ff;
    color: #7c3aed;
}

.asp-rfw-prize-body{
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.asp-rfw-prize-name{
    overflow: hidden;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    text-overflow: ellipsis;
}

.asp-rfw-prize-gift{
    color: #6b7280;
    font-size: 13px;
    line-height: 1.4;
}

.asp-rfw-prize-count{
    padding: 4px 10px;
    border-radius: 999px;
    background: #ffffff;
    color: #374151;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: inset 0 0 0 1px #e5e7eb;
}

@media (max-width: 480px){
    .asp-rfw-prizes{
        padding: 14px 12px;
    }

    .asp-rfw-prizes .asp-rfw-prize{
        grid-template-columns: auto minmax(0, 1fr);
        gap: 6px 12px;
    }

    .asp-rfw-prizes .asp-rfw-prize-media{
        display: none;
    }

    .asp-rfw-prizes .asp-rfw-prize-count{
        grid-column: 2;
        justify-self: start;
    }
}

/* ==========================================================================
   My Account > My Raffles: dashboard, tables, badges and pagination.
   ========================================================================== */

.asp-rfw-raffles-dashboard,
.asp-rfw-my-table,
.asp-rfw-product-info-wrapper,
.asp-rfw-free-entry{
    --asp-rfw-ui-border: #e5e7eb;
    --asp-rfw-ui-border-strong: #d1d5db;
    --asp-rfw-ui-muted: #6b7280;
    --asp-rfw-ui-surface: #ffffff;
    --asp-rfw-ui-subtle: #f9fafb;
    --asp-rfw-ui-accent: #1f2937;
    --asp-rfw-ui-success: #1a7f37;
    --asp-rfw-ui-success-bg: #e7f6ec;
    --asp-rfw-ui-danger: #c62828;
    --asp-rfw-ui-danger-bg: #fdecec;
    --asp-rfw-ui-radius: 12px;
    --asp-rfw-ui-shadow: 0 1px 2px rgba(16, 24, 40, 0.05), 0 1px 3px rgba(16, 24, 40, 0.08);
}

/* Status and result badges. */
.asp-rfw-status-badge{
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: 999px;
    background: #f3f4f6;
    color: #374151;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.5;
    white-space: nowrap;
}

.asp-rfw-status-badge::before{
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.asp-rfw-status-badge.started,
.asp-rfw-status-badge.asp-rfw-won-status{
    background: #e7f6ec;
    color: #1a7f37;
}

.asp-rfw-status-badge.not_started{
    background: #fff4d6;
    color: #8a5a00;
}

.asp-rfw-status-badge.closed{
    background: #fdf0e1;
    color: #94660c;
}

.asp-rfw-status-badge.finished{
    background: #e8eefc;
    color: #1d4ed8;
}

.asp-rfw-status-badge.failed,
.asp-rfw-status-badge.asp-rfw-lost-status{
    background: #fdecec;
    color: #c62828;
}

/* Dashboard summary. */
.asp-rfw-dashboard-summary{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin: 0 0 20px;
    padding: 0;
    list-style: none;
}

.asp-rfw-dashboard-summary-item{
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin: 0;
    padding: 14px 16px;
    border: 1px solid var(--asp-rfw-ui-border);
    border-radius: var(--asp-rfw-ui-radius);
    background: var(--asp-rfw-ui-subtle);
}

.asp-rfw-dashboard-summary-value{
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
}

.asp-rfw-dashboard-summary-won .asp-rfw-dashboard-summary-value{
    color: var(--asp-rfw-ui-success);
}

.asp-rfw-dashboard-summary-label{
    color: var(--asp-rfw-ui-muted);
    font-size: 13px;
}

/* Dashboard tabs. */
.asp-rfw-dashboard-tabs{
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    width: fit-content;
    max-width: 100%;
    margin: 0 0 18px;
    padding: 4px;
    border: 1px solid var(--asp-rfw-ui-border);
    border-radius: 10px;
    background: var(--asp-rfw-ui-subtle);
}

.asp-rfw-dashboard-tab,
.asp-rfw-dashboard-tab:hover,
.asp-rfw-dashboard-tab:focus{
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 7px 14px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    box-shadow: none;
    color: inherit;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: normal;
    text-transform: none;
    cursor: pointer;
}

.asp-rfw-dashboard-tab:hover{
    background: rgba(0, 0, 0, 0.05);
}

.asp-rfw-dashboard-tab:focus-visible{
    outline: 2px solid var(--asp-rfw-ui-accent);
    outline-offset: 2px;
}

.asp-rfw-dashboard-tab.asp-rfw-dashboard-tab-active{
    background: var(--asp-rfw-ui-surface);
    box-shadow: var(--asp-rfw-ui-shadow);
    font-weight: 600;
}

.asp-rfw-dashboard-tab-count{
    min-width: 22px;
    padding: 0 7px;
    border-radius: 999px;
    background: var(--asp-rfw-ui-border);
    color: #374151;
    font-size: 12px;
    font-weight: 600;
    line-height: 20px;
    text-align: center;
}

.asp-rfw-dashboard-tab-active .asp-rfw-dashboard-tab-count{
    background: var(--asp-rfw-ui-accent);
    color: #ffffff;
}

/* Dashboard cards. */
.asp-rfw-dashboard-grid{
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 18px;
}

.asp-rfw-dashboard-card{
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--asp-rfw-ui-border);
    border-radius: var(--asp-rfw-ui-radius);
    background: var(--asp-rfw-ui-surface);
    box-shadow: var(--asp-rfw-ui-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.asp-rfw-dashboard-card:hover{
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(16, 24, 40, 0.1);
}

.asp-rfw-dashboard-card.asp-rfw-dashboard-card-extra{
    display: none;
}

.asp-rfw-dashboard-card-media{
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--asp-rfw-ui-subtle);
}

.asp-rfw-dashboard-card-media img{
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.asp-rfw-dashboard-card:hover .asp-rfw-dashboard-card-media img{
    transform: scale(1.04);
}

.asp-rfw-dashboard-card-media .asp-rfw-status-badge{
    position: absolute;
    top: 10px;
    left: 10px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}

.asp-rfw-dashboard-card-ribbon{
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--asp-rfw-ui-success);
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.5;
}

.asp-rfw-dashboard-card-won{
    border-color: #bbe5c8;
}

.asp-rfw-dashboard-card-body{
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
}

.asp-rfw-dashboard-card .asp-rfw-dashboard-card-title{
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.35;
}

.asp-rfw-dashboard-card-title a{
    color: inherit;
    text-decoration: none;
}

.asp-rfw-dashboard-card-title a:hover{
    text-decoration: underline;
}

.asp-rfw-dashboard-card-progress{
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.asp-rfw-dashboard-card-progress progress{
    width: 100%;
    height: 8px;
    border: 0;
    border-radius: 999px;
    overflow: hidden;
    background: var(--asp-rfw-ui-border);
    -webkit-appearance: none;
    appearance: none;
}

.asp-rfw-dashboard-card-progress progress::-webkit-progress-bar{
    border-radius: 999px;
    background: var(--asp-rfw-ui-border);
}

.asp-rfw-dashboard-card-progress progress::-webkit-progress-value{
    border-radius: 999px;
    background: var(--asp-rfw-ui-success);
}

.asp-rfw-dashboard-card-progress progress::-moz-progress-bar{
    border-radius: 999px;
    background: var(--asp-rfw-ui-success);
}

.asp-rfw-dashboard-card-progress-label{
    color: var(--asp-rfw-ui-muted);
    font-size: 12px;
}

.asp-rfw-dashboard-card-stats{
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 0;
}

.asp-rfw-dashboard-card-stat{
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 8px 10px;
    border-radius: 8px;
    background: var(--asp-rfw-ui-subtle);
}

.asp-rfw-dashboard-card-stat:last-child:nth-child(odd){
    grid-column: 1 / -1;
}

.asp-rfw-dashboard-card-stats dt{
    margin: 0;
    color: var(--asp-rfw-ui-muted);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.asp-rfw-dashboard-card-stats dd{
    margin: 0;
    font-size: 14px;
    font-weight: 600;
}

.asp-rfw-dashboard-card-actions{
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
}

.asp-rfw-dashboard-card-actions .asp-rfw-dashboard-card-button{
    flex: 1 1 auto;
    margin: 0;
    text-align: center;
}

.asp-rfw-dashboard-card-actions .asp-rfw-dashboard-card-button-secondary{
    border: 1px solid var(--asp-rfw-ui-border-strong);
    background: transparent;
    color: inherit;
}

.asp-rfw-dashboard-show-more{
    display: block;
    margin: 20px auto 0;
}

.asp-rfw-dashboard-empty{
    margin: 0;
    padding: 28px;
    border: 1px dashed var(--asp-rfw-ui-border-strong);
    border-radius: var(--asp-rfw-ui-radius);
    color: var(--asp-rfw-ui-muted);
    text-align: center;
}

/* Tables: My Raffles list and purchased, won, lost and instant won tickets. */
.asp-rfw-my-table{
    margin: 0 0 28px;
    overflow: hidden;
    border: 1px solid var(--asp-rfw-ui-border);
    border-radius: var(--asp-rfw-ui-radius);
    background: var(--asp-rfw-ui-surface);
    box-shadow: var(--asp-rfw-ui-shadow);
}

.asp-rfw-my-table-header{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    border-bottom: 1px solid var(--asp-rfw-ui-border);
}

.asp-rfw-my-table .asp-rfw-my-table-header h2{
    margin: 0 !important;
    font-size: 18px;
    line-height: 1.3;
}

.asp-rfw-my-table-toolbar{
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
}

.asp-rfw-my-table > .asp-rfw-my-table-toolbar{
    padding: 16px 18px;
    border-bottom: 1px solid var(--asp-rfw-ui-border);
}

.asp-rfw-my-table .asp-rfw-my-table-search{
    flex: 1 1 240px;
    min-width: 220px;
    margin: 0;
    padding: 9px 12px 9px 36px;
    border: 1px solid var(--asp-rfw-ui-border-strong);
    border-radius: 8px;
    background: #ffffff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat 12px center;
    box-shadow: none;
    color: inherit;
    font-size: 14px;
    line-height: 1.4;
}

.asp-rfw-my-table .asp-rfw-my-table-filter{
    min-width: 170px;
    margin: 0;
    padding: 9px 12px;
    border: 1px solid var(--asp-rfw-ui-border-strong);
    border-radius: 8px;
    background-color: #ffffff;
    color: inherit;
    font-size: 14px;
}

.asp-rfw-my-table .asp-rfw-my-table-search:focus,
.asp-rfw-my-table .asp-rfw-my-table-filter:focus{
    border-color: var(--asp-rfw-ui-accent);
    outline: 0;
    box-shadow: 0 0 0 3px rgba(31, 41, 55, 0.15);
}

.asp-rfw-my-table-scroll{
    overflow-x: auto;
}

.asp-rfw-my-table table.asp-rfw-my-table-content{
    width: 100%;
    margin: 0;
    border: 0;
    border-collapse: collapse;
    border-radius: 0;
}

.asp-rfw-my-table table.asp-rfw-my-table-content thead th{
    padding: 12px 18px;
    border: 0;
    border-bottom: 1px solid var(--asp-rfw-ui-border);
    background: var(--asp-rfw-ui-subtle);
    color: var(--asp-rfw-ui-muted);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-align: left;
    text-transform: uppercase;
    white-space: nowrap;
}

.asp-rfw-my-table table.asp-rfw-my-table-content tbody td{
    padding: 14px 18px;
    border: 0;
    border-top: 1px solid var(--asp-rfw-ui-border);
    background: transparent;
    font-size: 14px;
    vertical-align: middle;
}

.asp-rfw-my-table table.asp-rfw-my-table-content tbody tr:first-child td{
    border-top: 0;
}

.asp-rfw-my-table table.asp-rfw-my-table-content tbody tr:hover td{
    background: var(--asp-rfw-ui-subtle);
}

.asp-rfw-my-table table.asp-rfw-my-table-content .asp-rfw-my-table-no-results td{
    padding: 32px 18px;
    color: var(--asp-rfw-ui-muted);
    text-align: center;
}

.asp-rfw-my-table-product{
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: inherit;
    font-weight: 600;
    text-decoration: none;
}

.asp-rfw-my-table-product:hover .asp-rfw-product-name{
    text-decoration: underline;
}

.asp-rfw-my-table-product-image{
    flex: 0 0 48px;
}

.asp-rfw-my-table-product-image img{
    display: block;
    width: 48px;
    height: 48px;
    margin: 0;
    border-radius: 8px;
    object-fit: cover;
}

.asp-rfw-my-table-empty-value{
    color: var(--asp-rfw-ui-muted);
}

.asp-rfw-my-table-button{
    white-space: nowrap;
}

.asp-rfw-ticket-chip{
    display: inline-block;
    padding: 3px 10px;
    border: 1px solid var(--asp-rfw-ui-border);
    border-radius: 6px;
    background: var(--asp-rfw-ui-subtle);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.asp-rfw-ticket-chip.asp-rfw-ticket-chip-won{
    border-color: #bbe5c8;
    background: var(--asp-rfw-ui-success-bg);
    color: var(--asp-rfw-ui-success);
}

.asp-rfw-my-table-footer{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 18px;
    border-top: 1px solid var(--asp-rfw-ui-border);
    background: var(--asp-rfw-ui-subtle);
}

.asp-rfw-my-table-footer .asp-rfw-my-table-count{
    margin: 0;
    color: var(--asp-rfw-ui-muted);
    font-size: 13px;
}

.asp-rfw-my-table-pagination{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
}

.asp-rfw-my-table-pagination .asp-rfw-my-table-page,
.asp-rfw-my-table-pagination .asp-rfw-my-table-page:hover,
.asp-rfw-my-table-pagination .asp-rfw-my-table-page:focus{
    min-width: 34px;
    height: 34px;
    margin: 0;
    padding: 0 10px;
    border: 1px solid var(--asp-rfw-ui-border-strong);
    border-radius: 8px;
    background: var(--asp-rfw-ui-surface);
    box-shadow: none;
    color: inherit;
    font-size: 14px;
    font-weight: 500;
    line-height: 32px;
    text-transform: none;
    cursor: pointer;
}

.asp-rfw-my-table-pagination .asp-rfw-my-table-page:hover:not(:disabled){
    border-color: var(--asp-rfw-ui-accent);
}

.asp-rfw-my-table-pagination .asp-rfw-my-table-page.asp-rfw-my-table-page-current{
    border-color: var(--asp-rfw-ui-accent);
    background: var(--asp-rfw-ui-accent);
    color: #ffffff;
    cursor: default;
}

.asp-rfw-my-table-pagination .asp-rfw-my-table-page:disabled{
    opacity: 0.45;
    cursor: not-allowed;
}

.asp-rfw-my-table-page-gap{
    padding: 0 4px;
    color: var(--asp-rfw-ui-muted);
}

/* Raffle details shown above the tickets tables. */
.asp-rfw-product-info-wrapper{
    margin: 0 0 28px;
}

.asp-rfw-product-info-wrapper table.asp-rfw-product-basic-info-table-content{
    width: 100%;
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--asp-rfw-ui-border);
    border-collapse: separate;
    border-spacing: 0;
    border-radius: var(--asp-rfw-ui-radius);
    box-shadow: var(--asp-rfw-ui-shadow);
}

.asp-rfw-product-info-wrapper table.asp-rfw-product-basic-info-table-content th,
.asp-rfw-product-info-wrapper table.asp-rfw-product-basic-info-table-content td{
    padding: 12px 18px;
    border: 0;
    border-top: 1px solid var(--asp-rfw-ui-border);
    font-size: 14px;
    vertical-align: middle;
}

.asp-rfw-product-info-wrapper table.asp-rfw-product-basic-info-table-content tr:first-child th,
.asp-rfw-product-info-wrapper table.asp-rfw-product-basic-info-table-content tr:first-child td{
    border-top: 0;
}

.asp-rfw-product-info-wrapper table.asp-rfw-product-basic-info-table-content th{
    width: 35%;
    background: var(--asp-rfw-ui-subtle);
    color: var(--asp-rfw-ui-muted);
    font-weight: 600;
}

@media (max-width: 768px){
    .asp-rfw-dashboard-tabs{
        width: 100%;
    }

    .asp-rfw-my-table-toolbar,
    .asp-rfw-my-table .asp-rfw-my-table-search,
    .asp-rfw-my-table .asp-rfw-my-table-filter{
        width: 100%;
        min-width: 0;
    }

    .asp-rfw-my-table table.asp-rfw-my-table-content tbody tr{
        display: block;
        border-top: 1px solid var(--asp-rfw-ui-border);
    }

    .asp-rfw-my-table table.asp-rfw-my-table-content tbody tr:first-child{
        border-top: 0;
    }

    .asp-rfw-my-table table.asp-rfw-my-table-content tbody td{
        padding: 8px 18px;
        border-top: 0;
    }

    .asp-rfw-my-table table.asp-rfw-my-table-content .asp-rfw-my-table-no-results td::before{
        display: none;
    }

    .asp-rfw-my-table-footer{
        justify-content: center;
        text-align: center;
    }
}
