/**
 * Theme Name:          Shoptimizer Child
 * Template:            shoptimizer
 * Version:             1.0.0
 * Requires at least:   5.6
 * Tested up to:        6.2
 * Requires PHP:        7.3
 * License:             GNU General Public License v2 or later
 * License URI:         http://www.gnu.org/licenses/gpl-2.0.html
 * Text Domain:         shoptimizer
 */

/* Ensure the search results are not behind the content. */
body.home #content {
	z-index: 0;
}
body.home .commercekit-ajs-results {
	z-index: 10;
}

/* product details USPs alignment */
body.single-product .woocommerce-product-details__short-description > p {
    display: flex;
    align-items: center;
}

body.single-product .woocommerce-product-details__short-description > p img {
    margin-right: 1em;
}

.bigdot { 
    color: green;
}

/* Align USP content horizontally. */
.below-content .col-full .widget_custom_html .custom-html-widget {
    display: flex;
    align-items: center;
}

.below-content .col-full .widget_custom_html .custom-html-widget p {
    padding-left: 10px;
}

.below-woocommerce-category {
    padding: 0;
    margin: 0;
    border: none;
}

.below-woocommerce-category>.wrapper {
    margin-left: auto;
    margin-right: auto;
    padding: 20px 0;
}

.below-woocommerce-category p {
    text-align: left !important;
}

/** rd_01042025 - remove space in footer. */
footer > .elementor-element:first-child {
	display: none;
}

.footer-logos {
    background-color: #e9e9e9;
    padding-top: 8px;
    padding-bottom: 8px;
}

.logos-image {
    max-width: 650px;
    display: block;
    margin: 0px auto;
}

/* category page product price */
ul.products li.type-product .price {
    font-size: 18px;
    color: #00a550;
}

/* product details page product price */
.product p.price {
    font-size: 22px;
}

/* bulk-pricing-tag */
.wccs-bulk-pricing-table-title{
	display:none;
}


a.lmp_button.buttonshowmore {
	font-weight: 600!important;
}

/* Grønt fejlbesked i checkout vedr. forsendelse */
.woocommerce-info.ss-agent-info {
    border-left-color: #3bb54a !important;   /* den lodrette streg */
    background:        #ffffff !important;   /* lys grøn baggrund (tilpas evt.) */
    color:             #000000 !important;   /* tekstfarve */
}

/* category page and product details page color swatches */
.cgkit-as-wrap .cgkit-attribute-swatches .cgkit-attribute-swatch.cgkit-image > button,
.cgkit-as-wrap-plp .cgkit-attribute-swatches .cgkit-attribute-swatch.cgkit-image > button {
	border-radius: 50%;
}

.cgkit-as-wrap .cgkit-attribute-swatches .cgkit-attribute-swatch.cgkit-image button:before,
.cgkit-as-wrap-plp .cgkit-attribute-swatches .cgkit-attribute-swatch.cgkit-image button:before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	border: 1px solid #ccc;
	margin: 0;
	border-radius: 50%;
	z-index: 1;
}

.cgkit-as-wrap .cgkit-attribute-swatches,
.cgkit-as-wrap-plp .cgkit-attribute-swatches {
    overflow: hidden;
    max-height: 41px;
}

/* Show all the swatches on the PDP. */
.commercekit-pdp-sticky-inner .cgkit-as-wrap .cgkit-attribute-swatches,
.commercekit-pdp-sticky-inner .cgkit-as-wrap-plp .cgkit-attribute-swatches {
	overflow: initial;
	max-height: initial;
}


.cgkit-as-wrap .cgkit-attribute-swatches .cgkit-attribute-swatch.cgkit-count > button,
.cgkit-as-wrap-plp .cgkit-attribute-swatches .cgkit-attribute-swatch.cgkit-count > button {
    width: 36px;
    height: 36px;
}

.cgkit-as-wrap .cgkit-attribute-swatches .cgkit-attribute-swatch.cgkit-count span.color-div,
.cgkit-as-wrap-plp .cgkit-attribute-swatches .cgkit-attribute-swatch.cgkit-count span.color-div {
    text-indent: initial;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    font-size: 11px;
    /* cursor: pointer; */
}

.cgkit-as-wrap .cgkit-attribute-swatches .cgkit-attribute-swatch.cgkit-color > button,
.cgkit-as-wrap-plp .cgkit-attribute-swatches .cgkit-attribute-swatch.cgkit-color > button {
    width: 40px;
    height: 40px;
	box-sizing: border-box;
	padding: 1px;
	border: 1px solid transparent;
}

