/*
 * TrueHugz Account - login / register styling.
 *
 * Tokens are lifted from the live PrestaShop theme's Creative Elements globals
 * (themes/pandachild/assets/cache/theme-*.css):
 *   primary  #F17100   secondary #F9B50B   accent #1EB0C2
 *   accent-2 #058696   tint      #E9F6F8   text   #333333
 *   headings Salsa, body Poppins
 */

.truehugz-account-shell {
	--th-primary: #f17100;
	--th-primary-dark: #d16200;
	--th-accent: #1eb0c2;
	--th-accent-dark: #058696;
	--th-tint: #e9f6f8;
	--th-text: #333;
	--th-muted: #777;
	--th-border: #e0e0e0;
	--th-radius: 6px;

	max-width: 520px;
	margin: 0 auto;
	color: var(--th-text);
	font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
	font-size: 16px;
	line-height: 1.5;
}

.truehugz-panel {
	background: #fff;
	border: 1px solid var(--th-border);
	border-radius: var(--th-radius);
	padding: 32px 28px;
}

.truehugz-panel + .truehugz-panel {
	margin-top: 24px;
}

.truehugz-panel__heading {
	font-family: "Salsa", "Poppins", cursive;
	font-size: 28px;
	line-height: 34px;
	font-weight: 400;
	color: var(--th-accent-dark);
	margin: 0 0 20px;
	text-align: center;
}

/* The register panel stays hidden until "Create an account" is pressed,
   or ?action=register is in the URL. */
.truehugz-panel--register {
	display: none;
}

.truehugz-account-shell.is-register-open .truehugz-panel--register {
	display: block;
}

/* /registration lands with ?action=register - collapse to the register form,
   matching the old two-URL structure. */
body.truehugz-register-only .truehugz-panel--login {
	display: none;
}

/* ---- Fields ---- */

.truehugz-account-shell .form-row {
	display: block;
	margin: 0 0 18px;
	padding: 0;
}

.truehugz-account-shell label {
	display: block;
	font-size: 14px;
	font-weight: 600;
	margin-bottom: 6px;
}

.truehugz-account-shell label .optional {
	font-weight: 400;
	color: var(--th-muted);
}

.truehugz-account-shell .required,
.truehugz-account-shell abbr.required {
	color: var(--th-primary);
	border: 0;
	text-decoration: none;
}

.truehugz-account-shell input[type="text"],
.truehugz-account-shell input[type="email"],
.truehugz-account-shell input[type="password"] {
	width: 100%;
	box-sizing: border-box;
	padding: 12px 14px;
	font: inherit;
	font-size: 15px;
	color: var(--th-text);
	background: #fff;
	border: 1px solid var(--th-border);
	border-radius: var(--th-radius);
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.truehugz-account-shell input[type="text"]:focus,
.truehugz-account-shell input[type="email"]:focus,
.truehugz-account-shell input[type="password"]:focus {
	outline: none;
	border-color: var(--th-accent);
	box-shadow: 0 0 0 3px rgba(30, 176, 194, 0.18);
}

.truehugz-field-comment {
	display: block;
	margin-top: 6px;
	font-size: 13px;
	line-height: 1.45;
	color: var(--th-muted);
}

/* ---- Checkboxes ---- */

.truehugz-checkbox {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-weight: 400;
	font-size: 14px;
	margin: 0;
	cursor: pointer;
}

.truehugz-checkbox input[type="checkbox"] {
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	margin: 2px 0 0;
	accent-color: var(--th-accent);
}

.truehugz-checkbox span {
	flex: 1 1 auto;
}

.truehugz-checkbox a {
	color: var(--th-accent-dark);
	text-decoration: underline;
}

.truehugz-consent-row {
	background: var(--th-tint);
	border-radius: var(--th-radius);
	padding: 14px 16px;
}

/* ---- Buttons ---- */

.truehugz-account-shell .truehugz-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	box-sizing: border-box;
	padding: 14px 20px;
	font: inherit;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	border-radius: var(--th-radius);
	border: 2px solid transparent;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.truehugz-account-shell .truehugz-btn--primary {
	background: var(--th-primary);
	border-color: var(--th-primary);
	color: #fff;
}

.truehugz-account-shell .truehugz-btn--primary:hover,
.truehugz-account-shell .truehugz-btn--primary:focus {
	background: var(--th-primary-dark);
	border-color: var(--th-primary-dark);
	color: #fff;
}

.truehugz-account-shell .truehugz-btn--outline {
	background: transparent;
	border-color: var(--th-accent);
	color: var(--th-accent-dark);
}

.truehugz-account-shell .truehugz-btn--outline:hover,
.truehugz-account-shell .truehugz-btn--outline:focus {
	background: var(--th-accent);
	color: #fff;
}

/* ---- Login extras ---- */

.truehugz-login-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.truehugz-lost-password {
	font-size: 14px;
	color: var(--th-accent-dark);
	text-decoration: underline;
}

.truehugz-newcustomer {
	margin-top: 28px;
	padding-top: 24px;
	border-top: 1px solid var(--th-border);
	text-align: center;
}

.truehugz-newcustomer h3 {
	font-family: "Poppins", sans-serif;
	font-size: 20px;
	font-weight: 700;
	line-height: 30px;
	margin: 0 0 6px;
	color: var(--th-text);
}

.truehugz-newcustomer p {
	margin: 0 0 16px;
	font-size: 15px;
	color: var(--th-muted);
}

/* ---- Notices ---- */

.woocommerce-error,
.woocommerce-message,
.woocommerce-info {
	border-radius: var(--th-radius);
}

@media (max-width: 600px) {
	.truehugz-panel {
		padding: 24px 18px;
	}

	.truehugz-panel__heading {
		font-size: 24px;
		line-height: 30px;
	}

	.truehugz-login-actions {
		flex-direction: column;
		align-items: flex-start;
	}
}

/* ---- Bare account screens ----
 * Added when the OceanWP page-header band and footer bottom bar are
 * suppressed, so the form is not left floating in their leftover spacing.
 */

body.truehugz-bare #content-wrap,
body.truehugz-bare .content-area {
	padding-top: 40px;
	padding-bottom: 56px;
}

body.truehugz-bare .page-header,
body.truehugz-bare .site-breadcrumbs,
body.truehugz-bare #footer-bottom {
	display: none;
}

