@import url('https://fonts.googleapis.com/css2?family=Inter:ital,wght@0,300;0,600;0,700;1,300;1,600;1,700&family=Poppins:ital,wght@0,300;0,600;0,700;1,300;1,600;1,700&display=swap');

#basket_contents {
	position: relative;
	width: 100%;
}

#eventListWrapper {
	position: relative;
	width: 100%;
}

#basket_contents .event {
	margin-bottom: 2rem;
}


#basket_contents .merchandise-qty-selector {
	width: 60px;
	padding: 4px 8px;
	border: 1px solid #E8B75F;
	border-radius: 0;
	background-color: #333;
	color: #fff;
	font-size: 14px;
}

#basket_contents .merchandise-qty-controls {
	display: flex;
	align-items: center;
	gap: 8px;
}

#basket_contents .qty-btn {
	background-color: #333;
	border: 1px solid #E8B75F;
	color: #E8B75F;
	width: 30px;
	height: 30px;
	border-radius: 0;
	cursor: pointer;
	font-size: 16px;
	font-weight: bold;
	display: flex;
	align-items: center;
	justify-content: center;
}

#basket_contents .qty-btn:hover {
	background-color: #E8B75F;
	color: #333;
}

#basket_contents .qty-display {
	min-width: 30px;
	text-align: center;
	font-weight: bold;
	color: #E8B75F;
}


/* Enhanced Merchandise Image Modal/Lightbox Styles */
.merchandise-image-modal {
	position: fixed;
	z-index: 9999;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	overflow: auto;
	background-color: rgba(0, 0, 0, 0.9);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	box-sizing: border-box;
}

.merchandise-modal-content {
	position: relative;
	margin: 0;
	padding: 20px;
	width: 100%;
	max-width: 900px;
	text-align: center;
	background-color: #2a2a2a;
	border: 2px solid #E8B75F;
	box-sizing: border-box;
}

.merchandise-modal-content img {
	width: 100%;
	height: auto;
	max-height: 70vh;
	object-fit: contain;
	border: none;
	background-color: #333;
}

.merchandise-modal-close {
	position: absolute;
	top: -15px;
	right: -15px;
	color: #000;
	font-size: 24px;
	font-weight: bold;
	cursor: pointer;
	z-index: 10000;
	background-color: #E8B75F;
	width: 40px;
	height: 40px;
	line-height: 40px;
	text-align: center;
	border-radius: 50%;
	transition: all 0.3s ease;
	border: none;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.merchandise-modal-close:hover,
.merchandise-modal-close:focus {
	background-color: #e6c078;
	transform: scale(1.1);
}

.merchandise-modal-title {
	color: #E8B75F;
	font-size: 18px;
	font-weight: 600;
	margin: 10px 0 5px 0;
}

@media only screen and (max-width: 640px) {
	.merchandise-modal-content {
		width: 95%;
		margin: 10% auto;
	}

	.merchandise-modal-close {
		font-size: 35px;
		width: 45px;
		height: 45px;
		line-height: 45px;
	}

}

/* New Merchandise Card Layout Styles - Horizontal Layout */
#basket_contents .merchandise-grid {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
	margin-top: 1rem;
}

#basket_contents .merchandise-card {
	background-color: #E8B75F;
	border: 1px solid #E8B75F;
	overflow: hidden;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 2rem;
	min-height: 200px;
}

#basket_contents .merchandise-card-image-wrapper {
    width: 100%;
	overflow: hidden;
}

#basket_contents .merchandise-card-image {
	width: 100%;
	height: 100%;
	object-fit: contain;
    object-position: top;
	cursor: pointer;
	transition: transform 0.3s ease;
}

#basket_contents .merchandise-card-image:hover {
	transform: scale(1.05);
}

#basket_contents .merchandise-card-content-container {
	display: flex;
    height: 100%;
    justify-content: space-between;
    flex-direction: column;
}

#basket_contents .merchandise-card-content {
	flex: 1;
	display: flex;
	flex-direction: column;
}

#basket_contents .merchandise-card-price {
	font-weight: bold;
	margin: 0 0 1rem 0;
}

#basket_contents .merchandise-card-qty {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

#basket_contents .merchandise-card-qty-selector {
    width: 60px;
    padding: 8px 12px;
    border: 1px solid black;
    background-color: transparent;
    color: black;
    font-size: 14px;
    text-align: center;
}

#basket_contents .merchandise-card-footer {
	display: flex;
    gap: 1rem;
}

#basket_contents .merchandise-card-button {
    background-color: #041E42;
    border-radius: 0px;
    color: #E8B75F;
    padding: 8px 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 14px;
    line-height: 1.3;
    margin: 7px 0 4px 0;
    cursor: pointer;
    min-width: 150px;
    width: 100%;
}

#basket_contents .merchandise-card-button:hover {
	border: 1px solid #041E42;
	background-color: #E8B75F;
	color:#041E42;
}

/* Responsive adjustments for merchandise cards */
@media only screen and (max-width: 768px) {
	#basket_contents .merchandise-card {
		flex-direction: column;
		min-height: auto;
	}
	
	#basket_contents .merchandise-card-image-wrapper {
		flex: 0 0 auto;
		width: 100%;
		height: 180px;
	}
	
	#basket_contents .merchandise-card-content {
		padding: 1rem;
	}
	
	#basket_contents .merchandise-card-footer {
		justify-content: center;
		padding: 0 1rem 1rem;
	}
	
	#basket_contents .merchandise-card-button {
		width: 100%;
		text-align: center;
	}
}

