/* Header utility icons: search matches cart + account */
.wp-block-search.wp-block-search__button-only {
  width: auto;
}

.wp-block-search.wp-block-search__button-only .wp-block-search__button {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  color: currentColor;
}

.wp-block-search.wp-block-search__button-only .wp-block-search__button:hover,
.wp-block-search.wp-block-search__button-only .wp-block-search__button:focus {
  background: transparent;
  color: currentColor;
}

.wp-block-search.wp-block-search__button-only .wp-block-search__button svg {
  width: 24px;
  height: 24px;
  min-width: 24px;
  min-height: 24px;
  fill: currentColor;
  padding-top: 15px;
}

.wc-block-mini-cart__button,
.wp-block-woocommerce-customer-account a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: inherit;
}

.wc-block-mini-cart__icon,
.wp-block-woocommerce-customer-account svg {
  width: 24px;
  height: 24px;
}
/*Keep icon row from wrapping*/
.wp-block-search.wp-block-search__button-only .wp-block-search__inside-wrapper {
  justify-content: flex-end;
}

/* Language switcher: no bullets, no underline, no wrap */
.widget_polylang ul,
.wp-block-polylang-language-switcher,
.wp-block-polylang-language-switcher ul,
ul.pll-switcher,
.pll-switcher,
li.lang-item,
li.lang-item ul {
  list-style: none;
  margin: 0;
  padding: 0;
  padding-left: 0;
}

.widget_polylang a,
.wp-block-polylang-language-switcher a,
.pll-switcher a,
li.lang-item a {
  text-decoration: none;
  white-space: nowrap;
}

li.lang-item,
.wp-block-polylang-language-switcher li,
.pll-switcher li {
  white-space: nowrap;
  padding-left: 5px;
}

.widget_polylang a:hover,
.widget_polylang a:focus,
.wp-block-polylang-language-switcher a:hover,
.wp-block-polylang-language-switcher a:focus,
.pll-switcher a:hover,
.pll-switcher a:focus,
li.lang-item a:hover,
li.lang-item a:focus {
  text-decoration: none;
}

/**TripAdvisor icon on the generic Link socialmedia entry bottom footer*/
.wp-social-link.is-tripadvisor a{
  position: relative;
  background-color: #34e0a1 !important;
  color: #fff;
  border-radius: 50%;
}

.wp-social-link.is-tripadvisor a svg{
  opacity: 0;
}

.wp-social-link.is-tripadvisor a::before {
  content: "";
  position: absolute;
/*  background-color: currentColor;*/
  inset: 5%;
  background-color: #fff;
  -webkit-mask: url("/wp-content/plugins/divine/assets/tripadvisor_w.svg") center / contain no-repeat;
          mask: url("/wp-content/plugins/divine/assets/tripadvisor_w.svg") center / contain no-repeat;
}

/*Contact form styling*/
.wpcf7 {
  max-width: 40rem;
}

.wpcf7 label {
  display: block;
  margin: 0 0 1.1rem;
  font-size: 0.95rem;
}

.wpcf7-form-control:not(.wpcf7-submit) {
  display: block;
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid color-mix(in srgb, currentColor 25%, transparent);
  border-radius: 2px;
  background: #fff;
  color: inherit;
  font: inherit;
  box-sizing: border-box;
}

.wpcf7-form-control:not(.wpcf7-submit):focus {
  outline: 2px solid currentColor;
  outline-offset: 1px;
  border-color: currentColor;
}

.wpcf7-textarea {
  min-height: 9rem;
  resize: vertical;
}

.wpcf7-submit {
  display: inline-block;
  margin-top: 0.4rem;
  padding: 0.75rem 1.4rem;
  border: 0;
  border-radius: 2px;
  background: #3a2415;
  color: #fff;
  font: inherit;
  letter-spacing: 0.02em;
  cursor: pointer;
}

.wpcf7-submit:hover,
.wpcf7-submit:focus {
  background: #24160d;
}

.wpcf7-not-valid-tip {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.85rem;
  color: #8a2b2b;
}

