.rk-pen { margin-top: 28px; }
.rk-pen[hidden] { display: none; }

.rk-pen__lines { display: grid; gap: 8px; }

.rk-pen__line { position: relative; display: block; }
.rk-pen__line input {
	display: block;
	width: 100%;
	height: 46px;
	padding: 0 14px;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 0;
	background: var(--wp--preset--color--white);
	font-family: var(--wp--preset--font-family--body);
	font-size: 15px;
	color: var(--wp--preset--color--ink);
	transition: border-color 0.2s var(--wp--custom--ease);
}
.rk-pen__line:has(.rk-pen__drop) input { padding-right: 46px; }
.rk-pen__drop {
	position: absolute;
	top: 0;
	right: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 46px;
	padding: 0;
	border: 0;
	background: none;
	color: #77706B;
	cursor: pointer;
	transition: color 0.2s var(--wp--custom--ease);
}
.rk-pen__drop svg { width: 16px; height: 16px; }
.rk-pen__drop:hover { color: var(--wp--preset--color--heading); }
.rk-pen__drop:focus-visible { outline: 1px solid var(--wp--preset--color--heading); outline-offset: -4px; }
.rk-pen__line input::placeholder { color: #77706B; opacity: 1; }
.rk-pen__line input:focus { outline: none; border-color: var(--wp--preset--color--heading); }

.rk-pen__bar {
	position: absolute;
	right: 1px;
	bottom: 1px;
	left: 1px;
	height: 2px;
	overflow: hidden;
	pointer-events: none;
}
.rk-pen__bar b {
	display: block;
	width: var(--rk-pen-fill, 0%);
	height: 100%;
	background: var(--wp--custom--gold-line);
	transition: width 0.15s var(--wp--custom--ease);
}
.rk-pen__line.is-near .rk-pen__bar b { background: var(--wp--preset--color--heading); }
.rk-pen__line.is-full input { border-color: #B3261E; }
.rk-pen__line.is-full .rk-pen__bar b { background: #B3261E; }

.rk-pen__msg { margin: 10px 0 0; font-size: 13.5px; line-height: 1.5; color: #B3261E; }
.rk-pen__msg[hidden] { display: none; }

.rk-pen__preview { margin-top: 22px; }
.rk-pen__card {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 148 / 105;
	overflow: hidden;
	background: #FDFBF8;
	border: 1px solid var(--wp--preset--color--line);
	box-shadow: 0 12px 28px rgba(31, 31, 31, 0.07);
}
.rk-pen__card.is-empty { padding: 0 8%; font-size: 15px; color: #9A928C; text-align: center; }
.rk-pen__card svg { display: block; width: 100%; height: 100%; }
.rk-pen__card .rk-pen-card { fill: none; }
.rk-pen__card .rk-pen-ink { stroke: #1B2A5C; stroke-width: 0.35; }

@media (max-width: 480px) {
	.rk-pen__line input { font-size: 16px; }
}

.rk-svc .rk-pen { margin-top: 18px; }

.rk-pen__line[hidden] { display: none; }

.rk-pen__add {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 12px;
	padding: 0 0 1px;
	border: 0;
	border-bottom: 1px solid currentColor;
	background: none;
	font-family: var(--wp--preset--font-family--body);
	font-size: 15px;
	color: var(--wp--preset--color--heading);
	cursor: pointer;
	transition: color 0.2s var(--wp--custom--ease);
}
.rk-pen__add svg { width: 14px; height: 14px; }
.rk-pen__add:hover { color: var(--wp--custom--gold-line); }
.rk-pen__add[hidden] { display: none; }
