.preselected-seat {
    border: 1px solid #ccc;
    padding: 12px;
    min-width: 100px;
    width: 100%;
    position: relative;
    border-radius: var(--pretix-border-radius-large);
}

.preselected-seat.centered {
    display: flex;
    justify-content: center;
}

.preselected-seat p {
    margin: 0;
}

.preselected-seat button {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 0;
}

#seat-preselection-column {
    width: 35%;
    display: flex;
    flex-direction: column;
    align-items: end;
    justify-content: space-between;
    gap: 8px;
    padding-left: 15px;
}

#seat-preselection {
    width: 100%;
    max-height: 448px;
    display: flex;
    flex-direction: column;
    align-items: end;
    gap: 8px;
    overflow-y: auto;
    cursor: default;
}

.seat-choice-wrapper {
    width: 100%;
    margin-bottom: 20px;
    display: flex;
}

.empty-text {
    color: grey;
    margin-top: 10px;
}

.max-text {
    color: #d44c4c;
    margin-top: 10px;
}

#ticket-icon {
    height: 20px;
}

#container {
    width: 75%;
}

#canvas-container {
    opacity: 0.2;
    transition: opacity 0.5s ease-in-out;
}

#seating-wrapper {
    display: none;
}

#panel-seating {
    margin-top: 12px;
}

#select-more-seats {
    display: none;
    margin-top: 45px;
}

#seating-submit {
    width: 100%;
}

.fade-out {
    animation: fadeOut 1s forwards;
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

details.selection {
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 0.5em 0.5em 0;
    width: 100%;
}

summary.selection {
    font-weight: bold;
    margin: -0.5em -0.5em 0;
    padding: 0.5em;
    display: list-item;
}

details[open].selection {
    padding: 0.5em;
}

details[open] summary {
    border-bottom: 1px solid #ccc;
    margin-bottom: 0.5em;
}

#cart-card-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

#loading-overlay {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.loader {
    width: 48px;
    height: 48px;
    border: 5px solid #fff;
    border-bottom-color: #c3a56a;
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
    margin-bottom: 12px;
}

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@media only screen and (max-width: 1000px) {
    .seat-choice-wrapper {
        flex-direction: column;
        position: relative;
    }

    #container {
        width: 100%;
        border-bottom: solid 1px #e5e5e5;
    }

    #canvas-container {
        border: none;
    }

    #seat-preselection-column {
        width: 100%;
        padding: 0;
        align-items: center;
        padding-bottom: 8px;
    }

    #seat-preselection {
        margin-bottom: 0;
        margin-top: 8px;
        overflow-y: auto;
        width: 100%;
        align-items: center;
    }

    .preselected-seat {
        width: 95%;
    }

    .preselected-seat.in-cart {
        width: 100%;
    }

    details.selection {
        width: 95%;
    }

    #seating-submit {
        width: 95%;
    }

    #big-wrapper {
        padding: 0;
    }

    #seat-info {
        visibility: hidden;
    }
}
