.reservation-container {
    margin-bottom: 3em;
}

/* Tabella prenotazione */
.cart-items {
    display: grid;
    margin-bottom: 1em;
    grid-template-columns: 58px 1fr auto auto auto auto;
    grid-auto-rows: auto;
    align-content: flex-start;
    align-items: center;
    row-gap: 0.5em;
    column-gap: 1.5em;
}

.cart-items.no-icon {
    grid-template-columns: 0px 1fr auto auto auto;
}

.cart-items > * {
    display: contents;
}

.cart-items > .header {
    display: block;
    grid-column: 1 / -1;
}

.cart-items .tariff .presale {
    display: contents;
}

.cart-items .tariff .presale .title {
    font-size: 95%;
}

.cart-items .tariff .presale .title::before {
    content: "- ";
}

.cart-items .event {
    text-decoration: underline;
    font-style: italic;
}

.cart-items .event .title {
    grid-column: 2 / span 1;
    margin-bottom: 2px;
}

.cart-items.no-icon .event .title {
    grid-column: 1 / span 2;
}

.cart-items .date {
    grid-column: 3 / -2;
    text-align: right;
    font-weight: bold;
    text-transform: capitalize;
}

.cart-items .pass .title {
    grid-column: 2 / -2;
    font-weight: bold;
}

.cart-items .event > * {
    align-self: start;
    margin-top: 16px;
}

.cart-items .cart_icon {
    position: relative;
    grid-column-start: 1;
    align-self: start;
}

.cart-items .cart_icon img {
    position: absolute;
    top: 4px;
}

.cart-items .tariff .title {
    grid-column: 2 / span 1;
}

.cart-items .tariff.no-price .title {
    grid-column: 2 / span 3;
    padding-left: 20px;
}

.cart-items .total {
    font-weight: bold;
}

.cart-items .tariff.with-presale .number-spinner,
.cart-items .tariff.with-presale .delete {
    grid-row-end: span 2;
}

.cart-items .delete {
    line-height: 2;
    font-size: medium;
    padding: 0.1em 0.4em;
}

.cart-items .footer {
    font-weight: bolder;
    font-size: 110%;
}

.cart-items .footer #cart-approval-legend {
    grid-column: 2 / -1;
    font-size: smaller;
}

.cart-items .footer .total {
    margin-top: 20px;
}

.cart-items .footer .text {
    grid-column: 1 / span 3;
    text-align: right;
}

.cart-placeholder,
.cart-items.expands {
    min-height: 50vh;
}

.shortcode.cart-items {
    font-size: 150%;
    line-height: 1.4;
}

.cart-items.bordered {
    border: solid 1px #ccc;
    padding: 2px 10px 6px 10px;
}

.cart-items a {
    color: #222;
}

@media screen and (min-width: 768px) {
    .cart-items .amount,
    .cart-items .total {
        text-align: right;
    }
}

@media screen and (max-width: 413px) {
    .cart-items .event .title {
        grid-column: 2 / -1;
        margin-bottom: 2px;
    }

    .cart-items.no-icon .event .title {
        grid-column: 1 / -1;
    }

    .cart-items .date {
        grid-column: 2 / -2;
        text-align: left;
        margin-top: 0;
    }

    .cart-items .tariff .title {
        grid-column: 2 / -1;
    }

    .cart-items .tariff.no-price .title {
        grid-column: 2 / -3;
    }

    .cart-items .tariff .amount {
        grid-column: 2 / span 2;
        padding-left: 20px;
    }

    .cart-items .tariff.with-presale .number-spinner,
    .cart-items .tariff.with-presale .delete {
        grid-row-end: span 1;
    }
}

@media screen and (max-width: 767px) {
    .shortcode.cart-items {
        font-size: 120%;
    }

    .cart-items .tariff.no-price .title {
        display: none;
    }

    .cart-items .tariff .title {
        grid-column: 2 / -1;
        font-size: 1.1em;
    }

    .cart-items .tariff .amount {
        display: none;
    }

    .cart-items .tariff .total {
        grid-column: 2 / -1;
    }

    .cart-items .tariff .number-spinner {
        grid-column: 2 / -2;
    }

    .cart-items .footer .text {
        display: none;
    }

    .cart-items .footer #cart-total-spinner,
    .cart-items .footer .amount {
        grid-column: 2 / -1;
    }

    .cart-items .tariff .presale {
        display: none;
    }

    .cart-items [data-title]::before {
        content: attr(data-title) ":  ";
        white-space: pre-wrap;
        font-weight: bold;
    }
    .cart-items [data-presale-title][data-presale-amount]::after {
        content: "\00000a"attr(data-presale-title) ":  " attr(data-presale-amount);
        white-space: pre-wrap;
        font-weight: bold;
        font-size: 90%;
    }

    .cart-items .delete {
        padding-right: 20px;
    }
}

@media screen and (max-width: 413px) {
    .cart-items {
        column-gap: 0.5em;
    }
    .cart-items .cart_icon {
        grid-row-end: span 2;
    }
    .cart-items .cart_icon img {
        position: relative;
    }

    .cart-items .pass .title {
        grid-column: 1 / -2;
    }

    .cart-items .tariff .title {
        grid-column: 1 / -1;
    }

    .cart-items .tariff .amount {
        display: none;
    }

    .cart-items .tariff .total {
        grid-column: 1 / -1;
    }

    .cart-items .tariff .number-spinner {
        grid-column: 1 / -2;
    }

    .cart-items .footer #cart-total-spinner,
    .cart-items .footer .amount {
        grid-column: 1 / -1;
    }

    .cart-items .footer #cart-approval-legend {
        grid-column: 1 / -1;
    }
}

/* Elenco bottoni download */

.ticket-download-buttons {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-items: end;
    gap: 0.5em;
    flex-wrap: wrap;
    grid-column: 2 / -1;
}

.ticket-download-buttons .seal-data {
    flex-grow: 4;
    display: flex;
    flex-direction: column;
}

.ticket-download-buttons .seal-code {
    font-weight: bold;
}
.ticket-download-buttons a.svg-button {
    flex-shrink: 0;
}

.ticket-download-buttons .cta-button {
    font-size: large;
}

@media (max-width: 991px) {
    .ticket-download-buttons {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .ticket-download-buttons {
        align-items: center;
    }

    .ticket-download-buttons .cta-button {
        width: auto;
    }
}

@media (max-width: 413px) {
    .ticket-download-buttons {
        grid-column-start: 1;
    }
}

a.svg-button:after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

a.svg-button {
    position: relative;
    display: inline-block;
}

.googlewallet-logo {
    margin: -1.5%;
    height: 48px;
    min-height: 4rem;
    margin-bottom: -4%;
}

.applewallet-logo {
    height: 48px;
    min-height: 4rem;
    margin-bottom: -4%;
}
