
/*
 Description:  Styles for SLGB custom elements including Do/Don't tables, emphasis blocks, subscription CTAs, comparison layouts, and more.
 Author:       OctaHexa
 Author URI:   http://octahexa.com
 Version:      1.0.0
*/

/* DO and DO NOT table */

table.slgb-hints thead tr th:first-child,
table.slgb-p-hints thead tr th:first-child {
    background: green;
    color: white;
    text-align: center;
    border-right: 5px solid;
}
table.slgb-p-hints thead tr th:first-child:after {
    content: "👍";
    padding-left: 7px;
}
table.slgb-p-hints thead tr th:last-child:after {
    content: "👎";
    padding-left: 7px;
}
table.slgb-p-hints.no-emoji thead tr th:first-child:after {
    content: "" !important;
    padding-left: 0;
}
table.slgb-p-hints.no-emoji thead tr th:last-child:after {
    content: "" !important;
    padding-left: 0;
}

table.slgb-hints thead tr th:last-child,
table.slgb-p-hints thead tr th:last-child {
    background: #cd002e;
	color: white;
    text-align: center;	
    margin-left: 5px;
    border-left: 5px solid;
    }
    
table.slgb-hints thead tr th,
table.slgb-p-hints thead tr th {
    padding: 1em;
    font-size: 1.22em;
}
table.slgb-hints tr td {
    background: transparent !important;
    padding: 15px 20px;
    font-size: 14px;
  	border: 0;
  	line-height: 1.8em;
  
}
table.slgb-p-hints tr td {
    padding: 15px 20px;
    font-size: 14px;
  	border: 0;
  	line-height: 1.8em;
    border-bottom: 1px solid #e1e1e1;
}



table.gb-dos-gb-dos-thumbs.slgb-dosdont thead tr th{
    font-size: 22px;
    color: #ffffff;
    text-align: center;
    width: 50%;
}

table.gb-dos-gb-dos-thumbs.slgb-dosdont thead tr th:first-child {
    background: #2c7615;
    border-right: 5px solid;
}
table.gb-dos-gb-dos-thumbs.slgb-dosdont thead tr th:last-child {
    background: #cd002e;
    margin-left: 1em;
    border-left: 5px solid;
}

table.slgb-p-hints tr td:first-child {
    border-right: 5px solid #fff;
    background: rgba(44,118,21,.03);
}
table.slgb-p-hints tr td:last-child {
    border-left: 5px solid #fff;
    background: rgba(205, 0, 46, .03);
}

table.gb-dos-gb-dos-thumbs.slgb-dosdont tbody tr td {
    border: 0;
    background: rgba(44, 118, 21, .03);
    border-bottom: 1px solid #e1e1e1;
    font-size: 16px;
}

table.gb-dos-gb-dos-thumbs.slgb-dosdont tbody tr td:first-child {
    border-right: 5px solid #fff;
}
table.gb-dos-gb-dos-thumbs.slgb-dosdont tbody tr td:last-child {
    border-left: 5px solid #fff;
}
    

/* EMPH (TL;DR, Pro Tips) style */
.slgb-emph {
    background: url(../images/emph.svg) no-repeat 30px 48px rgba(90, 178, 55, .1);
    padding: 1em;
    padding-left: 5em;
    color: white;
    padding: 3em 4em 4em;
    background-position: 30px 40px;
    color: black;
    padding-left: 130px;
    min-height: 195px;
    margin: 2em 0;
    border-radius: 10px;
}
.slgb-emph strong {
    margin-bottom: 1em;
    font-size: 1.17em;
  	color: #5ab237;
}
.slgb-emph strong strong {
    display: inline;
}
.slgb-emph strong:first-child {
    display: block;
}

h2.p-cta__title {
    text-align: center;
}

.slgb-emph a strong {
    display: inline !important;
}


/* Subscribe styles */

