body.page-template-request-page-template #main {
    padding-top: 0;
}

/* region Spinner */
/* @link https://loading.io/css/ */
.lds-spinner {
    color: black;
    display: inline-block;
    position: relative;
    width: 80px;
    height: 80px;
}

.lds-spinner div {
    transform-origin: 40px 40px;
    animation: lds-spinner 1.2s linear infinite;
}

.lds-spinner div:after {
    content: " ";
    display: block;
    position: absolute;
    top: 3px;
    left: 37px;
    width: 6px;
    height: 18px;
    border-radius: 20%;
    background: #1AC3A4;
}

.lds-spinner div:nth-child(1) {
    transform: rotate(0deg);
    animation-delay: -1.1s;
}

.lds-spinner div:nth-child(2) {
    transform: rotate(30deg);
    animation-delay: -1s;
}

.lds-spinner div:nth-child(3) {
    transform: rotate(60deg);
    animation-delay: -0.9s;
}

.lds-spinner div:nth-child(4) {
    transform: rotate(90deg);
    animation-delay: -0.8s;
}

.lds-spinner div:nth-child(5) {
    transform: rotate(120deg);
    animation-delay: -0.7s;
}

.lds-spinner div:nth-child(6) {
    transform: rotate(150deg);
    animation-delay: -0.6s;
}

.lds-spinner div:nth-child(7) {
    transform: rotate(180deg);
    animation-delay: -0.5s;
}

.lds-spinner div:nth-child(8) {
    transform: rotate(210deg);
    animation-delay: -0.4s;
}

.lds-spinner div:nth-child(9) {
    transform: rotate(240deg);
    animation-delay: -0.3s;
}

.lds-spinner div:nth-child(10) {
    transform: rotate(270deg);
    animation-delay: -0.2s;
}

.lds-spinner div:nth-child(11) {
    transform: rotate(300deg);
    animation-delay: -0.1s;
}

.lds-spinner div:nth-child(12) {
    transform: rotate(330deg);
    animation-delay: 0s;
}

@keyframes lds-spinner {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

/* endregion */

/* region Modal */
#idodocModal.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 666; /* Sit on top */
    padding-top: 10%; /* Location of the box */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0, 0, 0); /* Fallback color */
    background-color: rgba(0, 0, 0, 0.4); /* Black w/ opacity */
}

/* Modal Content */
body.modal-opened {
    overflow: hidden;
}

#idodocModal .modal-content {
    position: relative;
    background-color: #fefefe;
    margin: auto;
    padding: 0;
    border: 1px solid #888;
    border-radius: 10px;
    min-width: 50%;
    width: 50%;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    -webkit-animation-name: animatetop;
    -webkit-animation-duration: 0.4s;
    animation-name: animatetop;
    animation-duration: 0.4s
}

/* Add Animation */
@-webkit-keyframes animatetop {
    from {
        top: -300px;
        opacity: 0
    }
    to {
        top: 0;
        opacity: 1
    }
}

@keyframes animatetop {
    from {
        top: -300px;
        opacity: 0
    }
    to {
        top: 0;
        opacity: 1
    }
}

/* The Close Button */
#idodocModal .idodoc-close {
    color: #666;
    font-size: 36px;
    font-weight: bold;
    width: 36px;
    height: 36px;
    position: absolute;
    top: 0;
    right: 0;
}

#idodocModal .idodoc-close:hover,
#idodocModal .idodoc-close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

#idodocModal .modal-header .modal-icon {
    height: auto;
    width: auto;
    font-size: 90px;
}

#idodocModal .modal-header .header-text {
    font-size: 28px;
    line-height: 1.2;
    padding-left: 16px;
    max-width: 70%;
}

#idodocModal .modal-header {
    padding-top: 36px;
    padding-bottom: 18px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: left;
    max-width: 80%;
    margin: auto;
    padding-left: 0;
    padding-right: 0;
}

