/**
 * Hinanoworld Address Book
 * Version : 1.2.0
 * Création : 18/08/2026 à 15:43 (Europe/Paris)
 * Dernière modification : 18/08/2026 à 18:58 (Europe/Paris)
 */

.hinano-address-book__header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 28px;
}

.hinano-address-book__header h2,
.hinano-address-form h2 {
	margin-top: 0;
}

.hinano-address-book__header p {
	margin-bottom: 0;
}

.hinano-address-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
}

.hinano-address-card {
	border: 1px solid rgba(0, 0, 0, 0.12);
	border-radius: 8px;
	padding: 20px;
}

.hinano-address-card__top {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 16px;
}

.hinano-address-card__top h3 {
	margin: 0;
	font-size: 18px;
}

.hinano-address-card__badge {
	display: inline-block;
	padding: 4px 8px;
	border-radius: 999px;
	background: rgba(0, 0, 0, 0.06);
	font-size: 12px;
	line-height: 1.3;
	white-space: nowrap;
}

.hinano-address-card address {
	margin: 0 0 12px;
	font-style: normal;
}

.hinano-address-card__phone {
	margin: 0 0 16px;
}

.hinano-address-card__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 16px;
	padding-top: 14px;
	border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.hinano-address-card__delete {
	opacity: 0.75;
}

.hinano-address-book__limit {
	margin-top: 20px;
	font-size: 0.9em;
	opacity: 0.75;
}

.hinano-address-form {
	max-width: 760px;
}

.hinano-address-form__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 24px;
}

@media (max-width: 849px) {
	.hinano-address-book__header {
		flex-direction: column;
	}

	.hinano-address-grid {
		grid-template-columns: 1fr;
	}
}


/* ============================================================
   Shipping address cards — V1.1.3
   Présentation uniquement.
   ============================================================ */

.hinano-address-book__header {
	display: block;
	margin-bottom: 24px;
}

.hinano-address-book__header h2 {
	margin: 0 0 8px;
}

.hinano-address-book__header p {
	margin: 0 0 18px;
}

.hinano-address-book__add {
	margin: 0 !important;
}

.hinano-address-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 28px;
	align-items: stretch;
}

.hinano-address-card {
	display: flex;
	flex-direction: column;
	min-width: 0;
	padding: 22px 24px 0;
	border: 1px solid rgba(0, 0, 0, 0.12);
	border-radius: 2px;
	background: #fff;
}

.hinano-address-card__top {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;
	margin-bottom: 14px;
}

.hinano-address-card__top h3 {
	order: 2;
	margin: 0;
	font-size: 20px;
	line-height: 1.25;
}

.hinano-address-card__badge {
	order: 1;
	display: inline-block;
	padding: 5px 9px;
	border: 0;
	border-radius: 0;
	background: rgba(0, 0, 0, 0.055);
	font-size: 11px;
	line-height: 1.2;
	font-weight: 600;
	letter-spacing: .04em;
	text-transform: uppercase;
}

.hinano-address-card address {
	flex: 1 1 auto;
	margin: 0 0 8px;
	font-style: normal;
	line-height: 1.55;
}

.hinano-address-card__phone {
	margin: 0 0 20px;
}

.hinano-address-card__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 22px;
	margin: auto -24px 0;
	padding: 15px 24px;
	border-top: 1px solid rgba(0, 0, 0, 0.10);
}

.hinano-address-card__actions a {
	display: inline-block;
	margin: 0 !important;
	white-space: nowrap;
	text-decoration: none;
}

.hinano-address-card__delete {
	margin-left: auto !important;
	opacity: .80;
}

.hinano-address-book__limit {
	margin-top: 20px;
}

@media (max-width: 900px) {
	.hinano-address-grid {
		grid-template-columns: 1fr;
		gap: 24px;
	}
}

@media (max-width: 549px) {
	.hinano-address-card {
		padding: 18px 18px 0;
	}

	.hinano-address-card__actions {
		gap: 10px 18px;
		margin: auto -18px 0;
		padding: 14px 18px;
	}

	.hinano-address-card__delete {
		margin-left: 0 !important;
	}
}


/* ============================================================
   Shipping address cards — V1.1.4
   Référence visuelle validée — présentation uniquement.
   ============================================================ */

.hinano-address-card {
	position: relative;
	border-color: rgba(0, 0, 0, 0.13);
}

.hinano-address-card__more {
	position: absolute;
	top: 20px;
	right: 20px;
	width: 18px;
	height: 24px;
	opacity: .82;
	pointer-events: none;
}

