/*!
Theme Name:   Hvalsoe
Template:     shoptimizer
Theme URI:    https://github.com/webmandesign/child-theme/
Author:       Thomas Kuperman
Author URI:   https://www.hvalsoe-desing.dk
Version:      1.0.0
Description:  Hvalsoe
License:      GNU General Public License v3
License URI:  http://www.gnu.org/licenses/gpl-3.0.html

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned with others.

IMPORTANT:
Read the instructions in https://github.com/webmandesign/child-theme/blob/master/readme.md
and rename CHILD_THEME_NAME and PARENT_THEME_SLUG in this file appropriately!
*/

/* Put your custom CSS styles below... */

/*Hide pagination 
.woocommerce-pagination {
	visibility: hidden;
}
*/

/*.product-details-wrapper {
	max-width: 100% !important;
}
*/

.product-page-offer {
  display: flex;
  align-items: center;
  background-color: #f2f2f2; /* light grey background */
  padding: 20px;
  margin: 20px 0;
}

.product-img-wrapper {
  flex: 0 0 auto;
  margin-right: 15px;
}

.product-img-wrapper img {
  max-width: 60px;   /* adjust size to match design */
  height: auto;
  display: block;
}

.product-offer {
  flex: 1;	
align-self: center;
justify-content: center;
display: flex;
flex-direction: column;
}

.product-offer .offer-title {
  font-family: Inter;
  font-size: 15px;
  line-height: 1.2;
  margin-bottom: 5px;
  font-weight: 800;
}

.product-offer .offer-description {
  font-size: 13px;
  color: #333;
  line-height: 1.2;
}

.product-offer .offer-description strong {
  font-weight: bold;
}


.category-designs {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 kolonner */
  gap: 20px; /* afstand mellem billederne */
  margin: 30px 0;
}

.category-designs .design-item,
.category-designs a.design-item {
  display: block;
  text-align: center;
}

.category-designs img {
  max-width: 100%;
  height: auto;
  border-radius: 6px; /* valgfri styling */
}


.bw-yellow.menu-item a {
	background-color: #333;
	padding: 4px;
	color: #ffc637 !important;
	font-weight: bold !important;
}

.divi_checkbox_class .divi_checkbox_class_item {
	margin-bottom: 0px !important;
}

.divi_checkbox_class h3 {
	border-bottom: none;
	margin-bottom: .65em;
	padding-bottom: 0;
}

.berocket_ajax_group_filter_title {
	display: none;
}

.divi_checkbox_class h3 {
	color: #111 !important;	
}
.divi_checkbox_class .divi_checkbox_class_item label {
	color: #555 !important;	
	font-family: Inter, Arial;
}

.divi_checkbox_class .divi_checkbox_class_item input[type=checkbox] {
	height: 16px;
	width: 16px;
}

.divi_checkbox_class .divi_checkbox_class_item input[type=checkbox]:checked:before {
	height: 4px;
    width: 12px;
    left: 0px;
    top: 3px;
}

form.variations_form .variations label {
    width: auto !important;
}

#secondary input[type=search] {
	font-size: 14px;
}

.woocommerce-tabs.wc-tabs-wrapper, body.pdp-full #page .woocommerce-tabs,
div.product .product_meta:has(span) {
	background-color: #fafafa;	
}

.woocommerce-message-alert {
	background-color: #b53b3b !important;
}

.product p.price {
	font-size: 24px;
}

#cardlogos {
	display: block;
	width: auto;
	overflow: auto;
}

#cardlogos img {
	display: inline-block;
}

.returns-form label {
	font-weight: bold;
	display: block;
}

.returns-form .form-input {
	margin-bottom: 10px;
}

.returns-form .half-half {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	grid-gap: 15px 15px;
	gap: 15px 15px;
}

.returns-form input[type=text],
.returns-form input[type=number],
.returns-form input[type=email],
.returns-form select {
	display: block;
    width: 100%;
    max-width: 250px;
}

.returns-form textarea {
	display: block;
    width: 100%;
    max-width: 350px;
}