/*#idodocModal .modal-header,*/
#idodocModal .modal-body,
#idodocModal .modal-footer {
    padding-left: 10%;
    padding-right: 10%;
}

#idodocModal .modal-body p.info_field {
    margin-top: 5px;
    margin-bottom: 5px;
}

#idodocModal .modal-body {
    padding-top: 18px;
    padding-bottom: 30px;
    /*text-align: center;
    font-size: 24px;*/
    text-align: left;
    font-size: 18px;
    line-height: 1.7;
}

#idodocModal .modal-footer {
    padding-top: 12px;
    padding-bottom: 40px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

#idodocModal .modal-footer .modal-button:active {
    transform: scale(0.98);
    /* Scaling button to 0.98 to its original size */
    box-shadow: 3px 2px 22px 1px rgba(0, 0, 0, 0.24);
    /* Lowering the shadow */
}

#idodocModal .modal-footer .modal-button {
    align-items: center;
    display: flex;
    text-decoration: none;
    border: none;
    padding: 8px 24px;
    font-size: 24px;
    font-weight: lighter;
    letter-spacing: 2px;
    background-color: #19C2A3;
    color: #fff;
    border-radius: 5px;
    box-shadow: 7px 6px 28px 1px rgba(0, 0, 0, 0.24);
    cursor: pointer;
    outline: none;
    transition: 0.2s all;
}

#idodocModal .modal-footer .modal-button span.dashicons {
    width: auto;
    height: auto;
    font-size: 36px;
}

#idodocModal.pdf-viewer {
    padding-top: 3%;
}

#idodocModal.pdf-viewer div.modal-content {
    height: 90%;
    width: 80%;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
}

#idodocModal.pdf-viewer div.modal-header {
    flex: 0;
    margin: 0;
    padding-bottom: 0;
}

#idodocModal.pdf-viewer div.modal-body {
    flex: 1;
    padding: 0;
}

#idodocModal.pdf-viewer div.modal-body > div.body-text {
    height: 100%;
}

#idodocModal.pdf-viewer div.modal-body > div.body-text > iframe#idodocPdfViewerFrame {
    width: 100%;
    height: 100%;
    box-sizing: border-box;
}

#idodocModal.pdf-viewer div.modal-footer {
    padding-top: 12px;
    padding-bottom: 12px;
}

#idodocModal.pdf-viewer .modal-content.loading > * {
    opacity: 0;
}

#idodocModal.pdf-viewer .modal-content.loading::before {
    --spinner-color: #3792c1;
    --spinner-size: 100px;
    --spinner-width: 10px;
    content: "";
    position: absolute;
    width: var(--spinner-size);
    height: var(--spinner-size);
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
    border: var(--spinner-width) solid transparent;
    border-top-color: var(--spinner-color);
    border-right-color: var(--spinner-color);
    border-bottom-color: var(--spinner-color);
    border-radius: 50%;
    animation: button-loading-spinner 1s ease infinite;
}

/* endregion */

.button--loading,
.button--loading span {
    position: relative;
    color: transparent !important;
}

.button--loading.size-48::before {
    width: 48px;
    height: 48px;
}

.button--loading.size-64::before {
    width: 64px;
    height: 64px;
}

.button--loading.size-56::before {
    width: 56px;
    height: 56px;
}

.button--loading::before {
    content: "";
    position: absolute;
    width: 24px;
    height: 24px;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
    border: 4px solid transparent;
    border-top-color: #ffffff;
    border-right-color: #ffffff;
    border-bottom-color: #ffffff;
    border-radius: 50%;
    animation: button-loading-spinner 1s ease infinite;
}

a.attachment-link.button--loading > * {
    opacity: 0;
}

a.attachment-link.button--loading::before {
    --spinner-color: #3792c1;
    --spinner-size: 100px;
    --spinner-width: 10px;
    content: "";
    position: absolute;
    width: var(--spinner-size);
    height: var(--spinner-size);
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
    border: var(--spinner-width) solid transparent;
    border-top-color: var(--spinner-color);
    border-right-color: var(--spinner-color);
    border-bottom-color: var(--spinner-color);
    border-radius: 50%;
    animation: button-loading-spinner 1s ease infinite;
}

