/**
 * Theme Name: Koster
 * Description: Child theme for kosterlatvija.lv
 * Author: Janis Krievins (krievins.j@gmail.com)
 * Template: blocksy
 * Text Domain: blocksy
 */

.entry-content .section,:is(.section) :where(h1,h2,h3,h4,h5,h6,p){
	margin-block-end:0;
	margin-block-start:0;
}
mark {
    font-weight: inherit!important;
}
[data-filter-criteria*=taxonomy] .ct-media-container{
	flex-shrink:0;
}
.ct-search-results {
    border-radius: 0!important;
}
/***********************************
 * Product category filter
 * ********************************/
.koster-category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.koster-category-list li {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}
.koster-category-list li:last-child {
    border-bottom: none;
}
.koster-category-list a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
}
.koster-category-list a:hover {
    color: #0073aa;
}
.koster-category-list a.active {
    font-weight: bold;
    color: #0073aa;
}
.koster-category-list a.active .koster-category-count {
    background-color: #0073aa;
    color: white;
}
.koster-category-image {
    width: 25px;
    height: 25px;
    margin-right: 15px;
    border-radius: 3px;
    overflow: hidden;
    flex-shrink: 0;
}
.koster-category-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.koster-category-name {
    flex-grow: 1;
	line-height: 1.4;
    font-size: 0.9rem;
}
.koster-category-count {
    background-color: #49ad3314;
    border-radius: 10px;
    padding: 2px 8px;
    font-size: 12px;
    color: #666;
    margin-left: 5px;
}
.product .ct-media-container img{
	object-fit:contain;
	aspect-ratio: 1 / 1 !important;
}
/***********************************
 * Single product
 * ********************************/
.product>.woocommerce-tabs {
    padding-bottom: 80px;
}
.koster-video-container{
	aspect-ratio:16/9;
}
.koster-video-container iframe{
	height:100%;
}
span.ct-swatch{
	padding-inline:2rem!important;
}
.koster-package-size{
	font-size:60%;
}
@media (min-width: 1000px) {
    .ct-default-gallery .product-entry-wrapper, .ct-stacked-gallery .product-entry-wrapper {
        display: flex;
        column-gap: 4rem;
    }
}

/***********************************
 * Atsauksmes
 * ********************************/
.reviews-container {
    column-count: 3;
    gap: 3rem;
}
.reviews-container > * {
    break-inside: avoid;
    margin-bottom: 3rem;
}

.review-rating{
  --rating: 0;        
  --size: 1.25rem;    
  --empty: #d3d3d3;  
  --fill:  #ffb703;

  font-size: var(--size);
  line-height: 1;
  display: inline-block;
  white-space: nowrap;      /* keep the 5 glyphs on one line */
  background:
    linear-gradient(
      90deg,
      var(--fill)  calc(var(--rating) / 5 * 100%),
      var(--empty) calc(var(--rating) / 5 * 100%)
    );
  -webkit-background-clip: text;
  color: transparent;       /* star glyphs take the gradient */
}

/***********************************
 * Cart
 * ********************************/
form.woocommerce-shipping-calculator a {
    padding: 0.5rem 2rem;
    border-radius: 10px;
    text-align: center;
    border: 1px solid var(--theme-palette-color-1);
}
form.woocommerce-shipping-calculator a:hover{
	color:#fff;
	background-color:var(--theme-palette-color-1)
}
.woocommerce-shipping-methods >li {
    display: flex;
    line-height: 1.4;
}
.woocommerce-shipping-methods >li + li {
    border-top: 1px dashed var(--theme-palette-color-9);
    padding-top: 10px;
}

/***********************************
 * Checkout
 * ********************************/
.woocommerce-thankyou-order-received{
	background: var(--theme-palette-color-1);
	color:#fff;
}
.woocommerce-thankyou-order-details{
	margin-bottom: 4rem;
}

@media (max-width: 1024px) {
	.reviews-container {
    column-count: 2;
}
}

@media (max-width: 767px) {
	.reviews-container {
    column-count: 1;
}
}