/* 

	Theme Name: Nyla
	Theme URI: http://www.spab-rice.com/themes
	Description: nyla - A Multi-Purpose eCommerce Theme
	Version: 1.7
	Author: Spab Rice 
	Author URI: http://www.spab-rice.com 
	Tags: ecommerce
	License: GNU General Public License version 3.0
	License URI: http://www.gnu.org/licenses/gpl-3.0.html
	Text Domain: nyla
	
*/


/*---------------------------------------------- 

	WORDPRESS DEFAULTS

------------------------------------------------*/

/*aligns*/
.aligncenter{
	display: block;
	margin:0 auto;
}
.alignright{
	float:right;
	margin: 0 0 20px 20px !important;
}
.alignleft{
	float:left; 
	margin: 0 20px 20px 0 !important;
}

/*floats*/
.floatleft{ 
	float:left;
}
.floatright{ 
	float:right;
}

/*text style*/
.textcenter{ 
	text-align:center;
}
.textright{ 
	text-align:right;
}
.textleft{ 
	text-align:left;
}

/*captions*/
.wp-caption{ 
	max-width: 100% !important; 
}
.wp-caption{
	margin-top:20px;
	font-style: italic;
	}
	div .wp-caption:first-child { 
	margin-top:20px; 
	}
.wp-caption img{
	margin:0; 
	padding:0; 
	border:0 none;
	max-width: 100%;
}
.wp-caption p.wp-caption-text,
.wp-caption-text,
figcaption {
	font-size: 11px;
	line-height: 14px;
	color: rgba(0,0,0,0.34); 
	margin-top: 4px;
	}
	.text-light figcaption, .text-light .wp-caption-text {
	color: rgba(255,255,255,0.48); 
	}

/*smiley reset*/
.wp-smiley{
	margin:0 !important;
	max-height:1em;
}

/*blockquote*/
blockquote.left{
	margin-right:20px;
	text-align:right;
	margin-left:0;
	width:33%;
	float:left;
}
blockquote.right{
	margin-left:20px;
	text-align:left;
	margin-right:0;
	width:33%;
	float:right;
}

/*img attachment*/
#img-attch-page{
	text-align: center;
	overflow: hidden;
}
#img-attch-page img{
	display: inline-block;
	margin: 0 auto;
	max-width: 100%;
	border: 5px solid #d4d4d4; /*for IE*/
	width: 100%;
	-moz-box-sizing: border-box;
	-webkit-box-sizing: border-box;
	box-sizing: border-box;
	border-color: rgba(0,0,0, 0.08);
	-webkit-transition: border 0.3s ease;
    -o-transition: border 0.3s ease;
    -moz-transition: border 0.3s ease;
}
#img-attch-page a:hover img{
	border-color: #fc7251;
}

#img-attach-page-content{
	text-align: center;
	margin-top: 25px;
}

/*gallery*/
.gallery {
	width: 100%;
	padding-top: 20px !important;
}

.gallery-item {
	display: inline-block;
	text-align: center;
	vertical-align: top;
	width: 100%;
	margin: 0 !important;
	padding: 0 !important;
}

.gallery-item .gallery-icon { 
	text-align: center; 
	display: block; 
	width: calc(100% - 10px);
	padding: 5px !important;
	}

.gallery-item .gallery-caption { 
    margin-bottom: 20px !important;
}

.gallery-item img {
	margin: 0 !important;
	padding:  0 !important;
	border: none !important;
	max-width: 100% !important;
}

.gallery-item a {
	display: inline-block;
	max-width: 100% !important;
	margin:  0 !important;
	padding: 0 !important;
}

.gallery-item a:hover img {
	opacity: 0.8;
	filter: alpha(opacity=80);
	-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=80)";
}

.gallery-columns-6 .gallery-caption,
.gallery-columns-7 .gallery-caption,
.gallery-columns-8 .gallery-caption,
.gallery-columns-9 .gallery-caption {
	display: none;
}

.screen-reader-text {
	clip: rect(1px, 1px, 1px, 1px);
	height: 1px;
	overflow: hidden;
	position: absolute !important;
	width: 1px;
}


/*	Gutenberg default
-------------------------------------------------*/	
.entry-content > figure,
.entry-content > [class*='wp-block'] { 
	margin-top: 20px; 
	}
	.entry-content > figure:first-child,
	.entry-content > [class*='wp-block']:first-child { 
	margin-top: 0; 
	}

.entry .entry-content > .alignleft {
    margin-left: 0;
}

.entry .entry-content .wp-block-cover .wp-block-cover-text {
    padding: 2rem;
}

.entry .entry-content > .alignfull {
    margin-top: 40px;
    margin-bottom: 40px;
    width: 100vw;
    max-width: 100vw;
	position: relative;
	}
	.entry .entry-content.wrapper > .alignfull {
    left: calc( (-100vw + 1440px) / 2);
	}
	.entry .entry-content.wrapper-medium > .alignfull {
    left: calc( (-100vw + 1080px) / 2);
	}
	.entry .entry-content.wrapper-small > .alignfull {
    left: calc( (-100vw + 780px) / 2);
	}
	.entry .entry-content.wrapper-mini > .alignfull {
    left: calc( (-100vw + 420px) / 2);
	}
	.entry .entry-content > .wp-block-columns.alignfull {
	padding: 0 30px;
	width: calc(100vw - 60px);
	}