@media only screen and (max-width: 480px) {
	#basket_contents .merchandise-card-image-wrapper {
		height: 150px;
	}
	
	
	
	#basket_contents .merchandise-card-price {
		font-size: 18px;
	}
}

/* Merchandise items that are already in the basket */
#basket_contents .merchandise-in-basket {
	display: none;
}

#basket_contents .offers,
#basket_contents .noItems,
#basket_contents .promoCodeOuterWrapper {
	
	background-color: #041E42;
	padding: 2rem;
	margin-bottom: 32px;
	color: #FFFFFF;
}

#basket_contents .promoCodeOuterWrapper .button {
	float: right;
	margin-top: -15px;
}

@media only screen and (max-width: 640px) {
	#basket_contents .promoCodeOuterWrapper .button {
		margin: 15px 0;
		float: none;
		display: block;
		clear: both;
	}
}

#basket_contents .noItems p:last-child {
	padding-bottom: 0;
	margin-bottom: 0;
}

.event-details-card {
	border: solid 1px #E8B75F;
	border-top: none;
	margin: 1rem 0 0 0;
	display: grid;
	grid-template-columns: 1fr 1fr 1fr 1fr;
}

@media only screen and (max-width: 640px) {
	.event-details-card {
		grid-template-columns: 1fr;
	}
}

.event.open .view-details-wrapper {
	border: solid 1px #E8B75F;
	background: #E8B75F;
	border-top: 0px;
	padding: 2rem;
}

.event-details-card-col {
	display: flex;
	flex-direction: column;
}

.event-details-card-header {
	background-color: #E8B75F;
	text-transform: uppercase;
	color: #000;
	border-right: 1px solid #000;
}

.event-details-card-header,
.event-details-card-content {
	padding: 0.5rem 1rem;
}

.event-details-card-content {
	border-right: 1px solid #E8B75F;
	height: 100%;
}

.event-details-card-content .button {
	width: 100%;
}

#basket_contents .tickets {
	border: solid 2px #eee;
	padding: 10px;
}

#basket_contents .button {
	background-color: #E8B75F;
	border-radius: 0px;
	color: #041E42;
	padding: 8px 20px;
	text-align: center;
	text-decoration: none;
	display: inline-block;
	font-size: 14px;
	line-height: 1.3;
	margin: 7px 0 4px 0;
	cursor: pointer;
	-webkit-appearance: none !important;
	appearance: none !important;
}

@media only screen and (max-width: 640px) {
	#basket_contents .button {
		width: 100%;
	}
}

#basket_contents .event-details-card-content .button {
	margin-left: 0;
}

#basket_contents input[type="text"] {
	width: 50%;
	padding: 8px 16px;
	margin: 8px 0;
	box-sizing: border-box;
	border: 1px solid #E8B75F;
	border-radius: 0px;
	height: auto;
	background:#FFFFFF;
}

.view-details-wrapper {
	max-height: 0;
	overflow: hidden;
}

.event.open .view-details-wrapper {
	max-height: 1000px;
	overflow: hidden;
}

#basket_contents .highlight {
	color: #E8B75F;
}

#membershipSavingsWrapper {
	overflow: hidden;
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	grid-gap: 2rem;
	margin-bottom: 2rem;
}

#todaysBestSavingWrapper {
	grid-column: 1 / span 3;
}

@media only screen and (max-width: 640px) {
	#membershipSavingsWrapper {
		grid-template-columns: 1fr;
	}

	#todaysBestSavingWrapper {
		grid-column: 1 / span 1;
	}
}

#basket_contents .membershipSaving {
	border: solid 1px #041E42;
	border-left: solid 1px #041E42;
	width: 100%;
	float: left;
	display:flex;
	flex-direction:column;
}

#basket_contents .membershipAlreadyAdded {
	border: solid 1px #041E42;
	width: 100%;
	float: left;
}

.membership-card-heading {
	background-color: #041E42;
	margin: 0;
	padding: 1rem;
	min-height: 60px;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.membership-card-heading h4 {
	margin: 0;
	padding: 0;
	color: #fff;
}

.membership-card-content {
	padding: 2rem;
	flex-grow: 1;
	display:flex;
	flex-direction:column;
}

.membership-card-footer {
	margin-top:auto;
}

#basket_contents .membership-card-content .button {
	margin-top: 32px;
}

#basket_contents .recommended {
	border: solid 1px #E8B75F;
	border-left: solid 5px #E8B75F;
}

#basket_contents .recommended .membership-card-heading {
	background-color: #E8B75F;
}

#basket_contents .recommended .membership-card-heading h4 {
	color: #041E42;
}


#todaysBestSavingWrapper h2,
.grandTotal h4 {
	font-family: "Poppins", sans-serif;
	font-size: 30px;
	font-weight: 600;
}

#checkoutButtonWrapper .button {
	float: right;
	background-color: #E8B75F;
	color: #000;
}

@media only screen and (max-width: 640px) {
	#checkoutButtonWrapper .button {
		float: none;
		margin: 15px 0;
		width: 100%;
	}
}
