/* ---- My Account: address book grid ---- */
.wcmsa-address-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 16px;
	margin: 16px 0;
}
.wcmsa-address-card {
	position: relative;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	padding: 16px;
	background: #fff;
}
.wcmsa-address-card--default { border-color: #2c2360; }
.wcmsa-default-badge {
	position: absolute;
	top: 12px;
	right: 12px;
	background: #2c2360;
	color: #fff;
	font-size: 0.72em;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.3px;
	padding: 3px 10px;
	border-radius: 12px;
}
.wcmsa-address-card h3 { margin: 0 0 8px; padding-right: 70px; }
.wcmsa-address-card address { font-style: normal; line-height: 1.6; color: #444; margin-bottom: 14px; }
.wcmsa-address-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.wcmsa-address-actions .button {
	padding: 6px 14px;
	font-size: 0.82em;
	border-radius: 16px;
}
.wcmsa-delete-link { background: #fbeaea !important; color: #a33 !important; }
.wcmsa-delete-link:hover { background: #f5d3d3 !important; }

/* ---- My Account: add/edit form ---- */
.wcmsa-address-form .form-row { margin-bottom: 14px; }
.wcmsa-address-form label { display: block; font-weight: 600; margin-bottom: 5px; font-size: 0.9em; }
.wcmsa-address-form input[type="text"],
.wcmsa-address-form input[type="tel"],
.wcmsa-address-form select {
	width: 100%;
	padding: 10px 14px;
	border: 1px solid #6b5fa8;
	border-radius: 20px;
	box-sizing: border-box;
	font-size: 14px;
}
.wcmsa-address-form .form-row-first,
.wcmsa-address-form .form-row-last {
	display: inline-block;
	width: 48%;
	vertical-align: top;
}
.wcmsa-address-form .form-row-first { margin-right: 4%; }
@media (max-width: 500px) {
	.wcmsa-address-form .form-row-first,
	.wcmsa-address-form .form-row-last { width: 100%; margin-right: 0; }
}
.wcmsa-checkbox-label { display: flex !important; align-items: center; gap: 8px; font-weight: 400 !important; }
.wcmsa-checkbox-label input[type="checkbox"] { width: auto; }
.wcmsa-form-actions { display: flex; gap: 10px; margin-top: 18px; }
.wcmsa-address-form button[type="submit"] {
	padding: 11px 26px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	background: #2c2360;
	color: #fff;
	border: none;
	border-radius: 3px;
	cursor: pointer;
}
.wcmsa-address-form button[type="submit"]:hover { background: #1c1640; }

/* ---- Checkout: address selector ---- */
.wcmsa-checkout-address-select {
	background: #f7f5f2;
	border-radius: 8px;
	padding: 20px;
	margin-bottom: 24px;
}
.wcmsa-checkout-address-select h3 { margin-top: 0; }
.wcmsa-address-select {
	width: 100%;
	padding: 12px 16px;
	border: 1px solid #6b5fa8;
	border-radius: 22px;
	box-sizing: border-box;
	font-size: 14px;
	background: #fff;
}
.wcmsa-address-preview {
	white-space: pre-line;
	margin-top: 12px;
	padding: 12px 16px;
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 6px;
	font-size: 0.92em;
	line-height: 1.6;
	color: #444;
	display: none;
}
.wcmsa-address-preview.wcmsa-has-content { display: block; }
.wcmsa-manage-link { margin: 10px 0 0; font-size: 0.9em; }
.wcmsa-no-addresses { margin: 0; }

/* ---- Checkout: single-column customer details ----
   strip_default_fields() empties the billing group, which leaves an empty
   half-width column on the left. Hide it and let the remaining column take
   the full width. Scoped to #customer_details specifically because .col-1 /
   .col-2 are generic WooCommerce classes also used on the My Account
   login/register page — an unscoped rule would break that layout. */
.woocommerce-checkout #customer_details .col-1 {
	display: none !important;
}
.woocommerce-checkout #customer_details .col-2 {
	width: 100%;
	max-width: none;
	float: none;
	flex: 1 1 100%;
}
.woocommerce-checkout #customer_details {
	display: block;
}
