/* Hira Subscriptions — product-page toggle + My Account portal.
   Navy/clinical palette to blend with the Hira Compounds theme. */

.hsub-toggle {
	--hsub-accent: #1479b8;
	--hsub-navy: #0a2740;
	--hsub-line: #d9e2ec;
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 16px 0 20px;
	max-width: 460px;
}
.hsub-opt {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 14px 16px;
	border: 2px solid var(--hsub-line);
	border-radius: 12px;
	cursor: pointer;
	transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
	background: #fff;
}
.hsub-opt:hover { border-color: #b8cadd; }
.hsub-opt.is-active {
	border-color: var(--hsub-accent);
	box-shadow: 0 4px 16px rgba(20, 121, 184, .14);
	background: #f7fbfe;
}
.hsub-opt input[type="radio"] { position: absolute; opacity: 0; width: 1px; height: 1px; }
.hsub-dot {
	flex: 0 0 auto;
	width: 20px;
	height: 20px;
	margin-top: 2px;
	border: 2px solid #b8cadd;
	border-radius: 50%;
	position: relative;
	transition: border-color .15s ease;
}
.hsub-opt.is-active .hsub-dot { border-color: var(--hsub-accent); }
.hsub-opt.is-active .hsub-dot::after {
	content: "";
	position: absolute;
	inset: 3px;
	border-radius: 50%;
	background: var(--hsub-accent);
}
.hsub-opt-main { display: flex; flex-direction: column; gap: 3px; width: 100%; }
.hsub-opt-title { font-weight: 700; color: var(--hsub-navy); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.hsub-opt-price { color: var(--hsub-navy); font-size: 15px; }
.hsub-opt-price del { color: #94a3b8; font-weight: 400; margin-right: 4px; }
.hsub-opt-price strong { color: var(--hsub-accent); }
.hsub-save-pill {
	background: #e8f6ec;
	color: #1a7f43;
	font-size: 11px;
	font-weight: 700;
	padding: 2px 8px;
	border-radius: 999px;
	letter-spacing: .02em;
}

/* frequency selector — only visible when Subscribe is chosen */
.hsub-freq-wrap {
	display: none;
	align-items: center;
	gap: 8px;
	margin-top: 8px;
	padding-top: 10px;
	border-top: 1px dashed var(--hsub-line);
}
.hsub-toggle.is-sub .hsub-opt--sub .hsub-freq-wrap { display: flex; }
.hsub-freq-label { font-size: 13px; color: #5b6b7b; }
.hsub-freq {
	padding: 6px 10px;
	border: 1px solid var(--hsub-line);
	border-radius: 8px;
	font-size: 14px;
	background: #fff;
}

/* ---------- My Account portal ---------- */
.hsub-portal { display: grid; gap: 16px; }
.hsub-card {
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 18px 20px;
	background: #fff;
}
.hsub-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.hsub-card-id { font-weight: 700; color: #0a2740; }
.hsub-card-items { width: 100%; border-collapse: collapse; margin: 6px 0 12px; }
.hsub-card-items td { padding: 5px 0; color: #334155; border-bottom: 1px solid #f1f5f9; }
.hsub-ta-r { text-align: right; }
.hsub-card-meta { display: flex; gap: 18px; color: #5b6b7b; font-size: 14px; margin-bottom: 14px; }
.hsub-actions { display: flex; flex-direction: column; gap: 12px; }
.hsub-inline { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hsub-inline > span { color: #5b6b7b; font-size: 14px; }
.hsub-btn-row { display: flex; gap: 8px; flex-wrap: wrap; }
.hsub-cancel { color: #b32d2e !important; border-color: #e6b8b8 !important; }

/* status badges (shared look) */
.hsub-badge {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .01em;
}
.hsub-badge--active    { background: #e8f6ec; color: #1a7f43; }
.hsub-badge--paused    { background: #fff4e0; color: #a15c00; }
.hsub-badge--on-hold   { background: #fdecec; color: #b32d2e; }
.hsub-badge--cancelled { background: #eef1f4; color: #64748b; }
.hsub-badge--expired   { background: #eef1f4; color: #64748b; }

@media (max-width: 520px) {
	.hsub-btn-row .button { flex: 1 1 auto; }
}
