/* ---------------------------------------------------------------------------
 * AJB My Bookmark Tiles — [ajb_my_bookmarks] front-end chrome
 *
 * The tile grid itself (.ajb-tiles-wrap / .ajb-tiles-grid / .ajb-tile...)
 * is intentionally NOT redefined here — it's the exact same markup and
 * classes as the admin-curated [bookmark_tiles] shortcode, so it inherits
 * tiles.css as-is and looks identical. This file only styles the parts
 * unique to the self-service flow: the login form, the pending notice,
 * and the editable list underneath the tile preview.
 * ------------------------------------------------------------------------- */

.ajb-mbt-notice {
	padding: 0.75em 1em;
	border-radius: 6px;
	margin: 0 0 1em;
	font-size: 0.95em;
}
.ajb-mbt-notice--success {
	background: #eafaf0;
	color: #1a6b3c;
	border: 1px solid #b7e6c9;
}
.ajb-mbt-notice--error {
	background: #fdecea;
	color: #8a2c22;
	border: 1px solid #f3c2bd;
}

.ajb-mbt-login,
.ajb-mbt-pending,
.ajb-mbt-manager {
	max-width: 480px;
	font-family: inherit;
}

.ajb-mbt-login__row {
	display: flex;
	gap: 0.5em;
	margin: 0.5em 0;
}
.ajb-mbt-login__row input[type="email"] {
	flex: 1;
	padding: 0.6em 0.75em;
	border: 1px solid #ccc;
	border-radius: 6px;
	font-size: 1em;
}
.ajb-mbt-login__hint {
	font-size: 0.85em;
	color: #666;
	margin: 0.25em 0 0;
}

.ajb-mbt-btn {
	display: inline-block;
	padding: 0.6em 1.1em;
	border: none;
	border-radius: 6px;
	font-size: 0.95em;
	cursor: pointer;
	text-decoration: none;
}
.ajb-mbt-btn--primary {
	background: #2271b1;
	color: #fff;
}
.ajb-mbt-btn--primary:hover {
	background: #135e96;
}
.ajb-mbt-btn--danger {
	background: #fff;
	color: #a02222;
	border: 1px solid #a02222;
}
.ajb-mbt-btn--danger:hover {
	background: #fdecea;
}

.ajb-mbt-manager {
	max-width: 640px;
}
.ajb-mbt-manager__header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 0.9em;
	color: #555;
	margin-bottom: 1em;
	padding-bottom: 0.5em;
	border-bottom: 1px solid #e2e2e2;
}

.ajb-mbt-list {
	list-style: none;
	margin: 1.5em 0;
	padding: 0;
	border-top: 1px solid #e8e8e8;
}
.ajb-mbt-list__item {
	display: flex;
	align-items: center;
	gap: 0.75em;
	padding: 0.6em 0;
	border-bottom: 1px solid #e8e8e8;
	flex-wrap: wrap;
}
.ajb-mbt-list__name {
	font-weight: 600;
	min-width: 120px;
}
.ajb-mbt-list__url {
	flex: 1;
	color: #666;
	font-size: 0.85em;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	min-width: 0;
}
.ajb-mbt-list__edit summary,
.ajb-mbt-add summary {
	cursor: pointer;
	color: #2271b1;
	font-size: 0.9em;
}
.ajb-mbt-list__delete {
	margin: 0;
}

.ajb-mbt-add {
	margin-top: 1em;
	padding: 1em;
	background: #f7f7f8;
	border-radius: 8px;
}
.ajb-mbt-add summary {
	font-weight: 600;
	font-size: 1em;
}

.ajb-mbt-form {
	display: flex;
	flex-direction: column;
	gap: 0.4em;
	margin-top: 0.75em;
	max-width: 360px;
}
.ajb-mbt-form label {
	font-size: 0.85em;
	font-weight: 600;
	color: #444;
}
.ajb-mbt-form input[type="text"],
.ajb-mbt-form select {
	padding: 0.5em 0.6em;
	border: 1px solid #ccc;
	border-radius: 6px;
	font-size: 0.95em;
}
.ajb-mbt-form button {
	margin-top: 0.5em;
	align-self: flex-start;
}
