/* Entry List Page Layout - dark / lime body design (site header and footer untouched) */

.rwdel-hide-product-template .product-type-lottery.product {
    display: none;
}

.rwdel-page {
    --rwdel-lime: #90d214;
    --rwdel-lime-dark: #7baf1a;
    --rwdel-bg: #000000;
    --rwdel-card: #0f1114;
    --rwdel-card-2: #14171a;
    --rwdel-line: #232a30;
    --rwdel-text: #ffffff;
    --rwdel-muted: #9aa3ab;
    --rwdel-head: Oswald, "Arial Narrow", Arial, sans-serif;
    padding-bottom: 56px;
    background: #000000;
    color: var(--rwdel-text);
    box-shadow: 0 0 0 100vmax #000000;
    clip-path: inset(0 -100vmax);
}

.rwdel-page,
.rwdel-page p,
.rwdel-page h1,
.rwdel-page h2,
.rwdel-page strong,
.rwdel-page small {
    color: var(--rwdel-text);
}

.rwdel-page .rwdel-hero-copy > p,
.rwdel-page small,
.rwdel-page .rwdel-winner strong span,
.rwdel-page .rwdel-date-ago,
.rwdel-page .rwdel-player small {
    color: var(--rwdel-muted);
}

.rwdel-page .rwdel-progress-meta span:last-child strong,
.rwdel-page .rwdel-table-kicker,
.rwdel-page .rwdel-prize-text {
    color: var(--rwdel-lime);
}

.rwdel-hero,
.rwdel-winners,
.rwdel-stats,
.entrylist-content-wrapper,
.rwdel-instant-card,
.rwdel-cta {
    width: min(100% - 32px, 1180px);
    margin-left: auto;
    margin-right: auto;
}

/* Hero */
.rwdel-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    gap: 34px;
    align-items: start;
    padding: 36px 0 28px;
}

.rwdel-kicker {
    display: inline-flex;
    width: fit-content;
    margin-bottom: 18px;
    padding: 7px 14px;
    border: 1px solid rgba(144, 210, 20, 0.55);
    border-radius: 999px;
    background: rgba(144, 210, 20, 0.08);
    color: var(--rwdel-lime);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    line-height: 1;
    text-transform: uppercase;
}

.rwdel-hero h1 {
    margin: 0;
    color: var(--rwdel-text);
    font-family: var(--rwdel-head);
    font-size: clamp(38px, 4.6vw, 62px);
    font-style: italic;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
}

.rwdel-hero-copy > p {
    max-width: 680px;
    margin: 14px 0 24px;
    color: var(--rwdel-muted);
    font-size: 16px;
    line-height: 1.5;
}

.rwdel-progress-card {
    padding: 22px;
    border: 1px solid var(--rwdel-line);
    border-radius: 12px;
    background: var(--rwdel-card);
}

.rwdel-progress-meta,
.rwdel-progress-foot {
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.rwdel-progress-meta small,
.rwdel-progress-foot,
.rwdel-stats small,
.rwdel-countdown small,
.rwdel-winner small {
    color: var(--rwdel-muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.rwdel-progress-meta strong {
    display: block;
    margin-top: 5px;
    color: var(--rwdel-text);
    font-family: var(--rwdel-head);
    font-size: 28px;
    font-weight: 700;
}

.rwdel-progress-meta span:last-child strong {
    color: var(--rwdel-lime);
    text-align: right;
}

.rwdel-progress-track {
    height: 8px;
    margin: 16px 0 10px;
    overflow: hidden;
    border-radius: 999px;
    background: #2a3036;
}

.rwdel-progress-track span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--rwdel-lime);
}

.rwdel-progress-foot {
    justify-content: flex-end;
}

.rwdel-countdown {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--rwdel-line);
}

.rwdel-countdown-units {
    display: flex;
    gap: 6px;
}

.rwdel-countdown-units span {
    min-width: 40px;
    padding: 6px 4px;
    border: 1px solid var(--rwdel-line);
    border-radius: 6px;
    background: var(--rwdel-bg);
    text-align: center;
}

.rwdel-countdown-units b {
    display: block;
    color: var(--rwdel-text);
    font-family: var(--rwdel-head);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.1;
}

