.page-template-template-cambio #heading{margin-top: 150px;}

.page-template-template-cambio #first{margin-top: 30px;}
.page-template-template-cambio #first .container{display: flex; align-items: flex-start; justify-content: space-between;}

/* left */
.page-template-template-cambio #first .left{width: calc(100% - 500px); position: relative;}
.page-template-template-cambio #first .select-ticket{display: flex; align-items: center; justify-content: flex-start; gap: 5px 20px; margin-top: 20px; flex-wrap: wrap; margin-bottom: 30px;}
.page-template-template-cambio #first .select-ticket .subtitle{width: 100%;}
.page-template-template-cambio #first .select-ticket .single-ticket{display: flex; flex-direction: column; align-items: flex-start; padding: 10px; border-radius: 5px; border: 1px solid #000; cursor: pointer; transition: all 0.3s ease;}
.page-template-template-cambio #first .select-ticket .single-ticket span{font-size: 16px; line-height: 15px; transition: all 0.3s ease;}
.page-template-template-cambio #first .select-ticket .single-ticket:hover, .page-template-template-cambio #first .select-ticket .single-ticket.selected{background-color: var(--main-color);}
.page-template-template-cambio #first .select-ticket .single-ticket:hover span, .page-template-template-cambio #first .select-ticket .single-ticket.selected span{color: var(--main-text-color);}
.page-template-template-cambio #first .select-ticket .single-ticket .data{text-align: center; font-weight: 500; width: 100%;}
.page-template-template-cambio #first .search-ticket{display: flex; flex-direction: column; align-items: flex-start; gap: 10px;}
.page-template-template-cambio #first .search-ticket .title{margin-bottom: 10px;}
.page-template-template-cambio #first .search-ticket .single-input{display: flex; align-items: center; justify-content: flex-start; gap: 10px;}
.page-template-template-cambio #first .search-ticket .single-input label{font-weight: 500;}
.page-template-template-cambio #first .search-ticket .single-input input{height: 35px; border-radius: 4px; width: 200px; border: 1px solid #000; box-shadow: unset; padding: 0 10px;}
.page-template-template-cambio #first .search-ticket .single-input input.error{border: 2px solid #c60d0d;}

/* right */
.page-template-template-cambio #first .right{width: 460px; position: relative; background-color: var(--main-color); border-radius: 4px; padding: 20px; position: relative; display: flex; flex-direction: column; min-height: 60vh;}
.page-template-template-cambio #first .right .title h3{color: var(--main-text-color);}
.page-template-template-cambio #first .right .empty{position: absolute; top: 50%; width: 100%; left: 50%; transform: translate(-50%, -50%); text-align: center;}
.page-template-template-cambio #first .right .empty span{color: var(--main-text-color);}
.page-template-template-cambio #first .right .empty.hide{display: none;}
.page-template-template-cambio #first .right .tickets{display: flex; flex-direction: column; align-items: flex-start; width: 100%; margin-top: 20px; margin-bottom: 50px;}
.page-template-template-cambio #first .right .tickets .single-ticket{display: flex; align-items: center; justify-content: flex-start; gap: 20px; flex-wrap: wrap; width: 100%; position: relative;}
.page-template-template-cambio #first .right .tickets .single-ticket:not(:last-child)::after{content: ''; margin: 10px 0; width: 100%; height: 1px; background-color: #000;}
.page-template-template-cambio #first .right .tickets .single-ticket::before{position: absolute; content: 'Convertibile gratuitamente'; right: -20px; padding: 5px; background-color: #02a102; top: 5px; font-size: 10px; line-height: 12px;  border-top-left-radius: 4px; border-bottom-left-radius: 4px; color: #fff;}
.page-template-template-cambio #first .right .tickets .single-ticket[data-gratis="0"]::before{content: 'Conversione a pagamento'; background-color: rgb(169, 7, 7); color: #fff;}
.page-template-template-cambio #first .right .tickets .single-ticket .remove{width: 40px; position: relative; background-image: var(--remove-image-url); background-size: contain; background-repeat: no-repeat;height: 50px; cursor: pointer;}
.page-template-template-cambio #first .right .tickets .single-ticket .ticket-data{width: calc(100% - 60px); position: relative;}
.page-template-template-cambio #first .right .tickets .single-ticket .ticket-data span{font-size: 14px; line-height: 18px; color: var(--main-text-color);}
.page-template-template-cambio #first .right .go-to-checkout{display: flex; flex-direction: column; align-items: center; gap: 20px; position: relative; margin-top: auto;}
.page-template-template-cambio #first .right .go-to-checkout .total{display: flex; align-items: center; justify-content: flex-start; gap: 5px; font-weight: 600; position: relative;}
.page-template-template-cambio #first .right .go-to-checkout.no-tickets .total{display: none;}
.page-template-template-cambio #first .right .go-to-checkout::after{content: ''; position: absolute; top: -10px; left: 0; width: 100%; height: 1px; color: #000;}
.page-template-template-cambio #first .right .go-to-checkout.no-tickets .btn{pointer-events: none; opacity: 0.4;}


/* error message */
.page-template-template-cambio #error{position: fixed; top: 110px; left: 50%; transform: translateX(-50%); padding: 10px; background-color: rgb(195, 16, 16); display: flex; justify-content: center; align-items: center; max-width: 80vw; transition: opacity 0.5s ease; pointer-events: none; z-index: 99999; opacity: 0; border-radius: 5px;}
.page-template-template-cambio #error .message span{color: #fff; font-size: 21px; line-height: 24px;}
.page-template-template-cambio #error.visible{opacity: 1;}

.page-template-template-cambio .loader{position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background-color: #79797959; display: flex; justify-content: center; align-items: center; display: none; z-index: 999999;}
.page-template-template-cambio .loader::before {
  content:''; display: block; width: 50px; padding: 8px; aspect-ratio: 1; border-radius: 50%; background: #25b09b; animation: l3 1s infinite linear;
  --_m: 
    conic-gradient(#0000 10%,#000),
    linear-gradient(#000 0 0) content-box;
  -webkit-mask: var(--_m);
          mask: var(--_m);
  -webkit-mask-composite: source-out;
          mask-composite: subtract;
}
.page-template-template-cambio .loader.visible{display: flex;}


@keyframes l3 {to{transform: rotate(1turn)}}


/* elementi generici */
.page-template-template-cambio .btn{background-color: var(--secondary-color); color: var(--secondary-text-color); box-shadow: unset; text-transform: uppercase; font-size: 20px; padding: 5px 10px; border: none;}



@media only screen and (max-width: 1150px){
  .page-template-template-cambio #first .left {width: 470px;}
  .page-template-template-cambio #first .right{width: calc(100% - 500px);}
}

@media only screen and (max-width: 900px){
  .page-template-template-cambio #first .container{flex-direction: column; align-items: flex-start; gap: 40px;}
  .page-template-template-cambio #first .container .left{width: 100%;}
  .page-template-template-cambio #first .container .right{width: 100%;}
}

@media only screen and (max-width: 500px){
  .page-template-template-cambio #first .right .tickets .single-ticket .remove{width: 30px; height: 40px;}
  .page-template-template-cambio #first .right .tickets .single-ticket .ticket-data{width: calc(100% - 50px);}
  .page-template-template-cambio #first .right .tickets .single-ticket::before{position: relative; right: unset; left: 0; top:0; border-radius: 4px; order: 3; margin-left: 50px; margin-top: -25px; margin-bottom: -25px;}
  .page-template-template-cambio #first .right .tickets .single-ticket::after{order: 4;}
}