.essays-referral .text-center {
    text-align: center;
}

.essays-referral .text-right {
    text-align: right;
}

.essays-referral, .essays-referral p, .essays-referral a {
    font-family: Arial;
    font-size: 13px;
    line-height: 15px;
    color: #2a2a2a;
    font-weight: normal;
}

.essays-referral a {
    color: #0168b5;
}

.essays-referral p {
    margin: 8px 0 8px 0;
}

.e-container .essays-referral textarea, .e-container .essays-referral select, .e-container .essays-referral input[type="text"] {
    height: auto;
    font-weight: normal;
}

/* Referral account wrapper */
#referral-account-wrapper {
    border-top: 1px solid #ededee;
}
.essays-referral-2 {
    border-bottom: 1px solid #ededee;
    margin-bottom: 20px;
}
#referral-account-wrapper.essays-referral-2 .top .right-part .more-info {
    margin-top: 15px;
}
#referral-account-wrapper #referral-account {
    padding: 10px 12px 10px 12px;
}
#referral-account-wrapper .show-more {
    border-top: 1px solid #ededee;
    text-align: center;
}
#referral-account-wrapper .show-more span {
    display: inline-block;
    width: 66px;
    height: 20px;
    background-image: url(/wp-content/plugins/essays/includes/essays/files/images/more-1.png);
    position: relative;
    color: transparent;
    cursor: pointer;
}
#referral-account-wrapper .show-more span:before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    margin: 0 auto;
    top: 5px;
    width: 11px;
    height: 11px;
    background-image: url(/wp-content/plugins/essays/includes/essays/files/images/more-2.png);
}
#referral-account-wrapper .show-more span.active:before {
    transform: rotate(180deg);
    -webkit-transform: rotate(180deg);
    -moz-transform:rotate(180deg);
    -o-transform:rotate(180deg);
    -ms-transform:rotate(180deg);
}

/* Buttons */
.essays-referral .shr-buttons {
    margin: 0 0 13px 0;
    text-align: left;
}
.essays-referral .shr-buttons .shr-btn {
    display: inline-block;
    color: transparent!important;
    background-image: url(images/shr-buttons.png);
    width: 104px;
    height: 29px;
    vertical-align: top;
    margin: 0 0 4px 0;
}
.essays-referral .shr-buttons .shr-btn.f {
    background-position: 0 0;
}
.essays-referral .shr-buttons .shr-btn.t {
    background-position: -112px 0;
}
.essays-referral .shr-buttons .shr-btn.g {
    background-position: -224px 0;
}

/* Top block */
.essays-referral .top {
    padding: 0;
    margin: 0;
    border-radius: 4px;
    color: #125870;
}
.essays-referral .top p {
    font-size: 16px;
    line-height: 16px;
}
.essays-referral .top .orange {
    color: #ff6600;
}
.essays-referral .top .blue {
    color: #085ab7;
}
.essays-referral .top .left-part {
    text-align: left;
    float: left;
    width: 70%;
}
.essays-referral .top .right-part {
    text-align: right;
    float: right;
    width: 30%;
}
#referral-account-wrapper .top .right-part .more-info {
    text-align: right;
}
.essays-referral .top span {
    font-weight: bold;
}
.essays-referral .top .affiliate-discount-for-referral {
    font-weight: normal;
}
#referral-account-wrapper .btn-orange {
    background-color: #fc7f2b;
    border: 1px solid #eb5502;
    font-size: 14px;
    line-height: 14px;
    font-weight: bold;
    color: #fff;
    padding: 10px 12px;
}

.essays-referral .top-panel-block .highlight, .essays-referral .top-panel-block .discount {
    display: inline-block;
}
#referral-account-wrapper .more-info {
    text-align: center;
}
#referral-account-wrapper .more-info.mobile {
    display: none;
}

/* Referral blocks */
.essays-referral .referral-blocks {
    display: none;
}
.essays-referral .referral-blocks.active {
    display: block;
}
.essays-referral .referral-blocks .block {
    display: inline-block;
    vertical-align: top;
    width: 47.5%;
    padding: 2%;
    margin: 0 1% 18px 1%;
    border-radius: 6px;
    border: solid #e6e6e6 1px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.11);
}
.essays-referral .referral-blocks .block h3 {
    margin-top: 0;
}