.slgb-subscribe {
    background: url(../images/paper-plane-green.svg) no-repeat calc(100% + 10px) 50% #e8f4e3;
    margin-left: 0;
    margin-right: 0;
    padding: 40px;
    border-radius: 24px;
  	margin: 2em 0;
  	
}

.slgb-subscribe p.has-text-align-center {
    font-weight: bold !important;
    font-size: 1.5em;
  	margin-top: 2em;
    margin-bottom: 2em;
}

.slgb-subscribe a.wp-block-button__link.wp-element-button {
    color: white !important;
    background: green;
    border-radius: 8px !important;
    padding: 8px 30px !important;
    font-size: 18px !important;
    line-height: 30px !important;
    border: 2px solid #ffffff;
    position: relative !important;
    transition: all .3s ease !important;
    white-space: nowrap;
    outline: none !important;
    cursor: pointer !important;
    overflow: hidden;
    text-align: center !important;
    background: transparent !important;
    border-color: #ffffff;
    width: 100% !important;
}
.slgb-subscribe a.wp-block-button__link.wp-element-button:hover {
  	background: transparent !important;
    box-shadow: none !important;
    color: #5ab237 !important;
  	border-color: #5ab237 !important;
}


/* Compare Table */
.gb-compare {
    display: flex;
    justify-content: center;
    align-items: center;
    /* row-gap: 10px; */
    column-gap: 10px;
  	margin: 1em 0 !important;
}

.gb-compare div {
    flex-basis: calc(50% - 5px);
    max-width: calc(50% - 5px);
    height: 100%;
    row-gap: 10px;
    column-gap: 10px;
    padding: 35px 30px 30px;
}

.gb-compare div:first-child {
    background: rgba(34, 116, 166, .1);
}
  
.gb-compare div:last-child {
    background: hsla(0, 0%, 47.1%, .07);
}


/* SLGB Table */
table.slgb-table tr th {
    background: transparent !important;
    border: 0;
    border-bottom: 2px solid;
    font-size: 16px;
}

table.slgb-table tr td {
    border: 0;
    border-bottom: 1px solid #d6d6da;
    font-size: 16px;
  	vertical-align: middle;
}

table.slgb-p-comparison thead tr th,
table.slgb-p-comparison tbody tr td {
    font-size: 16px;
}

table.slgb-table tbody>tr:nth-child(odd)>td,
table.slgb-table tbody tr:hover>td {
    background: transparent;
}

table.slgb-p-comparison tr td, table.slgb-p-comparison tr th, table.slgb-p-comparison {
    border: 0;
    border-block-start: 0px solid transparent !important;
}
table.slgb-p-comparison thead tr th,
table.slgb-p-comparison tbody tr td:not(:first-child) {
    text-align: center;
}
table.slgb-p-comparison thead tr th:nth-child(2) {
    background: rgba(90, 178, 55, .05);
}

table.slgb-p-comparison tbody>tr:nth-child(odd)>td {
    background: transparent;
}
table.slgb-p-comparison tr td:nth-child(2) {
    background: rgba(90, 178, 55, .05);
}

@media screen and (max-width: 475px) {
    table.slgb-p-comparison thead tr th,
    table.slgb-p-comparison tbody tr td {
    font-size: 12px;
}

}

/* Block Quote */
.wp-block-quote.slgb-quote {
    background: rgba(90, 178, 55, .1);
    margin: 2em 0;
    padding: 30px 40px 40px;
    border-radius: 10px;
}

.wp-block-quote.slgb-quote p {
    font-size: 16px;
}

.wp-block-quote.slgb-quote p:before {
    content: "&#9633";
    content: '';
    display: block;
    width: 22px;
    height: 20px;
    background: transparent;
    border: 3px solid rgba(0, 0, 0, .8);
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    margin-bottom: 12px;
}
.gb-quote__content p {
	font-size: 14px !important;
	font-weight: bold;
}

.gb-quote__content footer cite {
    font-size: 14px !important;
    font-style: normal !important;
}

