.modal-body .r-loading-animation {
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 30vh;
}

.r-save-theme-wrapper {
    display: none;
    width: 700px;
    margin-bottom: 1em;
}

.r-save-theme-wrapper h6 {
    margin-bottom: 0;
}

.r-share-video-section-wrapper {
    display: none; /* Hide this so we can show it after the loading animation. */
    width: 700px;
    height: 70%;
    color: #333;
    margin-top: 2em;
}

.r-share-video-section-wrapper h6 {
    margin: 0;
    height: 5%;
}

.r-share-video-section-wrapper > div {
    height: 95%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: start;
    -ms-flex-align: start;
    align-items: flex-start;
    -webkit-box-pack: start;
    -ms-flex-pack: start;
    justify-content: flex-start;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    /*margin-top: 0.5em;*/
}

.r-share-video-section-wrapper > div > ul {
    height: auto;
    margin: 0;
    margin-top: 1em;
    box-shadow: 0 2px 5px 0 rgba(0,0,0,0.16),0 2px 10px 0 rgba(0,0,0,0.12);
}

.r-share-video-section-wrapper > div > ul > li {
    height: 40px;
    width: 120px;
    margin: 0 1px;
}

.r-share-video-section-wrapper > div > ul > li > a {
    height: 100%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    color: #333;
    border:none !important;
}

.r-share-video-section-wrapper > div > ul > li > a:hover {
    background-color: transparent;
    color: #333;
    border:none !important;
}

.r-share-tab-icon {
    width: auto;
    height: 25px;
    object-fit: contain;
    margin: 0.5em;
}

.r-share-video-tabs-wrapper a {
    border-top-width: 2px !important;
    border-top-style: solid;
}

.r-share-video-tabs-wrapper a:hover {
    border-top-width: 4px !important;
    border-top-style: solid !important;
}

#r-share-facebook-tab-button a, #r-share-facebook-page-tab-button a {
    border-top-color: #4360B4;
}

#r-share-facebook-tab .r-connect-button-wrapper button, #r-share-facebook-page-tab .r-connect-button-wrapper button {
    background-color: #4360B4 !important;
}

#r-share-twitter-tab-button a {
    border-top-color: #009EF6;
}

#r-share-twitter-tab .r-connect-button-wrapper button {
    background-color: #009EF6 !important;
}

#r-share-youtube-tab-button a {
    border-top-color: #EE0000;
}

#r-share-youtube-tab .r-connect-button-wrapper button {
    background-color: #EE0000 !important;
}

.r-share-video-section-wrapper > div > .tab-content {
    width: 100%;
    height: 85%;
    padding: 1em;
    position: relative;
    border: none;
    box-shadow: 0 2px 5px 0 rgba(0,0,0,0.16),0 2px 10px 0 rgba(0,0,0,0.12);
}

.r-share-video-section-wrapper > div > .tab-content > div {
    height: 100%;
}

.r-share-video-section-wrapper > div > .tab-content > div > .r-connect-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: none;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    z-index: 1; /* Should be above the content in the share window. */
}

.r-share-video-section-wrapper > div > .tab-content > div > .r-connect-overlay.active {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
}

.r-share-section-wrapper {
    height: 100%;
    width: 100%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
}

.r-share-message-header {
    font-size: 1.2em;
    font-style: italic;
    margin-left: 0.4em;
}

.r-share-message-wrapper {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-ordinal-group: 2;
    -ms-flex-order: 1;
    order: 1;
    width: 100%;
    flex-wrap: wrap;
    align-content: flex-start;
    justify-content: flex-end;
    flex-wrap: wrap;
    flex-direction: row;
    background: white;
    margin: 0.5em;
}

.r-share-message-wrapper input {
    width: calc(100% - 54px - 2em) !important;
    border-radius: 0;
    box-shadow: none;
    border: none;
    padding: 0 1em;
    font-size: 14px;
    margin-bottom: 0;
    height: 40px;
}

.r-share-message-wrapper textarea {
    width: calc(100% - 54px) !important;
    resize: none;
    border-radius: 0;
    box-shadow: none;
    border: none;
    padding: 1em;
}

.r-share-message-wrapper input:active,
.r-share-message-wrapper input:focus,
.r-share-message-wrapper input:hover,
.r-share-message-wrapper textarea:active,
.r-share-message-wrapper textarea:focus,
.r-share-message-wrapper textarea:hover {
    box-shadow: none !important;
    border: none !important;
}