/* Widgets */
.essays-referral .block h3, .essays-referral .block h4, .essays-referral .widget h3, .essays-referral .widget h4 {
    margin: 18px 0 14px 0;
    padding: 0;
    font-weight: bold;
    color: #2a2a2a;
    font-size: 15px;
    line-height: 20px;
    font-family: Arial;
}
.essays-referral .block h3 span, .essays-referral .block h4 span {
    font-weight: normal;
    font-size: 12px;
}

.essays-referral-mini .share-your-discount-via {
    min-height: 40px;
}

#referral .widgets-col {
    width: 48%;
    padding: 0;
    margin: 0;
    text-align: left;
    display: inline-block;
    vertical-align: top;
}
#referral #referral-account {
    margin: 0 3% 0 0;
}

/* Social block */
.essays-referral .block .a_referral_link {
    font-size: 14px;
    line-height: 20px;
    display: inline-block;
    vertical-align: middle;
}
#ajax_referral_pop_up_form textarea {
    margin: 11px 0 11px 0;
}
#ajax_referral_pop_up_form label {
    font-family: Arial;
    font-size: 13px;
    color: #000;
    margin: 0;
}

/* Share block */
.essays-referral .addinput {
    position: relative;
}
.essays-referral .addinput .delete {
    background: #2d88e5 url("/wp-content/plugins/essays/includes/essays/files/images/close.png") no-repeat scroll center center;
    border-radius: 3px;
    display: block;
    position: absolute;
    right: 0;
    bottom: 4px;
    top: 0px;
    width: 26px;
    height: 35px;
}
.essays-referral .addinput input[type="text"] {
    margin-bottom: 12px;
    height: 35px;
}
.essays-referral .share-this-link p {
    font-size: 12px;
    line-height: 14px;
    font-weight: bold;
    margin: 8px 0 8px 0;
}
.essays-referral .share-this-link div {
    background-color: #f7f8f8;
    border: 1px solid #d7d7d7;
    padding: 5px 12px 4px 12px;
    margin: 0 0 6px 0;
    min-height: 52px;
    line-height: 39px;
}
.essays-referral .share-link-notice {
    font-size: 13px;
    color: #2a2a2a;
    font-weight: bold;
    line-height: 18px;
    margin: 0 0 14px 0;
}
.essays-referral .post-link-manually {
    text-align: center;
    font-size: 16px;
    line-height: 20px;
    color: #2a2a2a;
    font-weight: bold;
}

.referral-program-pop-up-form .addfile {
    display: block;
    margin: 0 0 2px 0;
}

.referral-program-pop-up-form table td:last-child {
    width: 112px;
}

/* Business card */
.essays-referral .referral-card-box .aside-buttons .btn {
    min-width: 82px;
    margin: 12px 4px 0 4px;
}

.essays-referral-mini .text-print-card {
    display: none;
}
.essays-referral-mini .referral-card-box {
    text-align: left;
    position: relative;
}
.essays-referral-mini .referral-card-box img {
    padding: 0 106px 0 0;
}
.essays-referral-mini .referral-card-box .aside-buttons {
    position: absolute;
    top: 0;
    right: 0;
}
.essays-referral-mini .referral-card-box .aside-buttons .btn {
    display: block;
    margin: 0 4px 10px 4px;
}
.essays-referral-mini .referral-program-pop-up-form p {
    margin-bottom: 18px;
}

.essays-referral .top-referrals-list td {
    padding: 2px;
    font-size: 11px;
    text-align: center;
    color: #333;
}

@media screen and (max-width: 1200px) {
    #referral .widgets-col {
        width: 100%;
    }
}

#referral .center-block {
    margin: 0 auto;
}

#referral .main-title {
    padding: 0;
    margin: 10px 0 25px 0;
    font-size: 19px;
    font-weight: 300;
    text-align: center;
    color: black;
}

#referral .widget {
    border: solid #e6e6e6 1px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.11);
    border-radius: 3px;
    margin-bottom: 15px;
    width: 100%;
    display: inline-block;
    background-color: #fff;
    padding: 0;
}