blockquote.wp-block-quote.slgb-quote {
    display: flex;
    align-items: flex-start;
    background: rgba(90, 178, 55, .1);
    padding: 30px 40px 40px;
    border-radius: 10px;
    margin-left: 0;
    margin-right: 0;
    flex-wrap: nowrap;
    position: relative;
}

blockquote.wp-block-quote.slgb-quote.is-style-large {
  flex-direction: column;
}

.gb-quote__photo {
    flex-basis: 120px;
    margin-right: 40px;
}

.gb-quote__photo img {
    border-radius: 10px;
}

.gb-quote__content {
    flex: 1 1 100%;
    margin-top: 0;
}

.gb-quote__content footer {
    text-align: left !important;
}
blockquote.wp-block-quote.slgb-quote.trans-bg {
	background: transparent;
}

blockquote.wp-block-quote.slgb-quote.left-bordered {
	border-radius:0;
	background: transparent;
}
blockquote.wp-block-quote.slgb-quote.left-bordered:after {
    position: absolute;
    top: 0;
    bottom: 0;
    border-radius: 4px;
    width: 4px;
    background: #000;
    content: "";
    left: 0;
}



/* CTA */
.slgb-cta {
    background: green;
    background-color: #ecf4f9;
    border-radius: 25px;
    padding: 35px 35px 32px;
    margin: 2em 0 1em;
}

.slgb-cta .wp-element-button {
    background-color: #5AB237;
    color: #fff !important;
    border-radius: 15px;
    padding: 15px 35px 15px 35px;
}


.slgb-cta .wp-element-button:hover {
  	background-color: #fff;
    color: #5AB237 !important;
}

.slgb-cta h2 {
    font-size: 25px;
    font-weight: bold;
    margin-bottom: 1em;
}



/* Images */
figure.wp-block-image.size-full img {
    padding: 10px 0 20px;
}



@media screen and (max-width: 425px) {
    .gb-compare {
        flex-direction: column;
        row-gap: 10px;
    }
    .gb-compare div {
        flex-basis: calc(100% - 5px);
        max-width: calc(100% - 5px);
    }
}


/* Miniature */
.slgb-miniature {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    margin-inline: 0;
    background: rgba(90, 178, 55, .1);
    padding: 30px;
    border-radius: 10px;
    margin: 2em 0;
}

.slgb-miniature figure {
    color: #5AB237;
    flex: 0 0 270px;
    border-radius: 10px;
    max-width: 46%;
}