.r-share-thumbnail-wrapper {
    height: 100%;
    width: 100%;
    -o-object-fit: contain;
    object-fit: contain;
    overflow: auto;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: start;
    -ms-flex-align: start;
    align-items: flex-start;
    -webkit-box-ordinal-group: 3;
    -ms-flex-order: 2;
    order: 2;
    padding: 0 0.5em;
    flex-wrap: wrap;
}

.r-share-preview-message {
    margin: 2em;
    margin-bottom: 1em;
    font-size: 1.2em;
    font-style: italic;
    text-align: left;
    width: 100%;
    margin-left: 0;
}

.r-share-thumbnail-wrapper img {
    object-fit: contain;
}

.r-share-button-wrapper {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-ordinal-group: 4;
    -ms-flex-order: 3;
    order: 3;
    width: 100%;
    height: 55px;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    margin: 0.5em;
    border-top: 1px solid #DDD;
    position: relative;
}

#r-share-facebook-page-tab .r-share-button-wrapper,
#r-share-youtube-tab .r-share-button-wrapper {
    -webkit-box-pack: end;
    -ms-flex-pack: end;
    justify-content: flex-end;
}

.r-share-loading-animation > .spinner {
    margin: 0;
}

.r-share-loading-animation > .spinner > div {
    width: 12px;
    height: 12px;
    background-color: #fff;
}

.r-share-thumbnail-image-alternatives {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -ms-flex-line-pack: center;
    align-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-ordinal-group: 2;
    -ms-flex-order: 1;
    order: 1;
    margin-top: 4px;
}

/* Facebook API does not allow adding video thumbnails to Facebook profiles, so hide thumbnail choices and preview. */
#r-share-facebook-tab .r-share-thumbnail-image-alternatives, #r-share-facebook-tab .r-share-thumbnail-wrapper {
    display: none;
}

.r-share-thumbnail-image-help {
    font-size: 0.8em;
    width: 75px;
}

.r-share-thumbnail-image-alternative {
    height: 50px;
    width: auto;
    max-width: 72px;
    margin: 0 5px;
    object-fit: contain;
    cursor: pointer;
}

.r-share-thumbnail-image-alternative.selected {
    box-shadow: 0 8px 17px 0 rgba(0,0,0,0.2), 0 6px 20px 0 rgba(0,0,0,0.2);
    border: 4px solid #4360B4;
    object-fit: cover;
}

.r-share-button-wrapper .r-share-button {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-ordinal-group: 3;
    -ms-flex-order: 2;
    order: 2;
}

#r-share-facebook-tab .r-share-button {
    position: absolute;
    right: 0;
}

.r-share-button-wrapper .r-share-button > div {
    position: relative;
}

.r-share-button-wrapper .r-share-button > div > ul {
    top: 8vh;
    bottom: initial;
    right: 0;
    left: initial;
    width: 20vw;
    padding: 0;
}

.r-share-button-wrapper .r-share-button > div > ul > li {
    padding: 0.5em 0;
}

.r-facebook-page-item-wrapper .r-checkbox {
    width: 100%;
    margin: 0;
    padding: 0.5em;
    display: -webkit-box !important;
    display: -ms-flexbox !important;
    display: flex !important;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

.r-facebook-page-item-wrapper .r-checkbox input {
    width: 30px !important;
    height: 15px;
    visibility: visible !important;
    position: relative;
    left: 0;
    margin-left: 0.5em;
    margin-right: 1em;
    opacity: 1;
    -webkit-box-ordinal-group: 2;
    -ms-flex-order: 1;
    order: 1;
}

.r-facebook-page-item-wrapper .r-checkbox a {
    color: #333;
    text-decoration: none;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-ordinal-group: 3;
    -ms-flex-order: 2;
    order: 2;
}

.r-facebook-page-item-wrapper .r-checkbox a img {
    margin-right: 0.5em;
}

.r-share-button-wrapper button {
    margin: 0 !important;
    padding: 0 0.75em;
    border-radius: 0;
    background-color: #49C173;
    margin-top: 0.5em !important;
}

#r-twitter-share-button-wrapper button {
    margin-top: 0 !important;
}

.r-share-profile-pic {
    margin: 0.5em;
    height: 40px;
    width: 40px;
}

.r-share-button-wrapper button:hover,
.r-share-button-wrapper button:active,
.r-share-button-wrapper button:focus {
    background-color: #49C173;
    border: none;
    outline: none;
}

