/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,300;0,400;0,700;0,900;1,400;1,700&family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap');


/* Global 
MAD GREENS - DEV106
Primary Colour: MAD Purple #4A1371
Secondary Colour: MAD Green #448432
Dark Colour: Charcoal #333333
Light Colour: White #ffffff
*/

:root {
	--primary: #4A1371;
	--secondary: #448432;
	--dark: #333333;
	--light: #fff;

	/* You can also create and implement new tags as needed */
	--grey: #dedede;

	/* Define Fonts */
	--primary-font: 'Lato', sans-serif;
	--secondary-font: 'Open Sans', sans-serif;

	/* Bootstrap Overrides */
	--bs-black: var(--dark) !important;
	--bs-link-hover-color-rgb: var(--dark) !important;
	--bs-primary: var(--primary) !important;
	--bs-background-blue: var(--secondary) !important;
	--bs-emphasis-color: var(--primary) !important;
	--bs-heading-color: var(--primary) !important;
	--bs-medium-grey: var(--primary) !important;
	--bs-highlight-rgb: var(--primary) !important;
	--bs-highlight: var(--primary) !important;
	--bs-secondary-rgb: var(--dark) !important;
	--bs-gray: var(--dark) !important;
}


@keyframes descend {
	from {
		opacity: 0;
		transform: translateY(-50px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.card {
	opacity: 0;
	animation: descend .9s ease-in-out forwards;
}


/* Universal Elements */
a {
	color: var(--primary);
	background: transparent;
}

a:hover {
	color: var(--dark);
	background: transparent;

}

body {
	font-family: var(--secondary-font);
	color: var(--dark);
}

h1,
h2,
h3,
h4,
h5 {
	font-family: var(--primary-font);
}

/* Global Button Styles - Pill Shaped */
.btn,
button,
[type="button"],
[type="submit"],
.c-btn__signin .btn,
.c-btn__signup .btn,
.btn-primary,
.btn-secondary,
.btn-outline-primary,
.btn-outline-secondary,
#skipToMenu,
#submitMenu,
.c-collapse-arrow,
.btn-add-to-cart {
	border-radius: 50px !important;
}


/* End Universal Elements */


/* Header */

.logo-container {
	display: flex;
	justify-content: center;
}

.logo-container>a {
	display: block;
	width: 60%;
	max-width: 420px;
	min-width: 160px;
}

.logo-container>a>img {
	display: block;
	width: 100%;
	height: auto;
}

.navbar-main {
	height: 80px;
}

.c-dropdown-menu {
	padding: 0 15px !important;
}

.c-profile__group .c-dropdown-menu-card .c-dropdown-card .c-profile-links .c-dropdown-menu li .dropdown-item {
	border-bottom: 1px solid var(--dark) !important;
}

.c-btn__signin .btn,
.c-btn__signup .btn {
	white-space: nowrap;
}

.navbar-main {
	background: var(--light) !important;
	display: flex;
	justify-content: space-between;
}

.navbar-brand {
	display: none;
}

.nav-item__language {
	display: none !important;
}


.header-links {
	display: none;
}

.header-container {
	width: 100%;
	display: flex;
	justify-content: space-between
}

.nav.c-nav__delivery {
	background: var(--primary) !important;
	color: var(--light) !important;
}

.nav-item>.c-btn__sm {
	color: var(--secondary);
}

.nav-item>img {
	filter: grayscale(1) contrast(7);
}

/* Desktop Header */
@media only screen and (min-width:48.001rem) {}

/* Mobile Header */
@media only screen and (max-width:48rem) {
	.navbar-toggler-icon {
		filter: invert(1);
	}

	.c-nav__delivery .c-label__text {
		color: var(--light);
	}

	.c-header__main>nav>div {
		margin: auto;
		display: block !important;
	}

	.logo-container>a>img {
		margin: auto;
		width: 25% !important;
	}

	.navbar-cart__wrapper {
		display: flex;
		justify-content: space-between;
		position: absolute;
		top: 7px;
		width: 100%;
	}

	header.c-header__main nav.navbar {
		padding: 0.25rem 1rem .75rem !important;
	}


}

/* End Header */

/* Footer */

.left-footer-links,
.right-footer-links {
	display: flex;
	flex-direction: column;
}

.top-footer-links {
	display: flex;
	width: 50%;
	justify-content: space-evenly;
}

.bottom-footer {
	width: 100%;
	padding: 20px 20px 5px 20px;
}

.bottom-footer-links {
	display: flex;
	width: 100%;
	justify-content: center;
}

.bottom-footer-links>a,
.left-footer-links>a,
.right-footer-links>a,
footer h3 {
	color: var(--light);
}

.top-footer {
	display: flex;
	width: 100%;
	padding: 20px 0;
	border-top: 3px double var(--secondary);
    justify-content: center;
}

.bottom-footer {
	display: flex;
        flex-direction: column;
	justify-content: center;
	padding-top: 10px;
	padding-right: 45px;
	border-top: 1px dashed var(--light);
}

footer {
	padding-top: 5px;
	background: var(--primary) !important;
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100%;

}

footer a {
	text-decoration: none;
}

.middle-footer-logo>img {
	width: 50%;
        filter: brightness(0) contrast(7) invert(1);
}

.middle-footer-logo {
	display: flex;
	justify-content: center;
}

#monkeyCopyRight>a {
	color: var(--secondary);
}

.copy_text {
	color: var(--light);
}

/* Desktop Footer */
@media only screen and (min-width:48.001rem) {}


/* Mobile Footer */

@media only screen and (max-width:48rem) {

	.top-footer,
	.top-footer-links,
	.bottom-footer,
	.bottom-footer-links {
		flex-direction: column;
		width: 100%;
		align-items: center;
		text-align: center;

	}

	.middle-footer-logo>img {
		width: 25%;
	}

	.bottom-footer {
		padding: 10px 0;
	}
}


/* End Footer */


/* Main Content */

.card-product__price .btn-quick-add img {
	filter: brightness(0) invert(1);
	transition: filter 0.3s ease;
	background: transparent !important;
}

.card-product__price .btn-quick-add:hover img {
	filter: none;
}


.btn-outline-primary {
	background-color: var(--primary);
	color: var(--light);
	border: 1px solid var(--primary);
}


.c-checkout__details {
	border: 1px solid var(--dark);
	padding: 20px;
	background: var(--light);
	border-radius: 0.5rem;
}


#v-loyalty-rewards,
#v-saved-locations {
	margin-top: 3.375rem;
}


#v-loyalty-rewards>div:nth-child(1),
#v-saved-locations>div:nth-child(2) {
	display: none;
}

