/* Custom Woo Dashboard — everything scoped under .cwd-wrap */

.cwd-wrap,
.cwd-wrap * {
	box-sizing: border-box;
}

.cwd-wrap {
	background-color: #ffffff !important;
	color: #000000 !important;
	max-width: 420px;
	margin: 0 auto;
	position: relative;
	z-index: 1;
}

.cwd-wrap:has(.cwd-tabs) {
	max-width: 100%;
}

/* ── Typography ───────────────────────────────────────────── */

.cwd-wrap p,
.cwd-wrap label,
.cwd-wrap span,
.cwd-wrap td,
.cwd-wrap th,
.cwd-wrap li,
.cwd-wrap address {
	color: #000000;
}

.cwd-wrap h1,
.cwd-wrap h2,
.cwd-wrap h3,
.cwd-wrap h4 {
	font-family: 'Anton', sans-serif;
	font-weight: 400;
	color: #000000 !important;
	letter-spacing: 0.03em;
}

/* ── Buttons ──────────────────────────────────────────────── */

.cwd-wrap .button,
.cwd-wrap button.button,
.cwd-wrap input[type="submit"],
.cwd-wrap button[type="submit"],
.cwd-wrap .woocommerce-button {
	display: inline-block;
	width: 100%;
	padding: 12px;
	background: #000000;
	color: #ffffff !important;
	border: none;
	border-radius: 9999px;
	font-family: 'Anton', sans-serif;
	font-size: 16px;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	line-height: 1.4;
}

.cwd-wrap .button:hover,
.cwd-wrap input[type="submit"]:hover,
.cwd-wrap button[type="submit"]:hover,
.cwd-wrap .woocommerce-button:hover {
	background: #222222;
	color: #ffffff !important;
}

/* ── Inputs ───────────────────────────────────────────────── */

.cwd-wrap input[type="text"],
.cwd-wrap input[type="email"],
.cwd-wrap input[type="password"],
.cwd-wrap input[type="tel"],
.cwd-wrap input[type="number"],
.cwd-wrap select,
.cwd-wrap textarea {
	width: 100%;
	padding: 10px 14px;
	margin-bottom: 12px;
	background: #ffffff;
	color: #000000;
	border: 1.5px solid #cccccc;
	border-radius: 6px;
	font-size: 15px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.cwd-wrap input:focus,
.cwd-wrap select:focus,
.cwd-wrap textarea:focus {
	border-color: #FF007A;
	outline: none;
	box-shadow: 0 0 0 2px rgba(255, 0, 122, 0.15);
}

.cwd-wrap label {
	display: block;
	margin-bottom: 4px;
	font-size: 14px;
	font-weight: 600;
}

.cwd-wrap .form-row {
	margin-bottom: 12px;
}

/* ── Links ────────────────────────────────────────────────── */

.cwd-wrap a {
	color: #FF007A;
}

.cwd-wrap a:hover {
	color: #cc005e;
}

/* ── Auth toggle (logged out) ─────────────────────────────── */

.cwd-auth-toggle {
	display: flex;
	gap: 8px;
	margin-bottom: 20px;
}

.cwd-auth-btn {
	flex: 1;
	padding: 8px 18px;
	background: transparent;
	border: 1.5px solid #FF007A;
	border-radius: 9999px;
	color: #000000;
	font-family: 'Anton', sans-serif;
	font-size: 14px;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	cursor: pointer;
}

.cwd-auth-btn.active {
	background: #FF007A;
	color: #ffffff;
}

.cwd-auth-panel {
	display: none;
}

.cwd-auth-panel.active {
	display: block;
}

.cwd-auth-heading {
	font-family: 'Anton', sans-serif;
	font-size: 20px;
	font-weight: 400;
	margin: 0 0 16px;
	color: #000000 !important;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.cwd-forgot-password {
	margin: 0 0 8px;
	text-align: center;
	font-size: 14px;
}

.cwd-auth-notice {
	font-size: 14px;
	line-height: 1.5;
}

/* wp_login_form output — single column, full width */
.cwd-wrap #cwd_loginform p {
	margin-bottom: 12px;
}

.cwd-wrap #cwd_loginform label {
	display: block;
	margin-bottom: 4px;
}

.cwd-wrap #cwd_loginform .forgetmenot {
	display: flex;
	align-items: center;
	gap: 8px;
}

.cwd-wrap #cwd_loginform .forgetmenot input {
	width: auto;
	margin: 0;
}

.cwd-wrap #cwd_loginform .submit {
	margin-bottom: 0;
}

/* Kill any WC two-column layout if it leaks in */
.cwd-wrap .u-column1,
.cwd-wrap .u-column2,
.cwd-wrap .col-1,
.cwd-wrap .col-2,
.cwd-wrap #customer_login {
	width: 100% !important;
	max-width: 100% !important;
	float: none !important;
}

