/* Cart Popup JD - robust CSS (Astra-proof) */
#jdcp-overlay.jdcp-overlay{
	position: fixed !important;
	inset: 0 !important;
	display: none;
	align-items: center;
	justify-content: center;
	background: rgba(0,0,0,.35) !important;
	z-index: 999999 !important;
	padding: 20px !important;
	box-sizing: border-box !important;
}
#jdcp-overlay.jdcp-overlay.jdcp-open{ display:flex !important; }

#jdcp-overlay .jdcp-modal{
	width: min(980px, 92vw) !important;
	background: #fff !important;
	border-radius: 18px !important;
	box-shadow: 0 20px 60px rgba(0,0,0,.25) !important;
	position: relative !important;
	padding: 26px 26px 22px !important;
	box-sizing: border-box !important;
	font-family: inherit !important;
}

#jdcp-overlay .jdcp-close{
	position:absolute !important;
	top: 12px !important;
	right: 14px !important;
	width: 34px !important;
	height: 34px !important;
	padding: 0 !important;
	border: none !important;           /* no circle */
	border-radius: 0 !important;      /* no circle */
	background: transparent !important;/* no circle */
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	color: #000 !important;
	font-size: 34px !important;
	line-height: 1 !important;
	cursor: pointer !important;
	-webkit-tap-highlight-color: transparent !important;
}

#jdcp-overlay .jdcp-header{
	display:flex !important;
	gap: 14px !important;
	align-items:flex-start !important;
	margin-bottom: 18px !important;
}

#jdcp-overlay .jdcp-check{
	width: 44px !important;
	height: 44px !important;
	border-radius: 999px !important;
	display:flex !important;
	align-items:center !important;
	justify-content:center !important;
	background: #0e3b2f !important;
	color: #fff !important;
	font-size: 22px !important;
	flex: 0 0 44px !important;
}

#jdcp-overlay .jdcp-title{
	font-size: 40px !important;
	font-weight: 800 !important;
	color: #222 !important;
	margin: 0 !important;
}

#jdcp-overlay .jdcp-subtitle{
	font-size: 22px !important;
	font-weight: 400 !important;
	color: #444 !important;
	margin-top: 6px !important;
}
#jdcp-overlay #jdcp-product-name{
	font-weight: 700 !important;
}

#jdcp-overlay .jdcp-actions{
	display:grid !important;
	grid-template-columns: 1fr 1fr !important;
	gap: 18px !important;
	margin-top: 18px !important;
}

#jdcp-overlay .jdcp-btn{
	display:flex !important;
	align-items:center !important;
	justify-content:center !important;
	height: 64px !important;
	border-radius: 18px !important;
	text-decoration: none !important;
	cursor:pointer !important;
	font-size: 16px !important; /* min 16 */
	font-weight: 500 !important; /* weight 500 */
	box-sizing: border-box !important;
}

#jdcp-overlay .jdcp-pay{
	background: #111 !important;
	color: #fff !important;
	border: 0 !important;
}

#jdcp-overlay .jdcp-more{
	background: #ededed !important;  /* requested */
	color: #111 !important;
	border: 2px solid #000 !important; /* FIX: black border */
}

@media (max-width: 640px){
	#jdcp-overlay .jdcp-title{ font-size: 28px !important; }
	#jdcp-overlay .jdcp-subtitle{ font-size: 16px !important; }
	#jdcp-overlay .jdcp-actions{ grid-template-columns: 1fr !important; }
	#jdcp-overlay .jdcp-btn{ height: 56px !important; }
}

#jdcp-overlay .jdcp-close:hover{ opacity: .75 !important; }
#jdcp-overlay .jdcp-close:focus{ outline: 2px solid rgba(0,0,0,.25) !important; outline-offset: 2px !important; }


/* v1.2.2 spacing overrides */
#jdcp-overlay .jdcp-modal{padding-top:30px !important;}
#jdcp-overlay .jdcp-title{margin-top:6px !important;margin-bottom:14px !important;}