@media only screen and (max-width: 1024px) {
	.entry .entry-content.wrapper > .alignfull {
    left: auto
	}
	.entry .entry-content.wrapper-medium > .alignfull {
    left: auto;
	}
	.entry .entry-content > .wp-block-columns.alignfull {
	padding: 0;
	width: auto;
	}
}

@media only screen and (max-width: 768px) {
	.entry .entry-content.wrapper-small > .alignfull {
    left: auto;
	}
}

@media only screen and (max-width: 480px) {
	.entry .entry-content.wrapper-mini > .alignfull {
    left: auto;
	}
}

.entry .entry-content > .alignwide {
    width: calc(100% + 160px);
    max-width: calc(100vw - 80px);
	margin-left: 50%;
	transform: translateX(-50%);
}
@media only screen and (max-width: 1024px) { .entry .entry-content > .alignwide { max-width: calc(100vw - 40px); } }

.wp-block-cover .wp-block-cover-text a,
.wp-block-cover .wp-block-cover__inner-container a {
	color: #fff !important;
	border-color: #fff !important;
}

.wp-block-gallery .blocks-gallery-image figcaption, .wp-block-gallery .blocks-gallery-item figcaption {
	-webkit-box-sizing:border-box;
	-moz-box-sizing:border-box;
	-ms-box-sizing:border-box;
	box-sizing:border-box;
}

.wp-block-gallery {
    margin-left: 0;
}

.wp-block-cover,
.wp-block-cover .wp-block-cover-text,
.wp-block-cover .wp-block-cover__inner-container {
	color: #fff;
}



.admin-bar #header.sticky {
    top: 32px;
}


/* elementor */
body.elementor-editor-active #page-body {
	position: relative;
	z-index: 1600 !important;
}

body.scrolled.elementor-editor-active #header.sticky {
	z-index: 1601 !important;
}

body.elementor-editor-active:not(.scrolled) #header[class*='transparent-'] {
	z-index: 1601 !important;
	pointer-events: none;
}

.text-on-light h5, .text-on-light h6, .text-on-light a:hover span {
  color: white;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

/* Modal tło + centrowanie */
.cookie-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 10000001;
  background: rgba(0, 0, 0, 0.3);
  display: none;
  justify-content: center;
  align-items: center;
}

/* Okienko */
.cookie-box {
  background: #fff;
  max-width: 500px;
  width: 90%;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
  font-family: sans-serif;
}

/* Tytuł */
.cookie-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  font-weight: bold;
}

/* Tekst */
.cookie-text {
  font-size: 0.9rem;
  margin-top: 1rem;
  margin-bottom: 1rem;
  color: #333;
  line-height: 1.4;
}

.cookie-text a {
  color: #c69ca3;
  text-decoration: underline;
}

/* Przyciski */
.cookie-buttons,
.cookie-settings-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.cookie-buttons button,
.cookie-settings-buttons button {
  flex: 1;
  padding: 0.6rem;
  font-size: 0.9rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.cookie-buttons button:last-child {
  background: #c69ca3;
  color: white;
}

.cookie-buttons button:first-child {
  background: #ccc;
  color: #333;
}

.cookie-settings-buttons .accept-all {
  background: #c69ca3;
  color: white;
  font-weight: bold;
}

/* MOBILE: modal przy dolnej krawędzi */
@media (max-width: 600px) {
  .cookie-modal {
    align-items: center;
  }

  .cookie-box {
    border-radius: 0;
    max-width: 100%;
    width: 100%;
  }

  .cookie-buttons,
  .cookie-settings-buttons {
    /*flex-direction: column-reverse;*/
  }

  .cookie-buttons button,
  .cookie-settings-buttons button {
    width: 100%;
  }
}


.in-stock {
	color: #9f666f;
}

.woocommerce-tabs .woocommerce-product-attributes td, .woocommerce-tabs .woocommerce-product-attributes th {
	padding-right: 18px;
}


#product_promo_information div {
	margin: 15px 0 15px 0;
	text-align: center;
	padding: 8px;
}

.border-animation {
	background-image: linear-gradient(90deg, #990028 50%, transparent 50%), linear-gradient(90deg, #990028 50%, transparent 50%), linear-gradient(0deg, #990028 50%, transparent 50%), linear-gradient(0deg, #990028 50%, transparent 50%);
	background-repeat: repeat-x, repeat-x, repeat-y, repeat-y;
	background-size: 15px 1px, 15px 1px, 1px 15px, 1px 15px;
	background-position: left top, right bottom, left bottom, right   top;
	animation: border-dance .4s infinite ease-in-out;
  }
  @keyframes border-dance {
	0% {
	  background-position: left top, right bottom, left bottom, right   top;
	}
	100% {
	  background-position: left 15px top, right 15px bottom , left bottom 15px , right   top 15px;
	}
  }
}


