/**
 * core/search「検索窓（大）」is-style-pill（FV）／「検索窓（小）」is-style-pill-small（フッター）。
 * 見本 .fv-search：白い箱・枠 2px button-hover・角6・内側余白・ボタンは中に。フォーカスで枠 primary。
 * ボタン自体の見た目は theme.json の elements.button。
 */

.wp-block-search.is-style-pill .wp-block-search__inside-wrapper,
.wp-block-search.is-style-pill-small .wp-block-search__inside-wrapper {
	padding: 6px;
	border: 2px solid var(--wp--preset--color--button-hover);
	border-radius: 6px;
	background-color: var(--wp--preset--color--base);
}

.wp-block-search.is-style-pill .wp-block-search__inside-wrapper {
	box-shadow: var(--wp--preset--shadow--search);
}

.wp-block-search.is-style-pill-small .wp-block-search__inside-wrapper {
	padding: 4px;
}

.wp-block-search.is-style-pill .wp-block-search__inside-wrapper:focus-within,
.wp-block-search.is-style-pill-small .wp-block-search__inside-wrapper:focus-within {
	border-color: var(--wp--preset--color--primary);
}

.wp-block-search.is-style-pill .wp-block-search__input,
.wp-block-search.is-style-pill-small .wp-block-search__input {
	min-width: 0;
	border: 0;
	background: transparent;
	color: var(--wp--preset--color--ink);
	font-family: inherit;
	outline: none;
}

.wp-block-search.is-style-pill .wp-block-search__input {
	padding: 12px 20px;
	font-size: 18px;
}

.wp-block-search.is-style-pill .wp-block-search__button {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-left: 0;
	padding: 12px 32px;
	font-size: 18px;
}

/* 虫めがね（見本の FV ボタン）。色は文字色（currentColor）で塗る */
.wp-block-search.is-style-pill .wp-block-search__button::before {
	content: "";
	width: 15px;
	height: 15px;
	background-color: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M10 2a8 8 0 0 1 6.32 12.9l5.39 5.4-1.41 1.4-5.4-5.39A8 8 0 1 1 10 2zm0 2a6 6 0 1 0 0 12 6 6 0 0 0 0-12z'/%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 24 24'%3E%3Cpath d='M10 2a8 8 0 0 1 6.32 12.9l5.39 5.4-1.41 1.4-5.4-5.39A8 8 0 1 1 10 2zm0 2a6 6 0 1 0 0 12 6 6 0 0 0 0-12z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.wp-block-search.is-style-pill-small .wp-block-search__input {
	padding: 7px 14px;
	font-size: 15px;
}

.wp-block-search.is-style-pill-small .wp-block-search__button {
	margin-left: 0;
	padding: 7px 18px;
	font-size: 16px;
}

@media (width <= 640px) {
	.wp-block-search.is-style-pill .wp-block-search__input {
		padding: 8px 10px;
		font-size: 16px; /* iOS のズーム防止（16px 未満だとズームする） */
	}

	.wp-block-search.is-style-pill .wp-block-search__button {
		padding: 8px 12px;
		font-size: 14px;
	}
}
