/* alloggiati-web — checkin frontend styles */

.aw-checkin-wrap {
	max-width: 720px;
	margin: 0 auto;
	font-family: inherit;
}

.aw-checkin-title {
	font-size: 1.5em;
	margin-bottom: 1em;
}

/* Notice / info bar */
.aw-checkin-notice {
	padding: .75em 1em;
	border-radius: 4px;
	margin-bottom: 1.25em;
}

.aw-checkin-info {
	background: #eef3fb;
	border-left: 4px solid #4a90d9;
	color: #1a3a5c;
	font-size: .9em;
}

/* Fieldset sections */
.aw-checkin-section {
	border: 1px solid #ddd;
	border-radius: 6px;
	padding: 1em 1.25em 1.25em;
	margin-bottom: 1.25em;
}

.aw-checkin-section legend {
	font-weight: 600;
	padding: 0 .5em;
	font-size: .95em;
	color: #333;
}

.aw-checkin-section--readonly {
	background: #fafafa;
}

.aw-checkin-section--readonly input[readonly] {
	background: #f0f0f0;
	cursor: default;
	color: #555;
}

/* Grid rows */
.aw-checkin-row {
	display: grid;
	gap: .75em;
	margin-bottom: .75em;
}

.aw-checkin-row--two   { grid-template-columns: 1fr 1fr; }
.aw-checkin-row--three { grid-template-columns: 1fr 1fr 1fr; }

@media ( max-width: 560px ) {
	.aw-checkin-row--two,
	.aw-checkin-row--three { grid-template-columns: 1fr; }
}

/* Fields */
.aw-checkin-field label {
	display: block;
	font-size: .85em;
	font-weight: 600;
	margin-bottom: .3em;
	color: #444;
}

.aw-checkin-field input,
.aw-checkin-field select {
	width: 100%;
	padding: .5em .65em;
	border: 1px solid #ccc;
	border-radius: 4px;
	font-size: .95em;
	box-sizing: border-box;
}

.aw-checkin-field input:focus,
.aw-checkin-field select:focus {
	outline: none;
	border-color: #4a90d9;
	box-shadow: 0 0 0 2px rgba(74,144,217,.2);
}

.aw-required { color: #c0392b; }

/* Actions */
.aw-checkin-actions {
	margin-top: .5em;
	margin-bottom: 1em;
}

.aw-checkin-submit {
	background: #2c7be5;
	color: #fff;
	border: none;
	padding: .65em 1.5em;
	font-size: 1em;
	border-radius: 4px;
	cursor: pointer;
	transition: background .15s;
}

.aw-checkin-submit:hover  { background: #1a65cc; }
.aw-checkin-submit:disabled { background: #9ab9e8; cursor: not-allowed; }

/* Message */
.aw-checkin-message {
	padding: .75em 1em;
	border-radius: 4px;
	font-size: .92em;
	display: none;
}

.aw-checkin-message:not(:empty) { display: block; }

.aw-checkin-message--success {
	background: #eafaf1;
	border-left: 4px solid #27ae60;
	color: #1a5c36;
}

.aw-checkin-message--error {
	background: #fdf3f2;
	border-left: 4px solid #c0392b;
	color: #7b1a14;
}

/* Sent state */
.aw-checkin-section--sent {
	opacity: .6;
	pointer-events: none;
}


/* Rejection notice on checkin form */
.aw-checkin-error {
	background: #fff3f3;
	border-left: 4px solid #dc3232;
	color: #7b1a14;
}

/* Guest doc images (checkin form) */
.aw-checkin-doc-images-toggle {
	margin: 0 0 1em;
}

#aw-guest-doc-images-wrap {
	margin-top: .75em;
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

/* Host doc images (accordion) */
.aw-accordion-doc-images {
	margin-bottom: 1em;
}

.aw-doc-images-wrap {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: .75em;
}

/* Shared thumbnail */
.aw-doc-thumb { text-align: center; }
.aw-doc-thumb span { display: block; font-size: 11px; color: #666; margin-top: 4px; }
.aw-doc-thumb img {
	max-width: 220px;
	max-height: 160px;
	border: 1px solid #ddd;
	border-radius: 4px;
	display: block;
	cursor: zoom-in;
}
.aw-doc-thumb img:active { max-width: 100%; max-height: none; cursor: zoom-out; }

/* Edit mode toggle */
.aw-checkin-edit-toggle {
	margin: -.25em 0 1.25em;
	text-align: right;
}

.aw-btn-link {
	background: none;
	border: none;
	color: #2c7be5;
	cursor: pointer;
	font-size: .85em;
	padding: 0;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.aw-btn-link:hover { color: #1a65cc; }

.aw-btn-link--cancel { color: #c0392b; }
.aw-btn-link--cancel:hover { color: #922b21; }

.aw-checkin-warning {
	background: #fff8e1;
	border-left: 4px solid #f0a500;
	color: #7d4e00;
}

.aw-checkin-edit-actions {
	margin-bottom: 1.25em;
}

/* ── Host/guest checkin status badges ── */
.aw-host-checkin-badge {
	display: inline-block;
	font-size: 11px;
	font-weight: 700;
	padding: 2px 8px;
	border-radius: 10px;
	vertical-align: middle;
	margin-right: 4px;
}
.aw-host-checkin-badge--pending { background: #fff3cd; color: #856404; border: 1px solid #ffc107; }
.aw-host-checkin-badge--sent    { background: #d4edda; color: #155724; border: 1px solid #28a745; }
.aw-host-checkin-badge--error   { background: #f8d7da; color: #721c24; border: 1px solid #dc3545; }

/* Guest-facing status badge (bookings placed card + booking detail) */
.aw-checkin-status-badge {
	font-size: 12px;
	padding: 4px 10px;
	border-radius: 4px;
}

/* ── Checkin accordion (booking detail page) ── */
.aw-accordion-section {
	margin-top: 24px;
	border: 1px solid #e2e8f0;
	border-radius: 6px;
	padding: 20px 24px;
	background: #fafafa;
}
.aw-accordion-section h3 {
	margin-top: 0;
	display: flex;
	align-items: center;
	gap: 10px;
}
.aw-accordion-result {
	min-height: 18px;
}