span.is-loading {
    animation: button-loading-spinner 1.5s ease-in-out infinite;
}

div.eds-request.loading.error {
    color: #ca1823;
}

div.eds-request.loading {
    text-align: center;
}

@keyframes button-loading-spinner {
    from {
        transform: rotate(0turn);
    }

    to {
        transform: rotate(1turn);
    }
}

article.idodoc-eds header.page-header,
article.idodoc-eds.page .entry-content {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 30px;
}

article.idodoc-eds header.page-header {
    padding-top: 30px;
    background: none;
    text-align: left;
}

article.idodoc-eds header.page-header #header_1 {
    margin-bottom: 30px;
}

article.idodoc-eds header.page-header .header-wrapper {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
}

article.idodoc-eds.page .entry-content {
    padding-top: 0;
}

article.idodoc-eds header .name {
    text-transform: capitalize;
}

article.idodoc-eds header .name {
    font-size: 32px;
    line-height: 1.3;
}

article.idodoc-eds header .inn {
    font-size: 24px;
}

article.idodoc-eds header .action {
    background-color: #1AC3A4;
    color: #fff;
    padding: 5px 15px;
    margin-top: 10px;
    width: fit-content;
    width: -moz-fit-content;
}

div.info-links {
    /*text-align: right;
    margin-top: 20px;
    margin-bottom: 20px;*/
    position: fixed;
    padding: 10px;
}

div.info-links button.info-button {
    padding: 5px 10px;
    border-radius: 5px;
    background: white;
    color: #555;
    border: 1px solid #eee;
    margin-right: 5px;
    margin-left: 5px;
    margin-bottom: 5px;
    display: inline-flex;
    align-items: center;
}

div#item_border > h3 {
    margin-top: -36px;
    margin-bottom: 0;
    margin-left: 20px;
}

#CertListBox {
    height: auto;
    resize: none;
    margin: 10px 20px;
    width: calc(100% - 40px);
    overflow-y: auto;
    -moz-appearance: none;
    -webkit-appearance: none;
    appearance: none;
    background-image: none;
    padding: 10px;
    background: rgba(255, 255, 255, 1);
    border: solid 2px;
    border-radius: 7px;
    -webkit-border-radius: 7px;
    -moz-border-radius: 7px;
}

#CertListBox > option {
    cursor: pointer;
}

.disclaimer {
    width: fit-content;
    padding: 20px 100px 20px 30px;
    background: #F5F7F6;
    border-radius: 6px;
}

.request-attachments {
    display: flex;
    justify-content: space-evenly;
    flex-wrap: wrap;
}

.eds-request.attachment .attachment-link {
    position: relative;
    display: block;
    width: fit-content;
    margin: auto;
    border: 4px #ebebeb solid;
    border-radius: 1px;
}

.eds-request.attachment .attachment-image {

}

.eds-request.attachment .attachment-image img {
    height: 300px;
    /*width: auto;*/
    width: 212px;
    display: block;
}

.eds-request.attachment .attachment-image img[src$=".svg"] {
    width: 212px;
}

div.eds-request.attachment:not(.signed) .attachment-link span.dashicons.dashicons-awards,
div.eds-request.attachment:not(.signed) div.idodoc-eds-check,
div.eds-request.attachment:not(.signed) div.idodoc-eds-signed {
    display: none;
}

div.eds-request.attachment.signed button.btn.idodoc-eds-sign {
    display: none;
}

div.eds-request.attachment .attachment-image img {

}

.eds-request.attachment.signed .attachment-link span.dashicons.dashicons-awards {
    position: absolute;
    bottom: 0;
    right: 0;
    width: auto;
    height: auto;
    font-size: 100px;
    color: darkgray;
    text-decoration: none;
}

