#modalTickets .modal {
    background-color: rgba(241, 243, 249, 1);
    width: 1116px;
    max-width: 80vw;
    padding: 28px;
    border-radius: 16px;
    color: rgba(26, 26, 26, 1);
}
#modalTickets .modal[data-step="1"] {
    background-color: white;
}
#modalTickets .modal__title {
    font-size: 32px;
    font-weight: 500;
    line-height: 44px;
    padding-right: 50px;
}
#modalTickets .modal:not([data-step="1"]) .modal__title {
    text-align: center;
    padding-left: 50px;
}

#modalTickets .modal__subtitle {
    display: flex;
    gap: 4px;
    align-items: center;
    color: rgba(29, 36, 51, 0.65);
    margin-top: 14px;
    font-size: 16px;
}
#modalTickets .modal__subtitle svg {
    width: 24px;
}

#modalTickets .modal__body {
    display: flex;
    gap: 24px;
    justify-content: space-between;
    padding: 24px 0 0;
}
#modalTickets .modal[data-step="1"] .modal__body {
    margin: 24px 0;
    padding: 24px 0;
    border-top: solid 1px rgba(225, 230, 239, 1);
    border-bottom: solid 1px rgba(225, 230, 239, 1);
}
#modalTickets .modal:not([data-step="1"]) .modal__body,
#modalTickets .modal:not([data-step="1"]) .modal__footer {
    width: 400px;
    margin: 0 auto;
}
#modalTickets .modal[data-step="3"] .modal__body,
#modalTickets .modal[data-step="4"] .modal__body .wrapper {
    background-color: #fff;
    border-radius: 16px;
    padding: 16px;
}
#modalTickets .modal[data-step="3"] .modal__body,
#modalTickets .modal[data-step="4"] .modal__body {
    display: flex;
    flex-direction: column;
    margin-bottom: 32px;
    margin-top: 32px;
}
#modalTickets .modal[data-step="3"] .modal__body {
    gap: 16px;
}
#modalTickets .modal[data-step="4"] .modal__body {
    gap: 24px;
    padding: 0;
}

#modalTickets .modal__body .ticket__submit-header,
#modalTickets .modal__body .ticket__submit-body p:first-child,
#modalTickets .modal__body .payment-header,
#modalTickets .modal__body .payment-options p.radio-option {
    font-size: 20px;
    color: rgba(26, 26, 26, 1);
    font-weight: 500;
}
#modalTickets .modal__body .ticket__submit-body p:last-child {
    color: rgba(29, 36, 51, 0.65);
    margin-top: 8px;
}
#modalTickets .modal__body .ticket__submit-header {
    display: flex;
    justify-content: space-between;
    padding-bottom: 16px;
    border-bottom: solid 1px rgba(225, 230, 239, 1);
}

#modalTickets .modal__body .h3,
#modalTickets .modal__body .modal__sum .label,
#modalTickets .modal__footer .next-wrapper p {
    font-size: 24px;
}
#modalTickets .modal__body .ticket__submit-header .default_value,
#modalTickets .modal__body .modal__sum .label .default_value {
    color: rgba(29, 36, 51, 0.65);
    position: relative;
}
#modalTickets .modal__body .ticket__submit-header .default_value:after,
#modalTickets .modal__body .modal__sum .label .default_value:after {
    content: "";
    position: absolute;
    width: 100%;
    height: 19px;
    background-image: url('data:image/svg+xml;utf8,<svg width="105" height="19" viewBox="0 0 105 19" fill="none" xmlns="http://www.w3.org/2000/svg"><rect x="-0.205078" y="15.3805" width="105.884" height="3" rx="1.5" transform="rotate(-8.464 -0.205078 15.3805)" fill="%23E02D3C"/></svg>');
    background-repeat: no-repeat;
    left: 0;
    top: 4px;
}

#modalTickets .modal__body .h3 {
    margin-bottom: 12px;
}
#modalTickets .modal__body .payment-header {
    display: flex;
    justify-content: space-between;
}
#modalTickets .modal[data-step="4"] .modal__body .payment-options.wrapper {
    padding: 0;
}
#modalTickets .modal__body .payment-options .radio-option {
    padding: 16px;
    border-bottom: solid 1px rgba(225, 230, 239, 1);
    font-weight: 500;
    font-size: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    align-items: center;
}

