/*
Theme Name: Hello Elementor Child Theme
description: >-
  Hello Elementor child theme
Author: Expedient
Author URI: https://www.expedient.nl/
Template: hello-elementor
Version: 1.0.0
*/

:root {
  --color-primary: #000;
  --color-secondary: #3BA554;
  --color-secondary-dark: #1B6D2F;
}

/* remove spacing below paragraphs */
.elementor-widget-text-editor p,
.elementor-widget-text-editor ul,
.elementor-widget-text-editor ol,
.elementor-widget-theme-post-content p,
.elementor-widget-theme-post-content ul,
.elementor-widget-theme-post-content ol,
.woocommerce-Tabs-panel p,
.woocommerce-Tabs-panel ul,
.woocommerce-Tabs-panel ol,
.woocommerce-product-details__short-description p,
.woocommerce-product-details__short-description ul,
.woocommerce-product-details__short-description ol {
  margin-bottom: 1rem !important;
}
.exp-p-no-margin p:last-child, 
.exp-no-p-margin p:last-child, 
.exp-remove-p-margin p:last-child,
.elementor-widget-text-editor p:last-child {
  margin-bottom: 0 !important;
}

/* Add stying to links in text */
.elementor-widget-theme-post-content a:not(.elementor-button),
.elementor-widget-text-editor a:not(.elementor-button) {
	text-decoration: underline;
  color: rgb(0, 113, 164);
}


/* Add space around content and footer */
body {
  padding: 0 20px 20px !important;
}
@media screen and (max-width: 768px) {
  body {
    padding: 0 10px 10px !important;
  } 
}

/* .exp-icon-gallery .e-gallery-item {
  background-color: white;
  min-height: 50px;
  display: flex;
  padding: 5px;
  border-radius: 3px;
} */

.exp-footer-menu .menu-item a:hover,
.exp-footer-link .elementor-heading-title a:hover {
  text-decoration: underline !important;
}

/* Tijdelijk gratis spoedaanvraag voor Frans formulier */
.post-638 .grid--two-column .column:nth-child(2)::before {
  content: "Tijdelijk gratis spoedverwerking";
  position: absolute;
  top: 0;
  right: 0;
  background-color: #ffcc00;
  color: #000;
  padding: 8px 12px;
  font-weight: bold;
  border-radius: 0 0 0 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  z-index: 10;
  font-size: 14px;
}
.post-638 .grid--two-column .column:nth-child(2) {
  position: relative;
}


/*--------------------------------------------------------------
# WooCommerce Styles
--------------------------------------------------------------*/
/* WooCommerce price */
.woocommerce .price del {
	text-decoration: line-through !important;
}
.woocommerce .price ins {
	text-decoration: none !important;
/* 	font-weight: initial !important; */ /*  change this to change price width in overview and detail*/ 
}
/* WooCommerce category overview */
.woocommerce-loop-category__title mark {
	color: #d3d3d3;
    background-color: transparent;
}

/* Product overview */
@media (max-width: 767px) {
  /* Show 1 product per row on mobile */
  .elementor-widget-wc-archive-products .products {
    grid-template-columns: repeat(1,1fr) !important;
  }
  /* Fix sort styling*/
  .woocommerce .woocommerce-ordering {
    float: none !important;
  }
  .woocommerce div.product.elementor .quantity+.button {
    font-size: 14px;
  }
}

/* WooCommerce tabs */
.woocommerce div.product.elementor ul.tabs {
	padding-left: 5px !important;
}
.woocommerce div.product.elementor .woocommerce-tabs .panel {
	padding: 20px 0 !important;
}

/* WooCommerce table */
.woocommerce table.shop_attributes th {
  vertical-align: middle;
}
.woocommerce table.shop_attributes td {
  padding: 8px;
}

