/*
 * My Account, as a panel in the product page's look: silver on near-black,
 * soft gradient cards, the same buttons. Loaded on account pages only; the
 * licence widgets shared with the product page stay in account.css.
 */

.bgl-account {
	--bga-accent: #c8cdd4;
	--bga-accent-strong: #eef0f3;
	--bga-text: #d4d8dd;
	--bga-muted: #8a9099;
	--bga-line: rgba(255, 255, 255, .07);
	--bga-line-strong: rgba(255, 255, 255, .12);
	--bga-card: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .02));
	--bga-field: #0f1114;
	--bga-radius: 14px;
}

.bgl-account .woocommerce svg,
.bgl-account .bgl-acc-head svg {
	width: 18px;
	height: 18px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
	flex: none;
}

/* ---------------------------------------------------------------- Layout */

.bgl-account .wd-my-account-wrapper {
	display: grid;
	grid-template-columns: 290px minmax(0, 1fr);
	gap: 28px;
	align-items: start;
	max-width: 1500px;
	margin: 0 auto;
}

.bgl-account .wd-my-account-wrapper > .wd-grid-col {
	grid-column: auto !important;
	width: auto;
	min-width: 0;
}

@media (max-width: 1024px) {
	.bgl-account .wd-my-account-wrapper {
		grid-template-columns: minmax(0, 1fr);
		gap: 18px;
	}
}

/* --------------------------------------------------------------- Sidebar */

.bgl-account .wd-my-account-sidebar {
	position: sticky;
	top: 110px;
	padding: 16px;
	border: 1px solid var(--bga-line);
	border-radius: var(--bga-radius);
	background: var(--bga-card);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
}

@media (max-width: 1024px) {
	.bgl-account .wd-my-account-sidebar {
		position: static;
	}
}

.bgl-account .wd-my-account-sidebar > .woocommerce-MyAccount-title {
	margin: 0 4px 12px;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--bga-muted);
}

.bgl-acc-profile {
	position: relative;
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 14px;
	padding: 14px;
	border: 1px solid var(--bga-line-strong);
	border-radius: 12px;
	background: radial-gradient(120% 90% at 100% 0%, rgba(200, 205, 212, .14), transparent 55%), linear-gradient(180deg, #17191d, #101215);
	overflow: hidden;
}

.bgl-acc-profile::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 2px;
	background: linear-gradient(90deg, transparent, rgba(238, 240, 243, .8), transparent);
}

