/**
 * Delivery sites page in My Account. Extends checkout.css, which is loaded
 * first, and leans on the theme's own totm-sm-* address card styling.
 */

.tmo-account-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	align-items: center;
	justify-content: space-between;
	margin: 1.5rem 0 1rem;
}

.tmo-account-actions__count {
	font-size: 0.85rem;
	opacity: 0.7;
}

.tmo-account-sites {
	display: grid;
	grid-template-columns: repeat( auto-fill, minmax( 260px, 1fr ) );
	gap: 1rem;
}

.tmo-account-site.is-default {
	box-shadow: inset 0 0 0 1px #1c7c54;
}

.tmo-account-site__meta {
	margin: 0.4rem 0 0;
	font-size: 0.8rem;
	opacity: 0.7;
}

.tmo-account-site__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	align-items: center;
	margin-top: 0.8rem;
	padding-top: 0.8rem;
	border-top: 1px solid #efefed;
}

.tmo-inline-form {
	display: inline;
	margin: 0;
}

.tmo-account-empty {
	padding: 2rem 1.5rem;
	border: 1px dashed #e3e3e1;
	border-radius: 8px;
	background: #fbfbfa;
	text-align: center;
}

.tmo-account-empty p {
	margin: 0 0 0.5rem;
	opacity: 0.75;
}

.tmo-account-empty p:last-child { margin-bottom: 0; }

.tmo-form--page {
	margin-top: 1.5rem;
	border-style: solid;
}

.tmo-import {
	margin-top: 2rem;
	padding: 1rem 1.25rem;
	border: 1px solid #e3e3e1;
	border-radius: 8px;
	background: #fbfbfa;
}

.tmo-import summary {
	cursor: pointer;
	font-weight: 600;
}

.tmo-import p {
	margin: 0.75rem 0;
	font-size: 0.875rem;
	opacity: 0.8;
}

.tmo-import__form {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	align-items: center;
}

.tmo-muted { opacity: 0.6; }


/* Inside Account Details -> Address information ------------------------- */

/*
 * The block sits among the theme's own address blocks, so it borrows their
 * spacing rather than introducing its own rhythm.
 */
.tmo-account-block {
	margin-top: 28px;
}

.tmo-account-block__notice {
	margin: 0 0 16px;
	padding: 12px 16px;
	border-radius: 8px;
	background: #fdf6e8;
	font-size: 0.9rem;
}

.tmo-account-block__form-title {
	margin: 0 0 16px;
	font-size: 1rem;
	font-weight: 700;
}

.tmo-account-block .tmo-account-actions {
	margin: 16px 0;
}

.tmo-account-block .tmo-account-sites {
	display: grid;
	grid-template-columns: repeat( auto-fill, minmax( 240px, 1fr ) );
	gap: 16px;
}

.tmo-account-block .tmo-import {
	margin-top: 20px;
}

/* The theme paints its own card here; keep ours from double-framing it. */
.tmo-account-block .tmo-form--page {
	margin-top: 0;
}
