/**
 * Public styles for [ako_rep_application] and [ako_rep_directory].
 *
 * Neutral on purpose: inherits the theme's font and colours where it can, so
 * the form and directory sit inside any site without looking bolted on.
 */

.ako-rep-public {
	direction: rtl;
	text-align: right;
	max-width: 640px;
	margin: 0 auto;
	line-height: 1.8;
}

.ako-rep-directory {
	max-width: 900px;
}

.ako-rep-public__title {
	margin: 0 0 .4em;
	font-size: 1.4em;
}

.ako-rep-public__lede {
	color: #5c6470;
	font-size: .92em;
	margin: 0 0 1.4em;
}

/* --- Messages ----------------------------------------------------------- */

.ako-rep-message {
	margin: 0 0 1.2em;
	padding: .85em 1.1em;
	border-radius: 8px;
	border: 1px solid transparent;
	font-size: .95em;
}

ul.ako-rep-message {
	padding-right: 2.4em;
}

.ako-rep-message--success {
	background: #e8f6ec;
	border-color: #b7e0c4;
	color: #14532d;
}

.ako-rep-message--warning {
	background: #fdf5e3;
	border-color: #ecd9a8;
	color: #7a5200;
}

.ako-rep-message--error {
	background: #fdecec;
	border-color: #f2c2c2;
	color: #8a1f1f;
}

.ako-rep-message--empty {
	background: #f4f5f7;
	border-color: #e0e2e6;
	color: #5c6470;
	text-align: center;
}

/* --- Form --------------------------------------------------------------- */

.ako-rep-field {
	margin: 0 0 1.1em;
}

.ako-rep-field label {
	display: block;
	margin-bottom: .35em;
	font-weight: 600;
	font-size: .93em;
}

.ako-rep-field input[type="text"],
.ako-rep-field select,
.ako-rep-field textarea {
	width: 100%;
	box-sizing: border-box;
	padding: .6em .8em;
	border: 1px solid #ccd0d6;
	border-radius: 6px;
	font: inherit;
	background: #fff;
	color: inherit;
}

.ako-rep-field input[type="text"]:focus,
.ako-rep-field select:focus,
.ako-rep-field textarea:focus {
	outline: 2px solid #2271b1;
	outline-offset: 1px;
	border-color: #2271b1;
}

.ako-rep-req {
	color: #c0392b;
}

/* The honeypot must be reachable by a bot and invisible to a person. */
.ako-rep-trap {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

.ako-rep-actions {
	margin: 1.6em 0 0;
}

.ako-rep-button {
	display: inline-block;
	padding: .7em 2em;
	border: 0;
	border-radius: 6px;
	background: #1f5c8b;
	color: #fff;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

.ako-rep-button:hover,
.ako-rep-button:focus {
	background: #17466a;
}

/* --- Directory ---------------------------------------------------------- */

.ako-rep-directory__province {
	margin: 1.6em 0 .6em;
	padding-bottom: .3em;
	border-bottom: 1px solid #e5e7eb;
	font-size: 1.05em;
}

.ako-rep-directory__grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 12px;
}

.ako-rep-card {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 14px 16px;
	border: 1px solid #e0e2e6;
	border-radius: 8px;
	background: #fbfbfc;
}

.ako-rep-card__name {
	font-weight: 700;
}

.ako-rep-card__city {
	color: #5c6470;
	font-size: .9em;
}

.ako-rep-card__business {
	color: #5c6470;
	font-size: .88em;
}

.ako-rep-card__phone {
	margin-top: .4em;
	font-size: .9em;
	letter-spacing: .04em;
}