.bgl-acc-avatar {
	display: grid;
	place-items: center;
	flex: none;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	background: linear-gradient(135deg, #f3f4f6, #a9afb7);
	color: #111;
	font-size: 16px;
	font-weight: 800;
	letter-spacing: .02em;
	box-shadow: 0 6px 18px rgba(200, 205, 212, .18);
}

.bgl-acc-who {
	display: flex;
	flex-direction: column;
	min-width: 0;
	line-height: 1.3;
}

.bgl-acc-who strong {
	overflow: hidden;
	font-size: 15px;
	color: #fff;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.bgl-acc-who span {
	overflow: hidden;
	font-size: 12.5px;
	color: var(--bga-muted);
	text-overflow: ellipsis;
	white-space: nowrap;
}

.bgl-acc-who em {
	margin-top: 3px;
	font-size: 11.5px;
	font-style: normal;
	color: var(--bga-accent);
}

.bgl-account .woocommerce-MyAccount-navigation ul {
	display: grid;
	gap: 3px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.bgl-account .woocommerce-MyAccount-navigation li {
	margin: 0;
	padding: 0;
	border: 0;
}

.bgl-account .woocommerce-MyAccount-navigation li a {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 44px;
	padding: 0 12px;
	border: 1px solid transparent;
	border-radius: 10px;
	color: var(--bga-text);
	font-size: 14.5px;
	font-weight: 600;
	text-decoration: none;
	transition: background .2s, border-color .2s, color .2s;
}

.bgl-account .woocommerce-MyAccount-navigation li a::before {
	content: "";
	flex: none;
	width: 18px;
	height: 18px;
	background: currentColor;
	opacity: .75;
	-webkit-mask: var(--bga-icon) center / contain no-repeat;
	mask: var(--bga-icon) center / contain no-repeat;
}

.bgl-account .woocommerce-MyAccount-navigation li a:hover {
	background: rgba(200, 205, 212, .07);
	color: #fff;
}

.bgl-account .woocommerce-MyAccount-navigation li.is-active a {
	border-color: rgba(200, 205, 212, .28);
	background: linear-gradient(90deg, rgba(200, 205, 212, .2), rgba(200, 205, 212, .06));
	color: #fff;
	box-shadow: inset 3px 0 0 var(--bga-accent-strong);
}

.bgl-account .woocommerce-MyAccount-navigation li.is-active a::before {
	opacity: 1;
}

.bgl-account .woocommerce-MyAccount-navigation-link--customer-logout {
	margin-top: 8px !important;
	padding-top: 8px !important;
	border-top: 1px solid var(--bga-line) !important;
}

.bgl-account .woocommerce-MyAccount-navigation-link--customer-logout a {
	color: var(--bga-muted);
}

.bgl-account .woocommerce-MyAccount-navigation-link--customer-logout a:hover {
	background: rgba(244, 67, 54, .08);
	color: #ff8a80;
}

/* On a phone the menu is a row of chips that scrolls sideways. */
@media (max-width: 1024px) {
	.bgl-account .woocommerce-MyAccount-navigation ul {
		display: flex;
		gap: 6px;
		overflow-x: auto;
		scrollbar-width: none;
	}

	.bgl-account .woocommerce-MyAccount-navigation ul::-webkit-scrollbar {
		display: none;
	}

	.bgl-account .woocommerce-MyAccount-navigation li a {
		min-height: 40px;
		border-color: var(--bga-line);
		white-space: nowrap;
	}

	.bgl-account .woocommerce-MyAccount-navigation-link--customer-logout {
		margin: 0 !important;
		padding: 0 !important;
		border: 0 !important;
	}
}

/* ------------------------------------------------------- Section header */

.bgl-acc-head {
	display: flex;
	align-items: center;
	gap: 16px;
	margin: 0 0 22px;
}

.bgl-acc-head-icon {
	display: grid;
	place-items: center;
	flex: none;
	width: 52px;
	height: 52px;
	border: 1px solid var(--bga-line-strong);
	border-radius: 14px;
	background: rgba(200, 205, 212, .1);
	color: var(--bga-accent-strong);
}

.bgl-account .bgl-acc-head-icon svg {
	width: 24px;
	height: 24px;
}

.bgl-acc-head h2 {
	margin: 0;
	font-size: clamp(22px, 2.4vw, 30px);
	font-weight: 800;
	line-height: 1.15;
	letter-spacing: -.02em;
	color: #fff;
}

.bgl-acc-head p {
	margin: 4px 0 0;
	font-size: 14px;
	color: var(--bga-muted);
}

/* Every section but the dashboard sits on one panel. */
.bgl-account:not(.bgl-account-dashboard) .woocommerce-MyAccount-content {
	padding: clamp(18px, 2.4vw, 30px);
	border: 1px solid var(--bga-line);
	border-radius: var(--bga-radius);
	background: var(--bga-card);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
}

.bgl-account .woocommerce-MyAccount-content {
	color: var(--bga-text);
	font-size: 15px;
}

.bgl-account .woocommerce-MyAccount-content h2,
.bgl-account .woocommerce-MyAccount-content h3,
.bgl-account .woocommerce-MyAccount-content h4 {
	color: #fff;
}

.bgl-account .woocommerce-MyAccount-content a:not(.button):not(.bgl-btn):not(.bgl-stat) {
	color: var(--bga-accent-strong);
	text-decoration-color: rgba(200, 205, 212, .4);
	text-underline-offset: 3px;
}

/* --------------------------------------------------------------- Cards */

.bgl-acc-card {
	padding: 20px;
	border: 1px solid var(--bga-line);
	border-radius: var(--bga-radius);
	background: var(--bga-card);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
}

.bgl-acc-card-title {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 16px !important;
	font-size: 13px !important;
	font-weight: 800;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: #fff;
}

.bgl-account .bgl-acc-card-title svg {
	box-sizing: content-box;
	width: 16px;
	height: 16px;
	padding: 6px;
	border: 1px solid var(--bga-line-strong);
	border-radius: 8px;
	background: rgba(200, 205, 212, .1);
	color: var(--bga-accent-strong);
}

.bgl-acc-more {
	margin-left: auto;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0;
	text-transform: none;
	color: var(--bga-muted) !important;
	text-decoration: none !important;
}

.bgl-acc-more:hover {
	color: #fff !important;
}

.bgl-acc-text {
	margin: 0 0 16px;
	color: var(--bga-muted);
	line-height: 1.6;
}

/* ---------------------------------------------------------- Dashboard */

.bgl-dash {
	display: grid;
	gap: 18px;
}

.bgl-dash-stats {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 14px;
}

@media (max-width: 1200px) {
	.bgl-dash-stats {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.bgl-stat {
	position: relative;
	display: grid;
	grid-template-columns: auto 1fr;
	grid-template-rows: auto auto;
	column-gap: 14px;
	align-items: center;
	padding: 18px;
	border: 1px solid var(--bga-line);
	border-radius: var(--bga-radius);
	background: var(--bga-card);
	color: var(--bga-text);
	text-decoration: none !important;
	overflow: hidden;
	transition: border-color .2s, transform .2s, box-shadow .2s;
}

.bgl-stat::after {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 2px;
	background: linear-gradient(90deg, transparent, rgba(238, 240, 243, .55), transparent);
	opacity: 0;
	transition: opacity .2s;
}

.bgl-stat:hover {
	border-color: rgba(200, 205, 212, .3);
	box-shadow: 0 14px 34px rgba(0, 0, 0, .35);
	transform: translateY(-2px);
}

.bgl-stat:hover::after {
	opacity: 1;
}

.bgl-stat-icon {
	display: grid;
	grid-row: span 2;
	place-items: center;
	width: 46px;
	height: 46px;
	border: 1px solid var(--bga-line-strong);
	border-radius: 12px;
	background: rgba(200, 205, 212, .1);
	color: var(--bga-accent-strong);
}

.bgl-stat-num {
	font-size: 28px;
	font-weight: 800;
	line-height: 1;
	letter-spacing: -.02em;
	color: #fff;
}

.bgl-stat-label {
	margin-top: 4px;
	font-size: 12.5px;
	font-weight: 600;
	color: var(--bga-muted);
}

.bgl-dash-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
}

@media (max-width: 1200px) {
	.bgl-dash-grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

.bgl-dash-list {
	display: grid;
	margin: 0;
	padding: 0;
	list-style: none;
}

.bgl-dash-list li {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0;
	padding: 11px 0;
	border-bottom: 1px dashed var(--bga-line);
}

.bgl-dash-list li:last-child {
	border-bottom: 0;
}

.bgl-dash-list li > a {
	display: flex;
	flex: 1;
	align-items: center;
	gap: 12px;
	min-width: 0;
	color: inherit !important;
	text-decoration: none !important;
}

.bgl-dash-main {
	display: flex;
	flex: 1;
	flex-direction: column;
	min-width: 0;
}

.bgl-dash-main strong {
	overflow: hidden;
	color: #fff;
	font-size: 14.5px;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.bgl-dash-main em {
	overflow: hidden;
	font-size: 12.5px;
	font-style: normal;
	color: var(--bga-muted);
	text-overflow: ellipsis;
	white-space: nowrap;
}

.bgl-dash-amount {
	font-weight: 800;
	color: #fff;
	white-space: nowrap;
}

.bgl-dash-guides {
	display: grid;
	gap: 4px;
	margin: 0 0 16px;
	padding: 0;
	list-style: none;
}

.bgl-dash-guides li {
	margin: 0;
}

.bgl-account .bgl-dash-guides a {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 10px;
	border-radius: 9px;
	color: var(--bga-text) !important;
	font-size: 14px;
	text-decoration: none !important;
	transition: background .2s, color .2s;
}

.bgl-account .bgl-dash-guides a:hover {
	background: rgba(200, 205, 212, .07);
	color: #fff !important;
}

.bgl-account .bgl-dash-guides svg {
	width: 16px;
	height: 16px;
	color: var(--bga-accent);
}

.bgl-empty {
	display: grid;
	justify-items: start;
	gap: 14px;
	padding: 18px;
	border: 1px dashed var(--bga-line-strong);
	border-radius: 12px;
	color: var(--bga-muted);
}

.bgl-empty p {
	margin: 0;
}

/* The theme's dashboard icon menu, as a row of tiles. */
.bgl-dash-quick .wd-my-account-links {
	display: grid !important;
	grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
	gap: 10px;
	margin: 0 !important;
	padding: 0;
}

.bgl-dash-quick .wd-my-account-links li {
	width: auto !important;
	margin: 0 !important;
	padding: 0 !important;
}

.bgl-dash-quick .wd-my-account-links a {
	display: flex !important;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 92px;
	padding: 14px 8px !important;
	border: 1px solid var(--bga-line);
	border-radius: 12px;
	background: rgba(255, 255, 255, .025);
	color: var(--bga-text) !important;
	font-size: 13px;
	font-weight: 600;
	text-align: center;
	text-decoration: none !important;
	transition: border-color .2s, background .2s, color .2s;
}

.bgl-dash-quick .wd-my-account-links a:hover {
	border-color: rgba(200, 205, 212, .3);
	background: rgba(200, 205, 212, .08);
	color: #fff !important;
}

.bgl-dash-quick .wd-nav-icon {
	color: var(--bga-accent-strong);
	font-size: 26px;
}

/* ------------------------------------------------------------- Buttons */

.bgl-account .bgl-btn,
.bgl-account .woocommerce-MyAccount-content .button,
.bgl-account .woocommerce-MyAccount-content button[type="submit"],
.bgl-account .wd-registration-page .button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 44px;
	padding: 0 18px;
	border: 0 !important;
	border-radius: 10px !important;
	background: linear-gradient(135deg, #f3f4f6, #b4bac2) !important;
	box-shadow: 0 8px 24px rgba(200, 205, 212, .18) !important;
	color: #111 !important;
	font-size: 14px;
	font-weight: 800;
	letter-spacing: .01em;
	line-height: 1;
	text-decoration: none !important;
	text-transform: none;
	cursor: pointer;
	transition: filter .2s, transform .1s;
}

.bgl-account .bgl-btn:hover,
.bgl-account .woocommerce-MyAccount-content .button:hover,
.bgl-account .woocommerce-MyAccount-content button[type="submit"]:hover,
.bgl-account .wd-registration-page .button:hover {
	filter: brightness(1.07);
	color: #111 !important;
}

.bgl-account .bgl-btn:active,
.bgl-account .woocommerce-MyAccount-content .button:active {
	transform: translateY(1px);
}

/* Dark text on a light face: no text shadow, whatever the theme adds to the
   rest of the page (the Rust theme's comic shadow made these look blurred). */
.bgl-account .bgl-btn:not(.bgl-btn-ghost),
.bgl-account .woocommerce-MyAccount-content .button,
.bgl-account .woocommerce-MyAccount-content button[type="submit"],
.bgl-account .wd-registration-page .button {
	text-shadow: none !important;
}

.bgl-account .bgl-btn svg {
	width: 16px;
	height: 16px;
}

.bgl-account .bgl-btn-sm {
	min-height: 36px;
	padding: 0 14px;
	font-size: 13px;
}

/* Secondary: the product page's outlined button. */
.bgl-account .bgl-btn-ghost,
.bgl-account .woocommerce-orders-table .button.view,
.bgl-account .woocommerce-Address .edit,
.bgl-account .bgl .bgl-inline .button,
.bgl-account .wd-switch-to-register {
	border: 1px solid rgba(200, 205, 212, .35) !important;
	background: transparent !important;
	box-shadow: none !important;
	color: var(--bga-accent-strong) !important;
}

.bgl-account .bgl-btn-ghost:hover,
.bgl-account .woocommerce-orders-table .button.view:hover,
.bgl-account .woocommerce-Address .edit:hover,
.bgl-account .bgl .bgl-inline .button:hover,
.bgl-account .wd-switch-to-register:hover {
	background: rgba(200, 205, 212, .1) !important;
	filter: none;
	color: #fff !important;
}

/* -------------------------------------------------------------- Tables */

.bgl-account .woocommerce-MyAccount-content table.shop_table {
	width: 100%;
	margin: 0 0 18px;
	border: 1px solid var(--bga-line);
	border-collapse: separate;
	border-spacing: 0;
	border-radius: 12px;
	overflow: hidden;
}

.bgl-account .woocommerce-MyAccount-content table.shop_table th {
	padding: 12px 14px;
	border: 0;
	border-bottom: 1px solid var(--bga-line-strong);
	background: rgba(255, 255, 255, .03);
	color: var(--bga-muted);
	font-size: 11.5px;
	font-weight: 800;
	letter-spacing: .1em;
	text-align: left;
	text-transform: uppercase;
}

.bgl-account .woocommerce-MyAccount-content table.shop_table td {
	padding: 13px 14px;
	border: 0;
	border-bottom: 1px solid var(--bga-line);
	color: var(--bga-text);
	vertical-align: middle;
}

.bgl-account .woocommerce-MyAccount-content table.shop_table tbody tr:last-child td,
.bgl-account .woocommerce-MyAccount-content table.shop_table tfoot tr:last-child td,
.bgl-account .woocommerce-MyAccount-content table.shop_table tfoot tr:last-child th {
	border-bottom: 0;
}

.bgl-account .woocommerce-MyAccount-content table.shop_table tbody tr:hover td {
	background: rgba(255, 255, 255, .02);
}

.bgl-account .woocommerce-MyAccount-content table.shop_table tfoot th,
.bgl-account .woocommerce-MyAccount-content table.shop_table tfoot td {
	background: rgba(255, 255, 255, .02);
	color: #fff;
}

.bgl-account .woocommerce-MyAccount-content mark {
	padding: 0;
	background: none;
	color: #fff;
	font-weight: 700;
}

/* Status pills. */
.bgl-pill {
	display: inline-flex;
	align-items: center;
	padding: 3px 10px;
	border: 1px solid var(--bga-line-strong);
	border-radius: 999px;
	color: var(--bga-accent-strong);
	font-size: 11.5px;
	font-weight: 700;
	white-space: nowrap;
}

.bgl-pill-completed {
	border-color: rgba(200, 205, 212, .4);
	background: rgba(200, 205, 212, .12);
}

.bgl-pill-processing {
	border-color: rgba(90, 169, 230, .4);
	background: rgba(90, 169, 230, .12);
	color: #9ccdf3;
}

.bgl-pill-on-hold,
.bgl-pill-pending {
	border-color: rgba(240, 180, 41, .4);
	background: rgba(240, 180, 41, .12);
	color: #f6cd6b;
}

.bgl-pill-cancelled,
.bgl-pill-failed,
.bgl-pill-refunded {
	border-color: rgba(244, 67, 54, .35);
	background: rgba(244, 67, 54, .1);
	color: #ff8a80;
}

/* --------------------------------------------------------------- Forms */

.bgl-account .woocommerce input.input-text,
.bgl-account .woocommerce input[type="text"],
.bgl-account .woocommerce input[type="email"],
.bgl-account .woocommerce input[type="password"],
.bgl-account .woocommerce input[type="tel"],
.bgl-account .woocommerce select,
.bgl-account .woocommerce textarea,
.bgl-account .woocommerce .select2-container .select2-selection {
	min-height: 46px;
	border: 1px solid var(--bga-line-strong) !important;
	border-radius: 10px !important;
	background: var(--bga-field) !important;
	box-shadow: none;
	color: #fff !important;
	transition: border-color .2s, box-shadow .2s;
}

.bgl-account .woocommerce input.input-text:focus,
.bgl-account .woocommerce input[type="text"]:focus,
.bgl-account .woocommerce input[type="email"]:focus,
.bgl-account .woocommerce input[type="password"]:focus,
.bgl-account .woocommerce select:focus,
.bgl-account .woocommerce textarea:focus {
	border-color: rgba(200, 205, 212, .55) !important;
	box-shadow: 0 0 0 3px rgba(200, 205, 212, .12);
	outline: 0;
}

.bgl-account .woocommerce form label {
	margin-bottom: 6px;
	color: var(--bga-text);
	font-size: 13px;
	font-weight: 700;
}

.bgl-account .woocommerce form .required {
	color: var(--bga-accent);
	text-decoration: none;
}

.bgl-account .woocommerce-MyAccount-content fieldset {
	margin: 24px 0 8px;
	padding: 20px;
	border: 1px solid var(--bga-line);
	border-radius: 12px;
}

.bgl-account .woocommerce-MyAccount-content legend {
	padding: 0 8px;
	color: #fff;
	font-size: 13px;
	font-weight: 800;
	letter-spacing: .1em;
	text-transform: uppercase;
}

.bgl-account #account_display_name_description {
	display: block;
	margin-top: 6px;
	color: var(--bga-muted);
	font-size: 12.5px;
}

/* -------------------------------------------------------------- Notices */

.bgl-account .woocommerce-MyAccount-content .woocommerce-info,
.bgl-account .woocommerce-MyAccount-content .woocommerce-message,
.bgl-account .woocommerce-MyAccount-content .woocommerce-error,
.bgl-account .woocommerce-notices-wrapper .woocommerce-message,
.bgl-account .woocommerce-notices-wrapper .woocommerce-error {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	margin: 0 0 18px;
	padding: 18px 20px;
	border: 1px dashed var(--bga-line-strong);
	border-radius: 12px;
	background: rgba(255, 255, 255, .02);
	color: var(--bga-text);
}

.bgl-account .woocommerce-message,
.bgl-account .woocommerce-notices-wrapper .woocommerce-message {
	border-style: solid;
	border-color: rgba(200, 205, 212, .35);
	background: rgba(200, 205, 212, .08);
}

.bgl-account .woocommerce-error {
	border-style: solid;
	border-color: rgba(244, 67, 54, .35);
	background: rgba(244, 67, 54, .08);
}

.bgl-account .woocommerce-MyAccount-content .woocommerce-info::before {
	display: none;
}

/* --------------------------------------------------------------- Address */

.bgl-account .woocommerce-Address {
	width: 100%;
	max-width: 560px;
	padding: 20px;
	border: 1px solid var(--bga-line);
	border-radius: 12px;
	background: rgba(255, 255, 255, .02);
}

.bgl-account .woocommerce-Address-title {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 14px;
}

.bgl-account .woocommerce-Address-title h2 {
	margin: 0;
	font-size: 16px;
}

.bgl-account .woocommerce-Address .edit {
	display: inline-flex;
	align-items: center;
	min-height: 36px;
	padding: 0 14px;
	border-radius: 10px;
	font-size: 13px;
	font-weight: 700;
	text-decoration: none !important;
}

.bgl-account .woocommerce-Address address {
	color: var(--bga-muted);
	font-style: normal;
	line-height: 1.7;
}

/* ---------------------------------------------- Communities (licences) */

.bgl-account .bgl {
	gap: 22px;
}

/* "Create a community": title, a line of advice, then the field and button. */
.bgl-account .bgl-create .bgl-note {
	margin: -4px 0 16px;
}

.bgl-account .bgl-create-row {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 12px;
}

.bgl-account .bgl-create-row p {
	margin: 0;
}

.bgl-account .bgl-create-row p:first-child {
	flex: 1 1 280px;
	max-width: 440px;
}

.bgl-account .bgl-create-row input[type="text"] {
	width: 100%;
	max-width: none;
}

.bgl-account .bgl-create-row .button {
	min-height: 46px;
}

/* "How licences work": a button that opens the guide. */
.bgl-help {
	border: 1px solid var(--bga-line-strong);
	border-radius: 12px;
	background: radial-gradient(120% 90% at 100% 0%, rgba(200, 205, 212, .1), transparent 55%), rgba(255, 255, 255, .02);
	overflow: hidden;
}

.bgl-help summary {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px 18px;
	cursor: pointer;
	list-style: none;
	transition: background .2s;
}

.bgl-help summary::-webkit-details-marker {
	display: none;
}

.bgl-help summary::after {
	content: "";
	flex: none;
	width: 9px;
	height: 9px;
	margin-left: auto;
	border-right: 2px solid var(--bga-accent);
	border-bottom: 2px solid var(--bga-accent);
	transform: rotate(45deg) translateY(-3px);
	transition: transform .2s;
}

.bgl-help[open] summary::after {
	transform: rotate(225deg) translateY(-3px);
}

.bgl-help summary:hover {
	background: rgba(200, 205, 212, .05);
}

.bgl-help-icon {
	display: grid;
	place-items: center;
	flex: none;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: linear-gradient(135deg, #f3f4f6, #a9afb7);
	color: #111;
	font-family: Georgia, serif;
	font-size: 18px;
	font-style: italic;
	font-weight: 700;
}

.bgl-help-label {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.bgl-help-label strong {
	color: #fff;
	font-size: 15px;
}

.bgl-help-hint {
	color: var(--bga-muted);
	font-size: 13px;
}

.bgl-help-body {
	padding: 4px 18px 18px;
	border-top: 1px solid var(--bga-line);
}

.bgl-help-steps {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	margin: 16px 0 0;
	padding: 0;
	list-style: none;
	counter-reset: none;
}

@media (max-width: 900px) {
	.bgl-help-steps {
		grid-template-columns: minmax(0, 1fr);
	}
}

.bgl-help-steps li {
	display: flex;
	gap: 12px;
	margin: 0;
	padding: 14px;
	border: 1px solid var(--bga-line);
	border-radius: 10px;
	background: rgba(255, 255, 255, .02);
}

.bgl-help-n {
	display: grid;
	place-items: center;
	flex: none;
	width: 28px;
	height: 28px;
	border: 1px solid rgba(200, 205, 212, .35);
	border-radius: 50%;
	color: var(--bga-accent-strong);
	font-size: 13px;
	font-weight: 800;
}

.bgl-help-steps strong {
	display: block;
	margin: 3px 0 4px;
	color: #fff;
	font-size: 14.5px;
}

.bgl-help-steps p {
	margin: 0;
	color: var(--bga-text);
	font-size: 13.5px;
	line-height: 1.6;
}

.bgl-help-foot {
	margin: 14px 0 0;
	padding: 12px 14px;
	border-left: 3px solid var(--bga-accent);
	border-radius: 0 8px 8px 0;
	background: rgba(200, 205, 212, .06);
	color: var(--bga-text);
	font-size: 13.5px;
	line-height: 1.6;
}

.bgl-account .bgl-lead {
	margin: 0;
	color: var(--bga-muted);
	line-height: 1.6;
	opacity: 1;
}

.bgl-account .bgl-form:not(.bgl-inline) {
	display: block;
	padding: 20px;
	border: 1px solid var(--bga-line);
	border-radius: 12px;
	background: rgba(255, 255, 255, .02);
}

.bgl-account .bgl-form h3,
.bgl-account .bgl h4 {
	margin: 0 0 12px;
	font-size: 13px;
	font-weight: 800;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: #fff;
}

.bgl-account .bgl-title {
	font-size: 22px;
	font-weight: 800;
	color: #fff;
}

.bgl-account .bgl-badge {
	padding: 3px 10px;
	border: 1px solid transparent;
	font-size: 11.5px;
	font-weight: 700;
}

.bgl-account .bgl-ok {
	border-color: rgba(200, 205, 212, .4);
	background: rgba(200, 205, 212, .12);
	color: var(--bga-accent-strong);
}

.bgl-account .bgl-secret {
	padding: 18px 20px;
	border-color: rgba(200, 205, 212, .45);
	border-radius: 12px;
	background: radial-gradient(120% 90% at 100% 0%, rgba(200, 205, 212, .14), transparent 55%), linear-gradient(180deg, #17191d, #101215);
}

.bgl-account .bgl-secret code,
.bgl-account .bgl-table code {
	padding: 2px 6px;
	border-radius: 6px;
	background: rgba(255, 255, 255, .06);
	color: #fff;
}

.bgl-account .bgl-licences {
	display: grid;
	gap: 8px;
	padding: 0;
	list-style: none;
}

.bgl-account .bgl-licences li {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 12px 14px;
	border: 1px solid var(--bga-line);
	border-radius: 10px;
	background: rgba(255, 255, 255, .02);
}

/* -------------------------------------------------- Login and register */

.bgl-account .wd-registration-page {
	max-width: 1100px;
	margin: 0 auto;
}

.bgl-account .wd-registration-page #customer_login {
	gap: 22px;
}

.bgl-account .wd-registration-page .wd-col {
	padding: clamp(22px, 3vw, 36px);
	border: 1px solid var(--bga-line);
	border-radius: var(--bga-radius);
	background: var(--bga-card);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
}

.bgl-account .wd-registration-page .col-login {
	position: relative;
	border-color: var(--bga-line-strong);
	background: radial-gradient(120% 90% at 100% 0%, rgba(200, 205, 212, .12), transparent 55%), linear-gradient(180deg, #17191d, #101215);
	box-shadow: 0 24px 60px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .06);
	overflow: hidden;
}

.bgl-account .wd-registration-page .col-login::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 2px;
	background: linear-gradient(90deg, transparent, rgba(238, 240, 243, .8), transparent);
}

.bgl-account .wd-login-title {
	margin-bottom: 18px;
	color: #fff;
	font-size: 22px;
	font-weight: 800;
	letter-spacing: -.01em;
}

.bgl-account .wd-registration-page .form-row-btn .button {
	width: 100%;
	min-height: 50px;
	font-size: 15px;
}

.bgl-account .login-form-footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	color: var(--bga-muted);
	font-size: 13.5px;
}

.bgl-account .login-form-footer a {
	color: var(--bga-accent-strong);
}

.bgl-account .registration-info,
.bgl-account .woocommerce-privacy-policy-text {
	color: var(--bga-muted);
	font-size: 14px;
	line-height: 1.65;
}

.bgl-account .wd-login-divider span {
	color: var(--bga-muted);
}

/* ----------------------------------------------------- Menu icons */

.bgl-account .woocommerce-MyAccount-navigation-link--dashboard a {
	--bga-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='7' height='9' rx='1.5'/%3E%3Crect x='14' y='3' width='7' height='5' rx='1.5'/%3E%3Crect x='14' y='12' width='7' height='9' rx='1.5'/%3E%3Crect x='3' y='16' width='7' height='5' rx='1.5'/%3E%3C/svg%3E");
}

.bgl-account .woocommerce-MyAccount-navigation-link--orders a {
	--bga-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 2 3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4z'/%3E%3Cpath d='M3 6h18'/%3E%3Cpath d='M16 10a4 4 0 0 1-8 0'/%3E%3C/svg%3E");
}

.bgl-account .woocommerce-MyAccount-navigation-link--downloads a {
	--bga-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'/%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3Cpath d='M12 15V3'/%3E%3C/svg%3E");
}

.bgl-account .woocommerce-MyAccount-navigation-link--communities a {
	--bga-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M23 21v-2a4 4 0 0 0-3-3.87'/%3E%3Cpath d='M16 3.13a4 4 0 0 1 0 7.75'/%3E%3C/svg%3E");
}

.bgl-account .woocommerce-MyAccount-navigation-link--edit-address a {
	--bga-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 10c0 7-9 13-9 13S3 17 3 10a9 9 0 0 1 18 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E");
}

.bgl-account .woocommerce-MyAccount-navigation-link--edit-account a {
	--bga-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E");
}

.bgl-account .woocommerce-MyAccount-navigation-link--wishlist a {
	--bga-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.8 4.6a5.5 5.5 0 0 0-7.8 0L12 5.7l-1-1.1a5.5 5.5 0 0 0-7.8 7.8l1 1.1L12 21l7.8-7.5 1-1.1a5.5 5.5 0 0 0 0-7.8z'/%3E%3C/svg%3E");
}

.bgl-account .woocommerce-MyAccount-navigation-link--customer-logout a {
	--bga-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4'/%3E%3Cpath d='m16 17 5-5-5-5'/%3E%3Cpath d='M21 12H9'/%3E%3C/svg%3E");
}

/* ----------------------------------------- Bought on RogueDepot? */

.bgl-rd {
	padding: 20px;
	border: 1px solid var(--bga-line-strong);
	border-radius: 12px;
	background: radial-gradient(120% 90% at 100% 0%, rgba(230, 57, 70, .1), transparent 55%), rgba(255, 255, 255, .02);
}

.bgl-rd-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin-bottom: 10px;
}

.bgl-account .bgl-rd-head h3 {
	margin: 0;
	font-size: 16px;
	letter-spacing: 0;
	text-transform: none;
}

.bgl-rd-badge {
	padding: 3px 9px;
	border-radius: 6px;
	background: #e63946;
	color: #fff;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.bgl-account .bgl-rd .bgl-note {
	margin: 0 0 14px;
	color: var(--bga-muted);
	line-height: 1.6;
}

.bgl-rd-steps {
	display: grid;
	gap: 10px;
	margin: 0 0 14px;
	padding-left: 20px;
	color: var(--bga-text);
	line-height: 1.6;
}

.bgl-rd-code {
	display: inline-block;
	margin-left: 6px;
	padding: 4px 10px !important;
	border: 1px dashed rgba(200, 205, 212, .5);
	border-radius: 8px;
	background: rgba(200, 205, 212, .1) !important;
	color: #fff;
	font-size: 16px;
	font-weight: 800;
	letter-spacing: .08em;
	user-select: all;
}

.bgl-rd-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.bgl-rd-list {
	display: grid;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.bgl-rd-list li {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin: 0;
	padding: 12px 14px;
	border: 1px solid var(--bga-line);
	border-radius: 10px;
	background: rgba(255, 255, 255, .02);
}

.bgl-rd-list .bgl-inline {
	margin: 0;
}

.bgl-account .bgl-rd-list select {
	min-height: 40px;
}

.bgl-account .bgl-src {
	border-color: rgba(230, 57, 70, .4);
	background: rgba(230, 57, 70, .12);
	color: #ff9aa2;
}

/* ------------------------------------------- Sign in with Discord */

/* The same pieces as the signed-in account: the page head with its icon,
   the cards with uppercase titles, list rows. */
.bgl-signin {
	width: 100%;
	max-width: 1060px;
	margin: 0 auto;
	padding: clamp(10px, 3vw, 34px) 0;
}

.bgl-signin-head .bgl-acc-head-icon {
	border-color: rgba(88, 101, 242, .55);
	background: #5865f2;
	box-shadow: 0 10px 26px rgba(88, 101, 242, .35);
	color: #fff;
}

.bgl-account .bgl-signin-head .bgl-acc-head-icon svg {
	fill: currentColor;
	stroke: none;
}

.bgl-signin-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
	gap: 18px;
	align-items: stretch; /* both cards as tall as the taller one */
}

.bgl-signin-card,
.bgl-signin-inside {
	display: flex;
	flex-direction: column;
	background: rgba(17, 18, 20, .82);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	box-shadow: 0 20px 50px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .05);
}

/* The heading reads on the photograph like the closed sign's text. */
.bgl-signin-head h2,
.bgl-signin-head p {
	text-shadow: 0 2px 12px rgba(0, 0, 0, .75);
}

.bgl-signin-head p {
	color: #e3e3e6;
}

/* The last block of each card sits on its floor, so the two line up. */
.bgl-signin-card .bgl-signin-points,
.bgl-signin-inside .bgl-signin-note {
	margin-top: auto;
}

/* Behind the page, the closed sign's background: the screenshot at 60 %
   over the dark panel colour, a dark wash and a faint red one, and the
   same slow zoom. */
body.bgl-account-signin {
	background: #1c1e21 !important;
}

/* The theme keeps the content area at least half a screen tall; the sign-in
   sits in its middle, the same space above and below whatever the screen. */
body.bgl-account-signin .wd-page-content {
	display: flex;
	flex-direction: column;
}

body.bgl-account-signin .wd-content-layout {
	display: flex;
	flex: 1 0 auto;
	align-items: center;
	padding-top: 40px !important;
	padding-bottom: 40px !important;
}

body.bgl-account-signin .wd-content-layout > .wd-content-area {
	width: 100%;
}

/* WooCommerce leaves 20px under the page's content: take it from the
   sign-in's own bottom padding so above and below match. */
body.bgl-account-signin .bgl-signin {
	padding-bottom: calc(clamp(10px, 3vw, 34px) - 20px);
}

.bgl-signin-bg {
	position: fixed;
	inset: 0;
	z-index: -1;
	overflow: hidden;
	background: #1c1e21;
	pointer-events: none;
}

.bgl-signin-bg-img {
	position: absolute;
	inset: 0;
	opacity: .6;
	background-color: #1c1e21;
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
	transition: transform 20s ease;
}

body:hover .bgl-signin-bg-img {
	transform: scale(1.1);
}

.bgl-signin-bg-wash {
	position: absolute;
	inset: 0;
	background: rgba(24, 25, 26, .4);
}

.bgl-signin-bg-wash.is-red {
	background: rgba(238, 85, 85, .1);
}

@media (max-width: 860px) {
	.bgl-signin-grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

.bgl-signin-card {
	position: relative;
	overflow: hidden;
}

/* A thin Discord-coloured edge on top, the only colour besides the button. */
.bgl-signin-card::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 2px;
	background: linear-gradient(90deg, transparent, #5865f2, transparent);
}

.bgl-signin-error {
	margin: 0 0 16px;
	padding: 12px 14px;
	border: 1px solid rgba(244, 67, 54, .35);
	border-radius: 10px;
	background: rgba(244, 67, 54, .1);
	color: #ffb4ab;
	font-size: 14px;
}

.bgl-signin-form {
	display: grid;
	gap: 16px;
	margin: 0 0 22px;
}

.bgl-signin-terms {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 0 !important;
	padding: 12px 14px;
	border: 1px solid var(--bga-line);
	border-radius: 10px;
	background: rgba(0, 0, 0, .22);
	color: var(--bga-text) !important;
	font-size: 14px !important;
	font-weight: 500 !important;
	line-height: 1.5;
	cursor: pointer;
	transition: border-color .2s;
}

.bgl-signin-terms:hover {
	border-color: var(--bga-line-strong);
}

.bgl-signin-terms input {
	flex: none;
	width: 18px;
	height: 18px;
	margin: 1px 0 0;
	accent-color: #5865f2;
}

.bgl-signin-terms a {
	color: var(--bga-accent-strong);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.bgl-account .bgl-signin-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	width: 100%;
	min-height: 54px;
	padding: 0 20px;
	border: 0;
	border-radius: 12px;
	background: #5865f2;
	box-shadow: 0 12px 30px rgba(88, 101, 242, .35);
	color: #fff;
	font-size: 16px;
	font-weight: 800;
	cursor: pointer;
	transition: filter .2s, transform .1s;
}

.bgl-account .bgl-signin-btn:hover {
	filter: brightness(1.08);
	color: #fff;
}

.bgl-account .bgl-signin-btn:active {
	transform: translateY(1px);
}

.bgl-signin-btn svg {
	width: 24px;
	height: 24px;
	fill: currentColor;
}

.bgl-signin-points {
	display: grid;
	gap: 8px;
	margin: 22px 0 0;
	min-height: 0;
	padding: 18px 0 0;
	border-top: 1px solid var(--bga-line);
	list-style: none;
	text-align: left;
}

.bgl-signin-points li {
	position: relative;
	margin: 0;
	padding-left: 24px;
	color: var(--bga-muted);
	font-size: 13.5px;
	line-height: 1.5;
}

.bgl-signin-points li::before {
	content: "";
	position: absolute;
	left: 4px;
	top: 6px;
	width: 9px;
	height: 5px;
	border-left: 2px solid var(--bga-accent);
	border-bottom: 2px solid var(--bga-accent);
	transform: rotate(-45deg);
}

/* What the account holds: rows like the account's own lists. */
.bgl-signin-list {
	display: grid;
	gap: 8px;
	margin: 0 0 16px;
	padding: 0;
	list-style: none;
}

.bgl-signin-list li {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 0;
	padding: 12px 14px;
	border: 1px solid var(--bga-line);
	border-radius: 10px;
	background: rgba(0, 0, 0, .18);
}

.bgl-signin-list-icon {
	display: grid;
	place-items: center;
	flex: none;
	width: 38px;
	height: 38px;
	border: 1px solid var(--bga-line-strong);
	border-radius: 9px;
	background: rgba(200, 205, 212, .08);
	color: var(--bga-accent-strong);
}

.bgl-account .bgl-signin-list-icon svg {
	width: 18px;
	height: 18px;
}

.bgl-signin-list-text {
	display: grid;
	gap: 2px;
	min-width: 0;
}

.bgl-signin-list-text b {
	color: #fff;
	font-size: 13px;
	font-weight: 800;
	letter-spacing: .06em;
	text-transform: uppercase;
}

.bgl-signin-list-text i {
	color: var(--bga-muted);
	font-size: 13.5px;
	font-style: normal;
	line-height: 1.45;
}

.bgl-signin-note {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	padding-top: 14px;
	border-top: 1px solid var(--bga-line);
	color: var(--bga-muted);
	font-size: 13.5px;
	line-height: 1.5;
}

.bgl-account .bgl-signin-note svg {
	flex: none;
	width: 16px;
	height: 16px;
	color: var(--bga-accent-strong);
}

.bgl-rd-code {
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
	font-size: 15px !important;
	letter-spacing: .04em !important;
	white-space: nowrap;
}

.bgl-account .bgl-rd-copy {
	min-height: 32px !important;
	margin-left: 6px;
	padding: 0 12px !important;
	font-size: 12.5px !important;
	vertical-align: middle;
}

.bgl-rd-hint {
	display: inline-block;
	margin-top: 4px;
	color: var(--bga-muted);
	font-size: 13px;
	line-height: 1.55;
}

.bgl-rd-steps li strong {
	color: #fff;
}

/* RogueDepot guide: the code, the step cards, the drawing. */
.bgl-rd .bgl-rd-guide {
	margin: 0 0 16px;
}

.bgl-rd-codebox {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 14px;
	margin: 0 0 16px;
	padding: 16px 18px;
	border: 1px dashed rgba(200, 205, 212, .45);
	border-radius: 12px;
	background: rgba(200, 205, 212, .06);
}

.bgl-rd-codelabel {
	color: var(--bga-muted);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .12em;
	text-transform: uppercase;
}

.bgl-rd-codebox .bgl-rd-code {
	margin: 0;
	font-size: 18px !important;
}

.bgl-rd-sketch {
	margin: 0 0 16px;
	padding: 16px;
	border: 1px solid var(--bga-line);
	border-radius: 12px;
	background: rgba(255, 255, 255, .02);
}

.bgl-rd-sketch figcaption {
	margin-bottom: 12px;
	color: #fff;
	font-size: 13px;
	font-weight: 800;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.bgl-rd-sk {
	display: grid;
	grid-template-columns: 170px minmax(0, 1fr);
	gap: 12px;
	padding: 14px;
	border-radius: 10px;
	background: #0d0e11;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 12px;
}

.bgl-rd-sk em {
	display: block;
	margin: 6px 0 4px;
	color: #7d838c;
	font-size: 10px;
	font-style: normal;
	letter-spacing: .14em;
}

.bgl-rd-sk-menu {
	display: grid;
	align-content: start;
	gap: 4px;
	padding: 8px;
	border-radius: 8px;
	background: #16171b;
}

.bgl-rd-sk-menu span,
.bgl-rd-sk-menu b {
	position: relative;
	padding: 6px 8px;
	border-radius: 6px;
	color: #b9bec6;
	font-weight: 400;
}

.bgl-rd-sk-main {
	position: relative;
	padding: 10px 12px;
	border-radius: 8px;
	background: #16171b;
	color: #fff;
}

.bgl-rd-sk-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
}

.bgl-rd-sk-row u {
	display: block;
	padding: 6px 8px;
	border-radius: 4px;
	background: #000;
	color: #b9bec6;
	text-decoration: none;
}

.bgl-rd-sk-bio {
	position: relative;
	display: grid;
	gap: 6px;
	padding: 8px 10px;
	border-radius: 4px;
	background: #000;
	color: #b9bec6;
}

.bgl-rd-sk-bio code {
	justify-self: start;
	padding: 2px 6px;
	border-radius: 4px;
	background: rgba(200, 205, 212, .14);
	color: #fff;
	font-size: 12px;
	word-break: break-all;
}

.bgl-rd-sk-save {
	display: flex;
	justify-content: flex-end;
	gap: 8px;
	margin-top: 10px;
}

.bgl-rd-sk-save span,
.bgl-rd-sk-save b {
	position: relative;
	padding: 6px 10px;
	border: 1px solid #333;
	border-radius: 4px;
	color: #b9bec6;
	font-size: 11px;
}

.bgl-rd-sk-save b {
	border-color: #e11d48;
	background: #e11d48;
	color: #fff;
}

/* The three marked places: a glowing ring and a numbered badge. */
.bgl-rd-sk .is-on {
	outline: 2px solid #f0b429;
	outline-offset: 2px;
	box-shadow: 0 0 0 6px rgba(240, 180, 41, .18);
}

.bgl-rd-sk i,
.bgl-rd-sk-key i {
	display: inline-grid;
	place-items: center;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #f0b429;
	color: #111;
	font-size: 11px;
	font-style: normal;
	font-weight: 800;
}

.bgl-rd-sk i {
	position: absolute;
	top: -10px;
	right: -10px;
}

.bgl-rd-sk-menu b i {
	position: static;
	margin-right: 6px;
}

.bgl-rd-sk-key {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 18px;
	margin: 12px 0 0;
	padding: 0;
	list-style: none;
	color: var(--bga-text);
	font-size: 13px;
}

.bgl-rd-sk-key li {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
}

.bgl-rd-actions .button {
	text-decoration: none !important;
}

.bgl-rd-trouble {
	margin-top: 16px;
}

@media (max-width: 600px) {
	.bgl-rd-sk {
		grid-template-columns: minmax(0, 1fr);
	}

	.bgl-rd-sk-row {
		grid-template-columns: minmax(0, 1fr);
	}
}