.hinano-address-card__more svg {
	display: block;
	width: 100%;
	height: 100%;
	fill: currentColor;
}

.hinano-address-card__top {
	padding-right: 34px;
}

.hinano-address-card__badge {
	color: #64854c;
	background: #edf4e8;
	border: 0;
	font-weight: 600;
}

.hinano-address-card__actions {
	flex-wrap: nowrap;
	gap: 26px;
}

.hinano-address-action {
	display: inline-flex !important;
	align-items: center;
	gap: 7px;
	margin: 0 !important;
	color: inherit;
	line-height: 1.2;
	text-decoration: none !important;
	white-space: nowrap;
}

.hinano-address-action__icon {
	display: inline-flex;
	flex: 0 0 auto;
	width: 17px;
	height: 17px;
}

.hinano-address-action__icon svg {
	display: block;
	width: 100%;
	height: 100%;
	fill: currentColor;
}

.hinano-address-action--edit {
	color: rgba(0, 0, 0, .72);
}

.hinano-address-action--default {
	color: rgba(0, 0, 0, .72);
}

.hinano-address-action--default.is-disabled {
	color: rgba(0, 0, 0, .22);
	cursor: default;
	pointer-events: none;
}

.hinano-address-action--delete,
.hinano-address-card__delete {
	margin-left: auto !important;
	color: #b65353;
	opacity: 1;
}

.hinano-address-action:hover {
	color: rgba(0, 0, 0, .95);
}

.hinano-address-action--delete:hover {
	color: #963f3f;
}

/* ============================================================
   Address Book local flash message — V1.1.95
   Displayed directly below + ADD AN ADDRESS.
   ============================================================ */

.hinano-address-book__flash {
	display: flex;
	align-items: center;
	gap: 9px;
	width: 100%;
	margin: 14px 0 22px;
	padding: 11px 14px;
	box-sizing: border-box;
	background: #f2f7ef;
	color: #5e7f48;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.35;
}

.hinano-address-book__flash-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	font-size: 16px;
	font-weight: 700;
	line-height: 1;
}


/* ============================================================
   Saved shipping address selector — Checkout — V1.2.2
   ============================================================ */

.hinano-checkout-address-selector {
	margin: 0 0 20px;
	padding: 14px 16px;
	border: 1px solid #e8e8e8;
	background: #fafafa;
	box-sizing: border-box;
}

.hinano-checkout-address-selector__title {
	margin: 0 0 8px;
	font-size: 13px;
	font-weight: 600;
	color: #111;
}

.hinano-checkout-address-selector .form-row {
	margin: 0 !important;
}

.hinano-checkout-address-selector select {
	margin-bottom: 0 !important;
}

.hinano-checkout-address-selector__help {
	margin: 7px 0 0;
	font-size: 11px;
	line-height: 1.4;
	color: #777;
}


/* ============================================================
   Checkout company field / Flatsome floating label fix — V1.2.4
   ============================================================ */

.woocommerce-checkout #billing_company_field {
	position: relative;
	clear: both;
}

.woocommerce-checkout #billing_company_field label {
	position: absolute;
	left: 11px;
	top: 5px;
	margin: 0;
	z-index: 2;
	pointer-events: none;
	line-height: 1.1;
	font-size: 11px;
	color: #777;
	display: block !important;
}

.woocommerce-checkout #billing_company_field input {
	padding-top: 19px !important;
}


/* ============================================================
   WooCommerce secondary shipping form — V1.2.5
   Keep native form-shipping.php loaded so Order Notes remain.
   Hide only the "Ship to a different address" UI block.
   ============================================================ */

.woocommerce-checkout .woocommerce-shipping-fields {
	display: none !important;
}


/* ============================================================
   Security-hardened POST action forms — V1.2.6
   Preserve the validated address-card presentation.
   ============================================================ */

.hinano-address-card__actions .hinano-address-action-form {
	display: inline-flex;
	align-items: center;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
}

.hinano-address-card__actions .hinano-address-action-form--delete {
	margin-left: auto;
}

.hinano-address-card__actions button.hinano-address-action {
	appearance: none;
	-webkit-appearance: none;
	min-height: 0;
	height: auto;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	font-family: inherit;
	font-size: inherit;
	font-weight: inherit;
	letter-spacing: inherit;
	text-transform: none;
	cursor: pointer;
}

.hinano-address-card__actions button.hinano-address-action:hover,
.hinano-address-card__actions button.hinano-address-action:focus {
	background: transparent;
	box-shadow: none;
}

@media (max-width: 549px) {
	.hinano-address-card__actions .hinano-address-action-form--delete {
		margin-left: 0;
	}
}
