/*
Theme Name: SuperAproveiteSiratChild
Template: sirat
Author: SA
Description: Child theme para SA
Requires at least: 5.0 
Tested up to: 6.4
Requires PHP: 7.2
Version: 1.2.7.1 //.1 no final adicionado para SuperAproveite
*/
.img-tall { 
    max-height: 75px; 
    width: 100%; 
    height: auto; 
    object-fit: contain; 
}
.img-tall-single { 
    max-height: 175px; 
    width: 100%; 
    height: auto; 
    object-fit: contain; 
}
.sa-topheader-icon { 
  color: black !important;
  cursor: pointer !important;
  font-size: 30px !important;
}
.sa-search_field { 
	width: 180px;
    height: 30px; 
    padding: 5px; 
    border: 1px solid #ccc; 
}
.sa-custom-icon i {
    margin-right: 15px; 
}
.post-main-box, .grid-post-main-box {
  position: relative; 
  overflow: hidden; 
}
.post-desconto { 
	position: absolute;
    top: 0px;
    left: -25px;
    transform: rotate(-45deg);
    background-color: orange;
    color: black;
    padding: 5px 30px;
    z-index: 1;
	font-weight: bold;
}
.post-novo { 
	position: absolute;
 	top: 0;
    right: 0;
    color: #D8D8D8;
    padding: 3px 5px;
    z-index: 1;
	font-weight: bold;
}
.share-whats {
  position: absolute;
  bottom: 0;
  right: 0;
  color: black;
  font-weight: bold;
  font-size: 20px;
  padding: 10px 20px;
}
.sa-post-columns {
    display: flex;
    flex-wrap: wrap;
	align-items: flex-start; 
}
.sa-post-thumbnail {
    flex: 1 1 30%;
}
.sa-post-content {
    flex: 1 1 70%;
    padding-left: 4px;
	box-sizing: border-box;
}
.sa-post-content h2{ 
  padding-top: 0px;
}
.sa-preco-old {
    color: #888;
    text-decoration: line-through;
    font-size: 10px;
}
.sa-titlogo-columns {
    display: flex;
    flex-wrap: wrap;
	align-items: center;
}
.sa-titlogo-thumbnail {
    flex: 1 1 10%;
}
.sa-titlogo-content {
    flex: 1 1 90%;
	box-sizing: border-box;
}
.sa-titlogo-Titulo {
  font-size: 17px !important;
  padding: 0;
  letter-spacing: 1px;
  margin-bottom: 0;
  font-family: 'Heebo', sans-serif;	
  color: #121212;
  font-weight: bold;
}
.sa-titlogo-Titulo a{
  color: #121212;
  font-weight: bold;
}
.sa-site-title {
	max-width: 100%;
	margin: 0;
	padding: 0;
	line-height: 1.2;
}
.sa-mensagem{
	color: #333;
	font-size: clamp(2px, 3vw, 14px); 
	white-space: nowrap;
	max-width: 90vw;
	font-family: 'Open Sans', Arial, sans-serif; 
}
input[type="url"]:focus{
  outline: 1px solid #000;
  text-decoration:none !important;
}
input[type="url"]{
  border:1px solid #bcbcbc;
  width:100%; 
  font-size:16px;
  padding:10px 10px; 
  margin:0 0 15px 0;
  height:auto;
}
input[type="search"]{
	width:60%; 
}
.middle-align { 
	padding: 15px 0 !important; 
}
.middle-header {
	padding: 0;
}
.middle-header i{
	margin-right: 15px;
}
.sa-top-bar {
	display: flex;
	justify-content: space-between;
	align-items: center;
}
.sa-topheader {
	background-color: #febe00;
}
.logo-section {
	display: flex;
	align-items: center;
}
.logo-section img {
	max-height: 48px; 
	margin-right: 10px;
	margin: 2px;
}
.sa-user-section {
	display: flex;
	align-items: center;
}
.sa-user-section a {
	color: #333;
	text-decoration: none; 
}
.sa-user-section a:visited {
    color: #333; 
}
.sa-user-section i {
	color: #333;
	font-size: 30px;
}
.sa-user-section img {
	border-radius: 50%;
	width: 48px;
	margin-right: 10px;
}
.sa-middleheader-row { 
	background-color: white;
	margin-top: 5px;
	margin-bottom: 5px;
}
.sa-middleheader-row a{ 
	color: black;
	text-decoration: none;
	white-space: nowrap;
	font-size: clamp(12px, 4vw, 16px);
	padding-top: 5px;
	padding-bottom: 5px;
}
.sa-middleheader-row a:visited{ 
	color: black;
}
.sa-middleheader-row i{ 
	margin-right: 8px;
}
.sa-inline-links-container { 
    display: flex;                
    flex-wrap: nowrap;              
    gap: 20px;                    
}
.sa-inline-links-container a {
    display: flex;                 
    align-items: center;           
    justify-content: center;       
    text-align: center;            
    white-space: normal;           
    font-size: clamp(12px, 2.5vw, 16px);
    padding: 10px;                 
    flex-direction: row;           
}
.sa-inline-links-container i {
    margin-right: 8px;            
}
.sa-search-form {
    display: flex;
    justify-content: center; 
    margin-top: 20px; 
}
.sa-search-form form {
    display: flex;
    justify-content: space-between;
    width: 80%; 
    max-width: 1000px; 
}
.sa-search-form input[type="search"] {
    width: 100%;
    padding: 10px;
    background-color: #f7f7f7; 
    border: 1px solid #ccc;
    border-radius: 4px 0 0 4px; 
    font-size: 16px;
    box-sizing: border-box; 
}
.sa-search-form button.search-submit {
    background-color: #333;
    color: #fff;
    padding: 10px 20px;
    font-size: 16px;
	border: 1px solid #ccc;
    border-radius: 0 4px 4px 0; 
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.sa-search-form button.search-submit:hover {
    background-color: #555;
}
.sa-msg{
	color: orange;
	font-weight: bold;
    text-align: center;
}
.sa-post-meta {
    font-size: 10px;
    color: gray;
    display: flex;
    margin-bottom: 1px;
}
.sa-post-meta2 {
    font-size: 10px;
    color: gray;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    margin-bottom: 1px;
}
.sa-post-meta i.fas.fa-calendar-alt {
    margin-right: 4px;
}
.coupon-container {
  position: relative;
  display: inline-block;
  font-family: Arial, sans-serif;
  font-weight: bold;
  color: #333;
  text-align: center;
  border: 2px solid #ccc;
  border-radius: 30px;
  overflow: hidden;
  width: 200px;
  height: 50px;
  line-height: 50px;
  cursor: pointer;
}
.coupon-code {
	opacity: 0; 
	transition: opacity 0.3s ease;
	font-size: clamp(6px, 4vw, 16px);
	font-weight: bold;
	white-space: nowrap;
	text-align: center;
	overflow: hidden;
	text-overflow: ellipsis; 
	width: 100%; 
	box-sizing: border-box; 
}
.scratch-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #febe00, #ffa500);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(8px, 5vw, 12px);
  font-weight: bold;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.2;
  border-radius: inherit;
  padding: 0 10px;
  transition: opacity 0.3s ease;
  cursor: pointer;
  z-index: 10;
  word-wrap: break-word;
  white-space: normal;
}
.scratch-layer:hover {
  background: linear-gradient(135deg, #ffd700, #ff8c00);
}
.coupon-container.revealed .coupon-code {
  opacity: 1;
}
.coupon-container.revealed .scratch-layer {
  opacity: 0;
  pointer-events: none;
}
@media (max-width: 768px) {
    .sa-search-form form {
        width: 90%; 
    }
}
@media screen and (max-width: 480px) {
	.sa-titlogo-Titulo {
		font-size: 15px !important; 
	}
	.logo-section img {
		max-height: 35px; 
	}
	.sa-user-section img {
		width: 35px;
	}	
	.sa-user-section i {
		font-size: 25px;
	}
    .sa-search-form form {
        width: 100%; 
    }
    .sa-search-form button.search-submit {
        width: 100%; 
    }
	.sa-site-title {
		line-height: 0.9;
	}
}

/* Corrige tamanho de emojis (renderizados como <img class="emoji">) */
img.emoji {
  width: 1em;
  height: 1em;
  display: inline;
  vertical-align: middle;
}

/*Parte para cupom*/
.coupon-type {
	position: absolute;
    top: 13px;
    left: -45px;
    transform: rotate(-45deg);
    background-color: orange;
    color: black;
    padding: 3px 45px;
    z-index: 1;
	font-weight: bold;
	font-size: 14px;
}
	
.more-btn{
	display: flex;
	align-items: center;
	gap: 10px;
	text-align: center;
	justify-content: center;
}
	
/* Media Query for Small Screens */
@media (max-width: 380px) {
  .more-btn {
    flex-direction: column; /* Stack the items vertically */
  }
}
.sa-post-columns2 { 
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-start; /* Align right-side content to the top */
    margin-bottom: 10px;
}

.sa-post-logo {
    display: flex;
/*    text-align: center;*/
    align-items: flex-end; /* Align the logo to the bottom of the container */
    justify-content: center; /* Center horizontally if needed */
    flex: 0 0 15%; /* Logo takes 15% width for larger screens */
	height: 100%;
}

.sa-post-logo img {
    max-width: 80px; /* Restrict logo width */
	width: 100%;
    height: auto;
    margin: 0;
	padding: 0;
	display: block;
}

.sa-post-right {
    flex: 1; /* Allow right section to take up remaining space */
    padding-left: 10px;
    text-align: left;
}

.sa-post-timeframe {
    font-size: 12px;
    color: gray;
    margin-bottom: 5px;
}

.sa-post-store {
    font-size: 18px;
    font-weight: bold;
}
	
.sa-post-content2 {
    width: 100%;
    margin-top: 10px;
    padding: 0 10px;
    box-sizing: border-box;
}

.sa-post-content2 h1.section-title {
    font-size: 14px;
    margin: 10px 0;
    text-align: left;
}
@media (max-width: 1200px) {	
	.sa-post-logo {
        flex: 0 0 20%; 
    }	
}
@media (max-width: 991px) {	
	.sa-post-logo {
        flex: 0 0 25%; 
    }	
}
@media (max-width: 768px) {	
	.coupon-type {
		top: 5px;
		left: -34px;
		padding: 5px 30px;
		font-size: clamp(8px, 5vw, 12px);
	}
}
@media (max-width: 540px) {	
	.sa-post-logo {
        flex: 0 0 45%; 
    }	
}
/* Responsive Layout for Screens Below 380px */
@media (max-width: 350px) {
    .sa-post-columns2 {
        flex-wrap: wrap; /* Stack items vertically */
        text-align: center;
    }

    /* Reorder elements for small screens */
    .sa-post-timeframe {
        order: 1; /* Show timestamp at the top */
        width: 100%;
        margin-bottom: 5px;
        text-align: center;
    }

    .sa-post-logo {
        order: 2; /* Logo comes after timestamp */
        flex: 1 1 100%; /* Logo spans full width */
        margin-bottom: 10px;
    }

    .sa-post-store {
        order: 3; /* Store name comes last */
        width: 100%;
        margin-top: 5px;
        font-size: 14px; /* Slightly smaller font for smaller screens */
        text-align: center;
    }

    .sa-post-logo img {
        max-width: 60px; /* Smaller logo for small screens */
    }
}
.col-lg-9 {
	width: 100%;
}
.col-md-9 {
	width: 100%;
}
/*Fim parte Cupom*/