@media (max-width: 600px) {
	body.truehugz-bare #content-wrap,
	body.truehugz-bare .content-area {
		padding-top: 24px;
		padding-bottom: 32px;
	}
}

/* ---- My Account navigation ----
 * Bordered stacked list with a dashicon per row, matching the source store.
 */

.woocommerce-MyAccount-navigation ul {
	margin: 0;
	padding: 0;
	list-style: none;
	border: 1px solid var(--th-border, #e0e0e0);
	border-radius: 4px;
	overflow: hidden;
}

.woocommerce-MyAccount-navigation li + li {
	border-top: 1px solid var(--th-border, #e0e0e0);
}

.woocommerce-MyAccount-navigation li a {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 18px;
	color: #333;
	font-size: 16px;
	text-decoration: none;
	transition: background-color .15s ease, color .15s ease;
}

.woocommerce-MyAccount-navigation li a:hover {
	background: #e9f6f8;
	color: #058696;
}

.woocommerce-MyAccount-navigation li.is-active a {
	background: #e9f6f8;
	color: #058696;
	font-weight: 600;
}

.woocommerce-MyAccount-navigation li.truehugz-nav-item a::before {
	font-family: dashicons;
	font-size: 20px;
	line-height: 1;
	width: 20px;
	flex: 0 0 20px;
	speak: never;
	-webkit-font-smoothing: antialiased;
}

.truehugz-icon-dashboard         a::before { content: "\f226"; }
.truehugz-icon-admin-users       a::before { content: "\f110"; }
.truehugz-icon-location          a::before { content: "\f230"; }
.truehugz-icon-calendar-alt      a::before { content: "\f508"; }
.truehugz-icon-media-spreadsheet a::before { content: "\f495"; }
.truehugz-icon-tag               a::before { content: "\f323"; }
.truehugz-icon-media-text        a::before { content: "\f491"; }
.truehugz-icon-trash             a::before { content: "\f182"; }
.truehugz-icon-admin-comments    a::before { content: "\f101"; }
.truehugz-icon-awards            a::before { content: "\f313"; }
.truehugz-icon-heart             a::before { content: "\f487"; }
.truehugz-icon-exit              a::before { content: "\f14c"; }

/* ---- Endpoint screens ---- */

.truehugz-account-empty,
.truehugz-account-note {
	color: #777;
	font-size: 15px;
}

.truehugz-account-table {
	width: 100%;
	margin: 0 0 20px;
	border-collapse: collapse;
	font-size: 15px;
}

.truehugz-account-table th,
.truehugz-account-table td {
	padding: 12px 14px;
	text-align: left;
	border-bottom: 1px solid var(--th-border, #e0e0e0);
}

.truehugz-account-table th {
	font-weight: 700;
	background: #fafafa;
}

.truehugz-account-table code {
	padding: 2px 6px;
	background: #e9f6f8;
	border-radius: 3px;
	font-size: 14px;
}

.truehugz-account-card {
	margin: 0 0 20px;
	padding: 18px 20px;
	background: #e9f6f8;
	border-radius: 4px;
}

.truehugz-account-card--warn {
	background: #fdf3e7;
}

.truehugz-account-card h3 {
	margin: 0 0 10px;
	font-size: 16px;
	font-weight: 700;
}

.truehugz-account-list {
	margin: 0;
	padding-left: 20px;
	font-size: 15px;
	line-height: 1.7;
}

.truehugz-account-form {
	margin: 0 0 20px;
}

.truehugz-account-btn {
	display: inline-flex;
	align-items: center;
	padding: 11px 22px;
	background: #1eb0c2;
	border: 2px solid #1eb0c2;
	border-radius: 4px;
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
}

.truehugz-account-btn:hover { background: #058696; border-color: #058696; color: #fff; }

.truehugz-account-btn--danger {
	background: #c0392b;
	border-color: #c0392b;
}

.truehugz-account-btn--danger:hover { background: #a5301f; border-color: #a5301f; }

.truehugz-account-reviews {
	margin: 0;
	padding: 0;
	list-style: none;
}

.truehugz-account-review {
	padding: 16px 0;
	border-bottom: 1px solid var(--th-border, #e0e0e0);
}

.truehugz-account-review h3 { margin: 0 0 4px; font-size: 16px; }
.truehugz-account-review h3 a { color: #333; text-decoration: none; }
.truehugz-account-review h3 a:hover { color: #f17100; }
.truehugz-account-rating { margin: 0 0 4px; color: #f9b50b; font-size: 16px; letter-spacing: 2px; }
.truehugz-account-review-date { margin: 0 0 8px; color: #777; font-size: 13px; }
.truehugz-account-review-body { font-size: 15px; }
.truehugz-account-review-body p { margin: 0 0 8px; }