.rwdel-countdown-units i {
    display: block;
    color: var(--rwdel-muted);
    font-size: 8px;
    font-style: normal;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.rwdel-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.rwdel-hero-actions .rwdel-button {
    flex: 1 1 180px;
}

/* Buttons */
.rwdel-button,
.rwdel-reveal-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 46px;
    padding: 10px 20px;
    border: 1px solid transparent;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.03em;
    line-height: 1;
    text-decoration: none;
    text-transform: uppercase;
    cursor: pointer;
}

.rwdel-button-primary {
    border-color: var(--rwdel-lime);
    background: var(--rwdel-lime);
    color: #0b0d10;
}

.rwdel-button-primary:hover {
    background: #a4e61c;
    color: #0b0d10;
}

.rwdel-button-secondary {
    border-color: var(--rwdel-line);
    background: transparent;
    color: var(--rwdel-text);
}

.rwdel-button-secondary:hover {
    border-color: var(--rwdel-lime);
    color: var(--rwdel-lime);
}

.rwdel-price,
.rwdel-price .amount {
    color: inherit;
    font-weight: 800;
}

.rwdel-reveal-button {
    min-height: 36px;
    padding: 4px 14px;
    border-color: var(--rwdel-lime-dark);
    background: transparent;
    color: var(--rwdel-lime);
    font-size: 12px;
}

.rwdel-reveal-button:hover {
    background: var(--rwdel-lime);
    color: #0b0d10;
}

.rwdel-button:disabled,
.rwdel-reveal-button:disabled {
    cursor: wait;
    opacity: 0.62;
}

/* Hero image */
.rwdel-hero-image {
    position: relative;
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--rwdel-line);
    border-radius: 12px;
    background: var(--rwdel-card);
}

.rwdel-hero-image img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

.rwdel-hero-image figcaption {
    position: absolute;
    left: 14px;
    bottom: 14px;
    padding: 6px 12px;
    border: 1px solid var(--rwdel-lime);
    border-radius: 999px;
    background: rgba(11, 13, 16, 0.85);
    color: var(--rwdel-lime);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* Winner banner */
.rwdel-winners {
    display: grid;
    gap: 10px;
    margin-bottom: 18px;
}

.rwdel-winner {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    border: 1px solid var(--rwdel-lime);
    border-radius: 10px;
    background: #0f1a05;
}

.rwdel-winner-icon {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--rwdel-lime);
    color: #0b0d10;
}

.rwdel-winner strong {
    display: block;
    margin-top: 3px;
    color: var(--rwdel-text);
    font-family: var(--rwdel-head);
    font-size: 20px;
    font-weight: 700;
    text-transform: uppercase;
}

.rwdel-winner strong span {
    color: var(--rwdel-muted);
    font-family: inherit;
    font-size: 14px;
    font-weight: 400;
    text-transform: none;
}

.rwdel-winner-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    margin-left: auto;
    text-align: right;
}

/* Stat tiles */
.rwdel-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 28px;
}

.rwdel-stats div {
    padding: 18px 20px;
    border: 1px solid var(--rwdel-line);
    border-radius: 10px;
    background: var(--rwdel-card);
}

.rwdel-stats strong {
    display: block;
    margin-top: 6px;
    color: var(--rwdel-text);
    font-family: var(--rwdel-head);
    font-size: 24px;
    font-weight: 700;
}

/* Table panels */
.entrylist-content-wrapper,
.rwdel-instant-card {
    overflow: hidden;
    margin-bottom: 28px;
    padding: 0;
    border: 1px solid var(--rwdel-line);
    border-radius: 12px;
    background: var(--rwdel-card);
}

.rwdel-table-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    padding: 24px;
}

.rwdel-table-kicker {
    display: block;
    margin-bottom: 8px;
    color: var(--rwdel-lime);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.25em;
    line-height: 1;
    text-transform: uppercase;
}

.entrylist-content-wrapper h2,
.rwdel-instant-card h2 {
    margin: 0;
    color: var(--rwdel-text);
    font-family: var(--rwdel-head);
    font-size: 30px;
    font-weight: 700;
    line-height: 1.1;
    text-transform: uppercase;
}

.rwdel-instant-head p {
    margin: 8px 0 0;
    color: var(--rwdel-muted);
    font-size: 14px;
}