#referral .widget .header {
    background: #f9f9f9;
    margin: 0;
    padding: 10px;
    display: block;
    text-decoration: none;
    height: auto;
    color: #085ab7;
    font-size: 14px;
    font-weight: bold;
    width: 100%;
}

#referral .widget .header i {
    background-image: url("images/plus-minus-buttons.png");
    width: 20px;
    height: 20px;
    display: inline-block;
    float: left;
    margin-right: 10px;
}

#referral .widget.opened .header i {
    background-position: 0 -20px;
}

#referral .widget.closed .header i {
    background-position: 0 0;
}

#referral .widget-content {
    padding: 22px 16px 22px 16px;
    border-top: solid #f4f4f4 1px;
}

#referral .widget .button {
    color: white;
    display: inline-block;
    padding: 10px 15px;
    border-radius: 3px;
    text-decoration: none;
    margin: 0;
    border: none;
}

#referral .widget .white-button {
    color: black;
    border: solid #dedfe5 1px;
	line-height: 25px;
    padding: 2px 15px 1px 15px;
}

#referral .widget .notice {
    padding: 8px 4px 8px 4px;
    margin: 10px 0;
    border-radius: 3px;
}

#referral .widget .orange-notice {
    background: #fbfaef;
    color: #dc7d1f;
}

#referral .widget .green-notice {
    background: #f5fbef;
    color: #3f6b00;
}

#referral .widget .underline-header {
    font-size: 15px;
    font-weight: 300;
    border-bottom: solid #ececec 1px;
    padding-bottom: 15px;
    text-align: center;
    margin: 10px 0;
    color: black;
    background: none;
}

#referral .widget form table {
    border: none;
}
#referral .widget form table td {
    padding: 4px 20px 4px 0;
    border: none;
}

.essays-referral form select,
.essays-referral form input[type="text"],
.essays-referral form textarea,
.essays-referral .input
{
    font-size: 13px;
    display: inline-block;
    height: 40px;
    letter-spacing: 1px;
    color: #444;
    border-radius: 0;
    box-shadow: none;
    background-color: #fff;
    border: 1px solid #ccc;
    box-sizing: border-box;
    line-height: 1.42857;
    padding: 6px 2%;
    transition: border-color 0.15s ease-in-out 0s, box-shadow 0.15s ease-in-out 0s;
    width: 100%;
    box-sizing: border-box;
    font-family: Arial;
}

#referral .widget table {
    width: 100%;
}

#referral .widget .data-list,
#referral .widget .data-list-2,
#referral .widget .data-list-3 {
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 14px;
}

#referral .widget .data-list li {
    border-bottom: solid #efefef 1px;
    padding: 10px;
    background: none;
}

#referral .widget .data-list li:last-child {
    border: none;
}

#referral .widget .data-list li b {
    float: right;
    color: #085ab7;
}

#referral .widget .data-list-2 li,
#referral .widget .data-list-3 li {
    margin-bottom: 6px;
    background: none;
    padding: 0;
}
#referral .widget .data-list-3 li ul li {
    margin-bottom: 0;
}

#referral .widget .data-list-2 li:last-child ,
#referral .widget .data-list-3 li:last-child {
    margin: 0;
}

#referral .widget .data-list-2 li .li-header {
    background: #f9f9f9;
    color: #0d65bf;
}

#referral .widget .data-list-3 li .li-header {
    background: #e3f6fd;
    color: #3c4f86;
}

#referral .widget .data-list-2 li .li-header,
#referral .widget .data-list-3 li .li-header {
    font-size: 13px;
    text-decoration: none;
    display: block;
    padding: 10px;
    border-radius: 2px;
    outline: grey;
}

#referral .widget .data-list-2 li a i {
    background-image: url("images/grey-arrows.png");
}

#referral .widget .data-list-3 li a i {
    background-image: url("images/blue-arrows.png");
}

#referral .widget .data-list-2 li a i,
#referral .widget .data-list-3 li a i {
    width: 13px;
    height: 13px;
    display: block;
    float: left;
    margin: 2px 10px 0 0;
}

#referral .widget .data-list-2 li.closed a i,
#referral .widget .data-list-3 li.closed a i {
    background-position: 0 0;
}

#referral .widget .data-list-2 li.opened a i,
#referral .widget .data-list-3 li.opened a i {
    background-position: 0 -14px;
}