.r-share-button-wrapper button:first-child {
    padding: 0 1.5em;
    font-size: 1.2em;
}

#r-share-facebook-page-tab .r-share-button-wrapper .r-facebook-page-list-dropdown {
    padding: 0 0.5em !important;
    margin-right: 1em !important;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    box-shadow: none;
    background-color: transparent;
}

#r-share-facebook-page-tab .r-share-button-wrapper .r-facebook-page-list-dropdown:hover {
    background-color: rgba(0, 0, 0, 0.5);
    box-shadow: 0 2px 5px 0 rgba(0,0,0,0.16),0 2px 10px 0 rgba(0,0,0,0.12);
}

.r-share-button-wrapper .r-facebook-page-list-dropdown img {
    width: 30px;
    height: 30px;
    margin-right: 0.5em;
}

.r-share-button-wrapper .r-facebook-page-list-dropdown span {
    color: #333
}

.r-share-video-tabs-wrapper a {
    border-radius: 1px !important;
}

.r-share-video-tabs-wrapper li a {
    color: #333;
    margin: 0;
}

.r-share-video-tabs-wrapper .active a {
    border-top-width: 4px !important;
    border-top-style: solid !important;
}

/* BEGIN - Facebook message preview styles. */
.r-share-facebook {
    background: #FFF;
    padding: 0;
    min-height: 350px;
    min-width: 480px;
    width: 100%;
    margin-bottom: 0.5em;
}

.r-share-facebook-profile-pic {
    margin: 0.5em;
    height: 40px;
    width: 40px;
}

.r-share-facebook-header {
    display: flex;
}

.r-share-facebook-header-column-2 {
    margin-top: 0.5em;
    display: inline-block;
}

.r-share-facebook-name {
    color: #365899;
    font-weight: bold;
}

.r-share-facebook-details {
    color: #90949c;
    font-size: 90%;
}

.r-share-facebook-visibility i {
    font-size: 0.8em;
    color: #90949c;
}

.r-share-facebook-message {
    padding: 1em;
    overflow-wrap: break-word;
}

.r-share-facebook-video, .r-share-twitter-video, .r-share-youtube-video {
    display: flex;
    justify-content: center;
    position: relative;
    height: 225px;
}

.r-share-facebook-play-button {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    margin: auto;
    width: 85px;
}

.r-share-facebook-video-poster {
    width: calc(100% - 1.5em);
    height: calc(100% - 1.5em);
    object-fit: contain;
    margin-bottom: 1em;
}
/* END - Facebook message preview styles. */

/* BEGIN - Youtube search result preview styles. */
.r-share-youtube {
    background: #FFF;
    padding: 0;
    min-width: 480px;
    display: flex;
    height: auto;
    max-height: 500px;
    width: 100%;
    margin-bottom: 1em;
}

.r-share-youtube-video {
    display: inline-block;
    justify-content: center;
    width: 200px;
    height: 100%;
}

.r-share-youtube-video-poster {
    width: auto;
    height: auto;
    max-width: calc(200px - 2em);
    max-height: calc(200px - 2em);
    margin: 1em;
}

.r-share-youtube-header {
    display: inline-block;
    color: #767676;
    font-size: 85%;
    margin: 1em 0;
    width: calc(100% - 200px);
}

.r-share-youtube-title {
    color: #167ac6;
    font-size: 150%;
}
/* END - Youtube search result preview styles. */

/* BEGIN - Twitter message preview styles. */
.r-share-twitter {
    background: #FFF;
    padding: 0;
    min-height: 300px;
    min-width: 480px;
    display: flex;
    align-items: flex-start;
    max-height: 500px;
    width: 100%;
    margin-bottom: 0.5em;
    overflow: auto;
}

.r-share-twitter-profile-pic {
    margin: 0.5em;
    height: 48px;
    width: 48px;
}

.r-share-twitter-header-column-2 {
    margin-top: 0.5em;
    color: #8899a6;
    display: inline-block;
    width: 100%;
}

.r-share-twitter-name {
    color: #292f33;
    font-weight: bold;
}

.r-share-twitter-message {
    color: #000;
    font-size: 120%;
    margin-top: 0.3em;
}

.r-share-twitter-video-poster {
    width: auto;
    max-width: calc(100% - 1em);
    height: calc(100% - 2em);
    margin: 1em 0;
    border-radius: 5px;
}
/* END - Twitter message preview styles. */
