.product div.voucher-template-wrapper,
.product div.ticket-template-wrapper {
    padding: 9px 0 18px 0;
    border-radius: 6px;
}

.product .voucher-template,
.product .ticket-template {
    margin: 0 27px 6px 27px;
}

.product .voucher-template .voucher,
.product .ticket-template .ticket {
    border: 2px solid #ccc;
    cursor: pointer;
}

.product .voucher-template .voucher.is-active,
.product .ticket-template .ticket.is-active {
    border: 2px solid #1a1c27;
}

.product .error-message {
    width: 100%;
    background-color: #e2401c;
    padding: 9px 18px;
    border-radius: 6px;
    font-weight: 700;
    margin: 0 0 16px 0;
    color: #ffffff;
}

.product .error-message span {
    color: #ffffff;
}

/* Icons in checkout and account order pages */
.voucher-order-details,
.ticket-order-details {
    margin-left: 9px;
}

.person-name,
.personal-message,
.family-count{
    display: flex;
    flex-flow: row wrap;
    align-items: center;
    justify-content: flex-start;
}

.person-name {
    border-radius: 6px;
}

.person-name:focus-visible {
    outline: none;
}

.person-name-label,
.personal-message-label,
.export-to-pdf,
.family-count-label{
    display: flex;
    flex-flow: row nowrap;
    align-items: center;
    justify-content: flex-start;
}

.person-name-label,
.personal-message-label,
.family-count-label,
.export-pdf-button {
    font-weight: 600;
}

.person-name-label,
.person-name-icon,
.personal-message-label,
.personal-message-icon,
.family-count-label,
.family-count-icon {
    margin-right: 6px;
}

.person-name-icon,
.personal-message-icon,
.family-count-icon {
    min-width: 16px;
}

.ticket-dates ul {
    list-style: none;
    margin: 20px 0 0 0;
    padding-left: 0;
}

.ticket-dates ul li {
    display: inline-block;
    border: 2px solid;
    background: #fff;
    padding: 15px;
    margin: 10px 10px 0 0;
    text-align: center;
    cursor: pointer;
    width: 116px;
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
}

.ticket-dates ul li.unavailable {
    border-color: #cecece !important;
    background-color: #cecece;
    cursor: default;
}

button.export-pdf-button {
    cursor: pointer;
    margin: 6px 0;
    display: flex;
    flex-flow: row nowrap;
    align-items: center;
    justify-content: center;
    min-width: 162px;
}

.export-to-pdf-icon {
    margin-right: 8px;
    min-width: 22px;
}

@media only screen and (max-width: 400px) {
    .voucher-order-details,
    .ticket-order-details,
    .export-to-pdf {
        margin-left: 0;
    }
}

.clear-row {
    clear: both;
}

.hidden-field {
    display: none !important;
}

.price-selector {
    display: flex;
    flex-flow: column;
    justify-content: space-between;
    width: 100%;
}

.price-selector input {
    padding: 6px;
    border-radius: 6px;
}

.price-selector input:focus-visible {
    outline: none;
}

.price-selector p {
    display: flex;
    flex-flow: row nowrap;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 9px;
}

.price-selector .form-content p input {
    max-width: 80px;
}

.family-tariff-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 6px;
    margin-top: 20px;
    width: 100%;
    max-width: 300px;
}

.group-tariff-price {
    display: flex;
    flex-flow: column;
    gap: 5px;
}

.per-person {
    margin-top: -15px !important;
    font-size: 18px;
}

.ticket.is-active, .voucher.is-active {
    cursor: zoom-in !important;
}

#preview-zoom-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-flow: column;
    width: 100%;
    height: 100%;
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999999;
}

.ticket-zoom-wrapper button {
    position: absolute;
}

.ticket, .voucher {
    background: white;
}

#preview-carousel-close {
    cursor: pointer;
    max-width: 46px !important;
    min-width: 46px !important;
    width: 46px !important;
    margin-left: 420px;
    margin-bottom: 10px;
    transition: 0.25s;
}

.preview-carousel-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    width: 100%;
    max-width: 480px;
}

.preview-carousel-buttons button {
    cursor: pointer;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 100% !important;
    transition: 0.25s;
}

.preview-carousel-slide img {
    background: white;
}


@media only screen and (max-width: 1024px) {
    .price-selector {
        max-width: 100%;
    }
}

@media only screen and (max-width: 600px) {
    #preview-carousel-close {
        max-width: 100% !important;
        min-width: 100% !important;
        width: 100% !important;
        margin-left: 0;
    }

}

@media only screen and (max-width: 350px) {
    .family-tariff-inputs {
        grid-template-columns: auto;
    }
}

/* Custom spinner for checkout */

#custom-checkout-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgb(147 144 144 / 50%);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-spinner {
    border: 6px solid #f3f3f3;
    border-radius: 50%;
    border-top: 6px solid #3498db;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
}


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