#referral .widget .data-list-2 li .li-content,
#referral .widget .data-list-3 li .li-content {
    padding: 12px 14px 14px 14px;
    font-size: 12px;
    color: #404040;
}

#referral .widget .data-list-2 li ul,
#referral .widget .data-list-2 li ol {
    margin: 0;
    padding: 0 0 0 20px;
}

#referral .widget .data-list-2 li ul li,
#referral .widget .data-list-2 li ol li {
    padding: 3px 0;
}

#referral .widget .data-list-3 li h3 {
    font-size: 17px;
    color: #085ab7;
    background: none;
    border: none;
    padding: 0;
}

#referral .widget .data-list-3 li h3:first-child {
    margin-top: 0;
}

#referral .widget .data-list-3 li h4 {
    font-size: 13px;
    letter-spacing: 0.1px;
    text-align: center;
    text-transform: none;
}

#referral .widget .data-list-3 ul,
#referral .widget .data-list-3 ol {
    margin: 0 0 15px 0;
    color: black;
    font-size: 13px;
    list-style: disc;
    padding: 0 0 0 25px;
}

#referral .widget .blue-label {
    color: #085ab7;
}

#referral .widget .red-label {
    color: #c04343;
}
#referral .widget .green-label {
    color: #546711;
}

#referral .widget .discount-code {
    display: inline-block;
    font-size: 16px;
    color: white;
    padding: 8px 12px 6px 12px;
    border-radius: 2px;
    text-decoration: none;
    margin-bottom: 0;
    position: relative;
    background-color: #8CBF07;
    line-height: 16px;
    font-family: Arial;
}

#referral .widget .copy-msg{
    color: #E14929;
    display: block;
    font-size: 13px;
    font-family: Arial;
    font-style: italic;
}

#copy-message-1, #copy-message-2 {
    margin: 4px 0 4px 0;
}

#referral .widget .referral-link {
    color: #0d65bf;
    text-decoration: none;
    background: #f6f9ff;
	padding: 10px 10px 5px;
    border: solid #e6e9ef 1px;
    border-radius: 2px;
    margin: 0 0 6px 0;
    display: inline-block;
    position: relative;
	width: 100%;
}

#referral .widget .referral-link:hover {
    text-decoration: underline;
}

#referral .banners-widget .code {
    margin-bottom: 10px;
}

#referral .banners-widget .code .show {
    display: block;
    background-color: #f9f9f9;
    padding: 6px;
    cursor: pointer;
}
#referral .banners-widget .code span {
    background-color: #f9f9f9;
    font-weight: bold;
    font-size: 12px;
    line-height: 16px;
}
#referral .banners-widget .code .show span {
    transform: rotate(270deg);
    display: inline-block;
    margin: 0 0 0 4px;
}
#referral .banners-widget .code.active .show span {
    transform: rotate(90deg);
    margin: 0 0 0 6px;
}

#referral .banners-widget .code textarea {
    display: none;
}
#referral .banners-widget .code.active textarea {
    display: block;
}

#referral .banners-widget textarea {
    width: 100%;
    height: 75px;
}

#referral .banners-widget ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

#referral .banners-widget ul li {
    border-bottom: solid #d0dee8 1px;
    padding: 20px 0;
    background: none;
}

#referral .banners-widget ul li:first-child {
    padding-top: 0;
}

#referral .banners-widget ul li:last-child {
    padding-bottom: 0;
    border: none;
}

#referral .banners-widget ul li .image-wrapper {
    text-align: center;
    margin-bottom: 20px;
    display: block;
}

#referral .banners-widget ul li .image-wrapper img {
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.11);
    border: none;
}

#referral .banners-widget ul li h4 {
    text-align: center;
}

#referral .link a {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
    word-wrap: initial;
}

.table-top-referrals td {
    text-align: center;
}