.rwdel-table-tools {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.rwdel-tool-search,
.rwdel-tool-select {
    position: relative;
    display: inline-flex;
}

.rwdel-tool-search::before {
    content: "";
    position: absolute;
    left: 14px;
    top: 50%;
    width: 13px;
    height: 13px;
    border: 2px solid var(--rwdel-muted);
    border-radius: 999px;
    transform: translateY(-58%);
}

.rwdel-tool-search::after {
    content: "";
    position: absolute;
    left: 26px;
    top: 24px;
    width: 7px;
    height: 2px;
    border-radius: 2px;
    background: var(--rwdel-muted);
    transform: rotate(45deg);
}

.rwdel-table-tools input,
.rwdel-table-tools select,
.rwdel-export-button {
    min-height: 42px;
    border: 1px solid var(--rwdel-line);
    border-radius: 8px;
    background: var(--rwdel-bg);
    color: var(--rwdel-text);
    font-size: 14px;
    font-weight: 600;
    box-shadow: none;
}

.rwdel-table-tools input::placeholder {
    color: var(--rwdel-muted);
}

.rwdel-table-tools input {
    width: min(330px, 36vw);
    padding: 0 16px 0 42px;
}

.rwdel-table-tools select {
    min-width: 132px;
    padding: 0 34px 0 16px;
}

.rwdel-table-tools input:focus,
.rwdel-table-tools select:focus {
    border-color: var(--rwdel-lime);
    outline: 0;
}

.rwdel-export-button {
    padding: 0 22px;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    cursor: pointer;
}

.rwdel-export-button:hover {
    border-color: var(--rwdel-lime);
    color: var(--rwdel-lime);
}

.entrylist-content-wrapper table.dataTable,
.rwdel-instant-card table.dataTable {
    width: 100% !important;
    border-collapse: collapse;
    border-spacing: 0;
    margin: 0;
    border: 0;
    background: transparent;
}

.entrylist-content-wrapper table.dataTable thead th,
.rwdel-instant-card table.dataTable thead th {
    border: 0;
    border-top: 1px solid var(--rwdel-line);
    border-bottom: 1px solid var(--rwdel-line);
    background-color: var(--rwdel-card-2);
    color: var(--rwdel-muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    padding: 14px 16px;
    text-transform: uppercase;
}

.entrylist-content-wrapper table.dataTable tbody tr,
.rwdel-instant-card table.dataTable tbody tr {
    background: transparent;
}

.entrylist-content-wrapper table.dataTable tbody td,
.rwdel-instant-card table.dataTable tbody td {
    padding: 14px 16px;
    border: 0;
    border-top: 1px solid var(--rwdel-line);
    background: transparent;
    color: var(--rwdel-text);
    font-size: 13px;
    font-weight: 400;
    vertical-align: middle;
}

.entrylist-content-wrapper table.dataTable thead th:first-child,
.entrylist-content-wrapper table.dataTable tbody td:first-child,
.rwdel-instant-card table.dataTable thead th:first-child,
.rwdel-instant-card table.dataTable tbody td:first-child {
    padding-left: 24px;
}

.entrylist-content-wrapper table.dataTable thead th:last-child,
.entrylist-content-wrapper table.dataTable tbody td:last-child,
.rwdel-instant-card table.dataTable thead th:last-child,
.rwdel-instant-card table.dataTable tbody td:last-child {
    padding-right: 24px;
}

.entrylist-content-wrapper table.dataTable tbody tr:hover td,
.rwdel-instant-card table.dataTable tbody tr:hover td {
    background: rgba(144, 210, 20, 0.05);
}

.rwdel-date-main,
.rwdel-date-ago,
.rwdel-player strong,
.rwdel-player small {
    display: block;
}

.rwdel-date-main,
.rwdel-player strong {
    color: var(--rwdel-text);
    font-weight: 600;
}

.rwdel-date-ago,
.rwdel-player small {
    margin-top: 3px;
    color: var(--rwdel-muted);
    font-size: 12px;
}

.rwdel-player {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    text-align: left;
}

.rwdel-player-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--rwdel-lime-dark);
    border-radius: 999px;
    background: rgba(144, 210, 20, 0.1);
    color: var(--rwdel-lime);
    font-size: 12px;
    font-weight: 800;
}

