/* SuperShip My Account Address — inherits WooCommerce theme styles */

/* Card header: matches .woocommerce-Address-title */
.supership-ma-block-placeholder .woocommerce-Address-title {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 1em;
}

/* Address lines */
.supership-ma-block-placeholder address {
	font-style: normal;
	line-height: 1.7;
}

/* Nút và link lấy kiểu dáng từ theme qua class chuẩn của WooCommerce
   (.woocommerce-Button.button, .edit) và class wp-element-button — plugin
   không áp màu, viền hay padding cho nút. */

/* Ô nhập: theo cỡ chữ thân bài của theme thay vì cỡ riêng bị phóng to.
   padding tính bằng em nên co giãn theo cỡ chữ. Selector 3 class + 1 thẻ
   để đè luật .woocommerce form .form-row input.input-text của WooCommerce. */
.supership-ma-block-placeholder .woocommerce-address-fields input.input-text,
.supership-ma-block-placeholder .woocommerce-address-fields select {
	font-size: inherit;
	padding: 0.5em 0.75em;
	line-height: 1.4;
}

/* Astra Addon's floating-label style hides labels (absolute + opacity 0) until
   its own JS reveals them, which never runs on this React form. Show them as
   normal labels; !important because Astra's selector chains ~8 classes. */
.supership-ma-block-placeholder .woocommerce-address-fields .form-row label {
	position: static !important;
	transform: none !important;
	opacity: 1 !important;
	font-size: inherit !important;
	padding: 0 !important;
	margin: 0 0 0.3em !important;
	pointer-events: auto !important;
	display: block;
}

/* Disabled save button */
.supership-ma-block-placeholder .woocommerce-Button.button:disabled {
	opacity: 0.55;
	cursor: not-allowed;
}

/* Cancel sits beside save with a gap */
.supership-ma-cancel-link {
	margin-left: 0.5em;
}

/* Error message */
.supership-ma-form__error {
	color: #cc1818;
	font-size: 0.9em;
}

/* Editor preview placeholder */
.supership-ma-editor-preview {
	padding: 1.25em;
	border: 1px dashed #ccc;
	border-radius: 4px;
	background: #f9f9f9;
}

.supership-ma-editor-preview__title {
	font-weight: 600;
	margin: 0 0 0.4em;
}

.supership-ma-editor-preview__desc {
	font-size: 0.85em;
	color: #666;
	margin: 0;
}
