/* The colour diamonds on the diamonds page: filters and result tiles. Loaded by 1column-diamond-list.phtml after
   style.css, whose .btn-fancy rules also serve the home page. The division itself: sec/scripts/php/FancyColour.php. */

/* softer than the neon of style.css, closer to the stones */
#btn-fancy-all-filters .fancy-pink em{background-color:#f3a3b9;}
#btn-fancy-all-filters .fancy-yellow em{background-color:#f5d431;}
#btn-fancy-all-filters .fancy-blue em{background-color:#6fa3d8;}
#btn-fancy-all-filters .fancy-green em{background-color:#86b85f;}
#btn-fancy-all-filters .fancy-red em{background-color:#c93a35;}
#btn-fancy-all-filters .fancy-purple em{background-color:#9a6bb0;}
#btn-fancy-all-filters .fancy-orange em{background-color:#ee8f35;}
/* no outline, and the stripes drawn from the outer edge without repeating: the outline and the stripes repeated under it made a dark rim */
#btn-fancy-all-filters .fancy-brown em{background-image:linear-gradient(100deg, #dcb792 0 32%, #a9713f 34% 66%, #74402a 68%); background-origin:border-box; background-repeat:no-repeat; border-color:transparent;}

#btn-fancy-all-filters .btn-fancy-wrap-colors .btn-fancy span{text-align:center; line-height:1.2; white-space:nowrap;}

#btn-fancy-all-filters .btn-fancy-int:nth-child(2){border-radius:8px 0 0 8px;}
#btn-fancy-all-filters .btn-fancy-int{text-align:center; line-height:1.2; padding:2px 3px;}

.btn-fancy-wrap-pure{justify-content:flex-start; align-items:center; margin-top:10px;}
	.btn-fancy-wrap-pure .btn-fancy-pure-info{margin:0 0 0 8px;}
.btn-fancy-pure{display:inline-flex; align-items:center; gap:8px; padding:8px 12px; background-color:#fff; border:1px solid #e4dbd1; border-radius:8px; font-size:12px; font-weight:600; line-height:1.2;}
	.btn-fancy-pure:hover{border-color:#c9b295;}
	.btn-fancy-pure em{position:relative; flex:0 0 14px; width:14px; height:14px; background-color:#fff; border:1px solid #c9b295; border-radius:3px;}
	/* not the solid gold of an active .btn-filter in style.css, which hid the text: light, like the intensities */
	.btn-fancy-pure.active{background-color:#f6efe4; color:#a8804a; border-color:#a8804a;}
	.btn-fancy-pure.active em{background-color:#a8804a; border-color:#a8804a;}
	.btn-fancy-pure.active em:after{content:''; position:absolute; left:4px; top:1px; width:3px; height:7px; border:solid #fff; border-width:0 2px 2px 0; transform:rotate(45deg);}

/* the second switch: also treated colours (FancyColour.php); wraps under the first on a narrow screen */
.btn-fancy-wrap-pure{flex-wrap:wrap; row-gap:8px;}
	.btn-fancy-wrap-pure .btn-fancy-treated{margin-left:16px;}

/* "Colour treated" / "Colour origin not confirmed": on the tile, the list row, the popup and the stone's page. Amber,
   so it reads as a warning and not as a grade. */
.diamond-origin-label{display:inline-block; padding:2px 8px; background-color:#fff3e0; border:1px solid #e9b46a; border-radius:999px; color:#8a4a00; font-family:'Open Sans',sans-serif; font-size:11px; font-weight:700; line-height:1.4; letter-spacing:.02em; white-space:nowrap;}
#diamond-search-result-gallery .diamond .diamond-details > .diamond-origin-label{margin:0 0 6px;}
.diamond-card-identity .diamond-origin-label{margin:4px 0 2px;}
#box-cart .subline.diamond-origin-label{display:inline-block; margin-bottom:0; color:#8a4a00; font-size:12px; text-transform:none;}
#box-cart .diamond-origin-text{margin:8px 0 12px; max-width:520px; font-size:13px; line-height:1.5; color:#5c5249;}
.diamond-selected-specs .diamond-origin-label, .jewel-summary-body .diamond-origin-label{margin-top:4px;}

/* the stone's colour is the title, the shape and weight come under it */
#diamond-search-result-gallery .diamond .diamond-details > .diamond-title-colour{display:block; font-family:Unna,'Open Sans',serif; font-size:19px; line-height:1.2; color:#2e2a26;}
#diamond-search-result-gallery .diamond .diamond-title-colour + .diamond-title{font-family:inherit; font-size:13px; color:#7c746c;}
.diamond-card-title .diamond-card-colour{display:block;}
	.diamond-card-title .diamond-card-colour ~ span{font-family:'Open Sans',sans-serif; font-size:14px; color:#7c746c;}

@media (max-width: 900px) {
	#btn-fancy-all-filters .btn-fancy-wrap-colors{flex-wrap:wrap; justify-content:flex-start; gap:6px;}
	#btn-fancy-all-filters .btn-fancy-wrap-colors .btn-fancy{flex:0 0 calc(25% - 4.5px);}

	/* nine intensities in three rows of three; the hidden first one takes no cell */
	#btn-fancy-all-filters .btn-fancy-wrap-intensity{display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:6px; margin-top:10px;}
	#btn-fancy-all-filters .btn-fancy-wrap-intensity .btn-fancy-int{margin:0; border:1px solid #e4dbd1; border-radius:8px; font-size:12px;}
		#btn-fancy-all-filters .btn-fancy-wrap-intensity .btn-fancy-int.active{border-color:#c9b295;}
		#btn-fancy-all-filters .btn-fancy-wrap-intensity .btn-fancy-int.active:after{display:none;}
}

/* four tiles a row on the smallest phones: "Champagner" and "Chameleon" need the tile's full width */
@media (max-width: 380px) {
	#btn-fancy-all-filters .btn-fancy-wrap-colors .btn-fancy{padding-left:0; padding-right:0;}
	#btn-fancy-all-filters .btn-fancy-wrap-colors .btn-fancy span{font-size:10.5px;}
}
