/* ========================================
   Edit Account / Account Information Form
   Form fields, password toggle, WC overrides
   ======================================== */

.rw-edit-account {
	display: flex;
	flex-direction: column;
	gap: 28px;
}

.rw-form-section {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.rw-form-section-title {
	color: #111739;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.36;
	letter-spacing: -0.18px;
	margin: 0;
}

.rw-form-fields {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.rw-form-row {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.rw-form-row--half {
	flex-direction: row;
	gap: 16px;
}

.rw-form-row--half .rw-form-field {
	flex: 1;
	min-width: 0;
}

.rw-form-field {
	display: flex;
	align-items: center;
	gap: 10px;
	background: #f3f6f9;
	padding: 0 16px;
	min-height: 54px;
	max-height: 54px;
	border-radius: 2px;
	overflow: clip;
}

.rw-form-field--password {
	position: relative;
}

.rw-form-input {
	flex: 1;
	min-width: 0;
	background: transparent;
	border: none;
	outline: none;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.36;
	letter-spacing: -0.14px;
	color: #111739;
	padding: 0;
	height: 100%;
}

.rw-form-input::placeholder {
	color: #656b89;
}

.rw-form-field-hint {
	color: #354261;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.36;
	letter-spacing: -0.14px;
	margin: 0;
}

/* Password Toggle */
.rw-password-toggle {
	display: flex;
	align-items: center;
	justify-content: center;
	background: none;
	border: none;
	cursor: pointer;
	padding: 0;
	color: #656b89;
	flex-shrink: 0;
}

.rw-password-toggle:hover {
	color: #111739;
}

/* Form Actions */
.rw-form-actions {
	display: flex;
	align-items: center;
}

/* ========================================
   Override WooCommerce defaults inside content
   ======================================== */

/* Remove default fieldset styling */
.rw-myaccount-content fieldset {
	border: none;
	padding: 0;
	margin: 0;
}

.rw-myaccount-content fieldset legend {
	display: none;
}

/* Remove default WooCommerce label display */
.rw-edit-account label {
	display: none;
}

/* Remove default WooCommerce clear divs */
.rw-edit-account .clear {
	display: none;
}

/* Responsive */
@media (max-width: 768px) {
	.rw-form-row--half {
		flex-direction: column;
	}
}

/* Password Strength Meter */
.woocommerce-password-strength {
	margin-top: 8px;
	font-size: 13px;
	font-weight: 500;
	padding: 8px 12px;
	border-radius: 4px;
	text-align: center;
	background-color: #f3f6f9;
	color: #656b89;
	transition: all 0.2s ease;
}

.woocommerce-password-strength.short {
	background-color: #fee2e2;
	color: #dc2626;
}

.woocommerce-password-strength.bad {
	background-color: #fee2e2;
	color: #dc2626;
}

.woocommerce-password-strength.good {
	background-color: #ffedd5;
	color: #ea580c;
}

.woocommerce-password-strength.strong {
	background-color: #dcfce7;
	color: #16a34a;
}

.woocommerce-password-hint {
	margin-top: 8px;
	font-size: 13px;
	color: #656b89;
	line-height: 1.5;
}