.cgkit-as-wrap .cgkit-attribute-swatches .cgkit-attribute-swatch.cgkit-image img,
.cgkit-as-wrap-plp .cgkit-attribute-swatches .cgkit-attribute-swatch.cgkit-image img {
	border-radius: 50%;
}

.cgkit-as-wrap .cgkit-attribute-swatches .cgkit-attribute-swatch.cgkit-color > button,
.cgkit-as-wrap-plp .cgkit-attribute-swatches .cgkit-attribute-swatch.cgkit-color > button,
.cgkit-as-wrap .cgkit-attribute-swatches .cgkit-attribute-swatch.cgkit-image button,
.cgkit-as-wrap-plp .cgkit-attribute-swatches .cgkit-attribute-swatch.cgkit-image button {
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.cgkit-as-wrap .cgkit-attribute-swatches .cgkit-attribute-swatch.cgkit-color span.color-div,
.cgkit-as-wrap-plp .cgkit-attribute-swatches .cgkit-attribute-swatch.cgkit-color span.color-div,
.cgkit-as-wrap .cgkit-attribute-swatches .cgkit-attribute-swatch.cgkit-image img,
.cgkit-as-wrap-plp .cgkit-attribute-swatches .cgkit-attribute-swatch.cgkit-image img {
	width: 32px;
	height: 32px;
}

/* Adjust the stock status display to align with the clear swatch selection link. */
.commercekit-pdp-sticky-inner .single_variation {
    display: none;
}

.woocommerce-variation-description+.woocommerce-variation-price {
    margin-top: 0;
}

.commercekit-pdp-sticky-inner .single_variation_wrap .in-stock {
	margin-top: 0;
	padding-top: 0;
}

/* Checkout bar */
.hh-checkout-bar {
	background-color: #ececec;
	position: relative;
	display: flex;
	width: 80%;
	height: 2px;
	margin: 0 auto 20px 10%;
	padding: 0;
	border-radius: 6px;
	background-size: 35px 35px;
}

.woocommerce-checkout .hh-checkout-bar .checkout-step.active:after,
.hh-checkout-bar .checkout-step.visited:after {
	background-color: #3bb54a;
}

.hh-checkout-bar:before {
	position: absolute;
	left: 0;
	width: 17%;
	height: 2px;
	border-radius: 6px;
	background-color: #3bb54a;
	background-size: 35px 35px;
	content: " ";
}

.hh-checkout-bar .checkout-step {
	display: inline-block;
	position: relative;
	width: 33.333%;
	margin: 22px 0 0;
	padding: 0;
	background-color: transparent;
	font-size: 14px;
	font-weight: 400;
	text-align: center;
	vertical-align: top;
}

.hh-checkout-bar .checkout-step a {
	color: #111;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
}

.woocommerce-cart .hh-checkout-bar .checkout-step.active a::before,
.woocommerce-checkout .hh-checkout-bar .checkout-step.active a::before,
.woocommerce-checkout .hh-checkout-bar .checkout-step.next a::before {
	z-index: 4;
	background: #444;
}

.hh-checkout-bar .checkout-step:nth-child(1) a::before {
	content: "1";
}

.hh-checkout-bar .checkout-step:nth-child(2) a::before {
	content: "2";
}

.hh-checkout-bar .checkout-step:nth-child(3) a::before {
	content: "3";
}

.hh-checkout-bar .checkout-step a::before {
	position: absolute;
	z-index: 3;
	top: -40px;
	left: 50%;
	margin-left: -19px;
	width: 26px;
	height: 26px;
	border: 6px solid #fff;
	border-radius: 50%;
	color: #fff;
	background: #ddd;
	box-sizing: content-box;
	font-size: 14px;
	font-weight: 700;
	line-height: 26px;
	text-align: center;
}

.woocommerce-checkout .hh-checkout-bar .checkout-step.active a::after,
.woocommerce-checkout .hh-checkout-bar .checkout-step.visited a::after {
	background-color: #3bb54a;
}

.hh-checkout-bar .checkout-step a::after {
	position: absolute;
	z-index: 0;
	top: -22px;
	left: 50%;
	width: 100%;
	height: 2px;
	background-color: #ccc;
	background-size: 35px 35px;
	content: "";
}

.hh-checkout-bar .checkout-step:last-child a::after {
	width: 50%;
}

#page .site-header-cart > li > .cart-click .cart-contents .count,
#page .site-header-cart > li > .cart-click .cart-contents .amount {
	visibility: hidden;
}