#modalTickets .modal__body .radio-option input[type="radio"] {
    display: none;
}

#modalTickets .modal__body .custom-radio {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: solid 6px rgba(244, 244, 244, 1);
    background:rgba(244, 244, 244, 1);
}

#modalTickets .modal__body .radio-option input[type="radio"]:checked + .custom-radio {
    background: transparent;
    border-color: rgba(48, 51, 69, 1);
}
#modalTickets .modal__body .payment-options .radio-option .radio-content {
    display: flex;
    align-items: center;
    gap: 12px;
}
#modalTickets .modal__body .payment-options .radio-option .radio-content svg {
    width: 24px;
    height: 24px;
}

#modalTickets button[data-action="prev"],
#modalTickets .modal__close {
    border: solid 1px rgba(224, 224, 224, 1);
    border-radius: 12px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    top: 28px;
}
#modalTickets .modal__close {
    right: 28px;
}
#modalTickets button[data-action="prev"] {
    position: absolute;
    left: 28px;
}

#modalTickets .modal__body .modal__content {
    color: rgba(29, 36, 51, 0.65);
    line-height: 150%;
    max-width: 400px;
}
#modalTickets .modal__body .modal__sum {
    display: flex;
    align-items: center;
}
#modalTickets .modal__body .modal__sum .label {
    justify-content: center;
    display: flex;
    align-items: center;
    white-space: nowrap;
    width: auto;
    gap: 24px;
}
#modalTickets .modal__body .counter {
    padding: 21px 20px;
    justify-content: space-between;
    display: flex;
}
#modalTickets .modal__body .counter input {
    text-align: center;
    width: 48px;
    font-size: 24px;
    margin: 0 11px;
}
#modalTickets .modal__body .counter button {
    background-color: rgba(49, 133, 171, 1);
    width: 48px;
    height: 48px;
    border-radius: 12px;
    padding: unset;
}
#modalTickets .modal__body .counter button svg {
    width: 16px;
    height: 16px;
}
#modalTickets .modal__footer .next-wrapper {
    margin-left: auto;
    display: flex;
    justify-content: flex-end;
    gap: 24px;
    align-self: center;
}
#modalTickets .modal__footer .next-wrapper p {
    display: flex;
    align-items: center;
}
#modalTickets .btn[data-action="next"] {
    width: 100%;
    height: 56px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 12px;
}
#modalTickets .modal__footer .next-wrapper .btn {
    width: 210px;
}

#modalTickets .modal__body form {
    margin: 0 auto;
    gap: 12px;
    display: flex;
    flex-direction: column;
    width: 100%;
}
#modalTickets .modal__body form input {
    width: 100%;
    height: 56px;
    border: solid 1px rgba(224, 224, 224, 1);
    border-radius: 12px;
    padding: 0 16px;
    font-size: 15px;
}
#modalTickets .modal__body form input::placeholder {
    color: rgba(107, 109, 128, 1);
    opacity: 1;
}
#modalTickets .modal__body form .btn {
    margin-top: 20px;
}
#modalTickets .modal__body form .btn+p {
    padding: 8px 0;
    text-align: center;
    font-size: 14px;
    color: rgba(29, 36, 51, 0.65);
}
#modalTickets .modal__body form .btn+p a {
    text-decoration: underline;
}
#modalTickets .modal[data-step="3"] .modal__footer .btn,
#modalTickets .modal[data-step="4"] .modal__footer .btn {
    justify-content: space-between;
}


@media(max-width:1024px){
    #modalTickets .modal {
        max-width: calc(100vw - 32px);
    }
    #modalTickets .modal[data-step="1"] .modal__body {
        flex-direction: column;
    }
    #modalTickets .modal__body .modal__sum .label {
        justify-content: flex-start;
    }
    #modalTickets .modal__footer .next-wrapper {
        justify-content: center;
    }
    #modalTickets .modal__footer .next-wrapper p {
        display: none;
    }
}

