/* Hira Conversion Suite — "Complete your protocol" kit widget.
   Navy / clinical look that blends with the Hira Compounds theme. Every
   colour here is a sensible default; the Elementor Style tab overrides them
   through per-selector inline CSS, so keep specificity low. */

.hpk {
	--hpk-accent: #1479b8;
	--hpk-navy: #0a2740;
	--hpk-line: #e2e8f0;
	--hpk-card: #ffffff;
	--hpk-muted: #5b6b7b;
	font-family: inherit;
	color: var(--hpk-navy);
	margin: 24px 0;
}

/* ---- head ---- */
.hpk-head { margin-bottom: 16px; }
.hpk-title {
	margin: 0 0 6px;
	font-size: 22px;
	line-height: 1.25;
	font-weight: 700;
	color: var(--hpk-navy);
}
.hpk-sub {
	margin: 0;
	font-size: 14px;
	line-height: 1.55;
	color: var(--hpk-muted);
	max-width: 62ch;
}

/* ---- grid ---- */
.hpk-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 14px;
	align-items: stretch;
}

/* ---- card ---- */
.hpk-card {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 8px;
	padding: 18px 14px 16px;
	background: var(--hpk-card);
	border: 2px solid var(--hpk-line);
	border-radius: 14px;
	transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.hpk-essential { cursor: pointer; }
.hpk-essential:hover { border-color: #c3d2e0; box-shadow: 0 6px 18px rgba(10, 39, 64, .08); }
.hpk-card.is-checked {
	border-color: var(--hpk-accent);
	box-shadow: 0 6px 20px rgba(20, 121, 184, .16);
}
.hpk-card.is-required { cursor: default; }

/* hide native checkbox — the custom box is the visible control */
.hpk-check {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
	pointer-events: none;
}

/* custom tick box, top-left */
.hpk-box {
	position: absolute;
	top: 12px;
	left: 12px;
	width: 22px;
	height: 22px;
	border: 2px solid #c3d2e0;
	border-radius: 6px;
	background: #fff;
	transition: background .16s ease, border-color .16s ease;
}
.hpk-box::after {
	content: "";
	position: absolute;
	top: 3px;
	left: 7px;
	width: 5px;
	height: 10px;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg) scale(0);
	transition: transform .16s ease;
}
.hpk-card.is-checked .hpk-box {
	background: var(--hpk-accent);
	border-color: var(--hpk-accent);
}
.hpk-card.is-checked .hpk-box::after { transform: rotate(45deg) scale(1); }
.hpk-card.is-required .hpk-box { opacity: .9; }

/* media */
.hpk-media {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	margin-top: 6px;
}
.hpk-media img {
	width: auto;
	max-width: 100%;
	height: 92px;
	object-fit: contain;
	border-radius: 8px;
}
.hpk-name {
	font-size: 14px;
	font-weight: 600;
	line-height: 1.3;
	color: var(--hpk-navy);
}
.hpk-price {
	font-size: 15px;
	font-weight: 700;
	color: var(--hpk-accent);
}
.hpk-in-order {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .02em;
	text-transform: uppercase;
	color: var(--hpk-muted);
}

/* badge */
.hpk-badge {
	position: absolute;
	top: 12px;
	right: 12px;
	padding: 3px 9px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .02em;
	background: var(--hpk-navy);
	color: #fff;
	border-radius: 999px;
}

/* current product card (locked, informational) */
.hpk-card--current {
	background: linear-gradient(180deg, #f4f8fc 0%, #eaf2f9 100%);
	border-color: #d5e3ef;
	border-style: dashed;
}
.hpk-card--current .hpk-media img { height: 92px; }

/* ---- footer ---- */
.hpk-foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	margin-top: 18px;
	padding-top: 16px;
	border-top: 1px solid var(--hpk-line);
}
.hpk-total { display: flex; flex-direction: column; gap: 2px; }
.hpk-total-label { font-size: 13px; color: var(--hpk-muted); }
.hpk-total-val { font-size: 22px; font-weight: 800; color: var(--hpk-navy); line-height: 1; }
.hpk-add {
	appearance: none;
	border: 0;
	cursor: pointer;
	padding: 14px 26px;
	min-width: 220px;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: .01em;
	color: #fff;
	background: var(--hpk-navy);
	border-radius: 10px;
	transition: filter .16s ease, transform .12s ease, opacity .16s ease;
}
.hpk-add:hover { filter: brightness(1.08); }
.hpk-add:active { transform: translateY(1px); }
.hpk-add:disabled { opacity: .5; cursor: not-allowed; }
.hpk-add.is-busy { opacity: .7; cursor: progress; }

/* ---- responsive ---- */
@media (max-width: 1024px) {
	.hpk-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}
@media (max-width: 782px) {
	.hpk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
	.hpk-foot { flex-direction: column; align-items: stretch; }
	.hpk-add { width: 100%; min-width: 0; }
	.hpk-total { flex-direction: row; align-items: baseline; justify-content: space-between; }
}
@media (max-width: 460px) {
	.hpk-media img { height: 76px; }
	.hpk-title { font-size: 19px; }
}
