.tickets-page {
    margin: 50px 0px;
}
.tickets-groups {
    display:grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    /* margin-top: 10px; */
}

.tickets-groups > .ticket-group {
    margin: 0px;
    text-align: center;
    font-weight: bold;
    cursor: pointer;
    border: solid 2px;
    border-radius: 5px;
    padding: 2px;
    min-height:54px;
    max-height:54px;
    height:54px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: box-shadow 0.2s ease-in-out;
}

.tickets-groups > .ticket-group.selected {
    /* box-shadow: 1px 1px 5px rgb(0 0 0 / 50%); */
    background-color: var(--document-color) !important;
}

.tickets-groups > .ticket-group:hover, .tickets-list-item:hover {
    box-shadow: 2px 2px 3px var(--shadow-color);
}

.tickets-groups > .ticket-group-event {
    margin: 0px;
    padding: 20px;
    text-align: center;
    font-weight: bold;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.tickets-groups > .ticket-group-event > p.ticket-event-tag {
    position: absolute;
    margin: 0px;
    top: 15px;
    right: -64px;
    transform: rotate(45deg);
    background-color: #e3e3e3;
    width: 200px;
    text-align: center;
    padding: 10px 0px;
}

.tickets-groups > .ticket-group-event > p:not(.ticket-event-tag) {
    margin: 0px;
}

.ticket-group-description {
    width: 100%;
    margin-bottom: 15px;
    display:flex;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 20px;
}
.ticket-group-description p {
    margin:0px;
}

.tickets-list {
    display:grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 10px;
}
.tickets-list > .tickets-list-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    border: solid var(--border-color) 1px;
    padding: 5px;
    border-radius: 5px;
    transition: box-shadow 0.2s ease-in-out;
}

.tickets-list > .tickets-list-item > div:first-child {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    position: relative;
}

.tickets-list > .tickets-list-item > div:last-child {
    width: 350px;
}

.tickets-list > .tickets-list-item img {
    width: 114px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.tickets-list > .tickets-list-item .input-group-prepend > .input-group-text {
    border-radius: 5px 0px 0px 5px;
    border-right: none;
    background-color: var(--global-color-0);
    color: var(--global-color-5);
    border-color: #767676;
    height:45px;
}

.tickets-list-item .product-name {
    font-size: 24px;
    margin-bottom: 0px;
}
.tickets-list-item .price span {
    font-size: 1.4em;
}

.tickets-list-item .price .line-through {
    font-size: 1.2em;
    color: var(--global-color-9);
}


.tickets-list > .tickets-list-item select {
    /* width: 100%;   */
    width: calc(100% - 55px);
    border-left: none;
    padding: 5px !important;
    height: 45px;
}
.tickets-list > .tickets-list-item select:focus-visible {
    outline: none;
}

.tickets-list > .tickets-list-item button {
    width: 100%;  
    margin-top: 10px;
}

.tickets-page > .tickets-groups, .tickets-page > .tickets-list {
    width: 100%;
}

.ticket-discount {
    background-color: var(--global-color-0);
    color: var(--global-color-7);
    position: absolute;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50px;
    top: -10px;
    left: 60px;
}
.ticket-discount > span {
    color: var(--global-color-5);
    font-weight: bold;
}

/* PRICELIST TABLE */

.pricelist-caption {
    display:flex;
    justify-content: space-between;
    align-items: center;
}

.ticket-prices-table {
    border: 1px solid #ccc;
    border-collapse: collapse;
    margin: 0;
    padding: 0;
    width: 100%;
    table-layout: fixed;
}

.ticket-prices-table caption {
    font-size: 1.5em;
    margin: .5em 0 .75em;
}

.ticket-prices-table tr {
    background-color: #f8f8f8;
    border: 1px solid #ddd;
    padding: .35em;
    font-size: 14px;
}

.ticket-prices-table th,
.ticket-prices-table td {
    padding: .625em;
    text-align: center;
}

.ticket-prices-table th {
    font-size: .85em;
    letter-spacing: .1em;
    text-transform: uppercase;
}

@media(max-width: 992px) {
    .ticket-group-description {
        flex-direction: column;
        gap:10px;
    }
    .ticket-group-description > div:first-child {
        width: 100% !important;
    }
    .ticket-group-description > div:first-child > p {
        width: calc(100% - 30px);
    }
    .ticket-group-description > div:last-child {
        width: 100% !important;
        border-top: solid var(--border-color) 1px;
        padding-top: 10px;
    }
    .tickets-list > .tickets-list-item > div:first-child {
        width: calc(100% - 250px);
    }
    .tickets-list > .tickets-list-item > div:last-child {
        width: 250px;
    }

    .tickets-list > .tickets-list-item .product-name {
        margin-bottom: 20px;
    }
}

@media(max-width: 881px) {
    .tickets-groups, .tickets-list {
        grid-template-columns: repeat(3, 1fr);
    }

    .tickets-list {
        gap: 5px;
    }

    .tickets-list > .tickets-list-item {
        flex-direction: column !important;
        padding: 5px;
    }
    .tickets-list > .tickets-list-item > div {
        width:100% !important;
    }

    .tickets-list > .tickets-list-item div.price {
        text-align: center;
        margin-bottom: 20px;
    }

    .tickets-list-item > div:first-child > div > h3 {
        font-size: 18px;
    } 

    .tickets-list-item > div:first-child {
        flex-direction: column !important;
    }

    .tickets-list-item > div:first-child > img {
        width:100%;
    }
    .tickets-list-item > div:first-child > div > h3, .tickets-list-item > div:first-child > div > p {
        text-align:center;
    }

    .ticket-discount {
        left: unset;
        right: 5px;
        top: 5px;
        width: 50px;
        height: 50px;
    }

    .ticket-discount > span {
        font-size: 16px;
    }
}

@media(max-width: 767px) {
    .tickets-groups, .tickets-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 5px;
    }

    .tickets-list > .tickets-list-item > div:first-child > div:last-child {
        width: -webkit-fill-available; 
    }

    .ticket-prices-table {
        border: 0;
    }
    .ticket:last-child {
        grid-column: 1 / 2;
    }

    .ticket-prices-table caption {
        font-size: 1.3em;
    }
    
    .ticket-prices-table thead {
        border: none;
        clip: rect(0 0 0 0);
        height: 1px;
        margin: -1px;
        overflow: hidden;
        padding: 0;
        position: absolute;
        width: 1px;
    }
    
    .ticket-prices-table tr {
        border-bottom: 3px solid #ddd;
        display: block;
        margin-bottom: .625em;
    }
    
    .ticket-prices-table td {
        border-bottom: 1px solid #ddd;
        display: block;
        text-align: right;
        border-right: none;
    }
    
    .ticket-prices-table td::before {
        /*
        * aria-label has no advantage, it won't be read inside a table
        content: attr(aria-label);
        */
        content: attr(data-label);
        float: left;
        font-weight: bold;
        text-transform: uppercase;
    }
    
    .ticket-prices-table td:last-child {
        border-bottom: 0;
    }

}
@media(max-width: 482px) {
    .tickets-groups, .tickets-list {
        grid-template-columns: repeat(1, 1fr);
    }
}