.cwd-wrap .woocommerce-form-register .form-row {
	width: 100%;
}

/* ── Tab nav (logged in) ──────────────────────────────────── */

.cwd-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 24px;
}

.cwd-tab {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 8px 18px;
	background: transparent;
	border: 1.5px solid #FF007A;
	border-radius: 9999px;
	color: #000000 !important;
	font-family: 'Anton', sans-serif;
	font-size: 14px;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	text-decoration: none !important;
	line-height: 1.3;
}

.cwd-tab:hover {
	background: #FF007A;
	color: #ffffff !important;
}

.cwd-tab.active {
	background: #FF007A;
	color: #ffffff !important;
	border-color: #FF007A;
}

/* ── WooCommerce notices ──────────────────────────────────── */

.cwd-wrap .woocommerce-message,
.cwd-wrap .woocommerce-info,
.cwd-wrap .woocommerce-error {
	background: #f5f5f5;
	color: #000000;
	border-top-color: #FF007A;
	margin-bottom: 16px;
	padding: 12px 16px;
	border-radius: 6px;
	list-style: none;
}

.cwd-wrap .woocommerce-message::before,
.cwd-wrap .woocommerce-info::before,
.cwd-wrap .woocommerce-error::before {
	color: #FF007A;
}

/* ── WC content reset ─────────────────────────────────────── */

.cwd-wrap .woocommerce,
.cwd-wrap .woocommerce-MyAccount-content,
.cwd-wrap .woocommerce-Address,
.cwd-wrap .woocommerce-account {
	background-color: #ffffff !important;
	color: #000000 !important;
}

.cwd-wrap .woocommerce-MyAccount-navigation {
	display: none;
}

.cwd-wrap .woocommerce-form-login__rememberme {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 16px;
}

.cwd-wrap .woocommerce-form-login__rememberme input {
	width: auto;
	margin: 0;
}

/* ── Orders table ─────────────────────────────────────────── */

.cwd-wrap table.shop_table,
.cwd-wrap table.woocommerce-orders-table {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 20px;
	font-size: 14px;
}

.cwd-wrap table.shop_table th,
.cwd-wrap table.woocommerce-orders-table th {
	background: #f5f5f5 !important;
	color: #000000 !important;
	font-family: 'Anton', sans-serif;
	text-transform: uppercase;
	font-size: 13px;
	padding: 10px 12px;
	border-bottom: 1.5px solid #eeeeee;
}

.cwd-wrap table.shop_table td,
.cwd-wrap table.woocommerce-orders-table td {
	color: #000000 !important;
	padding: 10px 12px;
	border-bottom: 0.5px solid #eeeeee;
}

.cwd-wrap table.shop_table .button,
.cwd-wrap .woocommerce-pagination .button {
	width: auto;
	padding: 8px 16px;
	font-size: 13px;
}

/* ── Addresses overview ───────────────────────────────────── */

.cwd-wrap .woocommerce-Addresses {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 16px;
}

.cwd-wrap .woocommerce-Address {
	background: #f9f9f9;
	padding: 16px;
	border-radius: 8px;
	border: 1px solid #eeeeee;
}

.cwd-wrap .woocommerce-Address-title h3 {
	font-size: 18px;
	margin: 0 0 12px;
}

.cwd-wrap .woocommerce-Address-title .edit {
	font-size: 13px;
	color: #FF007A !important;
}

.cwd-wrap .woocommerce-MyAccount-content .col2-set {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px;
}

@media (max-width: 600px) {
	.cwd-wrap .woocommerce-MyAccount-content .col2-set {
		grid-template-columns: 1fr;
	}
}

/* ── Address edit forms ───────────────────────────────────── */

.cwd-wrap .woocommerce-address-fields,
.cwd-wrap .woocommerce-address-fields .form-row {
	width: 100% !important;
	float: none !important;
	clear: both;
}

.cwd-wrap .woocommerce-address-fields input[type="text"],
.cwd-wrap .woocommerce-address-fields input[type="email"],
.cwd-wrap .woocommerce-address-fields input[type="tel"],
.cwd-wrap .woocommerce-address-fields select,
.cwd-wrap .woocommerce-address-fields textarea {
	width: 100% !important;
	display: block !important;
	background: #ffffff !important;
	color: #000000 !important;
	border: 1.5px solid #cccccc !important;
}

.cwd-wrap .woocommerce-address-fields select {
	appearance: auto;
	-webkit-appearance: auto;
}

/* ── Account details ──────────────────────────────────────── */

.cwd-wrap fieldset {
	border: 1px solid #eeeeee;
	border-radius: 8px;
	padding: 16px;
	margin-bottom: 16px;
}

.cwd-wrap fieldset legend {
	font-family: 'Anton', sans-serif;
	padding: 0 8px;
}

/* ── Pagination ───────────────────────────────────────────── */

.cwd-wrap .woocommerce-pagination {
	margin-top: 16px;
}