.remind-friends {
    background-color: #ededee;
    display: table;
    width: 100%;
    margin: 12px 0 12px 0;
}
.remind-friends .td {
    display: table-cell;
    vertical-align: middle;
}
.remind-friends .text {
    font-family: Arial;
    font-size: 15px;
    line-height: 18px;
    color: #333;
    padding: 16px 10px 15px 10px;
    text-align: center;
}
.remind-friends .icon-next-step {
    width: 30px;
    height: 16px;
    background-image: url(/wp-content/plugins/essays/includes/essays/files/images/next-step.png);
    display: inline-block;
    vertical-align: middle;
    margin: 0 6px 0 6px;
}
.remind-friends .icon-money {
    width: 21px;
    height: 19px;
    background-image: url(/wp-content/plugins/essays/includes/essays/files/images/money.png);
    display: inline-block;
    vertical-align: middle;
    margin: 0 16px 0 16px;
}
.remind-friends .text-3 {
    background-color: #4fba6f;
    color: #fff;
    font-size: 13px;
    text-transform: uppercase;
}
.remind-friends .step-3 {
    padding-right: 12px;
}

#ajax_referral_pop_up_form table {
    border: none;
    margin: 0;
}
#ajax_referral_pop_up_form table td {
    padding: 0!important;
    border: none;
    vertical-align: middle;
}
#ajax_referral_pop_up_form table td .btn {
    padding-top: 8px;
    padding-bottom: 8px;
}

#sms_editor .label {
    margin: 0 0 4px 0;
}
#sms_editor .row-1 {
    margin: 0 0 12px 0;
}
#sms_editor .row-1:last-child {
    margin: 0;
}

#referral .my-referrals, #referral .my-referrals td, #referral .my-referrals th {
    border: none;
    padding: 3px;
}
#referral .my-referrals th {
    border-bottom: 1px solid #C7C7C7;
    font-size: 12px;
    line-height: 14px;
    font-family: Arial;
    color: #000;
}
#referral .my-referrals td {
    font-size: 12px;
    line-height: 14px;
    font-family: Arial;
    color: #333;
}

#referral .widget-content .no-border, #referral .widget-content .no-border td {
    border: none;
}
#referral .widget-content .no-border {
    width: auto;
    margin: 0;
}

#ajax_referral_form form table td p {
    margin-bottom: 6px;
}

#referral .widget-content .no-border td {
    padding: 0 4px 0 4px;
    vert-align: top;
}

@media screen and (min-width: 1200px) {
    #referral .image-wrapper img {
        max-width: 300px;
    }
}

@media(max-width: 760px) {
    .essays-referral .referral-blocks .block {
        display: inline-block;
        vertical-align: top;
        width: 98%;
        padding: 24px 2% 24px 2%;
        margin: 0 0 12px 0;
    }
    .essays-referral .referral-blocks .block:nth-child(5) {
        border: none;
    }
    #referral-account-wrapper #referral-account {
        padding: 10px 0 10px 0;
    }
}

@media(max-width: 680px) {
    #referral .banners-widget ul li .image-wrapper img {
        max-width: 220px;
    }
    #referral .business-card .referral-card-box .buttons {
        float: none;
    }
    .essays-referral .top .left-part {
        float: none;
        width: 100%;
        text-align: center;
    }
    .essays-referral .top .right-part {
        display: none;
    }
    .essays-referral .top .blue span {
        display: none;
    }
    #referral-account-wrapper .more-info.mobile {
        display: block;
    }
    .essays-referral .top p {
        font-size: 15px;
        line-height: 15px;
    }
    .remind-friends .td.step-2, .remind-friends .td.step-3 {
        display: none;
    }
    .remind-friends .td, .remind-friends {
        display: block;
    }
    .remind-friends .text-1 {
        padding-bottom: 0;
    }
    .remind-friends .text-2 {
        padding-top: 0;
    }
    .remind-friends.mobile {
        display: block;
    }
}

@media(max-width: 480px) {
    #referral .banners-widget textarea {
        font-size: 11px;
    }
    #referral .widget .data-list-2 li .li-content, #referral .widget .data-list-3 li .li-content {
        padding: 20px 8px 14px 8px;
    }
    #referral .my-referrals tr:nth-child(even) td, #referral .data-table tr:nth-child(even) td {
        background-color: #f5f5f5;
    }
    #referral .widget .notice {
        padding: 4px;
    }
    #referral .widget-content {
        padding: 18px 12px 18px 12px;
    }
}

@media(max-width: 420px) {
    #referral .link a {
        max-width: 78px;
    }
}