/* PDF Section — front-end and editor-canvas styles. Deliberately plain so
   themes can restyle .rkpdf-section / .rkpdf-button. */
.rkpdf-section { box-sizing: border-box; }
.rkpdf-section::after { clear: both; content: ""; display: block; }
.rkpdf-section.has-background { border-radius: 12px; padding: 24px 28px; }
.rkpdf-download { display: flex; }
.rkpdf-download--bottom { margin-top: 18px; }
.rkpdf-download--top-left { margin: 0 0 18px; }
/* Corner placement: floated so the heading flows beside the button. */
.rkpdf-download--top-right { float: right; margin: 0 0 14px 18px; }
.rkpdf-button {
	align-items: center;
	background: #1e1e1e;
	border-radius: 8px;
	color: #fff;
	cursor: pointer;
	display: inline-flex;
	font-size: 15px;
	font-weight: 600;
	gap: 8px;
	padding: 10px 18px;
	text-decoration: none;
}
.rkpdf-button:hover { color: #fff; opacity: .85; }
.rkpdf-button svg { display: block; flex: 0 0 auto; }

/* Split button: main action + caret segment revealing the format menu. */
.rkpdf-split { display: inline-flex; position: relative; }
.rkpdf-split .rkpdf-button--main { border-bottom-right-radius: 0; border-top-right-radius: 0; }
.rkpdf-split .rkpdf-button--toggle {
	border: 0;
	border-bottom-left-radius: 0;
	border-top-left-radius: 0;
	box-shadow: inset 1px 0 rgba(255, 255, 255, .3);
	padding: 10px;
}
.rkpdf-menu {
	background: #fff;
	border: 1px solid #dcdcde;
	border-radius: 8px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
	display: none;
	list-style: none;
	margin: 6px 0 0;
	min-width: 100%;
	padding: 4px;
	position: absolute;
	right: 0;
	top: 100%;
	z-index: 20;
}
.rkpdf-split.is-open .rkpdf-menu { display: block; }
.rkpdf-menu li { margin: 0; }
.rkpdf-menu a {
	border-radius: 5px;
	color: #1e1e1e;
	display: block;
	font-size: 14px;
	font-weight: 600;
	padding: 8px 12px;
	text-decoration: none;
	white-space: nowrap;
}
.rkpdf-menu a:hover { background: #f0f0f1; color: #1e1e1e; }
