/* Frontend CSS Stylesheet for Good Reviews for WordPress */

.grfwp-clear {
	clear: both;
}

.grfwp-hidden {
    display: none;
}

.screen-reader-text {
	clip: rect(1px, 1px, 1px, 1px);
	position: absolute !important;
	left: -2000px;
}
.screen-reader-text:focus {
	background-color: #fff;
	border-radius: 3px;
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
	-webkit-box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
	clip: auto !important;
	color: #000;
	display: block;
	font-size: 16px;
	font-weight: bold;
	height: auto;
	line-height: normal;
	padding: 15px 23px 14px;
	position: absolute;
	left: 5px;
	top: 5px;
	text-decoration: none;
	width: auto;
	z-index: 100000;
}

.gr-review {
	margin: 1em 0 4em;
	font-style: normal;
}

.gr-content {
	position: relative;
}

.gr-rating-numbers {
	font-size: 2em;
}

.gr-review-body {
	font-size: 1em;
	font-style: normal;
}

.gr-review-body em {
	font-style: italic;
}

.gr-review-date {
	display: block;
	font-size: 85%;
	opacity: 0.7;
}

.gr-review-url {
	display: block;
	margin-top: 1em;
}

.gr-author {
	display: block;
	margin-top: 1em;
	text-align: right;
}

.gr-author-affiliate {
	font-size: .85em;
}

.gr-item-has-image .gr-author:before,
.gr-item-has-image .gr-author:after {
	content: " ";
	display: table;
}

.gr-item-has-image .gr-author:after {
	clear: both;
}

.gr-item-has-image .gr-author-text {
	float: left;
	width: 100%;
}

.gr-item-has-image .gr-author-name,
.gr-item-has-image .gr-author-affiliation {
	padding-right: 1em;
}

.gr-item-has-image .gr-author-img {
	float: right;
	width: 25%;
}
				
.gr-item-has-image .gr-author-img img {
	display: block;
	/*width: 100%;*/
	height: auto;
}

/* Hide cycled reviews on load */
.gr-reviews-cycle .gr-review {
	display: none;
}



/****************
****** NEW ******
****************/

.gr-review {
    width: 100%;
    max-width: 900px;
    position: relative;
    display: inline-block;
    clear: both;
    border: 1px solid #eee;
    border-radius: 6px;
}
.gr-content {
    position: relative;
    float: left;
    padding: 20px;
    width: 100%;
    box-sizing: border-box;
}

.gr-item-has-image .gr-author-img {
    float: left;
    width: 150px;
    margin-right: 28px;
}
.gr-item-has-image .gr-author-img img {
    border-radius: 6px;
}
.gr-review-body {
    float: left;
    width: 100%;
}
.gr-item-has-image .gr-review-body {
    width: calc(100% - 228px);
}
.gr-review-rating {
    width: 100%;
    float: left;
}
.gr-item-has-image .gr-review-rating {
    width: calc(100% - 228px);
    margin: 4px 0 8px;
}
.gr-rating-stars {
    margin-left: -4px;
}
.gr-reviews .dashicons {
    font-size: 28px;
    width: 28px;
    height: 28px;
}

.gr-author {
    position: relative;
    float: left;
    width: 100%;
    margin: 12px 0;
}
.gr-item-has-image .gr-author {
    width: calc(100% - 178px);
}
.gr-author-text {
    width: 100%;
    text-align: left;
}
.gr-author-name,
.gr-author-affiliation {
    padding-right: 0;
}
.gr-author-icon {
    font-size: 1.1em;
    display: block;
    margin: 0 6px 0 0;
    float: left;
}
.gr-author-icon:before {
    content: "\f110";
    font-size: 1.1em;
    font-family: "dashicons";
    color: #222;
}
.gr-author-name {
    display: block;
    float: left;
    margin-top: 1px;
}
.gr-organization-icon {
    font-size: 1.1em;
    display: block;
    margin: 3px 6px 0 0;
    float: left;
}
.gr-organization-icon:before {
    content: "\f481";
    font-size: 1.1em;
    font-family: "dashicons";
    color: #222;
}
.gr-author-affiliation {
    display: block;
    float: left;
    margin-top: 4px;
}

