.wos-modal-overlay {
    background-color: rgba(0, 0, 0, 0);
    z-index: 999999999999999998;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 1;
    -webkit-transition: background-color 0.4s ease-out;
    -moz-transition: background-color 0.4s ease-out;
    -o-transition: background-color 0.4s ease-out;
    transition: background-color 0.4s ease-out;
}

.wos-modal-open .wos-modal-overlay {
    background-color: rgba(0, 0, 0, .4);
}

.wos-modal-closed {
    visibility: hidden;
}

.wos-modal-wrapper {
    background-color: white;
    z-index: 999999999999999999;
    position: fixed;
    max-width: 600px;
    width: 100%;
    height: 100%;
    left: auto;
    transform: none;
    bottom: 0;
}

.wos-modal-header .close-modal,
button.back-button {
    background: none;
    border: 0;
    padding: 0;
    width: 56px;
    height: 56px;
    cursor: pointer;
}

.wos-modal-header .close-modal {
    display: flex;
    align-items: center;
    place-content: center;
}

.close-modal object.svg.xmark {
    padding: 0;
    height: 22px;
    pointer-events: none;
}

.wos-modal-header {
    display: flex;
    justify-content: space-between;
    flex-direction: row-reverse;
    height: 56px;
}

#wos-modal .subscribe-lightbox-panel-content-left {
    width: 100% !important;
}

.modal2 {
    height: 100vh;
}

.modal3 {
    height: 100vh;
}

.subscribe-lightbox-panel-content-left {
    height: 100vh;
}

button.back-button {
    background-image: url(https://content.thewosgroup.com/icons/svgs/arrow-left.svg);
    background-repeat: no-repeat;
    background-size: 17.8px;
    align-self: center;
    background-position: center;
    position: relative;
}

@media (min-width: 768px) {
    .wos-modal-wrapper {
        right: -100%;
        transition: right ease 500ms 100ms;
        -webkit-transition: right ease 500ms 100ms;
    }

    .wos-modal-open .wos-modal-wrapper {
        right: 0;
    }

    .wos-modal-content-wrapper {
        overflow: auto;
    }

    .wos-modal-closed .wos-modal-wrapper {
        animation: modalDesktopSlideRight ease 500ms 100ms;
    }
}

@media (max-width: 762px) {
    .wos-modal-open .wos-modal-wrapper {
        animation: modalMobileSlideUp cubic-bezier(0, 0, 0.1, 1) 500ms;
        max-height: calc(100% - 56px);
        max-width: 100%;
    }

    .wos-modal-wrapper {
        animation: modalMobileSlideDown cubic-bezier(0, 0, 0.1, 1) 500ms;
    }

    .wos-modal-closed .wos-modal-wrapper {
        transform: translateY(100%);
    }

    .wos-modal-wrapper {
        transition: height 0.3s ease;
    }

    .modal2 {
        height: 400px;
    }

    .modal3 {
        height: 800px;
    }
}

@keyframes modalMobileSlideUp {
    from {
        transform: translateY(100%)
    }

    to {
        transform: translateY(0)
    }
}

@keyframes modalMobileSlideDown {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(100%)
    }
}

@keyframes modalDesktopSlideRight {
    from {
        right: 0;
    }

    to {
        right: -100%;
    }
}

@media (max-width: 762px) {
    .modal-fade {
        transition: bottom 0.3s ease-in-out;
    }

    .modal-fade::after {
        background: linear-gradient(0deg, #FFF 22.40%, rgba(217, 217, 217, 0.00) 100%);
        position: absolute;
        content: '';
        bottom: 0;
        left: 0;
        width: 100%;
        height: 87px;
        transition: height 0.3s ease-in-out;
    }
}

.wos-modal-body {
    height: 100%;
}

.wos-modal-content {
    height: 100%;
}

.wos-modal-container {
    overflow: auto;
    height: 100%;
}

@media (max-width: 762px) {
    .wos-modal-content-wrapper {
        height: 100% !important;
    }
}

/* RING SIZE GUIDE */

div#ring-size-trigger {
    cursor: pointer;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 22px;
    text-decoration-line: underline;
    float: right;
    display: inline-block;
    width: 85px;
    margin-bottom: 10px;
}

.ringSizeTable .container {
    width: 600px;
}

.guide-open {
    overflow: hidden;
}

.ringSizeWrapper {
    height: 100vh;
    background-color: white;
    z-index: 999999999999999999;
    position: fixed;
    max-width: 600px;
    width: 100%;
    left: auto;
    transform: none;
    bottom: 0;
    -webkit-transition: right ease 500ms 100ms;
    overflow: auto;
    text-align: -webkit-center;
}


.guide-closed {
    visibility: hidden;
}

