.widget {
    width: 100%;
    min-height: 370px;
    height: 40svh;
    max-height: 550px;
    perspective: 1000px;
}

.widget-bottom {
    display: flex;
    /* padding-top: 10px; */
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    margin-top: -1px;
    width: 100%;
    height: calc(70px + 2 * var(--padding-base)) !important;
    border-radius: var(--border-radius-medium);
}

.widget-inner.flipped .widget-bottom.no-swipe,
.widget-inner.flipped .widget-bottom.can-swipe {
    transition:
        width 0.3s ease,
        background-color 0.4s ease,
        color 0.4s ease,
        opacity 0.4s ease,
        border-color 0.4s ease;
}

.widget-inner.flipped .widget-bottom::before {
    content: "";
}

.widget-inner.flipped .widget-bottom.no-swipe::before {
    content: "";
    transform: translateX(100%);
}

.widget-inner .widget-bottom.can-swipe::before {
    content: "";
    transform: translateX(100%);
}

.widget-inner.flipped .widget-bottom.can-swipe::before {
    position: absolute;
    content: "";
    top: 0;
    left: -10%;
    width: 120%;
    height: 100%;
    background: var(--cornflower-blue);
    transform: skew(30deg);
    z-index: 1;

    transition: transform 0.6s cubic-bezier(0.3, 1, 0.8, 1);
}

.widget-bottom .swipe-button {
    /* padding: 0 var(--padding-extra-small); */
    position: absolute;
    width: 100%;
    height: inherit;
    display: flex;
    align-items: end;
}

.widget-bottom .swipe-button .button {
    position: relative;
    /* background-color: var(--cornflower-blue); */
    /* background-color: var(--dark-blue); */
    color: var(--white);
    font-size: 14px;
    display: none;
    align-items: center;
    text-align: center;
    justify-content: center;
    width: 100%;
    /* height: calc(100% - calc(var(--padding-base) / 2)); */
    height: 100%;
    padding: var(--padding-base);
    z-index: 11;
}

.widget-bottom .swipe-button .button#bookSwipeBottom {
    background-color: var(--cornflower-blue);
    /* height: 100%; */
    display: flex;
}

.widget-inner {
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.widget-inner.flipped {
    transform: rotateY(180deg);
}

.widget-inner.flipped .widget-bottom {
    background-color: var(--white) !important;
}

.widget-inner.flipped .widget-bottom {
    padding: var(--padding-base);
}

.widget-inner.flipped .widget-front {
    transform: rotateY(180deg);
}

.widget-inner.flipped .widget-back {
    transform: rotateY(180deg);
    backface-visibility: visible;
}

.widget-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    padding: var(--padding-base);
    color: var(--dark-blue);
    width: 100%;
}

