/* ============================================================
   My Addresses page: Billing and Shipping both render as boxed
   address cards with icon-only Edit/Delete buttons overlaid on
   the box, plus a prominent "Add address" button.
   ============================================================ */

.hansa-address-box {
	position: relative;
	background: #ffffff;
	border: 1px solid #e5e5e5;
	border-radius: 8px;
	padding: 16px 44px 16px 16px;
	margin-bottom: 12px;
	/* The box's height otherwise comes only from the address text - a short
	   1-2 line address (or the legacy entry with no delete icon) can render
	   shorter than the stacked Edit+Delete icon pair (10px top offset + 28px
	   + 6px gap + 28px ≈ 72px), pushing the icons past the box's own bottom
	   edge since they're positioned absolute within it. 80px guarantees the
	   box is always at least as tall as the icon stack. */
	min-height: 80px;
}

.hansa-address-box address {
	margin: 0;
	font-style: normal;
	color: #444444;
	line-height: 1.6;
}

/* Stacked vertically (Delete on top, Edit below) instead of side-by-side -
   side-by-side needed ~62px of right padding, which was too narrow for the
   address text once it wrapped close to the icons (the longer Street/Novads
   lines added by the Hansa address sync run text under the icons). Stacking
   only needs one icon's width (28px) of clearance. Delete comes first in the
   markup only when it exists (see hansa_render_address_box()) but is shown
   above Edit visually via `order`, not by changing that markup. */
.hansa-address-box-icons {
	position: absolute;
	top: 10px;
	right: 10px;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.hansa-address-box-icon-delete {
	order: -1;
}

.hansa-address-box-delete-form {
	display: inline;
	margin: 0;
}

/* !important throughout: the delete icon is a real <button> (inside the
   delete <form>), and Woodmart's own generic button rule
   (:is(.btn,.button,button,...) { min-height/padding from --btn-* vars })
   has higher effective priority than a plain class here, making the
   "button" version of this icon render much taller than the "edit" <a>
   version despite sharing the same class - reset the vars it reads from
   too, not just the properties, so there's no size gap between the two. */
.hansa-address-box-icon {
	--btn-height: 28px !important;
	--btn-padding: 0 !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 28px !important;
	height: 28px !important;
	min-height: 28px !important;
	min-width: 0 !important;
	border-radius: 4px !important;
	background: #f2f2f2 !important;
	border: none !important;
	box-shadow: none !important;
	cursor: pointer;
	color: #555555;
	text-decoration: none;
	line-height: 1 !important;
	padding: 0 !important;
	margin: 0 !important;
	vertical-align: middle;
}
.hansa-address-box-icon:hover {
	background: #e3e3e3 !important;
	color: #222222;
}

.hansa-address-box-icon-edit::before {
	content: "\f116";
	font-family: "woodmart-font";
	font-weight: 400;
	font-size: 14px;
}

.hansa-address-box-icon-delete::before {
	content: "\00d7";
	font-size: 16px;
	font-weight: 700;
	line-height: 1;
}

.hansa-address-add-button {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	--btn-bgcolor: #4CAF50 !important;
	background: #4CAF50 !important;
	color: #ffffff !important;
	border-radius: 4px !important;
	box-shadow: none !important;
	min-width: 0 !important;
	height: 40px !important;
	line-height: 40px !important;
	padding: 0 20px !important;
	margin-top: 4px;
}
.hansa-address-add-button:hover {
	filter: brightness(0.92);
	color: #ffffff !important;
}

/* Not max-width: 480px here - that squeezed the 2-up Country+City /
   Address+Postcode rows into half the real content width, instead of
   spanning it the same way Billing's own fields do. */

/* Account Details: Entity Type / Person radios, same plain layout checkout
   itself uses (no dedicated THWCFE styling to match beyond this). */
#entity_type_field .thwcfe-radio-item,
#legal_or_natural_person_field .thwcfe-radio-item {
	display: inline-block;
}

/* Company name / VAT, once locked (filled in only via the Lursoft search,
   never free text - see hansa_render_account_conditional_field()). */
#billing_company.disabled,
#eu_vat_number_field.disabled {
	background-color: #f2f2f2;
	color: #666666;
	cursor: not-allowed;
}

.hansa-account-billing-country-notice {
	background: #fff8e5;
	border: 1px solid #f0d78c;
	border-radius: 4px;
	padding: 12px 15px;
	color: #6b5800;
}
.hansa-account-billing-country-notice a {
	font-weight: 600;
	text-decoration: underline;
}