@media(max-width:768px) {
    #modalTickets .modal {
        padding: 16px;
    }
    #modalTickets .modal__title {
        font-size: 22px;
        line-height: 28px;
        padding-right: 36px;
    }
    #modalTickets .modal:not([data-step="1"]) .modal__title {
        padding-left: 36px;
    }
    #modalTickets .modal[data-step="1"] .modal__subtitle svg {
        display: none;
    }
    #modalTickets .modal[data-step="1"] .modal__subtitle {
        flex-direction: column;
        align-items: baseline;
    }
    #modalTickets .modal__body .modal__sum {
        width: 100%;
        justify-content: space-around;
        gap: 12px;
        flex-wrap: wrap;
    }
    #modalTickets .modal__body .modal__sum .label {
        gap: 8px;
    }
    #modalTickets .modal__body .counter button {
        height: 36px;
        width: 36px;
    }
    #modalTickets .modal__body .counter {
        padding: 0;
    }
    #modalTickets .modal__body .counter input {
        width: 36px;
        padding: 0;
        margin: 0 6px;
    }
    #modalTickets button[data-action="prev"],
    #modalTickets .modal__close {
        top: 16px;
        width: 36px;
        height: 36px;
    }
    #modalTickets button[data-action="prev"] {
        left: 16px;
    }
    #modalTickets .modal__close {
        right: 16px;
    }
    #modalTickets .modal__footer .next-wrapper .btn {
        width: 100%;
    }

    #modalTickets .modal:not([data-step="1"]) .modal__body, 
    #modalTickets .modal:not([data-step="1"]) .modal__footer {
        max-width: 100%;
    }
    #modalTickets .modal[data-step="4"] .modal__body .wrapper,
    #modalTickets .modal__body .ticket__submit-body p:first-child {
        font-size: 18px;
    }
    #modalTickets .modal[data-step="4"] .modal__body .wrapper span:last-child{
        white-space: nowrap;
    }
}
@media(max-width:450px) {
    #modalTickets .modal__body .modal__sum {
        flex-direction: column;
    }
}
#modalTickets button:disabled {
    opacity: .7;
}



#modalTickets .modal[data-step="success"] {
    background-color: #fff;
}
#modalTickets .modal[data-step="success"] .modal__body {
    width: 100%;
    margin-top: 0;
}
#modalTickets .modal[data-step="success"] .modal__body .modal__col {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: auto;
}
#modalTickets .modal[data-step="success"] .modal__body .modal__col.ticket-background {
    background-image: url('/wp-content/themes/event/assets/img/tickets-back.png');
    padding: 32px;
    background-size: cover;
    background-repeat: no-repeat;
    text-align: center;
    color: #fff;
    font-size: 32px;
    font-weight: 500;
    align-items: center;
    gap: 32px;
    border-radius: 16px;
}
#modalTickets .modal[data-step="success"] .modal__body .modal__col .h2 {
    padding-top: 24px;
    font-size: 32px;
    margin-bottom: 12px;
}
#modalTickets .modal[data-step="success"] .modal__body .btn-wrapper {
    display: flex;
    gap: 16px;
    margin-top: auto;
}
#modalTickets .modal[data-step="success"] .modal__body .btn-wrapper .btn {
    width: 100%;
    max-width: 245px;
    height: 56px;
    border-radius: 12px;
}
#modalTickets .modal[data-step="success"] .modal__body .btn-wrapper .btn_white {
    border: solid 1px rgba(224, 224, 224, 1);
}

@media(max-width:959.98px){
    #modalTickets .modal[data-step="success"] {
        padding-bottom: 0;
    }
    #modalTickets .modal[data-step="success"] .modal__body .modal__col .h2 {
        padding: 0;
        font-size: 24px;
    }
    #modalTickets .modal[data-step="success"] .modal__body .btn-wrapper {
        margin-top: 12px;
    }
    #modalTickets .modal[data-step="success"] .modal__body .btn-wrapper,
    #modalTickets .modal[data-step="success"] .modal__body {
        flex-direction: column;
    }
    #modalTickets .modal[data-step="success"] .modal__body .btn-wrapper .btn {
        max-width: unset;
    }
    #modalTickets .modal[data-step="success"] .modal__body .ticket-background svg {
        max-width: 80vw;
        height: auto;
    }
    #modalTickets .modal[data-step="success"] .modal__body .ticket-background p {
        font-size: 24px;
    }
    #modalTickets .modal[data-step="success"] .modal__body .ticket-background {
        max-width: calc(100vw - 32px);
        min-width: calc(100vw - 32px);
        width: calc(100vw - 32px);
        margin-left: -16px;
        border-radius: 0;
        padding: 16px 16px 24px !important;
    }
}