.wpcf7-response-output {
  margin: 1rem 0 0;
  padding: 0.7rem 0.8rem;
  border: 1px solid color-mix(in srgb, currentColor 25%, transparent);
  border-radius: 2px;
}

/*Contact google ifrfame size*/
.googlemap iframe{
    width: 750px;
    height: 600px;
}

/*Homepage categories list visuals*/
.home-categories {
  list-style: none;
  margin-left: 0;
  /*margin-top: 10px;*/
  padding-left: 0;
  padding-inline-start: 0;
}
.home-categories li {
  /*margin: 0;
  padding: 0;
  list-style: none;*/
  font-weight: 600;
}
.home-categories li::marker {
  content: none;
}
.home-categories > li:first-child {
  margin-top: 0;
}

/*A link decorations*/
a:where(:not(.wp-element-button)) {
  text-decoration: none;
}
a:where(:not(.wp-element-button)):hover,
a:where(:not(.wp-element-button)):focus {
  text-decoration: underline;
}

/*Show second image on hover: this hides the first image*/
.wc-block-components-product-image a { position: relative; display: block; }

.wc-block-components-product-image .dc-hover-image {
	position: absolute; inset: 0;
	width: 100%; height: 100%;
	object-fit: cover;
	opacity: 0;
}
@media (hover: hover) {
	.wc-block-components-product-image a:hover:has(.dc-hover-image) img:not(.dc-hover-image) { opacity: 0; }
	.wc-block-components-product-image a:hover .dc-hover-image { opacity: 1; }
}

.wc-block-components-product-image a img,
.wc-block-components-product-image a .dc-hover-image {
	transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
.wc-block-components-product-image a .dc-hover-image {
	opacity: 0;
}
@media (prefers-reduced-motion: reduce) {
	.wc-block-components-product-image a img {
		transition: none !important;
	}
}
/*Show second image on no-mouse devices when image reaches top 1/4th of the viewport (JS sets is-scrolled-in)*/
@media (hover: none), (pointer: coarse) {
	.wc-block-components-product-image.is-scrolled-in img:first-child {
		opacity: 0;
	}
	.wc-block-components-product-image.is-scrolled-in .dc-hover-image {
		opacity: 1;
	}
}


/*Truffles page fit image correctly*/
.term-build-a-box-select-your-own-menu .wc-block-components-product-image a,
.term-boite-de-chocolats-a-selectionner-menu .wc-block-components-product-image a{
	position: relative;
	display: block;
	aspect-ratio: 1 / 1;
  padding: 20%;
  padding-bottom: 0px;
  padding-top: 0px;
}
.term-build-a-box-select-your-own-menu li.wc-block-product,
.term-boite-de-chocolats-a-selectionner-menu li.wc-block-product{
    padding-bottom: 40px;
}
.term-build-a-box-select-your-own-menu .wc-block-components-product-image img,
.term-boite-de-chocolats-a-selectionner-menu .wc-block-components-product-image img,
.term-build-a-box-select-your-own-menu .wc-block-components-product-image .dc-hover-image,
.term-boite-de-chocolats-a-selectionner-menu .wc-block-components-product-image .dc-hover-image {
	width: 100% !important;
	height: 100% !important;
	aspect-ratio: auto !important;
	object-fit: contain !important;

}

/*Hide price filter on Truffles page*/
.term-build-a-box-select-your-own-menu .wp-block-woocommerce-product-filter-price,
.term-boite-de-chocolats-a-selectionner-menu .wp-block-woocommerce-product-filter-price {
	display: none;
}

/*Sort drop down color and look*/
.woocommerce-ordering select {
	appearance: none;
	-webkit-appearance: none;
	color: var(--wp--preset--color--contrast);
	background-color: var(--wp--preset--color--base);
	color-scheme: light;
	font: inherit;
	font-size: 0.9rem;
	letter-spacing: 0.02em;
	line-height: 1.2;
	padding: 0.55rem 2.2rem 0.55rem 0.9rem;
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--contrast) 25%, transparent);
	border-radius: 999px;
	box-shadow: none;
	cursor: pointer;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%23333' stroke-width='1.4' stroke-linecap='round' d='M1 1.5 6 6.5 11 1.5'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 0.85rem center;
}
.woocommerce-ordering select:hover,
.woocommerce-ordering select:focus {
	border-color: var(--wp--preset--color--contrast);
	outline: none;
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--wp--preset--color--contrast) 12%, transparent);
}