.eds-request.attachment {
    margin-top: 20px;
    margin-bottom: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    flex: 1;
    width: 30%;
    max-width: 30%;
    flex-basis: 30%;
}

div.eds-request.attachment.signed div.idodoc-eds-signed,
div.eds-request.attachment.signed div.idodoc-eds-check {
    padding: 5px 10px;
    text-align: center;
    display: flex;
    justify-content: center
}

div.eds-request.attachment.signed div.idodoc-eds-signed {
    background: #18C39F;
    width: fit-content;
    margin: 0 auto;
    color: white;
    padding: 12px 18px;
    line-height: 20px;
    border-radius: 4px;
}

button.btn.idodoc-eds-check,
button.btn.idodoc-eds-sign {
    background: #189DE8;
}

button.btn.idodoc-eds-check:hover,
button.btn.idodoc-eds-sign:hover,
button.btn.idodoc-eds-check:active,
button.btn.idodoc-eds-sign:active {
    background: #127cb8;
}

.signed-request-container {
    display: flex;
    justify-content: stretch;
}

.signed-request-container .eds-request.attachment .attachment-image img {
    height: 300px;
    max-width: 100%;
}

.signed-request-container .request-signed-send .fns {
    text-align: center;
    font-size: 16px;
    color: #828282;
    letter-spacing: 2px;
    /*padding-top: 20px;*/
}

.signed-request-container .request-signed-send {
    padding-top: 20px;
    flex: 1;
    margin-left: 30px;
}

.signed-request-container .request-signed-send button#sendContainerButton,
.signed-request-container .request-signed-send button#downloadContainerButton,
.signed-request-container .request-signed-send a.minust-send,
a#gotoIdodocEgrulAccount,
button#gotoIdodocEgrulAccount {
    min-width: 300px;
    width: 300px;
    max-height: 118px;
    background: linear-gradient(90deg, #0EB1C0 0%, #1DC2A0 100%);
    color: white;
    padding: 46px 72px 46px 58px;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    border-radius: 10px;
    border-color: transparent;
    margin-bottom: 30px;
    text-transform: uppercase;
    box-sizing: border-box;
    text-decoration: none;
}

a#gotoIdodocEgrulAccount,
button#gotoIdodocEgrulAccount {
    margin-bottom: 15px;
}

.signed-request-container .request-signed-send button#sendContainerButton {
    padding: 46px 0;
}

div#gotoIdodocEgrulAccountContainer {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-top: 50px;
    width: 100%
}

button#gotoIdodocEgrulAccount, a#gotoIdodocEgrulAccount {
    padding: 40px 20px;
    width: fit-content;
    gap: 12px;
}

.signed-request-container .request-signed-send button#sendContainerButton .text span:not(:last-child),
button#gotoIdodocEgrulAccount .text span:not(:last-child),
a#gotoIdodocEgrulAccount .text span:not(:last-child),
.signed-request-container .request-signed-send a.minust-send .text span:not(:last-child),
.signed-request-container .request-signed-send button#downloadContainerButton .text span:not(:last-child) {
    margin-bottom: 12px;
}

.signed-request-container .request-signed-send button#sendContainerButton .text,
button#gotoIdodocEgrulAccount .text,
a#gotoIdodocEgrulAccount .text,
.signed-request-container .request-signed-send a.minust-send .text,
.signed-request-container .request-signed-send button#downloadContainerButton .text {
    line-height: 18px;
    font-size: 18px;
    white-space: nowrap;
    letter-spacing: 3px;
    text-align: left;
}

.signed-request-container .request-signed-send button#downloadContainerButton .text span,
button#gotoIdodocEgrulAccount .text span,
a#gotoIdodocEgrulAccount .text span,
.signed-request-container .request-signed-send a.minust-send .text span,
.signed-request-container .request-signed-send button#sendContainerButton .text span {
    display: block;
}

