@font-face {
	font-family: 'Miller Display';
	src: url('../fonts/millerdisplay-light.woff2') format('woff2');
	font-weight: 300;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Helvetica Neue LT';
	src: url('../fonts/helveticaneueltstd-th.woff2') format('woff2');
	font-weight: 100;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Helvetica Neue LT';
	src: url('../fonts/helveticaneueltstd-lt.woff2') format('woff2');
	font-weight: 300;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Helvetica Neue LT';
	src: url('../fonts/helveticaneueltstd-roman.woff2') format('woff2');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

.search-birthnotice-button-filters {
	display: flex;
	align-items: center;
	position: relative;
	border: none;
	background: none;
	letter-spacing: 0.2em;
	margin-right: auto;
	margin-left: auto;
	padding: 0;
	text-align: center;
	text-transform: uppercase;
}

.search-birthnotice-button-filters::after {
	content: '';
	display: inline-block;
	width: 0.5em;
	height: 1em;
	background: url('../images/arrow-right.svg') no-repeat center;
	background-size: contain;
	margin-left: 0.5em;
	transform: rotate(-90deg);
	transition: transform 400ms ease-in-out;
}

.search-birthnotice-button-filters.is-closed::after {
	transform: rotate(90deg);
}

.search-birthnotice {
	display: none;
}

.search-birthnotice__inner {
    margin: -0.5em -15px 1em;
}

.search-birthnotice__filter {
	position: relative;
    margin: 0.5em 15px;
}

.search-birthnotice__filter > label {
    display: block;
    font-size: 0.8em;
    font-weight: 400;
}

.search-birthnotice__filter > input,
.search-birthnotice__filter > select {
	width: 100%;
}

.search-birthnotice__filter > .clear-birthdate {
	display: none;
	position: absolute;
	top: 0;
	right: 0.25em;
	background: none;
	border: none;
	outline: none;
	box-shadow: none;
	font-weight: inherit;
	padding: 0;
}

.search-birthnotice__inner > input[type="submit"] {
	display: block;
	margin: 1em auto 0.8em;
	width: auto;
}

.list-birthnotice__grid {
    display: grid;
	grid-gap: 1rem;
    grid-template-columns: repeat(auto-fill, minmax(9em, 1fr));
    justify-content: space-between;
}

.announcement {
	position: relative;
}

.announcement .errors {
	color: #f72a0a;
	font-size: 1rem;
}

.announcement + .wp-block-button {
	text-align: center;
}

.form-announcement__content-settings > div {
	border: 1px dashed #003667;
}

.inline-editable-items {
	display: none;
}

.canvas-announcement {
	width: 100%;
	height: auto;
	margin-bottom: 0.5rem;
}

.container-canvas-announcement {
	position: relative;
}

.form-announcement {
	font-size: 1rem;
	text-align: center;
}

.form-announcement .input-color {
	position: absolute;
	opacity: 0;
}

.form-announcement .label-color {
	position: relative;
	display: inline-block;
	width: 1.5em;
	height: 1.5em;
	background-color: #333;
	border-radius: 50%;
	text-indent: -100em;
	margin-top: 4px;
	margin-left: 4px;
}

.form-announcement .label-color::after {
	content: '';
	position: absolute;
	top: -4px;
	left: -4px;
	right: -4px;
	bottom: -4px;
	border: 1px solid transparent;
	border-radius: 50%;
}

.form-announcement .input-color:checked + .label-color::after {
	border-color: #666;
}

.form-announcement .label-color-green {
	background-color: #a1b3ae;
}

.form-announcement .label-color-green:hover::after,
.form-announcement .label-color-green:focus::after,
.form-announcement .input-color:checked + .label-color-green::after {
	border-color: #a1b3ae;
}

.form-announcement .label-color-blue {
	background-color: #aabdca;
}

.form-announcement .label-color-blue:hover::after,
.form-announcement .label-color-blue:focus::after,
.form-announcement .input-color:checked + .label-color-blue::after {
	border-color: #aabdca;
}

.form-announcement .label-color-rose {
	background-color: #dfaeae;
}

.form-announcement .label-color-rose:hover::after,
.form-announcement .label-color-rose:focus::after,
.form-announcement .input-color:checked + .label-color-rose::after {
	border-color: #dfaeae;
}

.form-announcement .label-color-salmon {
	background-color: #fef2ec;
}

.form-announcement .label-color-salmon:hover::after,
.form-announcement .label-color-salmon:focus::after,
.form-announcement .input-color:checked + .label-color-salmon::after {
	border-color: #fef2ec;
}

.form-announcement .label-color-dark-blue {
	background-color: #00356a;
}

.form-announcement .label-color-dark-blue:hover::after,
.form-announcement .label-color-dark-blue:focus::after,
.form-announcement .input-color:checked + .label-color-dark-blue::after {
	border-color: #00356a;
}

.form-announcement .basic-settings {
	display: grid;
	grid-gap: 1rem;
	grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr))
}