#v-pills-tab>.nav-item>.nav-link {
	border-bottom: 1px solid var(--dark);
}

.c-sidebar__account {
	margin: 3.375rem 3rem;
	border: 1px solid var(--dark);
	padding: 20px;
	background: var(--light);
	border-radius: 0.5rem;

}

#accountInformationForm {
	border: 1px solid var(--dark);
	padding: 20px;
	background: var(--light);
	border-radius: 0.5rem;
}

/* flat nav */
.c-product__tabs .nav-tabs .nav-item .nav-link.active::before {
    background-color: var(--secondary);
    width: calc(100% + 0.5rem);
    left: -0.25rem;
}

.c-product__tabs .nav-tabs .nav-item .nav-link:hover, .c-product__tabs .nav-tabs .nav-item .nav-link.active {
    color: var(--primary) !important;
    font-weight: bold
}


.nav-tabs__categories {
	padding: 10px;
	border: 1px solid var(--dark) !important;
	border-radius: 0.5rem;
}

#btnCheckoutFixed {
	background: var(--light);
	padding: 1rem 3rem 1rem 2.1rem;
}

.c-product-item__details .c-product__block {
	padding: 24px;
	border: 1px solid black;
	background: white;
	border-radius: 0.5rem;
}

.accordion-item:last-of-type .accordion-button.collapsed {
	border-radius: 0;
}

.btn-primary {
	--bs-btn-color: var(--light) !important;
	--bs-btn-bg: var(--primary) !important;
	--bs-btn-border-color: var(--primary) !important;
	--bs-btn-hover-color: var(--dark) !important;
	--bs-btn-hover-bg: var(--secondary) !important;
	--bs-btn-hover-border-color: var(--secondary) !important;
	--bs-btn-focus-shadow-rgb: 95, 95, 95;
	--bs-btn-active-color: var(--dark) !important;
	--bs-btn-active-bg: var(--secondary) !important;
	--bs-btn-active-border-color: var(--secondary) !important;
	--bs-btn-active-shadow: inset 0 3px 5px rgba(24, 24, 24, 0.125);
	--bs-btn-disabled-color: var(--light) !important;
	--bs-btn-disabled-bg: var(--grey) !important;
	--bs-btn-disabled-border-color: var(--grey) !important;
}

