.btw-ticket-tiles {
    margin: 14px 0 16px;
    padding: 14px;
    border: 1px solid rgba(245, 166, 35, 0.18);
    border-radius: 16px;
    background:
        radial-gradient(circle at 7% 0%, rgba(245, 166, 35, 0.18), transparent 34%),
        linear-gradient(180deg, #fffdf7 0%, #ffffff 100%);
    color: #111827;
    overflow: hidden;
}

.btw-ticket-tiles__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.btw-ticket-tiles__header h3 {
    margin: 0;
    color: #111827;
    font-size: 17px;
    line-height: 1.1;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.btw-ticket-tiles__header span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 8px;
    border-radius: 999px;
    background: #111827;
    color: #ffffff;
    font-size: 10px;
    line-height: 1;
    font-weight: 900;
    white-space: nowrap;
}

.btw-ticket-tiles__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.btw-ticket-tile {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 86px;
    padding: 9px 7px 8px;
    border: 1px solid rgba(17, 24, 39, 0.08);
    border-radius: 18px;
    background: #ffffff;
    color: #111827;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 7px 16px rgba(17, 24, 39, 0.05);
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background 160ms ease;
    overflow: hidden;
}

.btw-ticket-tile:hover,
.btw-ticket-tile:focus {
    transform: translateY(-1px);
    border-color: rgba(245, 166, 35, 0.55);
    box-shadow: 0 11px 22px rgba(17, 24, 39, 0.10);
}

.btw-ticket-tile.is-selected {
    border-color: #f07a00;
    background: linear-gradient(180deg, #ff8a00, #f07800);
    color: #ffffff;
    box-shadow: 0 12px 22px rgba(240, 122, 0, 0.23);
}

.btw-ticket-tile.has-discount:not(.is-selected) {
    border-color: rgba(108, 159, 31, 0.32);
    background: linear-gradient(180deg, #ffffff, #f8fff0);
}

.btw-ticket-tile__badge {
    position: absolute;
    top: 6px;
    right: 6px;
    display: inline-flex;
    max-width: calc(100% - 12px);
    min-height: 16px;
    align-items: center;
    justify-content: center;
    padding: 3px 6px;
    border-radius: 999px;
    background: #6c9f1f;
    color: #ffffff;
    font-size: 8px;
    line-height: 1;
    font-weight: 900;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btw-ticket-tile.is-selected .btw-ticket-tile__badge {
    background: #111827;
}

.btw-ticket-tile__qty {
    display: block;
    max-width: 100%;
    margin-top: 8px;
    color: inherit;
    font-size: 23px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: -0.04em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.btw-ticket-tile__label {
    display: block;
    margin-top: 2px;
    color: #6b7280;
    font-size: 8px;
    line-height: 1;
    font-weight: 900;
    text-transform: uppercase;
}

.btw-ticket-tile__price {
    display: flex;
    flex-wrap: wrap;
    gap: 3px 5px;
    align-items: baseline;
    justify-content: center;
    margin-top: 5px;
    max-width: 100%;
    color: #111827;
    font-size: 11px;
    line-height: 1;
    font-weight: 900;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.btw-ticket-tile__was {
    color: #8a8f99;
    font-size: 9px;
    font-weight: 800;
    text-decoration: line-through;
    text-decoration-thickness: 1px;
}

.btw-ticket-tile__now {
    color: inherit;
    font-size: 11px;
    font-weight: 900;
}

.btw-ticket-tile__save {
    display: block;
    margin-top: 4px;
    max-width: 100%;
    color: #5c8919;
    font-size: 9px;
    line-height: 1.1;
    font-weight: 900;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.btw-ticket-tile.is-selected .btw-ticket-tile__label,
.btw-ticket-tile.is-selected .btw-ticket-tile__price,
.btw-ticket-tile.is-selected .btw-ticket-tile__was,
.btw-ticket-tile.is-selected .btw-ticket-tile__now,
.btw-ticket-tile.is-selected .btw-ticket-tile__save {
    color: rgba(255, 255, 255, 0.92);
}

.btw-ticket-tiles__stepper {
    display: grid;
    grid-template-columns: 1fr 1fr 58px 1fr 1fr;
    max-width: 300px;
    margin: 12px auto 10px;
    overflow: hidden;
    border: 1px solid rgba(17, 24, 39, 0.08);
    border-radius: 999px;
    background: #ffffff;
}

.btw-ticket-tiles__stepper button {
    min-height: 34px;
    border: 0;
    background: #111827;
    color: #ffffff;
    font-size: 12px;
    line-height: 1;
    font-weight: 900;
    cursor: pointer;
}

.btw-ticket-tiles__stepper button:first-child,
.btw-ticket-tiles__stepper button:nth-child(2) {
    background: #d0d2d6;
}

.btw-ticket-tiles__stepper strong {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    color: #111827;
    font-size: 15px;
    line-height: 1;
    font-weight: 900;
}

.btw-ticket-tiles__odds {
    display: grid;
    gap: 2px;
    margin: 8px 0 10px;
    text-align: center;
}

.btw-ticket-tiles__odds span {
    color: #6b7280;
    font-size: 10px;
    line-height: 1.2;
    font-weight: 800;
}

.btw-ticket-tiles__odds strong {
    color: #111827;
    font-size: 13px;
    line-height: 1.25;
    font-weight: 800;
}

.btw-ticket-tiles__odds mark {
    padding: 0;
    background: transparent;
    color: #6c9f1f;
    font-weight: 900;
}

.btw-ticket-tiles__odds small {
    color: #8a8f99;
    font-size: 10px;
    line-height: 1.2;
    font-weight: 700;
}

.btw-ticket-tiles__summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
}

.btw-ticket-tiles__summary div {
    padding: 9px;
    border: 1px solid rgba(17, 24, 39, 0.08);
    border-radius: 14px;
    background: #ffffff;
}

.btw-ticket-tiles__summary div:last-child {
    grid-column: 1 / -1;
    border-color: rgba(108, 159, 31, 0.24);
    background: #f8fff0;
}

.btw-ticket-tiles__summary small {
    display: block;
    margin-bottom: 3px;
    color: #6b7280;
    font-size: 9px;
    line-height: 1;
    font-weight: 900;
    text-transform: uppercase;
}

.btw-ticket-tiles__summary strong {
    display: block;
    color: #111827;
    font-size: 12px;
    line-height: 1.2;
    font-weight: 900;
    overflow-wrap: anywhere;
}

.btw-ticket-tiles__summary div:last-child strong {
    color: #5c8919;
}

@media (min-width: 1180px) {
    .btw-ticket-tiles__grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

    .btw-ticket-tile {
        min-height: 94px;
        padding-right: 5px;
        padding-left: 5px;
        border-radius: 16px;
    }

    .btw-ticket-tile__qty {
        font-size: 21px;
    }
}

@media (max-width: 767px) {
    .btw-ticket-tiles {
        padding: 11px;
        border-radius: 14px;
    }

    .btw-ticket-tiles__header {
        display: block;
    }

    .btw-ticket-tiles__header span {
        margin-top: 7px;
    }

    .btw-ticket-tiles__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .btw-ticket-tile {
        min-height: 92px;
        border-radius: 16px;
    }

    .btw-ticket-tile__qty {
        font-size: 22px;
    }

    .btw-ticket-tiles__summary {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 390px) {
    .btw-ticket-tiles__grid {
        gap: 7px;
    }

    .btw-ticket-tile {
        min-height: 88px;
        padding-right: 5px;
        padding-left: 5px;
        border-radius: 15px;
    }

    .btw-ticket-tile__badge {
        font-size: 7px;
    }

    .btw-ticket-tile__qty {
        font-size: 20px;
    }

    .btw-ticket-tile__price,
    .btw-ticket-tile__save {
        font-size: 9px;
    }
}