.form-announcement .basic-settings > div {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.form-announcement__label {
	font-size: 1rem;
	display: block;
	font-weight: 500;
	margin-bottom: 0.5em;
}

.form-announcement__input-firstname {
	font-family: 'Miller Display', serif;
	font-weight: 300;
	font-size: 2em;
	line-height: 1;
	text-transform: uppercase;
	padding-top: 0.2em;
	padding-bottom: 0;
}

.form-announcement__input-firstname,
.form-announcement__textarea {
	display: block;
	background: transparent;
	border: 1px dashed transparent;
	color: #003667;
	text-align: center;
	width: 100%;
}

.form-announcement__input-firstname:focus,
.form-announcement__textarea:focus {
	border-color: rgba(0, 54, 103, 0.5);
}

.form-announcement__textarea {
	min-height: 5rem;
	resize: vertical;
}

.form-announcement__input-time,
.form-announcement__input-number {
	border: none;
	background: none;
	width: 4em;
	text-align: right;
}

.form-announcement__input-time {
	width: 5em;
}

.form-announcement__table,
.form-announcement__table.table {
	margin-right: auto;
	margin-left: auto;
	width: auto;
}

.form-announcement__table input {
	max-width: 100%;
}

.form-announcement__input-number[disabled],
.form-announcement__input-number[disabled] + .unit {
	color: #808080;
}

.form-announcement__table .custom-control-input:checked ~ .custom-control-label::before {
	border-color: #003667;
	background-color: #003667;
}

.form-announcement__table .icon {
	box-sizing: content-box;
	background-color: #003667;
	border-radius: 50%;
	color: #fff;
	padding: 4px;
	width: 1.5em;
	height: 1.5em;
}

.form-announcement__table tr th,
.form-announcement__table tr td {
	border: none;
	padding: 0.125em 0;
	text-align: right;
	vertical-align: middle;
}

.form-announcement__table tr th + th,
.form-announcement__table tr td + td {
	padding-left: 0.5em;
}

.form-announcement__table tr > :nth-child(1) {
	width: 2em;
	text-align: left;
}

.form-announcement__table tr > :nth-child(2) {
	width: 4em;
	text-align: right;
	white-space: nowrap;
}

.form-announcement__table tr > :last-child {
	width: 2em;
}

.birthnotice-navigation {
	margin-top: 5rem;
}

.birthnotice-navigation .nav-links {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	font-size: 0.75em;
}

.birthnotice-navigation .nav-link {
	background: transparent;
	border: none;
	box-shadow: none;
	font-weight: 300;
	padding: 0;
}

.birthnotice-navigation .nav-link svg {
	vertical-align: bottom;
}

.birthnotice-navigation .nav-previous .nav-link svg {
	margin-right: 0.25rem;
}

.birthnotice-navigation .nav-next .nav-link svg {
	margin-left: 0.25rem;
}

.birthnotice-navigation .current-page {
	position: absolute;
	left: 50%;
	width: 6ch;
	margin-left: -3ch;
	text-align: center;
}

.stack {
	margin-top: 0;
	margin-bottom: 0;
}

.stack > * + * {
	margin-top: 1rem;
}

.stack > .screen-reader-text + * {
	margin-top: 0;
}

/********** FILE UPLOAD **********/

.container-canvas-announcement:before {
	content: "";
	position: absolute;
	left: 0;
	width: 100%;
	top: 0;
	height: 100%;
	background-color: #000;
	pointer-events: none;
	transition: opacity 0.2s ease;
	opacity: 0;
	z-index: 1;
}

.container-canvas-announcement.loading:before {
	opacity: 0.6;
}

.image-actions {
	position: absolute;
	left: 15px;
	top: 15px;
	z-index: 2;
}

.upload-instructions {
	position: absolute;
	left: 25%;
	top: 50%;
	font-size: 1rem;
	text-align: center;
	transform: translate(-50%, -50%);
	max-width: min(calc(50% - 30px), 28ch);
}

#js-form-announcement-image {
	width: 26px;
	height: 26px;
	display: inline-block;
	margin-right: 3px;
	position: relative;
}