.widget-container.classic {
    background-color: var(--white);
    height: 370px;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.widget-container.ticket {
    height: 70%;
    border-radius: var(--border-radius-medium);
}

.widget-container.ticket .widget-image {
    position: relative;
    width: 100%;
    height: 100%;
}

.widget-container.ticket .widget-image .image {
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: var(--border-radius-medium);
}

.widget-container.ticket .widget-image .image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.widget-container.ticket .widget-image .title.onder {
    position: absolute;
    top: 15%;
    left: var(--padding-lg);
    color: var(--white);
    font-size: 12px;
}

.widget-container.ticket .widget-image .button {
    position: absolute;
    bottom: var(--padding-base);
    right: 5px;
    color: var(--dark-blue);
    background-color: var(--orange);
    font-size: 20px;
    padding: var(--padding-base) var(--padding-xl);
}

.widget-content .image {
    position: relative;
    display: flex;
    width: 100%;
    height: 70px;

    justify-content: center;
    margin-top: auto;
}

.widget-content .image img {
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.widget-content .info {
    width: 100%;
    color: var(--dark-blue);
    background: transparent;
    margin-bottom: auto;
}

.widget-content .info .row {
    display: flex;
    align-items: flex-end;
    margin-bottom: 12px;
}

.widget-content .info .row .label {
    color: var(--dark-blue);
    font-size: 12px;
}

.widget-content .info .row .dots {
    flex: 1;
    border-bottom: 2px dotted var(--dark-blue);
    margin: 0 8px 4px;
}

.widget-content .info .row .value {
    display: flex;
    align-items: center;
    white-space: nowrap;
    font-size: 24px;
}

.widget-content .info .row .value .icon {
    width: 25px;
    height: 25px;
    margin-right: 4px;
}

.widget-container.classic .form {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    padding: inherit;
}

.widget-container.ticket .form {
    z-index: 11;
    position: relative;
    width: 100%;
    height: 100%;
    display: none;
    flex-direction: column;
}

.widget-container.classic .form.back .widget-info {
    position: relative;
}

.widget-container.classic .form.back,
.widget-container.classic .form.front,
.widget-container.classic .form.back .widget-info,
.widget-container.classic .form.back .quiz-questions {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
}



.widget-title {
    font-size: 16px;
    margin-left: var(--padding-sm);
}

.widget-title.min-font-size {
    font-size: 13px !important;
}

.widget-title.center {
    text-align: center;
}

.widget-header {
    display: flex;
    justify-content: space-between;
    margin: var(--padding-sm);
    position: relative;
    flex-direction: column;
    gap: var(--padding-sm);
}

.widget-content {
    position: absolute;
    left: 0;
    top: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    width: 100%;
    height: 100%;
    padding: inherit;
    padding-top: 66px;
    box-sizing: border-box;
}

.widget-content.ticket {
    justify-content: flex-end;
    /* padding-bottom: var(--padding-base); */
    height: 100%;
}

.widget-content.classic {}

.widget-info:has(.widget-footer) .widget-content {
    padding-bottom: 70px;
}

.widget-footer {
    /* margin-top: auto; */
    /* position: absolute;
    bottom: 0;
    right: 0;
    left: 0; */
    position: absolute;
    width: 100%;
    display: flex;
    justify-content: space-between;
    bottom: 0;
    padding-right: inherit;
    /* margin-top: var(--padding-base); */
    gap: 5px;
}

.widget-footer .button {
    width: 100%;
    display: flex;
    height: 70px;
    font-size: 12px;
    justify-content: center;
    text-align: center;
    align-items: center;
    background-color: var(--dark-blue);
    color: var(--white);
    transition: all 0.3s ease;
}

.widget-footer .button span {
    z-index: 50;
    font-size: 12px;
    color: var(--white);
}

.widget-footer .button.inactive {
    background-color: var(--white);
    color: var(--dark-blue);
    border: 1px solid var(--dark-blue);
    opacity: 0.4;
    pointer-events: none;
}

.widget-footer .button.inactive span {
    color: var(--dark-blue);
}

.widget-footer .button.inactive::before {
    transform: translateX(100%);
}

.widget-footer .button {
    position: relative;
    overflow: hidden;
    transition:
        width 0.3s ease,
        background-color 0.4s ease,
        color 0.4s ease,
        opacity 0.4s ease,
        border-color 0.4s ease;
}

.widget-footer .button::before {
    position: absolute;
    content: "";
    top: 0;
    left: -10%;
    width: 120%;
    height: 100%;
    background: var(--dark-blue);
    transform: skew(30deg);
    z-index: 1;

    transition: transform 0.4s cubic-bezier(0.3, 1, 0.8, 1);
}

.widget-footer .back-button {
    width: 120px;
    height: 70px;

    -webkit-mask-image: var(--mask-url), linear-gradient(black, black);
    mask-image: var(--mask-url), linear-gradient(black, black);

    -webkit-mask-repeat: no-repeat, no-repeat;
    mask-repeat: no-repeat, no-repeat;

    -webkit-mask-position: center, center;
    mask-position: center, center;

    -webkit-mask-size: 25%, 100%;
    mask-size: 25%, 100%;

    -webkit-mask-composite: xor;
    mask-composite: exclude;
    background-color: var(--dark-blue);
    transition: all 0.3s ease, opacity 0.3s ease;
}

.widget-content .text {
    color: var(--dark-blue);
    font-size: 22px;
    width: 100%;
    margin: auto 0;
    padding-left: var(--padding-base);
}

.widget-content .text.onder {
    font-size: 10px;
    text-align: center;
}

.widget-content .text.onder.font-lg {
    font-size: 18px;
}

.widget-content .monolog {
    color: var(--dark-blue);
    font-size: 22px;
    width: 100%;
    text-align: center;
}

.widget-content .title {
    font-size: 13px;
}

.widget-content .text.center,
.widget-content .title.center {
    color: var(--dark-blue);
    text-align: center;
}

.widget-container.classic.flipped {
    transform: rotateY(180deg);
}

.widget-container.classic.flipped .form.front {
    transform: rotateY(180deg);
    backface-visibility: hidden;
}

.widget-container.classic.flipped .form.back {
    transform: rotateY(180deg);
    backface-visibility: visible;
}

.widget-container.classic .form.back {
    transform: rotateY(180deg);
    backface-visibility: hidden;
}

.form .side {
    position: relative;
    height: 100%;
    box-sizing: border-box;
}

.widget-progress-bar {
    width: auto;
    height: 11px;
    border-radius: 999px;
    background-color: color-mix(in srgb, var(--orange) 20%, transparent);
}

.widget-progress {
    height: 100%;
    width: 0;
    border-radius: 999px;
    background-color: var(--orange);
    transition: width 0.3s ease;
}

.custom-svh {
    height: 80svh;
}

@media (max-height: 700px) {
    .custom-svh {
        height: 85svh;
    }
}

@media (max-height: 600px) {
    .custom-svh {
        height: 90svh;
    }
}

@media (max-height: 520px) {
    .custom-svh {
        height: 90svh;
    }
}