a.rbs-button {
    width: max-content;
    height: auto;
    padding: 4px 8px;
    font-size: 16px;
}

/* 
    Clear
*/
*,
*::before,
*::after {
    margin: 0;
    padding: 0;

    box-sizing: border-box;
}
/* 
    Clear End
*/

/* Font Styles Start */
.urbanist-font,
.urbanist-font * {
    font-family: "Urbanist", sans-serif;
    font-optical-sizing: auto;
    font-weight: 500;
    font-style: normal;
}
/* Font Styles End */

/* 
    Main Styles Start
*/

.rbs-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    font-weight: 600;
    font-size: 24px;
    line-height: 100%;
    letter-spacing: 0%;

    height: 64px;

    cursor: pointer;

    outline-width: 0;
    border-width: 0;

    padding-right: 16px;
    padding-left: 16px;
    border-radius: 48px;

    box-shadow: 20px 30px 100px 0px #0000000d;
    box-shadow: 5px 5px 10px 0px #ffffff1a inset;
    box-shadow: -5px -5px 10px 0px #ffffff1a inset;
    backdrop-filter: blur(15px);

    transition-property: filter, transform;
    transition-duration: 0.25s;
    transition-timing-function: ease;
}

.rbs-button svg {
    width: 24px;
    height: 24px;
}

.rbs-button {
    background: #000000;
    color: #ffffff;
}

.rbs-button:hover {
    filter: brightness(0.8);
    transform: scale(1.02);
}

.rbs-button:not(.--rbs-button-secondary) {
    background: #ffffff;
    color: #000000;
}

#rbs-modal-toggle2 {
    position: fixed;
    z-index: 998;

    right: 48px;
    bottom: 48px;

    width: 64px;
    height: 64px;

    text-transform: capitalize;

    display: flex;
    align-items: center;
    justify-content: center;

    outline-width: 0;
    border-width: 0;
    border-radius: 9999px;

    font-weight: 500;
    font-size: 24px;
    line-height: 100%;
    letter-spacing: 0%;

    color: #ffffff;

    cursor: pointer;

    background: #ff0000;

    /* Shadow Styles From Figma */
    box-shadow: 20px 30px 100px 0px #0000000d;
    box-shadow: 5px 5px 10px 0px #ffffff1a inset;
    box-shadow: -5px -5px 10px 0px #ffffff1a inset;
    backdrop-filter: blur(15px);

    transition-property: filter, transform;
    transition-duration: 0.25s;
    transition-timing-function: ease;

    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 20px 30px 100px 0px #0000000d,
                    5px 5px 10px 0px #ffffff1a inset,
                    -5px -5px 10px 0px #ffffff1a inset;
    }
    50% {
        transform: scale(1.05);
        box-shadow: 20px 30px 100px 0px #0000000d,
                    5px 5px 10px 0px #ffffff1a inset,
                    -5px -5px 10px 0px #ffffff1a inset,
                    0 0 20px 0px #ff0000;
    }
    100% {
        transform: scale(1);
        box-shadow: 20px 30px 100px 0px #0000000d,
                    5px 5px 10px 0px #ffffff1a inset,
                    -5px -5px 10px 0px #ffffff1a inset;
    }
}

#rbs-modal-toggle:hover {
    filter: brightness(0.5);
    transform: scale(1.1);
}

#rbs-modal-wrapper {
    position: fixed;
    z-index: 999;

    inset: 0;

    overflow-y: auto;
    overflow-x: hidden;

    padding-top: 16px;
    padding-right: 32px;
    padding-bottom: 16px;
    padding-left: 32px;

    background: #ffe2ed;

    clip-path: circle(0% at calc(100svw - calc(64px + calc(48px / 2))) calc(100svh - calc(64px + calc(48px / 2))));
    transition: clip-path 0.5s linear;
}

#rbs-modal-wrapper.open {
    clip-path: circle(150% at calc(100svw - calc(64px + calc(48px / 2))) calc(100svh - calc(64px + calc(48px / 2))));
}

#rbs-modal-wrapper .rbs-modal-content {
    width: 100%;
    min-height: 100%;

    display: flex;
    flex-direction: column;

    border-radius: 64px;
    padding: 32px;

    background: linear-gradient(
            108.27deg,
            rgba(255, 255, 255, 0.4) 1.59%,
            rgba(255, 255, 255, 0) 98.49%
        ),
        linear-gradient(
            107.98deg,
            rgba(255, 255, 255, 0.2) 1.55%,
            rgba(255, 255, 255, 0.05) 98.44%
        ),
        url("./rbs-modal-background.jpg");
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;

    backdrop-filter: blur(15px);

    box-shadow: 5px 5px 10px 0px #ffffff1a inset;
    box-shadow: -5px -5px 10px 0px #ffffff1a inset;
    box-shadow: 20px 30px 100px 0px #0000000d;
}