.btn.btn-primary:hover {
	background-color: var(--secondary) !important;
	color: var(--dark) !important;
}

.c-card__product .card img,
.c-product-item__details .c-product__details .c-product__img {
	background-color: var(--light);
}

.c-group-filter .c-btn-filter:hover,
.c-group-filter .c-btn-filter:active,
.c-group-filter .c-btn-filter.show,
.c-group-filter .c-btn-filter:focus-visible,
.c-group-filter .icon__close:focus-visible {
	border: 1px solid var(--dark) !important;
}

#sidebarCart .btn-add-to-cart.c-collapse-arrow:hover,
#sidebarCart .btn-add-to-cart.c-collapse-arrow:active,
#sidebarCart .btn-add-to-cart.c-collapse-arrow {
	background-color: var(--primary) !important;
	border: 1px solid var(--primary) !important;
	color: var(--light) !important;
}

#sidebarCart .btn-add-to-cart.c-collapse-arrow:hover {
	background-color: var(--secondary) !important;
	border: 1px solid var(--secondary) !important;
	color: var(--dark) !important;
}

.dropdown-item:hover,
.dropdown-item:focus {
	background-color: var(--secondary);
	color: var(--dark);
}

.c-collapse-arrow:hover {
	background-color: var(--secondary) !important;
	color: var(--dark) !important;
}

.btn.btn-outline-primary:hover,
.btn.btn-outline-primary:active {
	color: var(--dark) !important;
	border: 1px solid var(--secondary) !important;
	background: var(--secondary) !important;
}

.c-btn__signin>a,
.c-btn__signin>a:hover {
	background: var(--light) !important;
	color: var(--primary) !important;
}

.c-btn__signin:hover,
.c-btn__signup:hover,
#btnCheckout:hover {
	transform: scale(1.03);
}


#heading_preorder,
.c-content__heading {
	color: var(--primary)
}

/* Profile Menu Icon */
.c-profile__group .c-profile__dropdown span {
	color: var(--primary) !important;
}

.c-sidebar__cart.open,
.c-sidebar__cart.close {
	transition: all 0.3s ease-in-out;
}

.c-product__tabs .nav-tabs .nav-item .nav-link:hover {
	color: var(--primary) !important;

}

.c-product__tags .badge {
	background-color: var(--primary) !important;
	color: var(--light) !important;
}

.c-product__sub-categries.row {
	padding: 10px;
}

.c-card__product .card:hover {
	border-color: var(--primary);
	transform: scale(1.02) !important;
	filter: drop-shadow(5px 5px 3px var(--primary));
}

.c-card__product .card {
	border: 2px solid var(--dark);
	transition: transform 0.3s ease;
}

.item-header {
	text-transform: uppercase;
	font-family: var(--primary-font);
}

.dropdown-menu,
.overflow-auto {
	scrollbar-color: var(--light) var(--primary);
	scrollbar-width: thin;
}


/* Desktop Main Content */
@media only screen and (min-width:48.001rem) {
	.c-card__product .card {
		scale: 0.9;
	}

}

/* Mobile Main Content*/
@media only screen and (max-width:48rem) {}

/* End Main Content */

/* Things that should not be local, these really need to be main app style rules */

@media (max-width: 48em) {
	.c-sidebar__block {
		height: 0;
	}
}

.credit-card-multi-image {
	max-width: 250px;
}

.card-product__price .btn-quick-add img {
	filter: brightness(0) invert(1);
	transition: filter 0.3s ease;
	background: transparent !important;
}

.card-product__price .btn-quick-add:hover img {
	filter: none;
}

/* Add background to edit button */
#activateEditButton {
	background-color: var(--light);
}

/* Menu Item Image Sizer */
.c-product-item__details .c-product__details .c-product__img.default_product_image {
	object-fit: cover;
}

/* Larger description block, 2 lines with no expand */
.c-product__description .productSummaryText {
    height: 3rem;
    overflow: hidden;
}

