/* D4U Garan - adjustments for the digital4u theme (navygreen-eshop.gr).
   Linked after catalog/view/javascript/d4u_garan/garan.css by
   system/d4u_garan_storefront.ocmod.xml. */

/* Listings: the icon centred between the caption and the price. */
.garan-grid-wrap {
	text-align: center;
}

/* Product page: the wording on its own line under the product code. The model <ul> is
   a flex row (.price_n_model_container + .list-unstyled), so it lives inside li.model. */
li.model .p-garan-model {
	display: block;
	margin: 8px 0 0;
}

/* Product page: one GARAN label per viewport. Desktop under the add-to-cart button;
   mobile above the accordion, since the bottom bar has no room for it. */
.p-garan-mobile {
	display: none;
}

@media (max-width: 850px) {
	.p-garan-desktop {
		display: none;
	}
	.p-garan-mobile {
		display: block;
		margin: 0 0 20px;
	}
	.p-garan .garan-product {
		max-width: 220px;
	}
	#garan .garan-notice img {
		max-width: 340px;
	}
	#garan .garan-certificate {
		max-width: 200px;
	}
	#garan .garan-aside {
		text-align: center;
	}
}

/* Cart: the badge on its own line under the title. The theme's
   `td.product-title a` rules (16px, !important on mobile) would otherwise restyle it. */
#checkout-cart form tbody td.text-left.product-title .garan-xcart {
	display: block;
	margin-top: 6px;
}
#checkout-cart form tbody td.text-left.product-title .garan-xcart a.garan-eu-badge,
#checkout-cart form tbody td.text-left.product-title .garan-xcart .garan-eu-badge-text {
	font-size: 11px !important;
	line-height: 1.3 !important;
	font-weight: 600 !important;
	color: #000 !important;
}

/* Hover/focus in the shop's button colours (.btn-primary / #button-cart: #171717 with
   white text) instead of the package's TUMI red. White on #171717 is ~18:1.
   The badge's resting colours are fixed by the EU specification and stay as they are. */
.garan-eu-badge:hover,
.garan-eu-badge:focus {
	background: #171717;
	border-color: #171717;
	color: #FFFFFF !important;
}
.garan-eu-badge:hover .garan-eu-badge-text,
.garan-eu-badge:focus .garan-eu-badge-text {
	color: #FFFFFF;
}
/* Cart: the rule above forces black wording with !important; flip it on hover. */
#checkout-cart form tbody td.text-left.product-title .garan-xcart a.garan-eu-badge:hover,
#checkout-cart form tbody td.text-left.product-title .garan-xcart a.garan-eu-badge:focus,
#checkout-cart form tbody td.text-left.product-title .garan-xcart a.garan-eu-badge:hover .garan-eu-badge-text,
#checkout-cart form tbody td.text-left.product-title .garan-xcart a.garan-eu-badge:focus .garan-eu-badge-text {
	color: #FFFFFF !important;
}