#rbs-step-camera {
    max-width: 800px;
    width: 100%;
    margin: 0 auto;

    display: flex;
    flex-direction: column;
    gap: 8px;
    border-radius: 64px;
    padding: 32px;

    flex-grow: 1;
    min-height: 100%;

    background: linear-gradient(
            108.27deg,
            #ffe2ed 1.59%,
            rgba(255, 226, 237, 0) 98.49%
        ),
        linear-gradient(
            107.98deg,
            #ffe2ed 1.55%,
            rgba(255, 226, 237, 0.1) 98.44%
        );

    box-shadow: 0px 90px 90px 0px #0000000d;
    backdrop-filter: blur(30px);
}

.rbs-step-camera-wrapper {
    flex-grow: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.rbs-step-camera-title {
    font-weight: 500;
    font-size: 24px;
    line-height: 100%;
    letter-spacing: 0%;
    text-align: center;
}

#rbs-video {
    flex-grow: 1;

    width: 100%;
    height: 50svh;
    border-radius: 32px;

    background: linear-gradient(
            108.27deg,
            #ffe4ef 1.59%,
            rgba(255, 226, 237, 0) 98.49%
        ),
        linear-gradient(
            107.98deg,
            #ffedf4 1.55%,
            rgba(255, 226, 237, 0.1) 98.44%
        );

    box-shadow: 0px 90px 90px 0px #0000000d;
    backdrop-filter: blur(30px);

    object-fit: cover;
}

.rbs-step-camera-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

#rbs-step-confirm {
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    height: 50svh;

    display: flex;
    flex-direction: column;
    gap: 8px;
    border-radius: 64px;
    padding: 32px;

    flex-grow: 1;
    min-height: 100%;

    background: linear-gradient(
            108.27deg,
            #ffe2ed 1.59%,
            rgba(255, 226, 237, 0) 98.49%
        ),
        linear-gradient(
            107.98deg,
            #ffe2ed 1.55%,
            rgba(255, 226, 237, 0.1) 98.44%
        );

    box-shadow: 0px 90px 90px 0px #0000000d;
    backdrop-filter: blur(30px);
}

.rbs-step-confirm-wrapper {
    flex-grow: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.rbs-step-confirm-title {
    font-weight: 500;
    font-size: 24px;
    line-height: 100%;
    letter-spacing: 0%;
    text-align: center;
}

#rbs-canvas-confirm,
#rbs-canvas-loading,
#rbs-canvas-result {
    flex-grow: 1;

    width: 100%;
    height: 50svh;
    border-radius: 32px;

    background: linear-gradient(
            108.27deg,
            #ffe4ef 1.59%,
            rgba(255, 226, 237, 0) 98.49%
        ),
        linear-gradient(
            107.98deg,
            #ffedf4 1.55%,
            rgba(255, 226, 237, 0.1) 98.44%
        );

    box-shadow: 0px 90px 90px 0px #0000000d;
    backdrop-filter: blur(30px);

    object-fit: cover;
}

.rbs-step-confirm-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

#rbs-step-loading {
    max-width: 800px;
    width: 100%;
    margin: 0 auto;

    display: flex;
    flex-direction: column;
    gap: 8px;
    border-radius: 64px;
    padding: 32px;

    flex-grow: 1;
    min-height: 100%;

    background: linear-gradient(
            108.27deg,
            #ffe2ed 1.59%,
            rgba(255, 226, 237, 0) 98.49%
        ),
        linear-gradient(
            107.98deg,
            #ffe2ed 1.55%,
            rgba(255, 226, 237, 0.1) 98.44%
        );

    box-shadow: 0px 90px 90px 0px #0000000d;
    backdrop-filter: blur(30px);
}

.rbs-step-loading-wrapper {
    flex-grow: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.rbs-step-loading-title {
    font-weight: 500;
    font-size: 24px;
    line-height: 100%;
    letter-spacing: 0%;
    text-align: center;
}

#rbs-step-result {
    max-width: 1040px;
    width: 100%;
    margin: 0 auto;

    display: flex;
    flex-direction: column;
    gap: 8px;
    border-radius: 64px;
    padding: 32px;

    flex-grow: 1;
    min-height: 100%;

    background: linear-gradient(
            108.27deg,
            #ffe2ed 1.59%,
            rgba(255, 226, 237, 0) 98.49%
        ),
        linear-gradient(
            107.98deg,
            #ffe2ed 1.55%,
            rgba(255, 226, 237, 0.1) 98.44%
        );

    box-shadow: 0px 90px 90px 0px #0000000d;
    backdrop-filter: blur(30px);
}

