.cuco-lb-module {
    box-sizing: border-box;
    clear: both;
    width: 100%;
    max-width: 100%;
}

.cuco-lb-module:not([data-cuco-lb-mounted="1"]) {
    display: none;
}

.cuco-lottery-wrapper,
.cuco-lottery-wrapper > .e-con-inner,
.cuco-lottery-gallery,
.cuco-lottery-summary,
.cuco-allocation-action-block,
.cuco-allocation-action-block *,
.cuco-lb-module {
    box-sizing: border-box;
}

.cuco-lottery-gallery,
.cuco-lottery-summary {
    width: 100%;
    min-width: 0;
}

.cuco-lottery-gallery[data-cuco-gallery-filled="1"] {
    position: relative;
    isolation: isolate;
    overflow: hidden;
}

.cuco-lottery-gallery[data-cuco-gallery-filled="1"]::before {
    position: absolute;
    z-index: 0;
    inset: -16px;
    background-image: linear-gradient(rgba(8, 13, 26, 0.52), rgba(8, 13, 26, 0.52)), var(--cuco-gallery-image);
    background-position: center;
    background-size: cover;
    content: "";
    filter: blur(12px);
    transform: scale(1.04);
}

.cuco-lottery-gallery[data-cuco-gallery-filled="1"] > * {
    position: relative;
    z-index: 1;
}

.cuco-lottery-wrapper > .e-con-inner {
    padding-bottom: 0 !important;
}

.cuco-lottery-summary {
    padding-bottom: 0 !important;
}

[data-cuco-empty-summary-widget="1"] {
    display: none !important;
}

.cuco-prize-amount {
    display: inline-block;
    white-space: nowrap;
}

.cuco-lottery-summary .woocommerce-product-details__short-description {
    color: #a8b0c2;
}

.cuco-allocation-action-block {
    display: none;
    width: 100%;
    padding: 18px;
    border: 1px solid #2b3346;
    border-radius: 14px;
    background: #111726;
    color: #f2f4f8;
    font-family: Poppins, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    overflow-wrap: anywhere;
}

.cuco-allocation-action-block[data-cuco-allocation-ready="1"] {
    display: block;
}

.cuco-capacity-line {
    margin: 0 0 10px;
    color: #f2f4f8;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    font-variant-numeric: tabular-nums;
}

.cuco-allocation-action-block .odr-progress-bar-track {
    position: relative;
    width: 100%;
    height: 6px;
    background: #0b0f18;
    border: 1px solid rgba(214, 180, 108, 0.58);
    border-radius: 999px;
}

.cuco-allocation-action-block .odr-progress-bar-fill {
    position: absolute;
    inset: 0 auto 0 0;
    max-width: 100%;
    border-radius: inherit;
    background: #d6b46c;
}

.cuco-allocation-action-block .odr-progress-indicator {
    position: absolute;
    top: 50%;
    left: clamp(5px, var(--cuco-capacity-progress), calc(100% - 5px));
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #f6d773;
    box-shadow: 0 0 0 3px rgba(246, 215, 115, 0.13), 0 0 8px rgba(246, 215, 115, 0.48);
    transform: translate(-50%, -50%);
}

.cuco-allocation-context-row {
    display: block;
    margin-top: 14px;
}

.cuco-allocation-action-block .cuco-allocated {
    margin: 0;
    color: #f2f4f8;
    font-size: 13px;
    line-height: 1.4;
    text-align: right;
    white-space: nowrap;
}

.cuco-allocation-action-block .cuco-allocated strong {
    color: #d6b46c;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.cuco-winner-fact {
    margin: 14px 0 0;
    color: #a8b0c2;
    font-size: 13px;
    line-height: 1.45;
}

.cuco-allocation-divider {
    height: 1px;
    margin: 16px 0;
    background: #2b3346;
}

[data-cuco-allocation-widget="1"] {
    width: 100% !important;
    max-width: none !important;
    align-self: stretch !important;
}