/*Price filter fields colors*/
.wp-block-woocommerce-product-filter-price input[type="text"],
.wp-block-woocommerce-product-filter-price input[type="number"] {
	appearance: none;
	color: var(--wp--preset--color--contrast);
	background-color: var(--wp--preset--color--base);
	color-scheme: light;
	font: inherit;
	font-size: 0.9rem;
	letter-spacing: 0.02em;
	line-height: 1.2;
	padding: 0.55rem 0.9rem;
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--contrast) 25%, transparent);
	border-radius: 999px;
	box-shadow: none;
	width: 6.5rem;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.wp-block-woocommerce-product-filter-price input[type="text"]:hover,
.wp-block-woocommerce-product-filter-price input[type="text"]:focus,
.wp-block-woocommerce-product-filter-price input[type="number"]:hover,
.wp-block-woocommerce-product-filter-price input[type="number"]:focus {
	border-color: var(--wp--preset--color--contrast);
	outline: none;
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--wp--preset--color--contrast) 12%, transparent);
}

/*Collections banners*/
.dc-cat-banner img {
	display: block;
	width: 100%;
	object-fit: cover;
	border-radius: 3px;
}

.view-corporate-header-text,
.view-truffles-header-text{
    font-size: 18px;
    font-weight: 700;
    padding: 8px 10px;
	display: block;
	width: calc(100% - 20px);
}

/* Dont show categories menu on All Products (only filtering there) and Collections*/
body.woocommerce-shop .categories-menu-block,
body.term-halloween .categories-menu-block,
body.term-halloween-fr .categories-menu-block,
body.term-christmas .categories-menu-block,
body.term-noel .categories-menu-block,
body.term-valentine .categories-menu-block,
body.term-st-valentin .categories-menu-block,
body.term-mothers-day .categories-menu-block,
body.term-fete-des-meres .categories-menu-block,
body.term-fathers-day .categories-menu-block,
body.term-easter .categories-menu-block,
body.term-paques .categories-menu-block,
body.term-events .categories-menu-block,
body.term-evenements .categories-menu-block,
body.term-corporate .categories-menu-block,
body.term-corporatif .categories-menu-block{
  display: none;
}

.wc-block-checkout__shipping-option .read-more-content__read_more { display: none; }

/*Free gift message label and instructins*/
.wc-block-checkout .wc-block-components-address-form__divine-gift-message {
	display: flex;
	flex-direction: column;
}
.wc-block-checkout .wc-block-components-address-form__divine-gift-message label {
	order: -1;
	position: static;
	transform: none;
	opacity: 1;
	display: block;
	font-size: 1rem;
	margin-bottom: 0.25rem;
}
.wc-block-components-address-form__divine-gift-message::after {
	content: "Write a short message to include with the gift. Invoice will not be sent with the shipment.";
	display: block;
	font-size: 0.8rem;
	margin-top: 0.5rem;
	opacity: 0.75;
}
html[lang^="fr"] .wc-block-components-address-form__divine-gift-message::after {
	content: "Écrivez un court message à joindre au cadeau. La facture ne sera pas envoyée avec le paquet.";
}
/*Order Note special instructions */
.wc-block-checkout__add-note::after {
	content: "Explain any special request you have about this order. You may want to contact us beforehand to make sure we can fulfill them. ";
	display: block;
	font-size: 0.8rem;
	margin-top: 0.25rem;
	opacity: 0.75;
}
html[lang^="fr"] .wc-block-checkout__add-note::after {
	content: "Donnez-nous vos instructions spéciales ici. Vous devriez nous contacter au préalable pour être certain que nous pourrons vous accomoder.";
}

