.tcg-popup * {
    -webkit-box-sizing: border-box;
       -moz-box-sizing: border-box;
            box-sizing: border-box;
    line-height: 1.6em;
    font-size: 16px;
    margin: 0;
    padding: 0;
}

.tcg-hide {
    display: none!important;
}

.tcg-popup {
    border: 1px solid #ddd;
    width: 400px;
    padding: 25px;
    -webkit-border-radius: 5px;
       -moz-border-radius: 5px;
            border-radius: 5px;
    -webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, .1);
       -moz-box-shadow: 0 1px 2px rgba(0, 0, 0, .1);
            box-shadow: 0 1px 2px rgba(0, 0, 0, .1);
    position: fixed;
    background: #fff;
    -webkit-transition: opacity .6s, -webkit-transform .5s;
    transition: opacity .6s, -webkit-transform .5s;
    -o-transition: opacity .6s, -o-transform .5s;
    -moz-transition: transform .5s, opacity .6s, -moz-transform .5s;
    transition: transform .5s, opacity .6s;
    transition: transform .5s, opacity .6s, -webkit-transform .5s, -moz-transform .5s, -o-transform .5s;
}

.tcg-popup.tcg-popup--show {
    -webkit-transform: translate3d(0, 0, 0);
       -moz-transform: translate3d(0, 0, 0);
            transform: translate3d(0, 0, 0);
    opacity: 1;
}

.tcg-popup--bottom-right {
    bottom: 70px;
    right: 20px;
    -webkit-transform: translate3d(120%, 0, 0);
       -moz-transform: translate3d(120%, 0, 0);
            transform: translate3d(120%, 0, 0);
    opacity: 0;
}

.tcg-popup__close-button {
    border: none;
    width: 25px;
    height: 25px;
    padding: 0;
    margin: 0;
    -webkit-border-radius: 50%;
       -moz-border-radius: 50%;
            border-radius: 50%;
    position: absolute;
    right: -10px;
    top: -10px;
    background: #fff;
    -webkit-box-shadow: 0 0 3px rgba(0, 0, 0, .6);
       -moz-box-shadow: 0 0 3px rgba(0, 0, 0, .6);
            box-shadow: 0 0 3px rgba(0, 0, 0, .6);
    cursor: pointer;
    font-size: 20px;
    line-height: 20px;
    font-family: Helvetica, Arial, sans-serif;
}

.tcg-popup__content h3 {
    color: #999;
    margin-bottom: 20px;
}

.tcg-popup__success-message {
    text-align: center;
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
       -moz-box-orient: vertical;
       -moz-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
       -moz-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    min-height: 100px;
}

.tcg-popup__success-message p {
    font-size: 30px;
    color: #999;
}

.tcg-popup__input {
    display: block;
    width: 100%;
    padding: 5px;
    border: 2px solid #aaa;
}

.tcg-popup__error {
    display: block;
    font-size: 12px;
    font-weight: bold;
    color: #da1305;
    margin-bottom: 20px;
}

.tcg-popup__label {
    font-size: 14px;
    font-weight: bold;
    color: #17824d;
}

.tcg-popup__button {
    border: none;
    padding: 5px 20px;
    -webkit-border-radius: 3px;
       -moz-border-radius: 3px;
            border-radius: 3px;
    background: #17824d;
    color: #fff;
    cursor: pointer;
}

.tcg-popup__loading {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: rgba(255, 255, 255, .5);
    display: none;
}

.tcg-popup__loading:before {
    content: "";
    display: inline-block;
    width: 50px;
    height: 50px;
    border-top: 5px solid #17824d;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 5px solid #17824d;
    -webkit-border-radius: 50%;
       -moz-border-radius: 50%;
            border-radius: 50%;
    -webkit-animation: rotate 1s linear infinite;
       -moz-animation: rotate 1s linear infinite;
         -o-animation: rotate 1s linear infinite;
            animation: rotate 1s linear infinite;
    position: absolute;
    top: 50%;
    left: 50%;
    margin-left: -25px;
    margin-top: -25px;
}

@-webkit-keyframes rotate {
    0% { -webkit-transform: rotate(0deg); transform: rotate(0deg); }
    100% { -webkit-transform: rotate(360deg); transform: rotate(360deg); }
}

@-moz-keyframes rotate {
    0% { -moz-transform: rotate(0deg); transform: rotate(0deg); }
    100% { -moz-transform: rotate(360deg); transform: rotate(360deg); }
}

@-o-keyframes rotate {
    0% { -o-transform: rotate(0deg); transform: rotate(0deg); }
    100% { -o-transform: rotate(360deg); transform: rotate(360deg); }
}

@keyframes rotate {
    0% { -webkit-transform: rotate(0deg); -moz-transform: rotate(0deg); -o-transform: rotate(0deg); transform: rotate(0deg); }
    100% { -webkit-transform: rotate(360deg); -moz-transform: rotate(360deg); -o-transform: rotate(360deg); transform: rotate(360deg); }
}
