.tu-ticket-guide-host {
    position: relative;
}

.tu-ticket-guide-preview-button {
    position: absolute;
    top: 8px;
    right: 0;
    z-index: 2;
    padding: 8px 12px;
    color: var(--tu-ticket-primary, var(--colorbackhmenu1, #966EA2F2));
    background: color-mix(in srgb, var(--tu-ticket-primary, #966EA2F2) 10%, #fff);
    border: 1px solid color-mix(in srgb, var(--tu-ticket-primary, #966EA2F2) 28%, #fff);
    border-radius: 7px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: transform .16s ease, box-shadow .16s ease, color .16s ease, background .16s ease;
}

.tu-ticket-guide-preview-button:hover {
    color: #fff;
    background: var(--tu-ticket-primary, var(--colorbackhmenu1, #966EA2F2));
    transform: translateY(-2px);
    box-shadow: 0 5px 12px color-mix(in srgb, var(--tu-ticket-primary, #966EA2F2) 28%, transparent);
}

.tu-ticket-guide-preview-button--hidden {
    visibility: hidden;
    pointer-events: none;
}

.tu-ticket-guide-preview-panel {
    position: fixed;
    z-index: 10000;
    top: 0;
    right: 0;
    display: flex;
    width: min(430px, 40vw);
    height: 100vh;
    flex-direction: column;
    background: #fff;
    box-shadow: -8px 0 24px rgba(16, 24, 40, .18);
    transform: translateX(100%);
    transition: transform .25s ease;
}

.tu-ticket-guide-preview-header {
    display: flex;
    min-height: 54px;
    padding: 0 16px;
    align-items: center;
    justify-content: space-between;
    color: var(--colorbackhmenu1, #966EA2F2);
    border-bottom: 1px solid #eaecf0;
    font-size: 13px;
    font-weight: 700;
}

.tu-ticket-guide-preview-close {
    padding: 7px;
    color: #667085;
    background: transparent;
    border: 0;
    cursor: pointer;
}

.tu-ticket-guide-preview-panel iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

body.tu-ticket-guide-open .tu-ticket-guide-preview-panel {
    transform: translateX(0);
}

body.tu-ticket-guide-open .tu-ticket-guide-preview-button {
    visibility: hidden;
    pointer-events: none;
}

body.tu-ticket-guide-open .ticketpublicarea,
body.tu-ticket-guide-open .ticketpublicarealist,
body.tu-ticket-guide-open .tu-public-ticket-home {
    width: calc(100% - min(430px, 40vw) - 48px);
    margin-right: calc(min(430px, 40vw) + 24px);
    margin-left: 24px;
    transition: margin .25s ease, width .25s ease;
}

body.tu-ticket-guide-open .publicnewticketform2 > header,
body.tu-ticket-guide-open .publicnewticketform2 > footer {
    width: calc(100% - min(430px, 40vw) - 48px) !important;
    margin-right: calc(min(430px, 40vw) + 24px) !important;
    margin-left: 24px !important;
    transition: margin .25s ease, width .25s ease;
}

body.tu-ticket-guide-open.publicnewticketform footer,
body.tu-ticket-guide-open .publicnewticketform footer {
    width: calc(100% - min(430px, 40vw) - 48px) !important;
    margin-right: calc(min(430px, 40vw) + 24px) !important;
    margin-left: 24px !important;
    transition: margin .25s ease, width .25s ease;
}

body.tu-ticket-guide-open .tu-public-ticket-home__guide,
body.tu-ticket-guide-open .tu-public-ticket-home__brand {
    width: calc(100% - min(430px, 40vw) - 48px);
    margin-right: calc(min(430px, 40vw) + 24px);
    margin-left: 24px;
    transition: margin .25s ease, width .25s ease;
}

body.tu-ticket-guide-open .tu-public-ticket-home__guide {
    justify-content: center;
}

.tu-public-ticket-home .tu-ticket-guide-preview-button {
    top: 18px;
    right: 24px;
}

@media (max-width: 800px) {
    .tu-ticket-guide-preview-button {
        position: static;
        display: block;
        margin: 12px 0 0 auto;
    }

    .tu-public-ticket-home .tu-ticket-guide-preview-button {
        position: static;
        margin: 10px 0 0 auto;
    }

    .tu-ticket-guide-preview-panel {
        width: min(100%, 430px);
    }

    body.tu-ticket-guide-open .ticketpublicarea,
    body.tu-ticket-guide-open .ticketpublicarealist,
    body.tu-ticket-guide-open .tu-public-ticket-home {
        width: calc(100% - 16px);
        margin: 16px auto;
    }

    body.tu-ticket-guide-open .tu-public-ticket-home__guide,
    body.tu-ticket-guide-open .tu-public-ticket-home__brand {
        width: calc(100% - 16px);
        margin: 0 auto 14px;
    }

    body.tu-ticket-guide-open .publicnewticketform2 > header,
    body.tu-ticket-guide-open .publicnewticketform2 > footer {
        width: 100% !important;
        margin: 0 !important;
    }

    body.tu-ticket-guide-open.publicnewticketform footer,
    body.tu-ticket-guide-open .publicnewticketform footer {
        width: 100% !important;
        margin: 0 !important;
    }
}