.rbs-step-result-wrapper {
    flex-grow: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.rbs-step-result-top {
    width: 100%;
    flex-grow: 1;
    display: grid;
    grid-template-columns: 456px 1fr;
    gap: 16px;

    /* viewport height - modal padding - wrapper padding - card padding */
    height: calc(80svh - calc(16px * 2) - calc(32px * 2) - calc(32px * 2));
}

.rbs-step-result-left {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rbs-step-result-right {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px 0;
}

.rbs-step-result-right-title {
    font-weight: 500;
    font-size: 24px;
    line-height: 100%;
    letter-spacing: 0%;
    text-align: center;
    color: #000000;
}

#rbs-result-box {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.rbs-result-item {
    display: flex;
    gap: 10px;
    align-items: center;

    font-weight: 500;
    font-size: 24px;
    line-height: 100%;
    letter-spacing: 0%;
    color: #000000;
    text-transform: capitalize;
}

.rbs-result-item svg {
    width: 24px;
    height: 24px;
}

.rbs-result-item span:nth-child(3) {
    margin-left: auto;
}

.rbs-step-result-cards-title {
    font-weight: 500;
    font-size: 24px;
    line-height: 100%;
    letter-spacing: 0%;

    color: #000000;

    text-align: start;
    align-self: start;
}

.rbs-step-result-cards-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.rbs-step-result-card-item {
    display: flex;
    gap: 16px;
}

.rbs-step-result-card-item-image {
    width: 338px;
    height: 352px;
    border-radius: 32px;
    padding: 16px;

    background: #ffffff;

    flex-shrink: 0;
}

.rbs-step-result-card-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.rbs-step-result-card-item-description {
    display: flex;
    flex-direction: column;
    width: 100%;
    font-weight: 500;
    font-size: 24px;
    line-height: 100%;
    letter-spacing: 0%;
}

.rbs-step-result-card-item-description p:nth-child(1) {
    color: #00000080;
}

.rbs-step-result-card-item-description p:nth-child(2) {
    text-decoration: underline;
    text-decoration-style: solid;
    text-underline-offset: 0%;
    text-decoration-thickness: 0%;
    text-decoration-skip-ink: auto;
}

.rbs-step-result-card-item-description p:nth-child(3) {
    padding-top: 8px;
    display: flex;
    gap: 4px;
}

.rbs-step-result-card-item-description p:nth-child(3) span {
    font-size: 20px;
    color: #00000080;
    padding-top: 4px;
}

@media screen and (max-width: 1024px) {
    #rbs-modal-toggle {
        right: 8px;
        bottom: 8px;
    }

    #rbs-modal-wrapper {
        clip-path: circle(0% at top);
    }

    #rbs-modal-wrapper.open {
        clip-path: circle(150% at top);
    }

    .rbs-button {
        height: 48px;
        padding-right: 16px;
        padding-left: 16px;
        gap: 8px;
        border-radius: 32px;
        font-size: 16px;
    }

    #rbs-modal-wrapper {
        padding: 8px;
    }

    #rbs-modal-wrapper .rbs-modal-content {
        border-radius: 0px;
        padding: 0;

        background: none;
    }

    #rbs-step-camera,
    #rbs-step-confirm,
    #rbs-step-loading,
    #rbs-step-result {
        max-width: 100%;
        padding: 8px;

        background: #000000cc;

        border-radius: 32px;
    }

    .rbs-step-camera-title,
    .rbs-step-confirm-title,
    .rbs-step-loading-title {
        color: #ffffff;
        font-size: 14px;

        padding-right: 8px;
        padding-left: 8px;

        height: 32px;

        display: flex;
        align-items: center;
    }

    .rbs-step-camera-actions,
    .rbs-step-confirm-actions {
        grid-template-columns: 1fr;
    }

    .rbs-step-result-top {
        height: auto;
        grid-template-columns: auto;
    }

    #rbs-step-result {
        background: #000000;
    }

    #rbs-canvas-result {
        height: 392px;
    }

    .rbs-step-result-right {
        padding: 0;
    }

    .rbs-step-result-right-title {
        font-size: 14px;
        color: #ffffff;
    }

    .rbs-result-item {
        font-size: 14px;
        color: #ffffff;
    }

    .rbs-step-result-cards-title {
        font-size: 14px;
        text-align: center;
        align-self: center;
        color: #ffffff;
    }

    .rbs-step-result-card-item-description {
        font-weight: 400;
        font-size: 12px;
        line-height: 100%;
        letter-spacing: 0%;
    }

    .rbs-step-result-card-item-image {
        width: 169px;
        height: 169px;
    }

    .rbs-step-result-card-item-description p:nth-child(1) {
        color: #ffffff80;
    }

    .rbs-step-result-card-item-description p:nth-child(2) {
        color: #ffffff;
    }

    .rbs-step-result-card-item-description p:nth-child(3) {
        padding-top: 8px;
        color: #ffffff;
    }

    .rbs-step-result-card-item-description p:nth-child(3) span {
        font-weight: 400;
        font-size: 10px;

        color: #ffffff80;
    }
}

/* 
    Main Styles End
*/