/*Notice area on checkout, dont center*/
.wc-block-checkout .wc-block-components-notices,
.wc-block-checkout .wc-block-components-notices__notice,
.woocommerce-checkout .wc-block-components-notice-banner.is-error {

	max-width: var(--wp--style--global--wide-size);
}

/*Product images in listings: featherd edges*/
.woocommerce-shop .wc-block-components-product-image img,
.tax-product_cat .wc-block-components-product-image img,
.search-results .wc-block-components-product-image img {
	-webkit-mask-image:
		linear-gradient(to right, transparent, #000 1%, #000 99%, transparent),
		linear-gradient(to bottom, transparent, #000 1%, #000 99%, transparent);
	-webkit-mask-composite: source-in;
	mask-image:
		linear-gradient(to right, transparent, #000 1%, #000 99%, transparent),
		linear-gradient(to bottom, transparent, #000 1%, #000 99%, transparent);
	mask-composite: intersect;
}

/**Golden frame on product listings - Not on Build-A-Box*/
/*
body:not(.term-build-a-box-select-your-own-menu):not(.term-boite-de-chocolats-a-selectionner-menu) .wc-block-components-product-image {
	position: relative;
}
body:not(.term-build-a-box-select-your-own-menu):not(.term-boite-de-chocolats-a-selectionner-menu) .wc-block-components-product-image::after {
	content: "";
	position: absolute;
	inset: 0;
	background: url("/wp-content/uploads/2026/10/frame-golden_280.png") center / 100% 100% no-repeat;
	pointer-events: none;
}
*/
/*Prevent magnifier icon to disappear*/
.wp-block-search.wp-block-search__button-only {
	flex-shrink: 0;
	min-width: 32px;
}

/*Hamburger / overlay menu styling*/
.wp-block-navigation:not(.has-background) .wp-block-navigation__responsive-container.is-menu-open:not(.disable-default-overlay) {
	background-color: #f8f4e9;
	background-image: url("/wp-content/uploads/2026/09/bg.png");
	background-repeat: repeat;
	background-position: 50% 0;
	color: #492814;
}


/*Slideshow controls*/
body .home-slideshow.is-layout-flex {
  display: block;
}
.wp-block-gallery.home-slideshow.has-nested-images > figure.wp-block-image {
  display: none;
  width: 100%;
  margin: 0;
}
.wp-block-gallery.home-slideshow.has-nested-images > figure.wp-block-image.is-active {
  display: block;
}
.home-slideshow > .wp-block-image img {
  width: 100%;
  height: auto;
}
.wp-block-gallery.home-slideshow.has-nested-images.columns-default > figure.wp-block-image:not(#individual-image),
.wp-block-gallery.home-slideshow.has-nested-images.columns-default > figure.wp-block-image.is-active {
  width: 100%;
  max-width: none;
}

.home-slideshow > .wp-block-image figcaption {
  display: none;
}
.home-slideshow-controls {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.5rem;
}
.home-slideshow-controls button {
  background: none;
  border: 0;
  color: #492814;
  cursor: pointer;
  font: inherit;
  padding: 0.5rem;
}
.home-slideshow-controls button.is-active {
  font-weight: 700;
  text-decoration: none;
}
.home-slideshow-controls button:focus,
.home-slideshow-controls button:focus-visible {
  outline: none;
}
/*Force slideshow image to 1000x568*/
.wp-block-gallery.home-slideshow.has-nested-images > figure.wp-block-image.is-active {
  position: relative;
  width: 100%;
  max-width: 1000px;
  aspect-ratio: 1000 / 568;
}
.home-slideshow > .wp-block-image.is-active img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
}
.home-slideshow > .wp-block-image.is-active img {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  aspect-ratio: auto !important;
  object-fit: fill;
}

/*Back to top button widget*/
.back-to-top {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 100;
  /*background: transparent;*/
  background: #fcf6e5;
  color: #492814;
  border: 2px solid #492814;
  border-radius: 9999px;
  padding: 0.4rem 0.9rem;
  font: 600 14px/1.2 "Ysabeau Office", sans-serif;
  letter-spacing: 1.44px;
  text-transform: uppercase;
  cursor: pointer;
}
.back-to-top:hover,
.back-to-top:focus {
  background: #ecf6e5;
  outline: none;
}

/**Changes for ipad and smaller*/
@media (max-width: 859px) {
  /*Remove the text right of Logo+*/
	.divine-passion-text {
		display: none;
	}

  /*Remove whitespalce from Add to cart shortcut buttons*/
  .woocommerce-shop .add_to_cart_button,
  .tax-product_cat .add_to_cart_button,
  .search-results .add_to_cart_button {
    padding: 4px;
    padding-left: 6px;
    padding-right: 6px;
  }
}/*859px*/

/**Changes for mobil: 781px (519px later)*/
@media (max-width: 781px) {
    /*Home page banner first*/
   .home .richard-slideshow-columns  {
		flex-direction: column-reverse;
	}
	.home .richard-slideshow-columns  > .wp-block-column {
		flex-basis: 100% !important;
		width: 100%;
	}
  .wc-blocks-header-pattern .wp-block-columns {
		gap: 0;
		row-gap: 0px;
	}
	.wc-blocks-header-pattern .wp-block-columns > .wp-block-column {
		margin-top: 0;
		margin-bottom: 0;
	}
	/*Home page Richard and categories not stacked*/
	/*Not needed since we removed Richard*/
	/*.home .richard-slideshow-columns > .wp-block-column:first-child {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 2rem;
	}
	.home .richard-slideshow-columns > .wp-block-column:first-child > .wp-block-group:first-child {
	flex: 0 1 auto;
	max-width: 40%;
	}
	.home .richard-slideshow-columns > .wp-block-column:first-child > .categories-menu-block {
	flex: 1 1 auto;
	min-width: 0;
	}
	.home .richard-slideshow-columns > .wp-block-column:first-child .home-categories,
	.home .richard-slideshow-columns > .wp-block-column:first-child .home-categories a {
	overflow-wrap: normal;
	word-break: normal;
	}
	.home .richard-slideshow-columns > .wp-block-column:first-child .home-categories > li:first-child {
		margin-top: 0;
	}*/

	/*reduce content top padding on home page*/
	.divine-home-page-content {
		padding-top: 0 !important;
	}

	/*On categories page, but back bullets on home-categories list, and make it horizontal*/
	body:not(.home) .home-categories {
		display: flex;
		flex-direction: row;
		flex-wrap: wrap;
		gap: 0.35rem 0.9rem;
		padding-bottom: 0;
	}
	body:not(.home) .home-categories > li {
		margin: 0;
	}
	body:not(.home) .home-categories > li::before {
		content: "•";
		margin-right: 0.35em;
	}

}/*781px*/

/**Changes for smaller mobile*/
@media (max-width: 519px) {
  /*Cart icons row under logo*/
	.wc-blocks-header-pattern .wp-block-columns {
		flex-wrap: wrap !important;
	}
	.wc-blocks-header-pattern .wp-block-columns > .wp-block-column {
		flex-basis: 100% !important;
		width: 100%;
	}
    .wc-blocks-header-pattern .wp-block-columns > .wp-block-column:last-child .wp-block-group {
		justify-content: flex-end;
		width: 100%;
	}
	.wc-blocks-header-pattern .wp-block-columns > .wp-block-column:last-child .wp-block-group > * {
		flex: 0 0 auto;
		width: auto;
	}

  /*Move search icon to the right*/
 /* .wc-blocks-header-pattern .wp-block-search {
		order: 1;
		margin-left: auto;
	}*/

    /*reduce side padding: causes problems on iphone when i do like 4px*/
	body {
		--wp--style--root--padding-left: 0.5em;
		--wp--style--root--padding-right: 0.5em;
	}
	.wc-blocks-header-pattern{
	padding-left: 0.5em !important;
	padding-right: 0.5em !important;
	}

	/*Smaller search box on mobile*/
	.wp-block-search.wp-block-search__button-only:not(.wp-block-search__searchfield-hidden) {
		max-width: 50%;
	}

}/*519px*/