.rwdel-ticket-pill {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 14px;
    border: 1px solid var(--rwdel-text);
    border-radius: 999px;
    background: transparent;
    color: var(--rwdel-text);
    font-weight: 800;
}

.rwdel-ticket-pill::before {
    content: none;
}

/* DataTables chrome */
.entrylist-content-wrapper .dataTables_wrapper,
.rwdel-instant-card .dataTables_wrapper {
    color: var(--rwdel-muted);
}

.rwdel-table-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 24px;
    border-top: 1px solid var(--rwdel-line);
}

.rwdel-table-footer .dataTables_info {
    float: none;
    padding: 0;
    color: var(--rwdel-muted);
    font-size: 13px;
    font-weight: 400;
}

.rwdel-table-footer .dataTables_paginate {
    float: none;
    padding: 0;
}

.rwdel-table-footer .dataTables_paginate .paginate_button {
    min-width: 36px;
    min-height: 36px;
    margin-left: 6px;
    padding: 9px 12px;
    border: 1px solid var(--rwdel-line) !important;
    border-radius: 6px;
    background: var(--rwdel-bg) !important;
    color: var(--rwdel-text) !important;
    font-size: 14px;
    font-weight: 700;
}

.rwdel-table-footer .dataTables_paginate .paginate_button.current {
    border-color: var(--rwdel-lime) !important;
    background: var(--rwdel-lime) !important;
    color: #0b0d10 !important;
}

.rwdel-table-footer .dataTables_paginate .paginate_button:hover {
    border-color: var(--rwdel-lime) !important;
    background: rgba(144, 210, 20, 0.12) !important;
    color: var(--rwdel-lime) !important;
}

.rwdel-table-footer .dataTables_paginate .paginate_button.disabled,
.rwdel-table-footer .dataTables_paginate .paginate_button.disabled:hover {
    border-color: var(--rwdel-line) !important;
    background: transparent !important;
    color: #5b646c !important;
}

.rwdel-claimed-badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 12px;
    border: 1px solid var(--rwdel-lime);
    border-radius: 999px;
    background: rgba(144, 210, 20, 0.1);
    color: var(--rwdel-lime);
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.rwdel-prize-text {
    color: var(--rwdel-lime);
    font-weight: 700;
}

/* Bottom CTA */
.rwdel-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 24px 28px;
    border: 1px solid rgba(144, 210, 20, 0.5);
    border-radius: 12px;
    background: #0f1a05;
}

.rwdel-cta h2 {
    margin: 0;
    color: var(--rwdel-text);
    font-family: var(--rwdel-head);
    font-size: 24px;
    font-weight: 700;
    text-transform: uppercase;
}

.rwdel-cta p {
    margin: 6px 0 0;
    color: var(--rwdel-text);
    font-size: 15px;
}

/* Winner reveal modal */
.rwdel-winner-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0, 0, 0, 0.7);
}

.rwdel-winner-modal.is-open {
    display: flex;
}

.rwdel-winner-dialog {
    position: relative;
    width: min(100%, 560px);
    overflow: hidden;
    padding: 34px;
    border: 1px solid var(--rwdel-lime-dark);
    border-radius: 12px;
    background: #12161a;
    color: #ffffff;
    text-align: center;
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.5);
}

.rwdel-confetti-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.rwdel-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    width: 34px;
    height: 34px;
    border: 1px solid #2a3036;
    border-radius: 999px;
    background: #0b0d10;
    color: #ffffff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.rwdel-modal-kicker {
    display: inline-flex;
    margin-bottom: 12px;
    color: #90d214;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.rwdel-winner-dialog h2 {
    position: relative;
    margin: 0;
    color: #ffffff;
    font-family: Oswald, "Arial Narrow", Arial, sans-serif;
    font-size: 34px;
    font-weight: 700;
    text-transform: uppercase;
}

.rwdel-winner-dialog p {
    color: #c7cdd3;
}

.rwdel-winner-location {
    margin: 14px 0 10px;
    font-size: 18px;
}

.rwdel-winner-location strong {
    color: #ffffff;
}

.rwdel-modal-actions {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 22px;
}

