/*Modern success/error popups*/
/*
 * Written by TJ Collinson, 06/2019
 * Licenced as LGPLv2
 * */
.windowBox.window-box-message {
    padding: 0;
    border: none;
    width: 200px;
    padding-top: 70px;
    margin-top: -50px;
}

.windowBox.window-box-message .windowBoxContent {
    padding: 0;
    position: relative;
    box-sizing: border-box;
    border: 20px solid #fff;
    border-radius: inherit;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    background: #fff;
    padding-bottom: 30px;
}

.windowBox.window-box-message .windowBoxContent button, .windowBox.window-box-message .windowBoxContent a.link-button {
    position: absolute;
    bottom: 0;
    width: 100%;
    box-sizing: border-box;
    padding: 0;
    border-radius: 5px;
    text-shadow: none;
    box-shadow: none;
    font-size: 150%;
    line-height: 30px;
    border: 2px solid;
    background-color: transparent;
}

.windowBox.window-box-message .windowBoxContent button:hover,
.windowBox.window-box-message a.closeButton:hover,
.windowBox.window-box-message a.closeButton:focus,
.windowBox.window-box-message .windowBoxContent a.link-button:hover,
.windowBox.window-box-message .windowBoxContent a.link-button:focus{
  opacity: .7;-webkit-transition: opacity .3s ease-in-out;transition: opacity .3s ease-in-out;box-shadow:
}

.windowBox.window-box-message:after {
    content: "";
    position: absolute;
    bottom: -36px;
    border: 18px solid #fff;
    border-bottom-color: transparent;
    border-left-color: transparent;
    border-right-color: transparent;
    box-shadow: none;
    left: calc(50% - 18px);
}

.windowBox.window-box-message a.closeButton {
    bottom: -50px!important;
    right: calc(50% - 25px);
    background: #fff;
    width: 50px;
    height: 50px;
    border-radius: 25px;
    top: calc(100% + 40px);
    opacity: 1;
    display: block!important;
}

.windowBox.window-box-message a.closeButton.no-close{
    cursor: auto;
}

.windowBox.window-box-message a.closeButton.no-close:hover,
.windowBox.window-box-message a.closeButton.no-close:focus{
  opacity: 1;-webkit-transition: opacity .3s ease-in-out;transition: opacity .3s ease-in-out;
}


.windowBox.window-box-message a.closeButton img {
    display: none;
}

.windowBox.window-box-message .windowBoxContent p {
    text-transform: none;
    padding: 0;
    margin: 0 0 10px 0;
}

.windowBox.window-box-message.window-box-error-message {
    background: #8a262f;
}

.windowBox.window-box-message.window-box-error-message p {
    color: #8a262f;
}

.windowBox.window-box-message.window-box-error-message .windowBoxContent button,
.windowBox.window-box-message.window-box-error-message .windowBoxContent a.link-button {
    border-color: #8a262f;
    color: #8a262f;
}

.windowBox.window-box-message .windowBoxContent p:last-of-type {
    margin-bottom: 20px;
}

.windowBox.window-box-message .windowBoxContent p:only-child {
    margin-bottom: 0;
}

.windowBox.window-box-message.window-box-error-message a.closeButton:after {
    content: "\2a2f";
    font-size: 300%;
    line-height: 45px;
    width: 48px;
    color: #8a262f;
}

.windowBox.window-box-message a.closeButton:after {
    display: block;
    height: 100%;
    font-weight: bold;
}

.windowBox.window-box-message.window-box-success-message {
    background: #008d3e;
}

.windowBox.window-box-message.window-box-success-message .windowBoxContent button,
.windowBox.window-box-message.window-box-success-message .windowBoxContent a.link-button {
    border-color: #008d3e;
    color: #008d3e;
}

.windowBox.window-box-message.window-box-success-message p {
    color: #008d3e;
}

.windowBox.window-box-message.window-box-success-message a.closeButton:after {
    content: "\2713";
    color: #008d3e;
    font-size: 350%;
    line-height: 50px;
}

.windowBox.window-box-message a.closeButton:hover {
    text-decoration: none;
}

.windowBox.window-box-message .windowBoxContent[data-buttons="2"] button:first-of-type,
.windowBox.window-box-message .windowBoxContent[data-buttons="2"] a.link-button:first-of-type {
    bottom: 40px;
}

.windowBox.window-box-message .windowBoxContent[data-buttons="0"] {
    padding-bottom: 0;
}

.windowBox.window-box-message .windowBoxContent[data-buttons="2"] {
    padding-bottom: 74px;
}

.windowBox.window-box-message.window-box-info-message {
    background: #00529B;
}

.windowBox.window-box-message.window-box-info-message p {
    color: #00529B;
}

.windowBox.window-box-message.window-box-info-message .windowBoxContent button,
.windowBox.window-box-message.window-box-info-message .windowBoxContent a.link-button {
    border-color: #00529B;
    color: #00529B;
}

.windowBox.window-box-message.window-box-info-message a.closeButton:after {
    content: "\02148";
    font-size: 300%;
    line-height: 50px;
    width: 47px;
    text-align: center;
    color: #00529B;
}

.windowBox.window-box-message .windowBoxContent a.link-button {
    max-width: 100%;
    margin: 0 auto;
}

@media screen and (min-width: 769px){
    .windowBox.window-box-message.wb-wide {
        width: 350px;
    }
}

@media screen and (max-width: 768px){
  .windowBox.window-box-message {
    width: 80%!important;
    left: 10%!important;
    top: 5%!important;
    border-radius: 10px!important;
    margin-top: 0;
  }

  .loader {
    top: calc(50% - 76px);
    position: absolute;
    left: calc(50% - 76px);
    padding: 0;
  }

  div.windowBox.wb-loading {
    height: 100%;
    padding: 0;
  }
}
/*End modern popups*/