/* WooCommerce cart */
.exp-cart .checkout-button {
  background-color: var(--color-secondary) !important;
  font-weight: 600 !important;
}
.exp-cart .checkout-button:hover {
  background-color:var(--color-secondary-dark) !important;
  font-weight: 600;
}

/* WooCommerce my account */
.elementor-widget-woocommerce-my-account .e-my-account-tab:not(.e-my-account-tab__dashboard--custom) .woocommerce .shop_table .button {
	color: #fff !important;
    border: 0 !important;
}

/* Product detail */
.woocommerce-product-gallery__wrapper img {
	width: fit-content;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    display: inline-block;
}
/* Make zoom trigger on entire image */
.woocommerce-product-gallery__trigger {
	background-color: transparent !important;
	width: 100% !important;
    height: 100% !important;
    border-radius: 0 !important;
    top: 0 !important;
    right: 0 !important;
}
/* Hide zoom icon */
.woocommerce-product-gallery__trigger:before,
.woocommerce-product-gallery__trigger:after {
	display: none !important;
}
/* Make zoom not trigger on thumbnails */
.woocommerce-product-gallery .flex-control-thumbs {
	z-index: 10;
	position: relative;
}
/* Set image pop-up background color and transparency */
.pswp__bg {
	background: rgba(0, 0, 0, 0.80);
}

/* Orderoverzicht na afrekenen */
/* Ordermeldingen bij problemen tijdens afrekenen */
.woocommerce-order,
#order_review {
	background: white !important;
    padding: 30px !important;
    border-radius: 3px !important;
}
.woocommerce-order .mollie-instructions {
	display: flex;
}
.woocommerce-order .mollie-instructions:before {
	position: relative !important;
	top: auto !important;
	left: auto !important;
	margin-right: 10px;
}
.woocommerce-order .woocommerce-thankyou-order-details {
	margin-left: 0;
    padding-left: 0;
}
.woocommerce-order h2 {
	font-size: 18px;
	color:var(--color-primary);
}


/* Stars voor het veldgroep: .elementor-field-group-starscore */
.elementor-field-group-starscore .elementor-field-subgroup {
  display: inline-flex;
  gap: .35rem;
}

/* Houd elke optie netjes bij elkaar */
.elementor-field-group-starscore .elementor-field-option {
  position: relative;
}

/* Radio verbergen maar focus/keyboard behouden */
.elementor-field-group-starscore .elementor-field-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none; /* muisklikken gaan via het label */
}

/* Label wordt de ster */
.elementor-field-group-starscore .elementor-field-option label {
  --star-size: 28px;                     /* grootte van de ster */
  --star-fill: #f5c518;                   /* vulkleur bij selectie/hover (goud) */
  --star-stroke: #000;                    /* zwarte rand */
  display: inline-grid;
  place-items: center;
  width: var(--star-size);
  height: var(--star-size);
  cursor: pointer;
  user-select: none;

  /* We verbergen de numerieke tekst (1..5), ster komt in ::before */
  font-size: 0;
  line-height: 1;
  position: relative;
}

/* De ster zelf */
.elementor-field-group-starscore .elementor-field-option label::before {
  content: "★"; /* unicode ster */
  font-size: 30px;
  line-height: 1;

  /* Standaard: transparant met zwarte rand */
  color: white;
  -webkit-text-stroke: 2px var(--star-stroke); /* Chrome/Safari */
  /* Fallback 'rand' voor browsers zonder text-stroke */
  text-shadow:
    1px 0 0 var(--star-stroke),
   -1px 0 0 var(--star-stroke),
    0 1px 0 var(--star-stroke),
    0 -1px 0 var(--star-stroke),
    1px 1px 0 var(--star-stroke),
   -1px 1px 0 var(--star-stroke),
    1px -1px 0 var(--star-stroke),
   -1px -1px 0 var(--star-stroke);

  transition: color .12s ease-in-out;
}

/* Geselecteerde OF hover-sterren krijgen vulling */
.elementor-field-group-starscore .elementor-field-option label.is-active::before,
.elementor-field-group-starscore .elementor-field-option label.is-hover::before {
  color: var(--star-fill);
}