/* Hide Loyalty */
.c-dropdown-menu li:has(a[href="/online/loyaltyReward"]),
.c-dropdown-menu li:has(a[href="/online/dev100/loyaltyReward"]),
.c-sidebar__account li:has(a[href="/online/loyaltyReward"]),
.c-sidebar__account li:has(a[href="/online/dev100/loyaltyReward"]) {
	display: none;
}

/* Credit Card Selection */
[id^="profile_id_-"][id$="_label"]:has(input:checked)::before {
	content: "\2713\0020 ";
	color: var(--bs-highlight);
	margin-right: 0.5em;
}

#payment_method_2 #cc_profiles li.c-payment-method__item--profile-MOO:has(.c-form-choice:nth-of-type(1):last-of-type) {
	display: none;
}

/* END Credit Card Selection */

/* Add to cart sticky fix */
.c-main__content.mainContentActive.c-main__product {
	padding-bottom: 0px !important;
	margin-bottom: 0 !important;
}

.c-quantity-cart__fixed.fixed-bottom {
	position: sticky;
	bottom: 0;
	left: auto;
	right: auto;
	z-index: 1020;
}

.c-quantity-cart__fixed {
	width: calc(100% - 400px);
	margin-inline: auto;
	/* center the bar within its container */
	transform: translateX(0);
	display: none;
	opacity: 0;
	transition: opacity 1s, visibility 1s ease-in-out;
}

.c-quantity-cart__fixed.show {
	display: block;
	opacity: 1;
}

.c-quantity-cart__fixed {
	width: 100%;
}

/* END Add to cart sticky fix */

/* Hide dietary icons on production items */
.c-selection__items .c-items__group .c-dietary__tags {
	display: none !important;
}

/* END Hide dietary icons on production items */

/* Checkout Button Width */
.c-checkout__fixed {
    max-width: 399px !important;
}
/* END Checkout Button Width */

/* FIX MORE BUTTON ON SAFARI */
/* 1) Normalize that span so WebKit treats it like a block container */
.detailsBox.productSummaryText #productSubFeDetailText {
  display: block;           /* span wraps <p> ? make it block to avoid Safari quirks */
  position: relative;
  z-index: 0;
}

/* 2) Ensure the container leaves room for the absolutely-positioned link */
.detailsBox.productSummaryText {
  position: relative;       /* anchor's positioning context */
  padding-bottom: 1.75rem;  /* space for "More…"; tweak as needed */
  overflow: hidden;        /* avoid clipping in case a parent sets overflow */
}

/* 3) Surface and pin the link in Safari */
.detailsBox.productSummaryText .c-text__more.productSubFeDetail {
  position: absolute;       /* override utility classes if needed */
  right: 0;                 /* explicit instead of relying on .end-0 */
  bottom: 0;
  z-index: 10;              /* above the paragraph text */
  display: inline-block;
  background: #fff;         /* keep it readable if it overlaps text */
  padding-left: .5rem;
  transform: translateZ(0);
  -webkit-transform: translateZ(0); /* WebKit paint-layer nudge */
  will-change: transform;
}

/* Optional: tidy paragraph spacing so the link doesn't look crowded */
.detailsBox.productSummaryText #productSubFeDetailText > p:last-child {
  margin-bottom: .5rem;
}

/* 4) Last-resort iOS Safari fallback: let the link flow below the text */
@supports (-webkit-touch-callout: none) {
  .detailsBox.productSummaryText .c-text__more.productSubFeDetail {
    position: static;       /* shows reliably on iPhone */
    margin-top: .25rem;
  }
  .detailsBox.productSummaryText { padding-bottom: 0; }
}
/* END FIX MORE BUTTON ON SAFARI */

/* Skip to Menu and Submit Menu buttons */
#skipToMenu, #submitMenu {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: var(--primary);
    color: var(--light);
    border: 2px solid var(--primary);
    border-radius: 50px;
    font-family: var(--primary-font);
    font-weight: 700;
    font-size: 1rem;
    text-align: center;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

#skipToMenu:hover, #submitMenu:hover {
    background: var(--secondary);
    color: var(--dark);
    border-color: var(--secondary);
    transform: scale(1.03);
    text-decoration: none;
}