.rwdel-set-winner {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 22px;
    padding-bottom: 18px;
    border-bottom: 1px solid #2a3036;
}

.rwdel-set-winner[hidden] {
    display: none;
}

.rwdel-set-winner label {
    width: 100%;
    color: #9aa3ab;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.rwdel-set-winner input {
    flex: 1 1 220px;
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid #2a3036;
    border-radius: 6px;
    background: #0b0d10;
    color: #ffffff;
}

.rwdel-email-status {
    min-height: 20px;
    margin: 16px 0 0;
    color: #90d214 !important;
    font-weight: 800;
}

@media (max-width: 900px) {
    .rwdel-hero {
        grid-template-columns: 1fr;
    }

    .rwdel-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .rwdel-hero,
    .rwdel-winners,
    .rwdel-stats,
    .entrylist-content-wrapper,
    .rwdel-instant-card,
    .rwdel-cta {
        width: min(100% - 24px, 1180px);
    }

    .rwdel-hero h1 {
        font-size: 34px;
    }

    .rwdel-stats {
        grid-template-columns: 1fr;
    }

    .rwdel-countdown {
        flex-direction: column;
        align-items: flex-start;
    }

    .rwdel-table-head,
    .rwdel-table-footer,
    .rwdel-cta {
        align-items: stretch;
        flex-direction: column;
    }

    .rwdel-table-tools,
    .rwdel-table-tools input,
    .rwdel-table-tools select,
    .rwdel-export-button {
        width: 100%;
    }

    .rwdel-winner-dialog {
        padding: 28px 18px;
    }
}

/* Force colours over theme button/input/link styles */
.rwdel-page a.rwdel-button-primary,
.rwdel-winner-modal .rwdel-button-primary,
.rwdel-winner-modal button.rwdel-button-primary {
    border-color: #90d214 !important;
    background: #90d214 !important;
    color: #000000 !important;
    opacity: 1;
}

.rwdel-page a.rwdel-button-primary:hover,
.rwdel-winner-modal .rwdel-button-primary:hover:not(:disabled) {
    background: #a4e61c !important;
    color: #000000 !important;
}

.rwdel-winner-modal .rwdel-button-primary:disabled {
    background: #2a3318 !important;
    border-color: #3d4a22 !important;
    color: #9aa88a !important;
    opacity: 1;
}

.rwdel-page a.rwdel-button-secondary,
.rwdel-winner-modal a.rwdel-button-secondary {
    border-color: #3a424a !important;
    background: transparent !important;
    color: #ffffff !important;
}

.rwdel-page a.rwdel-button-secondary:hover,
.rwdel-winner-modal a.rwdel-button-secondary:hover {
    border-color: #90d214 !important;
    color: #90d214 !important;
}

.rwdel-page .rwdel-reveal-button {
    border-color: #90d214 !important;
    background: transparent !important;
    color: #90d214 !important;
}

.rwdel-page .rwdel-reveal-button:hover {
    background: #90d214 !important;
    color: #000000 !important;
}

.rwdel-page .rwdel-table-tools input,
.rwdel-page .rwdel-table-tools select,
.rwdel-page .rwdel-export-button,
.rwdel-winner-modal .rwdel-set-winner input {
    border: 1px solid #2a3036 !important;
    background: #000000 !important;
    color: #ffffff !important;
}

.rwdel-page .rwdel-ticket-pill {
    border-color: #ffffff;
    color: #ffffff;
}

.rwdel-page .rwdel-player-avatar {
    color: #90d214;
}

.rwdel-page table.dataTable tbody td,
.rwdel-page table.dataTable tbody td strong,
.rwdel-page table.dataTable tbody td .rwdel-date-main {
    color: #ffffff;
}

.rwdel-page table.dataTable tbody td .rwdel-date-ago,
.rwdel-page table.dataTable tbody td small,
.rwdel-page .dataTables_info {
    color: #9aa3ab;
}

.rwdel-winner-dialog,
.rwdel-winner-dialog h2,
.rwdel-winner-dialog p,
.rwdel-winner-dialog strong {
    color: #ffffff;
}

.rwdel-winner-dialog {
    background: #0f1114;
}

.rwdel-winner-modal .rwdel-modal-kicker {
    color: #90d214;
}