.signed-request-container .request-signed-send button#sendContainerButton .icon,
button#gotoIdodocEgrulAccount .icon, a#gotoIdodocEgrulAccount .icon,
.signed-request-container .request-signed-send a.minust-send .icon,
.signed-request-container .request-signed-send button#downloadContainerButton .icon {
    font-size: 48px;
    margin: 24px;
}

.signed-request-container .request-signed-send button#sendContainerButton .icon,
button#gotoIdodocEgrulAccount,
button#gotoIdodocEgrulAccount .icon, a#gotoIdodocEgrulAccount .icon {
    margin: 0;
}

.signed-request-container div.and {
    margin-bottom: 30px;
    text-align: center;
    font-size: 24px;
}

.signed-request-container .request-attachments {
    flex: 100%;
}

#gotoIdodocEgrulAccountContainer div.idodoc-terms {
    text-align: center;
    margin-top: 12px;
    line-height: 1.2;
    font-size: .8rem;
    color: #7D7D7D;
}

#gotoIdodocEgrulAccountContainer div.idodoc-terms a {
    color: #7D7D7D;
}

/* For IE10 */
#CertListBox::-ms-expand {
    display: none;
}

#cert_info, #info_msg {
    display: block;
    background: white;
    padding: 10px;
    border-radius: 10px;
    margin-bottom: 20px;
    margin-left: 20px;
    margin-right: 20px;
    position: relative;
}

#info_msg {
    margin-bottom: 36px;
}

#cert_info span.dashicons,
#info_msg span.dashicons {
    position: absolute;
    top: 5px;
    right: 5px;
    font-size: 32px;
    line-height: 32px;
    width: 32px;
    height: 32px;
    cursor: pointer;
    opacity: .75;
}

#cert_info span.dashicons:hover,
#info_msg span.dashicons:hover {
    opacity: 1;
}

div[data-target] {
    margin-left: 20px;
    margin-right: 20px;
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    -webkit-transition: 300ms all linear;
    -moz-transition: 300ms all linear;
    -ms-transition: 300ms all linear;
    -o-transition: 300ms all linear;
    transition: 300ms all linear;
}

div[data-target].expanded {
    /*display: none;*/
    opacity: 0;
    cursor: default;
}


#info_msg {
    text-align: center;
}

div.attachment.name {
    position: relative;
    cursor: default;
    font-weight: bold;
    margin-bottom: 20px;
    margin-top: 20px;
    /*    flex: 100%;*/
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}

div.attachment.name .full-name {
    position: absolute;
    width: 100%;
    display: none;
    top: 0;
    left: 0;
    background: white;
    z-index: 9999;
}

div.attachment.name.hoverable:hover {
    overflow: visible;
}

div.attachment.name.hoverable:hover > span,
div.attachment.name.hoverable:hover ~ div {
    display: none;
}

div.attachment.name.hoverable:hover .full-name {
    display: block;
    cursor: default;
}

div#idodocDebugWrapper > pre {
    outline: 1px solid #ccc;
    padding: 5px;
    white-space: pre-wrap;
    white-space: -moz-pre-wrap;
    white-space: -pre-wrap;
    white-space: -o-pre-wrap;
    word-wrap: break-word;
}

select#modalCertListBox {
    overflow: auto;
    padding: 10px;
    background-image: none;
    height: auto;
    max-height: 200px;
    max-width: 100%;
    width: 100%;
}

select#modalCertListBox > option {
    overflow: hidden;
    margin-bottom: 10px;
}

p.info_field {
    margin: 0;
}

body.page-template-request-page-template div.fns-sent-text {
    margin-left: 50px;
    text-align: left;
    padding-bottom: 20px;
    font-size: 1.3em;
    padding-left: 92px;
}

.letters-template-eds {
    margin-top: 20px;
    font-size: 0.7em;
    color: #7d7d7d;
}

.letters-template-eds a {
    color: #7d7d7d;
}