.sgi-account {
	position: relative;
	display: inline-flex;
	align-items: center;
	margin: 0;
}

.sgi-account__btn {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	border: 0;
	border-radius: 32px;
	background: var(--wp--preset--color--custom-accent, #d200a7);
	color: #fff;
	font: inherit;
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1.2;
	padding: 13px 1.35rem;
	text-decoration: none;
	cursor: pointer;
	white-space: nowrap;
	list-style: none;
}

.sgi-account__btn::-webkit-details-marker {
	display: none;
}

.sgi-account > summary.sgi-account__btn::after {
	content: "";
	width: 0.4rem;
	height: 0.4rem;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: translateY(-2px) rotate(45deg);
}

.wp-block-navigation .sgi-account__btn,
.wp-block-navigation .sgi-account__btn:hover,
.wp-block-navigation .sgi-account__btn:focus {
	color: #fff;
	text-decoration: none;
}

.sgi-account__btn:hover {
	filter: brightness(0.94);
}

.sgi-account__btn:focus-visible {
	outline: 2px solid #1a0b12;
	outline-offset: 3px;
}

.sgi-account__menu {
	position: absolute;
	z-index: 40;
	top: calc(100% + 8px);
	right: 0;
	min-width: 180px;
	margin: 0;
	padding: 0.35rem;
	background: #fff;
	border: 1px solid #ead7df;
	border-radius: 12px;
	box-shadow: 0 12px 32px rgba(26, 11, 18, 0.12);
}

.sgi-account__menu a {
	display: block;
	padding: 0.55rem 0.75rem;
	border-radius: 8px;
	color: #1a0b12;
	text-decoration: none;
	font-size: 0.95rem;
	font-weight: 600;
}

.wp-block-navigation .sgi-account__menu a {
	color: #1a0b12;
}

.sgi-account__menu a:hover,
.sgi-account__menu a:focus-visible {
	background: #f6e8ee;
	color: #1a0b12;
}

@media (max-width: 781px) {
	.sgi-account__menu {
		position: static;
		min-width: 0;
		margin-top: 8px;
		box-shadow: none;
	}
}

.entry-content.wp-block-post-content:has(.sgi-profile) {
	padding-top: 3.25rem;
	padding-bottom: 4.5rem;
}

.sgi-profile {
	display: grid;
	gap: 1.5rem;
	margin: 0 auto;
}

.sgi-profile__intro h1 {
	margin: 0 0 0.35rem;
	font-size: 2rem;
}

.sgi-profile__intro p {
	margin: 0;
	color: #5c4650;
}

.sgi-profile__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 1rem;
	align-items: stretch;
}

.sgi-profile__card {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	min-width: 0;
	padding: 1.25rem 1.25rem 1.15rem;
	border: 1px solid #ead7df;
	border-radius: 22px;
	background: #fff;
	box-shadow: 0 12px 32px rgba(26, 11, 18, 0.05);
}

.sgi-profile__card-top h2 {
	margin: 0 0 0.35rem;
	font-size: 1.35rem;
}

.sgi-profile__card-top p {
	margin: 0;
	color: #5c4650;
}

.sgi-profile__count {
	display: inline-flex;
	margin-top: 0.75rem !important;
	padding: 0.2rem 0.65rem;
	border-radius: 999px;
	background: #f6e8ee;
	color: #7a2948;
	font-size: 0.78rem;
	font-weight: 700;
}

.sgi-profile__cta {
	display: inline-flex;
	align-items: center;
	align-self: flex-start;
	margin-top: auto;
	padding: 0.7rem 1.15rem;
	border-radius: 999px;
	background: var(--wp--preset--color--custom-accent, #d200a7);
	color: #fff;
	font-weight: 700;
	text-decoration: none;
}

.sgi-profile__cta:hover,
.sgi-profile__cta:focus-visible {
	color: #fff;
	filter: brightness(0.94);
}

.sgi-profile__action {
	color: #9a2348;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
}

.sgi-profile__action:hover {
	text-decoration: underline;
}

@media (max-width: 700px) {
	.sgi-profile__grid {
		grid-template-columns: 1fr;
	}
}

.sgi-profile__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.sgi-profile__item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.75rem 0;
	border-top: 1px solid #f1e4ea;
}

.sgi-profile__item-main {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.4rem 0.55rem;
	min-width: 0;
}

.sgi-profile__item-main a,
.sgi-profile__item-main strong {
	color: #1a0b12;
}

.sgi-profile__badge,
.sgi-profile__status {
	display: inline-flex;
	align-items: center;
	padding: 0.15rem 0.55rem;
	border-radius: 999px;
	background: #f6e8ee;
	color: #7a2948;
	font-size: 0.75rem;
	font-weight: 700;
}

.sgi-profile__status {
	background: #f4f4f4;
	color: #5c4650;
	font-weight: 600;
}

.sgi-profile__empty {
	margin: 0;
	color: #5c4650;
}

.sgi-profile__empty a,
.sgi-profile__login a {
	color: #9a2348;
	font-weight: 600;
}
