/**
 * VIP Button — link helpers: 外部リンクの印, 電話の PC 表示,
 * コピーしました / 押した後の表示, and the hover colours when no other plugin
 * (BCP / pvip-blocks / Ollie Pro) provides them.
 */
.vipc-ext-i {
	display: inline-block;
	width: 0.8em;
	height: 0.8em;
	margin-left: 0.35em;
	vertical-align: -0.04em;
	background-color: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M6 3H3.5v9.5H13V10M9 3h4v4M13 3 7.5 8.5' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M6 3H3.5v9.5H13V10M9 3h4v4M13 3 7.5 8.5' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* 電話の PC 表示: phones dial, mice can't. */
.vipc-telpc {
	display: none;
}
@media (hover: hover) and (pointer: fine) {
	.wp-block-button.vipc-tel > .wp-block-button__link {
		display: none !important; /* beats the styles' own display (inline-flex …) */
	}
	.vipc-telpc {
		display: inline-flex;
		align-items: center;
		gap: 0.6em;
		font-weight: 700;
		font-variant-numeric: tabular-nums;
	}
}
.vipc-telpc__copy {
	position: relative;
	padding: 0.3em 0.85em;
	border: 1px solid currentColor;
	border-radius: 999px;
	background: transparent;
	color: inherit;
	font: inherit;
	font-size: 0.8em;
	font-weight: 600;
	cursor: pointer;
}

/* コピーしました / 開いています… overlays (text set by copy.js / pending.js). */
.vipc-copied,
.vipc-pending-msg {
	display: none;
}
.is-copied > .vipc-copied,
.wp-block-button__link.is-pending > .vipc-pending-msg {
	position: absolute;
	inset: 0;
	z-index: 4;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.6em;
	border-radius: inherit;
	background: inherit;
	color: inherit;
	white-space: nowrap;
}
.vipc-telpc__copy.is-copied > .vipc-copied {
	background: var(--wp--preset--color--base, #fff);
}
.wp-block-button__link.is-pending {
	cursor: progress;
}
.wp-block-button__link.is-pending > .vipc-pending-msg::before {
	content: "";
	flex: none;
	width: 0.9em;
	height: 0.9em;
	border: 2px solid currentColor;
	border-right-color: transparent;
	border-radius: 50%;
	animation: vipc-spin 0.7s linear infinite;
}
@keyframes vipc-spin {
	to { transform: rotate(360deg); }
}

/* ホバー時の色 (VIP Button's own, when nothing else provides it). */
.wp-block-button.has-hover__background-color > .wp-block-button__link:hover,
.wp-block-button.has-hover__background-color > .wp-block-button__link:focus-visible {
	background-color: var(--hover-background-color) !important;
}
.wp-block-button.has-hover__color > .wp-block-button__link:hover,
.wp-block-button.has-hover__color > .wp-block-button__link:focus-visible {
	color: var(--hover-color) !important;
}

/* 読み上げ用の文字（動きのスタイルがないボタンでも隠す。base.css と同じ） */
.wp-block-button .vipb-sr {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}
