/**
 * Booking text alerts widget (/account/notifications and the booking page offer).
 * Mirrors the two-factor widget so the two account pages look like siblings.
 * Bookably palette: primary #1097c5, hover #0d7fa8.
 */

.bookably-sms {
	max-width: 620px;
}

.bookably-sms--offer {
	margin: 24px 0;
	padding: 20px 22px;
	border: 1px solid #d6e9f2;
	border-radius: 10px;
	background: #f4fafd;
}

.bookably-sms--offer .bookably-sms__card {
	background: transparent;
	border: 0;
	padding: 0;
}

.bookably-sms__title {
	margin: 0 0 6px;
	font-size: 20px;
}

.bookably-sms--offer .bookably-sms__title {
	font-size: 17px;
}

.bookably-sms__lead {
	margin: 0 0 18px;
	color: #555;
	line-height: 1.55;
}

.bookably-sms__card {
	background: #f5f7fa;
	border: 1px solid #e4e8ee;
	border-radius: 10px;
	padding: 20px 22px;
}

.bookably-sms__card--error {
	background: #fdecea;
	border-color: #f4c7c3;
	color: #b3261e;
}

.bookably-sms__loading {
	color: #777;
	margin: 0;
}

.bookably-sms__status {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 10px;
	font-size: 15px;
	color: #333;
}

/* The sign-up step's heading (the host assistant mounts it in its workspace),
   and the existing-host card's, which uses the same words in its chat.
   Scoped to those two: the account page already has its own __title heading. */
.bookably-sms--signup .bookably-sms__title,
.bookably-sms--host-card .bookably-sms__title {
	margin: 0 0 8px;
	font-size: 17px;
	font-weight: 600;
	color: #222;
}

/* The existing-host card appears in the chat without being asked for, so it
   stays hidden until it knows it has something to show: a host whose texts
   are already on never sees a "Loading..." line flash and vanish. */
.bookably-sms--host-card[data-state="loading"] {
	display: none;
}

/* The person's own switch for new guest message texts, under the controls for
   every text in the settings (owner-approved 2026-09-19). */
.bookably-sms__messages {
	margin: 18px 0 0;
	padding: 16px 0 0;
	border-top: 1px solid #e4e8ee;
}

.bookably-sms__messages .bookably-sms__actions {
	margin-top: 10px;
}

.bookably-sms__dot {
	display: inline-block;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	flex: 0 0 auto;
}

.bookably-sms__dot--on {
	background: #00794f;
}

.bookably-sms__dot--off {
	background: #b0b6bd;
}

.bookably-sms__hint {
	color: #666;
	font-size: 13.5px;
	line-height: 1.5;
	margin: 0 0 14px;
}

.bookably-sms__hint--tight {
	margin: 6px 0 14px;
}

.bookably-sms__fine {
	color: #777;
	font-size: 12.5px;
	line-height: 1.5;
	margin: 16px 0 0;
}

.bookably-sms__warn {
	color: #8a5300;
	background: #fff5e5;
	border: 1px solid #f6e0b8;
	border-radius: 6px;
	padding: 10px 12px;
	font-size: 13.5px;
	line-height: 1.5;
	margin: 0 0 14px;
}

.bookably-sms__label {
	display: block;
	font-size: 13px;
	color: #555;
	margin: 0 0 6px;
}

.bookably-sms__input {
	width: 260px;
	max-width: 100%;
	font-size: 17px;
	border: 1px solid #cfd6dd;
	border-radius: 8px;
	padding: 8px 10px;
	background: #fff;
	box-shadow: none;
}

.bookably-sms__input--code {
	width: 160px;
	font-size: 20px;
	letter-spacing: 4px;
	text-align: center;
}

.bookably-sms__input:focus {
	border-color: #1097c5;
	outline: none;
}

.bookably-sms__check {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	font-size: 14px;
	color: #444;
	margin: 4px 0 12px;
	cursor: pointer;
}

.bookably-sms__check input {
	margin-top: 3px;
}

.bookably-sms__reauth,
.bookably-sms__confirm {
	margin: 8px 0 4px;
}

.bookably-sms__err {
	color: #b3261e;
	font-size: 13.5px;
	min-height: 18px;
	margin: 8px 0 0;
}

.bookably-sms__actions {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	margin: 16px 0 0;
}

.bookably-sms__btn {
	appearance: none;
	border: 1px solid #cfd6dd;
	background: #fff;
	color: #333;
	border-radius: 8px;
	padding: 9px 16px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	line-height: 1.2;
}

.bookably-sms__btn:hover {
	border-color: #b7c0c9;
}

.bookably-sms__btn:disabled {
	opacity: 0.55;
	cursor: default;
}

.bookably-sms__btn--primary {
	background: #1097c5;
	border-color: #1097c5;
	color: #fff;
}

.bookably-sms__btn--primary:hover {
	background: #0d7fa8;
	border-color: #0d7fa8;
}

.bookably-sms__btn--danger {
	color: #b3261e;
	border-color: #e6b4b0;
}

.bookably-sms__btn--danger:hover {
	background: #fdecea;
	border-color: #e6b4b0;
}

.bookably-sms__btn--ghost {
	background: transparent;
	border-color: transparent;
	color: #0d7fa8;
}

.bookably-sms__btn--ghost:hover {
	background: #eaf4f9;
	border-color: transparent;
}

.bookably-sms__noscript {
	color: #b3261e;
}
