/**
 * Frontend styles for LandTech Self Storage API
 */

.landtech-selfstorage-location,
.landtech-selfstorage-units {
	margin: 20px 0;
}

.landtech-selfstorage-units-empty-hint {
	font-size: 0.95em;
	color: #555;
	margin: 0.75em 0 0;
	line-height: 1.45;
}

.landtech-wss-location-sizes {
	margin: 20px 0;
}

.landtech-wss-location-sizes-intro,
.landtech-wss-location-sizes-footnote {
	font-size: 0.95em;
	color: #444;
	line-height: 1.45;
}

.landtech-wss-location-sizes-scroll {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.landtech-wss-location-sizes-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.95em;
}

.landtech-wss-location-sizes-table th,
.landtech-wss-location-sizes-table td {
	border: 1px solid #c3c4c7;
	padding: 8px 10px;
	text-align: left;
	vertical-align: top;
}

.landtech-wss-location-sizes-table thead th {
	background: #f0f0f1;
	font-weight: 600;
}

.landtech-wss-location-sizes-table tbody tr:nth-child(odd) {
	background: #fcfcfc;
}

.landtech-wss-location-sizes-table code {
	font-size: 0.9em;
	word-break: break-all;
}

.landtech-selfstorage-location-title,
.landtech-selfstorage-units-title {
	margin-bottom: 15px;
}

.landtech-selfstorage-address {
	margin: 10px 0;
}

.landtech-selfstorage-phone {
	margin: 10px 0;
}

.landtech-selfstorage-hours {
	margin: 15px 0;
}

.landtech-selfstorage-hours ul {
	list-style: none;
	padding-left: 0;
}

.landtech-selfstorage-hours li {
	margin: 5px 0;
}

.landtech-selfstorage-units-grid {
	display: grid;
	grid-template-columns: repeat( auto-fill, minmax( 250px, 1fr ) );
	gap: 20px;
	margin-top: 20px;
}

.landtech-selfstorage-unit-card {
	border: 1px solid #ddd;
	border-radius: 4px;
	padding: 15px;
	background: #fff;
}

.landtech-selfstorage-unit-card h3 {
	margin-top: 0;
}

.landtech-selfstorage-unit-price {
	font-size: 1.2em;
	color: #2271b1;
	margin: 10px 0;
}

.landtech-selfstorage-error {
	background: #f8d7da;
	border: 1px solid #f5c6cb;
	color: #721c24;
	padding: 15px;
	border-radius: 4px;
	margin: 20px 0;
}

.landtech-selfstorage-upgrade-notice {
	text-align: center;
}

.landtech-selfstorage-upgrade-notice a {
	font-weight: bold;
}

@media ( max-width: 768px ) {
	.landtech-selfstorage-units-grid {
		grid-template-columns: 1fr;
	}
}

/* Raw API diagnostic shortcodes ([wss_api_*]) — administrators only */
.landtech-wss-api-raw {
	display: block;
	overflow-x: auto;
	max-width: 100%;
	padding: 12px;
	margin: 1em 0;
	font-size: 12px;
	line-height: 1.4;
	white-space: pre-wrap;
	word-break: break-word;
	background: #f6f7f7;
	border: 1px solid #c3c4c7;
	border-radius: 4px;
}

.landtech-wss-api-error {
	border-color: #d63638;
	background: #fcf0f1;
}
