/* ticket_selector */

.product-ticket-selector {
    position: relative;
    display: inline-block;
    margin-bottom: 10px;
}

.product-selected-ticket {
    padding: 16px 25px 14px;
    background: #0e0d36;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 5px;
/*    min-width: 160px;*/
    width: auto;
    display: inline-block;
    font-size: 16px;
    transition: background 0.2s ease;
}

#direct-in-cart-events .product-selected-ticket {
    background: #6c757d;
}

.product-selected-ticket:hover {
    background: #e6163c;
}

.product-selected-ticket .toggle_arrow {
    padding-left: 5px;
}

.product-ticket-options {
    position: absolute;
    top: 50px;
    right: 0;
    background: white;
    border: 1px solid #ccc;
    border-radius: 5px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
    padding: 10px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    width: 205px;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 1000;
}

@media (min-width: 769px) {
    #event_detail .product-ticket-options,
    #voucher_list .product-ticket-options {
        width: 210px;
        margin-top: 5px;
    }

    #direct-in-cart-events .product-ticket-options {
        width: 234px;
        margin-top: 6px;
    }
}

.product-ticket-options-inner {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
}

#direct-in-cart-events .product-ticket-options-inner {
    grid-template-columns: repeat(2, 1fr);
}

.product-ticket-options button {
    padding: 16px 25px 14px;
    background-color: #0e0d36;
    color: #fff;
    border: 1px solid #ddd;
    text-align: center;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 400 !important;
    line-height: 1.2;
    transition: background 0.2s ease, transform 0.1s ease;
    display: inline-flex;
    justify-content: center;
}

#direct-in-cart-events .product-ticket-options button:not(.close-button):not(:disabled) {
    background-color: #6c757d;
}

.product-ticket-options button.selected {
    background-color: #e6163c !important;
}

.product-ticket-options button:hover:not(.close-button):not(:disabled),
.product-ticket-options button:focus:not(.close-button):not(:disabled) {
    background-color: #e6163c !important;
    color: white;
    transform: scale(1.1);
}

.product-ticket-options button:disabled {
    color: #9ca3af;
    background-color: #f3f4f6;
    border-color: #d1d5db;
    cursor: not-allowed;
    opacity: 1;
}

.product-ticket-options.hidden {
    display: none;
}

.product-ticket-options.visible {
    display: block;
    opacity: 1 !important;
}

.product-ticket-options .ticket-title {
    display: none;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
    position: relative;
}

.product-ticket-options .ticket-title h3 {
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.product-ticket-options .ticket-title .ticket-sector {
    font-size: .8rem;
    color: #808080;
}

.product-ticket-options .close-button {
    display: none;
    position: fixed;
    top: 5px;
    right: 10px;
    background: transparent;
    border: none;
    font-size: 40px !important;
    font-weight: bold;
    cursor: pointer;
    color: black;
    padding: 0px;
    aspect-ratio: unset;
    width: unset;
    align-items: unset;
    justify-content: unset;
}

@media (max-width: 768px) {
    .product-ticket-options {
        position: fixed;
        top: unset;
        right: unset;
        bottom: 0px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 1050;
        width: 100vw;
    }

    .product-ticket-options .product-ticket-options-inner {
        padding: 10px 20vw 5vw 20vw;
        max-width: 460px !important;
    }

    .product-ticket-options-inner {
        width: 100%;
        margin: 0 auto;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .product-ticket-options-inner button {
        padding: 10px !important;
    }

    .product-ticket-options .ticket-title {
        display: unset;
    }

    .product-ticket-options .ticket-title h3 {
        line-height: 0.5 !important;
    }

    #direct-in-cart-events .product-ticket-options .ticket-title h3 {
        line-height: 1.2 !important;
        width: 93%;
    }

    #event_detail .product-ticket-options .ticket-title h3,
    #voucher_list .product-ticket-options .ticket-title h3,
    #direct-in-cart-events .product-ticket-options .ticket-title h3 {
        padding-top: 20px;
    }

    #event_detail .product-ticket-options .ticket-sector,
    #voucher_list .product-ticket-options .ticket-sector {
        padding-top: 10px;
        margin-bottom: 10px;
    }

    .product-ticket-options button {
        width: 100%;
        aspect-ratio: 1;
        padding: 0;
        font-size: 22px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .product-ticket-options .close-button {
        display: unset;
    }
}