.urp-raffle-info,
.urp-shortcode {
    margin: 18px 0;
}

.urp-raffle-info strong {
    display: block;
    margin-bottom: 4px;
}

.urp-number-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(54px, 1fr));
    gap: 8px;
    margin: 14px 0 8px;
    max-width: 760px;
}

.urp-number {
    align-items: center;
    background: #f6f7f7;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    box-sizing: border-box;
    color: #1d2327;
    display: flex;
    font-size: 13px;
    font-weight: 600;
    justify-content: center;
    min-height: 38px;
    padding: 6px;
    text-align: center;
}

label.urp-number {
    cursor: pointer;
}

.urp-number input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.urp-number span {
    align-items: center;
    display: flex;
    height: 100%;
    justify-content: center;
    width: 100%;
}

.urp-number input:checked + span,
.urp-number.is-winner {
    background: #0a7f49;
    color: #fff;
}

.urp-number:has(input:checked) {
    background: #0a7f49;
    border-color: #0a7f49;
}

.urp-number.is-sold {
    background: #dcdcde;
    border-color: #a7aaad;
    color: #646970;
    text-decoration: line-through;
}

.urp-number-help {
    color: #646970;
    font-size: 13px;
    margin: 0 0 14px;
}

.urp-image {
    display: block;
    height: auto;
    max-width: 100%;
}

.urp-price,
.urp-description,
.urp-progress,
.urp-winner {
    margin: 12px 0;
}

.urp-price-label {
    font-weight: 600;
}

.urp-progress-label {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
}

.urp-progress-track {
    background: #dcdcde;
    border-radius: 4px;
    height: 14px;
    overflow: hidden;
    width: 100%;
}

.urp-progress-track span {
    background: #0a7f49;
    display: block;
    height: 100%;
}

.urp-winner {
    background: #f6f7f7;
    border-left: 4px solid #0a7f49;
    padding: 12px;
}

.urp-winner-empty {
    border-color: #c3c4c7;
}

.urp-purchase-form {
    margin: 18px 0;
    padding-bottom: 104px;
}

.urp-selected-box {
    background: #f6f7f7;
    border-top: 1px solid #c3c4c7;
    bottom: 0;
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.12);
    box-sizing: border-box;
    display: flex;
    gap: 14px;
    left: 0;
    padding: 12px max(16px, calc((100vw - 1120px) / 2));
    position: fixed;
    right: 0;
    z-index: 9999;
}

.urp-selected-content {
    flex: 1 1 auto;
    min-width: 0;
}

.urp-selected-content strong {
    display: block;
    margin-bottom: 8px;
}

.urp-selected-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    min-height: 30px;
    max-height: 66px;
    overflow: hidden;
}

.urp-selected-item,
.urp-selected-more {
    background: #0a7f49;
    border-radius: 4px;
    color: #fff;
    display: inline-flex;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    padding: 8px 10px;
}

.urp-selected-more {
    background: #1d2327;
}

.urp-selected-empty {
    color: #646970;
    font-size: 14px;
}

.urp-finish-button:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.urp-selected-box .urp-finish-button {
    align-self: center;
    flex: 0 0 auto;
    min-height: 44px;
    white-space: nowrap;
}

@media (max-width: 640px) {
    .urp-purchase-form {
        padding-bottom: 152px;
    }

    .urp-selected-box {
        display: block;
        padding: 10px 12px;
    }

    .urp-selected-list {
        max-height: 40px;
    }

    .urp-selected-box .urp-finish-button {
        margin-top: 10px;
        width: 100%;
    }
}