/* Toetsenbord focus duidelijk zichtbaar (op het label) */
.elementor-field-group-starscore .elementor-field-option input[type="radio"]:focus + label {
  outline: 2px solid #000;
  outline-offset: 3px;
  border-radius: 4px;
}

/* Optioneel: iets meer ruimte boven/onder het veld */
.elementor-field-group-starscore { margin: .25rem 0; }

/* Footer menu per land */
.exp-footer-item-menu a {
    background-color: #57c472;
    border-radius: 50px;
    margin-bottom: 10px;
    margin-right: 10px !important;
}
.exp-footer-item-menu a:hover {
	background-color: #33984b;	
}


/* =========================================================
   Algemene sterren opmaak (niet de kiyoh review sterren)
   ========================================================= */
.exp-stars {
  font-size: 0;
}

.exp-stars::before {
  content: "\f005 \f005 \f005 \f005 \f005";
  font-family: "Font Awesome 5 Free";
  font-weight: 900; /* solid sterren */
  font-size: 18px;
  color: #ffb814; /* gewenste ster-kleur */
  margin-right: 6px;
}



/* =========================================================
   Kiyoh Reviews – volledige styling + shortcode kolommen
   ========================================================= */

/* =========================================================
   Grid container
   Default: 1 kolom
   ========================================================= */
.kiyoh-reviews {
  display: grid;
  grid-template-columns: 1fr;
  row-gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

/* 2 kolommen op desktop (via shortcode columns="2") */
.kiyoh-reviews.columns-2 {
  grid-template-columns: 1fr 1fr;
  column-gap: 40px;
}

/* =========================================================
   Review card
   ========================================================= */
.kiyoh-review {
  background: #ffffff;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}

/* Binnenlayout: links cijfer, rechts inhoud */
.kiyoh-review-inner {
  display: grid;
  grid-template-columns: 56px 1fr;
  column-gap: 16px;
  align-items: flex-start;
}

/* =========================================================
   Score-cijfer links (9 / 10 etc.)
   ========================================================= */
.kiyoh-rating-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #3fa14c; /* groen, Kiyoh-achtig */
  color: #ffffff;
  font-size: 22px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* =========================================================
   Sterren
   ========================================================= */
.kiyoh-stars {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 20px;
  line-height: 1;
  margin-bottom: 10px;
  color: #ffb814; /* gevuld & half */
}

.kiyoh-stars .far.fa-star {
  color: #dddddd; /* lege ster */
}

/* =========================================================
   Titel / oneliner
   ========================================================= */
.kiyoh-title {
  margin: 0 0 8px 0;
  font-size: 17px !important;
  font-weight: 600;
  color: #1f2937;
}

/* =========================================================
   Reviewtekst
   ========================================================= */
.kiyoh-review p {
  margin: 0 0 12px 0;
  font-size: 16px;
  line-height: 1.65;
  color: #333333;
}

/* =========================================================
   Auteur + link
   ========================================================= */
.kiyoh-review small {
  font-size: 14px;
  color: #666666;
}

.kiyoh-review a {
  color: #0066cc;
  text-decoration: underline;
  font-weight: 500;
}

.kiyoh-review a:hover {
  text-decoration: none;
}


/* =========================================================
   Responsive – mobiel altijd 1 kolom
   ========================================================= */
@media (max-width: 768px) {

  .kiyoh-reviews,
  .kiyoh-reviews.columns-2 {
    grid-template-columns: 1fr;
  }

  .kiyoh-review-inner {
    grid-template-columns: 44px 1fr;
  }

  .kiyoh-rating-number {
    width: 44px;
    height: 44px;
    font-size: 18px;
  }

  .kiyoh-stars {
    font-size: 18px;
  }

  .kiyoh-review p {
    font-size: 15px;
  }
}