[data-cuco-allocation-widget="1"] > .elementor-shortcode,
[data-cuco-allocation-widget="1"] .cuco-allocation-action-block,
.cuco-ticket-controls-row {
    width: 100%;
    max-width: none;
}

.cuco-ticket-controls-row .dash-stepper {
    display: flex;
    width: 100%;
    padding-inline: 0 !important;
    max-width: 100%;
    flex-direction: column;
    gap: 12px;
}

.cuco-ticket-controls-row .stepper-row {
    display: flex;
    width: 100%;
    margin: 0 !important;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.cuco-ticket-controls-row .stepper-row .label {
    color: #f2f4f8;
    font-size: 14px;
    font-weight: 650;
    white-space: nowrap;
}

.cuco-ticket-controls-row .stepper {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px;
    border: 1px solid #3a445a;
    border-radius: 9px;
    background: #0b0f18;
}

.cuco-ticket-controls-row .stepper button {
    display: inline-flex;
    width: 30px;
    height: 30px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 7px;
    background: #d6b46c;
    color: #0f1422;
    font: inherit;
    font-weight: 800;
}

.cuco-ticket-controls-row .stepper .qty {
    width: 48px;
    min-width: 48px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #f2f4f8;
    font: inherit;
    font-size: 15px;
    font-weight: 800;
    text-align: center;
    -moz-appearance: textfield;
}

.cuco-ticket-controls-row .stepper .qty::-webkit-inner-spin-button,
.cuco-ticket-controls-row .stepper .qty::-webkit-outer-spin-button {
    margin: 0;
    -webkit-appearance: none;
}

.cuco-allocation-action-block .cuco-ticket-controls-row .dash-stepper > .quick-allocate-btn {
    width: 100%;
    min-height: 44px;
    margin: 0 !important;
    padding: 11px 18px;
    border: 1px solid #f6d773;
    border-radius: 10px;
    background: linear-gradient(135deg, #d6b46c, #f6d773);
    color: #0b0f18;
    font: inherit;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
}

.cuco-ticket-controls-row button:focus-visible,
.cuco-ticket-controls-row input:focus-visible {
    outline: 3px solid rgba(121, 203, 182, 0.55);
    outline-offset: 2px;
}

.cuco-tombola-description {
    margin: 0 auto 24px !important;
}

.cuco-tombola-description__copy > h3:first-child {
    text-transform: none !important;
}

body:not(.logged-in) [data-elementor-type="loop-item"] .quick-allocate-btn {
    display: flex !important;
    width: 100% !important;
    height: auto !important;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 11px 16px !important;
    border: 1px solid #f6d773 !important;
    color: #f6d773 !important;
    font-weight: 800 !important;
    line-height: 1.35;
    text-align: center;
    white-space: normal !important;
    overflow: visible !important;
    opacity: 1 !important;
}

body:not(.logged-in) [data-elementor-type="loop-item"] .cuco-allocated {
    display: none !important;
}

body.logged-in [data-elementor-type="loop-item"] .quick-allocate-btn.insufficient-balance {
    color: #f6d773 !important;
    opacity: 1 !important;
}

.cuco-lb-standing,
.cuco-lb {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    color: #e9ecf4;
    font-family: Poppins, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    overflow-wrap: anywhere;
}

.cuco-lb-standing {
    margin: 16px 0 0;
    padding: 14px 12px;
    border: 1px solid #2b3346;
    border-radius: 12px;
    background: #151b27;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
}

.cuco-lb-standing--percentile,
.cuco-lb-standing--rank {
    box-shadow: inset 4px 0 0 #79cbb6;
}

.cuco-lb-standing p {
    margin: 0;
}

.cuco-lb-standing__primary {
    color: #f2f4f8;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.35;
}

.cuco-lb-standing__detail,
.cuco-lb-standing__support {
    color: #a8b0c2;
    line-height: 1.45;
}

.cuco-lb-standing__detail {
    font-size: 14px;
}

.cuco-lb-standing__support {
    font-size: 13px;
}

.cuco-lb {
    margin: 18px 0 22px;
    padding: 20px;
    border: 1px solid #2b3346;
    border-radius: 16px;
    background: #111726;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
}

.cuco-lb__header {
    margin-bottom: 0;
}

.cuco-lb__header h2 {
    margin: 0 0 6px;
    color: #d6b46c;
    font-size: 20px;
    font-weight: 750;
    line-height: 1.3;
    text-transform: none !important;
}

.cuco-lb__header p,
.cuco-lb__participation,
.cuco-lb__empty p {
    margin: 0;
    color: #a8b0c2;
    font-size: 13px;
    line-height: 1.5;
}

.cuco-lb__participation {
    margin: 8px 0 0;
}

.cuco-lb__table {
    width: 100%;
    margin-top: 16px;
}

.cuco-lb__columns,
.cuco-lb__row {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) 112px;
    column-gap: 12px;
    align-items: center;
}

.cuco-lb__columns {
    min-height: 34px;
    padding: 0 12px;
    color: #7f899d;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.035em;
    text-transform: uppercase;
}

.cuco-lb__columns > :last-child {
    text-align: right;
    white-space: nowrap;
    word-spacing: 0.14em;
}

.cuco-lb__row {
    min-height: 58px;
    padding: 9px 12px;
    border-top: 1px solid #232b3c;
    background: #141b2a;
}

.cuco-lb__row[hidden] {
    display: none !important;
}

.cuco-lb__row--viewer {
    border-color: #365c54;
    background: #142824;
    box-shadow: inset 3px 0 0 #79cbb6;
}

.cuco-lb__rank {
    color: #d6b46c;
    font-weight: 800;
}

.cuco-lb__rank-badge {
    display: inline-flex;
    width: 34px;
    min-height: 30px;
    align-items: center;
    justify-content: center;
    border: 1px solid #364056;
    border-radius: 999px;
    background: #1b2333;
    font-size: 15px;
    font-variant-numeric: tabular-nums;
}

.cuco-lb__participant {
    min-width: 0;
}

.cuco-lb__participant-name {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 8px;
    color: #f2f4f8;
    font-size: 14px;
    font-weight: 650;
    line-height: 1.35;
}

.cuco-lb__viewer-badge {
    flex: 0 0 auto;
    padding: 2px 7px;
    border: 1px solid #4d8c7d;
    border-radius: 999px;
    color: #a7e4d3;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.cuco-lb__viewer-evidence {
    display: flex;
    flex-wrap: wrap;
    gap: 2px 8px;
    margin-top: 4px;
    color: #a8b0c2;
    font-size: 11px;
    line-height: 1.45;
}

.cuco-lb__viewer-evidence strong {
    color: #a7e4d3;
}

.cuco-lb__viewer-evidence span:last-child {
    flex-basis: 100%;
}

.cuco-lb__tickets {
    color: #f2f4f8;
    font-size: 15px;
    font-weight: 800;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.cuco-lb__expand {
    width: 100%;
    margin: 12px 0 0;
    padding: 10px 14px;
    border: 1px solid #3a445a;
    border-radius: 10px;
    background: #192132;
    color: #d6b46c;
    font: inherit;
    font-size: 13px;
    font-weight: 750;
    cursor: pointer;
}

.cuco-lb__expand:focus-visible {
    outline: 3px solid rgba(121, 203, 182, 0.55);
    outline-offset: 2px;
}

.cuco-lb__pinned-wrap {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px dashed #465168;
}

.cuco-lb__pinned-wrap[hidden] {
    display: none !important;
}

.cuco-lb__empty {
    margin-top: 16px;
    padding: 18px;
    border: 1px solid #2b3346;
    border-radius: 12px;
    background: #151b27;
}

.cuco-lb__empty-title {
    margin-bottom: 4px !important;
    color: #f2f4f8 !important;
    font-weight: 700;
}

@media (max-width: 900px) {
    .cuco-lb {
        margin: 16px 0 20px;
        padding: 15px 12px;
        border-radius: 14px;
    }

    .cuco-lb__header h2 {
        font-size: 18px;
    }

    .cuco-lb__columns,
    .cuco-lb__row {
        grid-template-columns: 42px minmax(0, 1fr) 92px;
        column-gap: 8px;
    }

    .cuco-lb__columns {
        padding: 0 8px;
        font-size: 9px;
        letter-spacing: 0;
    }

    .cuco-lb__row {
        min-height: 58px;
        padding: 9px 8px;
    }

    .cuco-lb__rank-badge {
        width: 30px;
        min-height: 28px;
        font-size: 13px;
    }

    .cuco-lb__participant-name {
        font-size: 13px;
    }

    .cuco-lb__tickets {
        font-size: 13px;
    }
}

@media (min-width: 768px) {
    .cuco-lottery-wrapper,
    .cuco-lb-module {
        box-sizing: border-box;
        width: min(1120px, calc(100% - 48px)) !important;
        max-width: 1120px !important;
        margin-inline: auto !important;
    }

    .cuco-lottery-wrapper > .e-con-inner {
        display: grid !important;
        width: 100% !important;
        max-width: none !important;
        grid-template-columns: minmax(0, 1.35fr) minmax(360px, .98fr);
        gap: 32px;
        align-items: stretch !important;
    }

    .cuco-lottery-gallery {
        height: 100% !important;
        min-height: 100%;
        align-self: stretch !important;
        overflow: hidden;
    }

    .cuco-lottery-gallery > .product_images {
        display: flex;
        width: 100%;
        height: 100% !important;
        min-height: 0;
        flex-direction: column;
    }

    .cuco-lottery-gallery .elementor-image-carousel-wrapper {
        height: auto !important;
        min-height: 0;
        flex: 1 1 auto;
    }

    .cuco-lottery-gallery .elementor-image-carousel,
    .cuco-lottery-gallery .swiper-slide,
    .cuco-lottery-gallery .swiper-slide-inner {
        height: 100% !important;
        min-height: 0;
    }

    .cuco-lottery-gallery .swiper-slide-inner {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .cuco-lottery-gallery .swiper-slide-image {
        display: block !important;
        width: 100% !important;
        height: 100% !important;
        object-fit: contain !important;
        object-position: center;
    }

    .cuco-lb-module {
        clear: both;
        margin-top: 24px !important;
        margin-bottom: 8px !important;
        padding: 0;
    }

    .cuco-lb-module > .cuco-lb {
        width: 100%;
        margin: 0;
        padding: 24px;
    }
}

@media (max-width: 767px) {
    .cuco-lottery-wrapper,
    .cuco-lb-module {
        width: calc(100% - 32px) !important;
        max-width: calc(100% - 32px) !important;
        margin-inline: auto !important;
    }

    .cuco-lottery-wrapper > .e-con-inner {
        display: grid !important;
        width: 100% !important;
        max-width: none !important;
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
    }

    .cuco-lottery-gallery {
        order: 1;
    }

    .cuco-lottery-summary {
        order: 2;
    }

    .cuco-lb-module {
        margin-top: 24px !important;
        margin-bottom: 8px !important;
        padding: 0;
    }

    .cuco-lb-module > .cuco-lb {
        width: 100%;
        margin: 0;
        padding: 16px;
    }

    .cuco-lb-standing {
        margin-top: 12px;
        padding: 12px 8px;
    }

    .cuco-lb-standing__primary {
        font-size: 17px;
    }

    .cuco-lb-standing__detail {
        font-size: 13px;
    }

    .cuco-lb__table,
    .cuco-lb__empty {
        margin-top: 12px;
    }

    .cuco-allocation-action-block {
        padding: 16px;
    }

    .cuco-allocation-context-row {
        margin-top: 12px;
    }

    .cuco-allocation-action-block .cuco-allocated {
        text-align: left;
    }

    .cuco-tombola-description__copy {
        text-align: left !important;
    }
}