table#ring-size-table tbody td,
table#ring-size-table tbody th {
    /** padding: 6px 5px; **/
    padding: 8px;
}

.ring-guide-overlay {
    background-color: rgba(0, 0, 0, 0);
    z-index: 999999999999999998;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 1;
    -webkit-transition: background-color 0.4s ease-out;
    -moz-transition: background-color 0.4s ease-out;
    -o-transition: background-color 0.4s ease-out;
    transition: background-color 0.4s ease-out;
}

.activeSizeGuide .ring-guide-overlay {
    background-color: rgba(0, 0, 0, .4);
}

.ringSizeWrapper.ringSize-closed {
    animation: modalDesktopSlideRight ease 500ms 100ms;
}

.ringSize-close {
    display: flex;
    justify-content: space-between;
    flex-direction: row-reverse;
    height: 56px;
    position: fixed;
    background: #fff;
    z-index: 1;
}

.ringSizeGuide-Content {
    position: relative;
    top: 56px;
}

.ringSize-close .close-modal {
    background: none;
    border: 0;
    padding: 0;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    place-content: center;
}

table#ring-size-table {
    border-spacing: 0;
    border-collapse: collapse;
}

table#ring-size-table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

span.fraction {
    font-size: 0.6em;
    display: inline-block;
    position: relative;
    top: -4px;
    left: -3px;
    font-weight: 500;
}

ol#perfectFit-stepsList {
    list-style: decimal;
    padding-left: 16px;
}

.perfectFit-container {
    text-align: left;
    font-size: 16px;
    margin-bottom: 56px;
    line-height: 24px;
}

.ringSizeSubHeader {
    color: #000;
    text-align: center;
    font-size: 12px;
    font-style: normal;
    font-weight: 450;
    line-height: 23px;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.ringSizeHeader {
    color: #000;
    text-align: center;
    font-family: baskerville-urw;
    font-size: 28px;
    font-style: normal;
    font-weight: 400;
    line-height: 36px;
    letter-spacing: 8px;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.ringSizeTable {
    margin-bottom: 30px;
}

.perfectFit-header {
    color: #000;
    font-size: 16px;
    font-style: normal;
    font-weight: 450;
    line-height: 24px;
    margin-bottom: 10px;
    letter-spacing: 1px !important;
    text-transform: uppercase;
}

.perfectFit-video {
    margin-bottom: 20px;
}

.perfectFit-steps {
    font-size: inherit;
    font-style: normal;
    font-weight: 400;
    line-height: 24px;
    margin-bottom: 30px;
}

#perfectFit-stepsList li {
    margin-bottom: 10px;
}

.ringSizeDesc {
    text-align: center;
    font-size: inherit;
    line-height: 24px;
    margin-bottom: 24px;

}

.perfectFit-moreInfo a {
    text-decoration: underline;
}

a.ringSizeDesc-link {
    display: inline-block;
    text-decoration: underline;
}


.perfectFit-container {
    margin-bottom: 112px;
}

.variantDropdownsContainer {
    margin-top: 5px;
}

@media (min-width: 762px) {
    .ringSizeWrapper.ringSize-closed {
        animation: modalDesktopSlideRight ease 500ms 100ms;
    }

    .ringSizeWrapper {
        right: -100%;
    }

    .activeSizeGuide .ringSizeWrapper {
        right: 0;
    }

    .ringSizeTable .container {
        padding-left: 50px;
        padding-right: 50px;
    }

    .perfectFit-container,
    .ringSizeDesc {
        padding-left: 50px;
        padding-right: 50px;
    }

    .ringSize-close {
        width: 600px;
    }
}

@media (max-width: 762px) {

    .ringSize-closed .ringSizeWrapper {
        transform: translateY(100%);
    }

    .ringSizeWrapper {
        animation: modalMobileSlideDown cubic-bezier(0, 0, 0.1, 1) 500ms;
        transition: height 0.3s ease;
    }


    .activeSizeGuide .ringSizeWrapper {
        animation: modalMobileSlideUp cubic-bezier(0, 0, 0.1, 1) 500ms;
        max-height: calc(100% - 56px);
        max-width: 100%;
        transition: height 0.3s ease;
    }

    .ringSizeWrapper {
        height: 95vh;
        left: 0;
    }

    .ringSizeTable .container {
        width: 100%;
        margin: 0;
    }

    .perfectFit-container,
    .ringSizeDesc {
        padding-left: 15px;
        padding-right: 15px;
    }

    .ringSize-close {
        width: 100%;
    }

}


@keyframes modalDesktopSlideRight {
    from {
        right: 0;
    }

    to {
        right: -100%;
    }
}

@keyframes modalMobileSlideUp {
    from {
        transform: translateY(100%)
    }

    to {
        transform: translateY(0)
    }
}

@keyframes modalMobileSlideDown {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(100%)
    }
}