.gr-review-date-icon {
    font-size: 1.1em;
    display: block;
    margin: 3px 6px 0 0;
    float: left;
}
.gr-review-date-icon:before {
    content: "\f508";
    font-size: 1.1em;
    font-family: "dashicons";
    color: #222;
}
.gr-review-date {
    display: block;
    float: left;
    margin-top: 4px;
    opacity: 1;
    font-size: 1em;
}

.gr-review-url {
    position: absolute;
    right: 0;
    top: -16px;
    background: #f7dfa5;
    color: #000000;
    padding: 12px;
    border-top-right-radius: 6px;
    border-bottom-left-radius: 6px;
    text-decoration: none !important;
}


@media screen and (max-width: 900px) {
    .gr-item-has-image .gr-author-img {
        width: 120px;
        margin-right: 20px;
    }
    .gr-item-has-image .gr-review-body {
        width: 100%;
        margin-top: 16px;
    }
    .gr-item-has-image .gr-review-rating {
        width: calc(100% - 140px);
    }
    .gr-item-has-image .gr-author {
        width: calc(100% - 140px);
    }       
}
@media screen and (max-width: 500px) {
    .gr-content {
        padding: 20px 20px 64px;
    }
    .gr-item-has-image .gr-author-img {
        width: 100%;
        margin-right: 0;
    }
    .gr-item-has-image .gr-review-body {
        width: 100%;
        margin-top: 16px;
    }
    .gr-item-has-image .gr-review-rating {
        width: 100%;
        margin-top: 12px;
    }
    .gr-item-has-image .gr-author {
        width: 100%;
    }       
    .gr-review-url {
        top: inherit;
        bottom: 0;
        width: 100%;
        text-align: center;
        padding: 12px 0;
        border-top-right-radius: 0;
        border-bottom-left-radius: 6px;
        border-bottom-right-radius: 6px;
    }
}

input[name="grfwp_submit_review"] {
    margin-top: 24px;
}

/*** custom fields ***/
.gr-custom-fields {
    float: left;
    width: 100%;
    margin-top: 13px;
}
.gr-review-custom-field {
    float: left;
    width: 100%;
    clear: both;
    margin-top: 3px;
}
.gr-review-custom-field-label {
    font-weight: bold;
}

.single-fdm-menu-item .fdm-options-add-to-cart-button {
	display: none !important;
}


/*** Show More Button ***/
#grfwp-pagination-load-more {
    position: relative;
    float: left;
    background: #798094;
    color: #fff;
    padding: 10px 16px;
    border-radius: 4px;
    border-bottom: 5px solid #5d6274;
    text-decoration: none !important;
    cursor: pointer;
}
#grfwp-pagination-load-more:hover {
    background: #8f96ab;
}
#grfwp-pagination-load-more:active {
    padding: 9px 14px;
    background: #8f96ab;
    border: 2px inset #5d6274;
    border-bottom: 5px solid #5d6274;
}

.amazon-buybox-button {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(to bottom, #f7dfa5, #f0c14b);
  border: 1px solid #a88734;
  border-radius: 3px;
  padding: 2px 8px;
  font-family: "Arial", sans-serif;
  font-size: 12px;
  color: #111;
  font-weight: bold;
  text-decoration: none;
  box-shadow: 0 1px 0 rgba(255,255,255,0.4) inset;
  transition: background 0.2s ease-in-out;
}

.amazon-buybox-button:hover {
  background: linear-gradient(to bottom, #f5c13d, #e59b1c);
  color: #000;
}

.amazon-buybox-button .cart-icon {
  font-size: 18px;
  margin-right: 2px;
}