@media (max-width: 993px) {
	.mobile-overlay {
		max-width: 100vw;
	}
	body.single-product .cgkit-swatch-form details,
    body.archive .cgkit-swatch-form details {
        display: none;
    }
}

@media (max-width: 768px) {
	.hh-checkout-bar {
		width: 100%;
		margin-left: 0;
	}
	.hh-checkout-bar .checkout-step a {
		font-size: 11px;
	}

	.hh-checkout-bar .checkout-step a::before {
		left: 50%;
		margin-left: -19px;
	}
}

@media (max-width: 490px) {
    .logos-image {
        max-width: 90%;
    }
	.hh-checkout-bar .checkout-step a span {
		visibility: hidden;
	}
}

body.single-product .product-brands {
	display: none;
}

.wpml-ls-menu-item .wpml-ls-flag {
	width: 18px;
	height: 12px;
}

header.woocommerce-products-header .term-description {
	padding: 0;
	max-width: 100%;
}

/* Checkboxe */
input[type="checkbox"],
input[type="radio"] {
  accent-color: #000000; /* skift til din ønskede farve */
}

/* Order bump - minicart */
.commercekit-order-bump .ckobp-actions{
    display: flex;
    flex-shrink: 1!important;
}

.commercekit-order-bump .ckobp-actions button {
    padding: 5px 13px;
    font-size: 10px!important;
    font-weight: bold;
    color: #111;
    border: 1px solid #e2e2e2;
    background: linear-gradient(180deg, white, #eee 130%) no-repeat;
    border-radius: 4px;
    transition: 0.2s all;
}
	
/* Knap + iframe til nyhedsbrev (GLOBAL) */

/* Sort basis-knap til NL (brug class="hh-nl-btn") */
.hh-nl-btn {
  font-size: 19px!important;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: 12px 3.5rem !important;
  border-radius: .3rem;
  border: 1px solid #ddd;
  background: #000;
  color: #fff;
  cursor: pointer;
  position: relative;
  z-index: 1;
  transition: background-color .0s ease, color .0s ease;
}
.hh-nl-btn:hover { background: #1F9B30; color:#fff; } /* grøn hover */

/* Grøn variant-API (vi bruger den som: sort -> grøn på hover) */
.hh-btn-green {
font-size: 19px!important;
  background-color: #000 !important;  /* sort før hover */
  color: #fff !important;
  border: none !important;
  border-radius: 3px !important;
  padding: 12px 3.5rem !important;
  font-weight: 500 !important;
  font-family: "Dosis", sans-serif !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: background-color .0s ease, color .0s ease !important;
}
.hh-btn-green:hover,
.hh-btn-green:focus {
  background-color: #1F9B30 !important; /* grøn hover */
  color: #fff !important;
}

/* Nyhedsbrevs-iframe layout */
.hh-nl-iframe {
  width: 100%;
  height: 100%;
  border: 0;
  padding: 50px;
  box-sizing: border-box;
}

/* Breadcrumb hover */
.woocommerce-breadcrumb a:hover { color: #000 !important; text-decoration: none; }

/* NEWSLETTER - STYLING */
#newsletters-1-form .btn-primary {
    background-color: #0a0101;
    border-color: #0a0101;
}
#newsletters-1-form .btn {
    border-style: solid;
    border-width: 5px;
    border-radius: 5px;
    width: 100%;
    margin-top: 20px;
    color: #ffffff;
    transition: 0.0s all !important;
}

.woocommerce-mini-cart__buttons {
	display: flex;
	flex-direction: row-reverse;
	align-items: center;
	justify-content: space-around;
	gap: 1em;
}

.woocommerce-mini-cart__buttons .button {
	flex-grow: 1;
    margin-bottom: .6180469716em;
	text-align: left;
	display: flex;
	align-items: center;
	justify-content: space-between;
	background-repeat: no-repeat;
	background-position: right 15px top 50%;
}

.widget_shopping_cart .buttons .checkout:before {
	mask-image: none;
	content: none;
}

.widget_shopping_cart .buttons a.button.checkout.hh-shop-more {
	background-color: transparent;
	color: #3bb54a;
}

.woocommerce-mini-cart__buttons .hh-shop-more {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%233bb54a' stroke-width='1' stroke-linecap='round' stroke-linejoin='round' class='feather feather-chevron-right'%3E%3Cpolyline points='9 18 15 12 9 6'%3E%3C/polyline%3E%3C/svg%3E");
	background-position: right 10px top 50%;
}

.woocommerce-mini-cart__buttons .button:first-child {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='1' stroke-linecap='round' stroke-linejoin='round' class='feather feather-shopping-bag'%3E%3Cpath d='M6 2L3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4z'%3E%3C/path%3E%3Cline x1='3' y1='6' x2='21' y2='6'%3E%3C/line%3E%3Cpath d='M16 10a4 4 0 0 1-8 0'%3E%3C/path%3E%3C/svg%3E");
}

.hh-farveguide-btn {
	font-family: Dosis!important;
	font-size: 16px!important;
    background-color: #fce9c9 !important;
    color: #000 !important;
    border: none !important;
    padding-top: 5px!important;
    padding-bottom: 5px!important;
    padding-right: 20px!important;
    padding-left: 10px!important;
    border-radius: 8px !important;
    font-weight: 500 !important;
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease;
}

/* Ikonet i knappen (kun hvis icon= er sat) */
.hh-farveguide-btn .hh-modal-icon {
    width: 50px;
    height: 50px;
    margin-right: 8px;
    vertical-align: middle;
}

/* Hover */
.hh-farveguide-btn:hover {
    background-color: #efd7b5 !important;
    color: #000 !important;
    }

/* ========= TONE-SEKTION – fælles for side + modal ========= */

/* Ikon- og tekst-celler i tone-tabeller */
.hh-tone-table td {
  vertical-align: middle !important; /* ikon og tekst flugter lodret */
  padding-top: 0 !important;
  padding-bottom: 8px !important;    /* lille luft nedad mellem rækkerne */
}

/* Første celle = ikon */
.hh-tone-table td:first-child {
  width: 110px !important;
  padding-right: 16px !important;    /* afstand mellem ikon og tekst */
}

/* Selve ikonet */
.hh-tone-table img {
  display: block !important;
  max-width: 110px !important;
  height: auto !important;
  margin: 0 !important;              /* ingen ekstra margin rundt om */
}

/* Tving alle ikon-celler i farveguide-modals til middle alignment */
.hhmb-body .hh-page table[role="presentation"] td:first-child {
    vertical-align: middle !important;
}

/* Ikoner skal flugte visuelt med midten */
.hhmb-body .hh-page table[role="presentation"] td:first-child img {
    display: block !important;
    margin: 0 0 0 0 !important;
}

.hh-tone-table strong em {
    display: inline-block;
    margin-bottom: 2px;
}

/* ---------- Kategori beskrivelse ---------- */
.content-margin-vertical {
  margin-top: 3%;
  margin-bottom: 5%;
  font-size: 16px;          /* desktop base */
  line-height: 1.6;
}

.content-margin-vertical h2 {
  font-size: 32px;
  line-height: 1.25;
  margin-bottom: 0.6em;
}

.content-margin-vertical h3 {
  font-size: 22px;
  line-height: 1.3;
  margin-top: 1.8em;
  margin-bottom: 0.5em;
}

.content-margin-vertical p,
.content-margin-vertical {
  margin-bottom: 1em;
}

/* Links – diskret men tydelige */
.content-margin-vertical a {
  text-decoration: underline;
}

/* ---------- MOBIL ---------- */
@media (max-width: 767px) {
  .content-margin-vertical {
    font-size: 15px;       /* bedre læsbarhed på mobil */
    line-height: 1.65;
  }

  .content-margin-vertical h2 {
    font-size: 24px;       /* vigtig: ikke for stor */
    line-height: 1.25;
  }

  .content-margin-vertical h3 {
    font-size: 18px;
    line-height: 1.3;
  }
}

/* ---------- MEGET SMÅ MOBILER ---------- */
@media (max-width: 360px) {
  .content-margin-vertical {
    font-size: 14.5px;
  }
	
/* -- FAQ til PLP'er og brands ---*/
	.hh-faq-intro h2 {
  font-size: clamp(26px, 3vw, 32px) !important;
  line-height: 1.15 !important;
}

.hh-faq-intro p {
  font-size: 1rem !important;
  line-height: 1.6 !important;
}

.hh-faq-question span:first-child {
  font-size: clamp(16px, 2vw, 18px) !important;
  line-height: 1.35 !important;
  font-weight: 600 !important;
}

.hh-faq-answer p,
.hh-faq-answer ul,
.hh-faq-answer ol {
  font-size: 0.95rem !important;
  line-height: 1.65 !important;
}

.hh-faq-question {
  padding: 14px 0 !important;
}

.hh-faq-answer {
  padding: 0 0 14px !important;
}