.gb-mini {
    padding: 20px;
    background: rgba(90, 178, 55, 0.1);
    margin: 40px -20px;
    margin: calc(var(--p-post--rhythm) + 20px) calc(var(--container-hspace) * -1);
}
.gb-mini .gb-mini__image,
.gb-mini .gb-mini__image-link {
    border-radius: 10px;
}
.gb-mini__image {
    overflow: hidden;
    position: relative;
}
.gb-mini__image-link,
.gb-mini__image img {
    display: block;
    position: relative;
}
.gb-mini__image img {
    margin: 0;
    z-index: 1;
}
.gb-mini__content {
    margin: 0;
    align-self: center;
}
.gb-mini__content:not(:first-child) {
    margin-top: 10px;
}
.gb-mini__content .gb-mini-tag + .gb-mini-author {
    display: block;
}
.gb-mini__content,
.gb-mini__image {
    margin-left: auto;
    margin-right: auto;
}
.gb-mini__content:not(:first-child),
.gb-mini__image {
    max-width: 380px;
}
.gb-mini__tag {
    font-size: 14px;
    line-height: 1.43;
}
.gb-mini__tag,
.gb-mini__tag:visited {
    color: #2274a6;
}
.gb-mini__title {
    color: #000;
    font-weight: 700;
    margin: 0;
    font-size: 18px;
    line-height: 1.67;
    display: block;
    text-decoration: none;
}
.gb-mini__title:not(:first-child) {
    margin-top: 5px;
}
.gb-mini .gb-mini__text {
    font-size: 16px;
    margin: 10px 0 5px;
}
.gb-mini a.gb-mini__title {
    transition: color 0.2s linear;
}
.gb-mini a.gb-mini__title,
.gb-mini a.gb-mini__title:visited {
    color: #000;
}
.gb-mini a.gb-mini__title:active,
.gb-mini a.gb-mini__title:focus,
.gb-mini a.gb-mini__title:hover {
    color: #2274a6;
    text-decoration: none;
}
.gb-mini .gb-mini__author {
    margin: 0;
    display: inline-block;
    font-size: 14px;
    line-height: 1.43;
}
.gb-mini .gb-mini__author,
.gb-mini .gb-mini__author:active,
.gb-mini .gb-mini__author:focus,
.gb-mini .gb-mini__author:hover,
.gb-mini .gb-mini__author:link,
.gb-mini .gb-mini__author:visited {
    color: rgba(1, 1, 1, 0.4);
}
.gb-mini .gb-mini__author:not(:first-child) {
    margin-top: 5px;
}
@media (min-width: 544px) {
    .gb-mini {
        margin-left: 0;
        margin-right: 0;
        border-radius: 10px;
    }
}
@media (min-width: 600px) {
    .gb-mini {
        padding: 30px;
    }
}
@media (min-width: 650px) {
    .gb-mini {
        display: flex;
        flex-wrap: nowrap;
        align-items: stretch;
    }
    .gb-mini__image {
        flex: 0 0 46%;
        max-width: 46%;
    }
    .gb-mini__img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    .gb-mini__content {
        flex: 0 0 100%;
        box-sizing: border-box;
    }
    .gb-mini__content:not(:first-child) {
        flex: 0 0 54%;
        max-width: 54%;
        margin: 0;
        padding-left: 30px;
    }
    .gb-mini__image-link {
        height: 100%;
    }
    .gb-mini span.gb-mini-img {
        height: 100%;
        min-height: 120px;
    }
}
@media (min-width: 760px) {
    .gb-mini__image {
        flex: 0 0 270px;
    }
    .gb-mini__content:not(:first-child) {
        flex: 1 1 100%;
        max-width: calc(100% - 270px);
    }
}
.p-post__t-emph .gb-mini {
    padding: 0;
    border-radius: 0;
    background: transparent;
    margin-left: 0;
    margin-right: 0;
}
.p-post__t-emph .gb-mini:first-child {
    margin-top: 0;
}
.p-post__t-emph .gb-mini:last-child {
    margin-bottom: 0;
}


/* SLGB Promo */

.slgb-promo-manual {
    margin: 30px 0;
    border: 4px solid hsla(0, 0%, 59.2%, .1);
    border-radius: 6px;
    padding: 20px;
    line-height: 1.67;
}

.slgb-promo-manual ol li:nth-child(3) ul li {
    list-style: none;
}
.slgb-promo-manual ol {
    padding-left: 1em;
}
.slgb-promo-manual ul {
    padding-left: 0;
}
.slgb-promo-manual ul li, 
.slgb-promo-manual ol li {
    padding: 10px 0;
}

.gb-prom {
    margin: 30px 0;
    border: 4px solid hsla(0, 0%, 59.2%, .1);
    border-radius: 6px;
    padding: 20px;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    line-height: 1.67;
    flex-direction: row;
}

.gb-prom__image.p-blog__image-shadow {
    flex-basis: 120px;
    max-width: 120px;
    margin: 0 30px 0 0;
}
.gb-prom__image.p-blog__image-shadow img{
  border-radius: 10px;
}

p.gb-prom__text {
    flex: 1 1 100%;
    max-width: 100%;
    align-self: center;
    margin: 0;
    text-align: left;
}

@media screen and (max-width: 768px) {
.gb-prom {
	flex-direction: column;
	align-items: center;
}
.gb-prom__image.p-blog__image-shadow {
  	margin-bottom: 10px;
  }
}