.returns-form .form-input.full-width textarea,
.returns-form .form-input.full-width select {
	max-width: unset;
}

body input[type=number] {
	border: 1px solid #d2d6dc;
    border-radius: 0.3rem;
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 5%);
    font-size: 15px;
    padding-left: 0.7em;
    padding-right: 0.7em;

    box-sizing: border-box;
    padding: 0.5180469716em;
    outline: 0;
    color: #222;
    -webkit-appearance: none;
    font-weight: 400;
}

.returns-form .button { 
	padding: 15px 20px;
    border-radius: 5px;
    font-weight: bold;
}

.returns-form-response {
	font-size: 18px;
	line-height: 1.5;
}

/* Remove when translation of commerguru plugin is fixed */
.ckwtl-os-label {
	display: none !important;
}

.over-cart-notice {
	text-align: left;
	padding: 10px;
    font-size: 16px;
    background-color: #eee;
    font-weight: bold;
    border: 1px solid rgba(0,0,0,0.025);
    box-shadow: 0px 0px 12px -10px rgba(0,0,0,1);
    border-radius: 7px;
}

.after-cart-info-container {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	grid-gap: 15px;
	gap: 15px;
}

.after-cart-info-container .payment-methods {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	grid-gap: 5px;
	gap: 5px;
}

.after-cart-info-container .payment-method {
	padding: 4px 8px;
    border: 1px solid #eee;
    display: inline-block;
    min-width: 30px;
    text-align: center;
    height: 100%;
}

.after-cart-info-container img {
	height: 16px;
	width: auto;
	display: inline-block;
	vertical-align: middle;
}

.after-cart-info-container .tp-container {
    display: flex;
    justify-content: flex-end;
    align-content: center;
    flex-wrap: wrap;
}

.after-cart-info-container .tp-container img {
	height: 30px;
	width: auto;
}

/**
*	component-half-image-text
*/
.component-half-image-text {
	display: flex;
}

.component-half-image-text.text-first {
	flex-direction: row-reverse;
}

.component-half-image-text .col-half {
	width: 50%;
	align-items: center;
    display: flex;
}

.component-half-image-text .text-container {
	padding: 40px;
}

.woocommerce-image__wrapper .product-custom-label {
	position: absolute;
    top: 5px;
    right: 5px;
    background-color: #000;
    padding: 3px 5px;
    color: #fff;
    z-index: 2;
    font-size: 12px;
    font-weight: bold;
    border-radius: 5px;
}



body ul.products li.product:hover .button {
    width: 100%;
}


body ul.products li.product .button {
	position: relative !important;
}

.alternatives-container .alternative {
	display: flex;
	align-items: center;
	box-shadow: 0px 0px 15px -3px rgba(0,0,0,0.1);
}

.alternative-header {
	font-size: 14px;
	margin-top: 25px;
}

.alternative-img {
    flex: 0 0 80px; /* Fix the first column at 50px */
    margin-right: 10px; /* Add margin for spacing */
    padding: 0 5px;
}

.alternative-title {
	font-size: 14px;
    flex: 1; /* Allow the title to take remaining space */
    display: flex;
    align-items: center; /* Center the text vertically */
    font-weight: bold;
    padding: 5px;
}

.alternative-price {
	font-size: 14px;
    margin-left: auto; /* Push the price to the right */
    font-weight: bold;
    padding: 5px 20px 5px 5px;
}

ul.products li.product .price ins {
	color: #31a12b !important;
}

.product.sale.product-type-variable .price > .woocommerce-Price-amount bdi {
	color: #31a12b !important;
	font-weight: bold !important;

}

@media screen and (max-width: 768px) {
	.sale-item.product-label.type-bubble {
		display: none !important;
	}

	.product.sale .price,
	.product.sale .woocommerce-Price-amount.amount,
	.product.sale .price bdi
	 {
		color: #31a12b !important;
		font-weight: bold !important;
	
	}
}
@media screen and (min-width: 1024px) {
	.component-half-image-text .text-container {
		padding: 40px 80px;
		max-width: 800px;
	}

}