#js-form-announcement-delete-image {
	width: 26px;
	height: 26px;
	display: inline-block;
	margin-right: 3px;
	position: relative;
}

#js-form-announcement-delete-image.hide,
.image-actions.hide {
	display: none;
}

#js-form-announcement-image #input-file {
	border: none;
	clip: rect(0 0 0 0);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
}

#js-form-announcement-delete-image button[type="submit"],
#js-form-announcement-image label[for="input-file"] {
	-webkit-appearance: none;
	appearance: none;
	position: absolute;
	left: 0;
	width: 100%;
	top: 0;
	height: 100%;
	border: none;
	font-size: 0;
	background: #003667 url('../images/icon-upload-photo.svg') no-repeat center center / 18px auto;
	cursor: pointer;
}

#js-form-announcement-delete-image button[type="submit"] {
	background-image: url('../images/icon-delete-photo.svg');
}

#js-form-announcement-image .response {
	color: #fff;
	font-size: 1rem;
	position: absolute;
	top: 100%;
	left: 0;
	margin-top: 3px;
	display: none;
	width: 45ch;
}

#js-form-announcement-image .response.show {
	display: block;
}

#js-form-announcement-image .response.error {
	color: red;
}

#js-editable-firstname:before {
    content: attr(data-before);
}

/********** /FILE UPLOAD **********/

@media (min-width: 40em) {

	.search-birthnotice__inner {
		display: flex;
		flex-wrap: wrap;
		justify-content: center;
		align-items: flex-end;
	}

	.search-birthnotice__filter {
		flex-basis: calc(50% - 30px);
	}

	.search-birthnotice__filter:first-of-type {
		flex-basis: 100%;
	}

}

@media (min-width: 768px) {

	.announcement {
		display: grid;
		grid-template-columns: 1fr min-content;
		grid-gap: 1rem;
	}

	.announcement + .wp-block-button {
		text-align: left;
	}

	.inline-editable-items {
		display: block;
	}

	.inline-editable-item {
		position: absolute;
		top: 0;
		left: 0;
		color: #fff;
		background-color: #003667;
		border: 1px dashed transparent;
		font-weight: 100;
		font-family: 'Helvetica Neue LT', 'Helvetica Neue', sans-serif;
		font-size: 0;
		text-align: center;
		resize: none;
		overflow: hidden;
	}

	.inline-editable-item:focus {
		border-color: rgba(255,255,255,0.5);
		z-index: 1;
	}

	.inline-editable-firstname {
		display: flex;
		align-items: center;
		justify-content: center;
		font-family: 'Miller Display', serif;
		font-weight: 300;
		line-height: 1;
		letter-spacing: -0.01em;
		text-transform: uppercase;
		white-space: nowrap;
	}

	.inline-editable-body {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		font-weight: 100;
		font-family: 'Helvetica Neue LT', 'Helvetica Neue', sans-serif;
		letter-spacing: 0.05em;
		line-height: 1.75;
		max-width: 70ch;
		overflow: hidden;
		white-space: pre-wrap;
	}

	[data-template="illustration"] + .inline-editable-items .inline-editable-body {
		left: 50%;
		transform: translate(-50%);
		width: 100%;
	}

	.form-announcement {
		text-align: left;
	}

	.form-announcement .basic-settings > div {
		display: block;
	}

	.form-announcement .form-announcement__content-settings {
		display: none;
	}

	.form-announcement__table,
	.form-announcement__table.table {
		margin-left: 0;
	}

}

@media (min-width: 70em) {

	.search-birthnotice-button-filters {
		display: none;
	}

	.search-birthnotice {
		display: block;
	}

	.search-birthnotice__inner > .search-birthnotice__filter {
		flex: 1 1 calc(20% - 30px);
		max-width: calc(50% - 30px);
	}

	.search-birthnotice__inner > input[type="submit"] {
		margin-right: 15px;
		margin-left: 15px;
	}
}
