/* --------------------------------------------------------------------------
   GKN Kala Mission OS — account endpoint system V8.9.8
   -------------------------------------------------------------------------- */

.gkn-account-is-authenticated .woocommerce-MyAccount-content {
	container: gkn-account-content / inline-size;
}

.gkn-account-is-authenticated .woocommerce-MyAccount-content > :first-child {
	margin-top: 0;
}

.gkn-account-is-authenticated .woocommerce-MyAccount-content > form,
.gkn-account-is-authenticated .woocommerce-MyAccount-content > section,
.gkn-account-is-authenticated .woocommerce-MyAccount-content > .woocommerce-Addresses,
.gkn-account-is-authenticated .woocommerce-MyAccount-content > .woocommerce-OrderUpdates,
.gkn-account-is-authenticated .woocommerce-MyAccount-content > .woocommerce-order-details,
.gkn-account-is-authenticated .woocommerce-MyAccount-content > .woocommerce-customer-details {
	margin-bottom: 10px;
}

/* Edit profile and address forms. */
.gkn-account-is-authenticated .woocommerce-EditAccountForm,
.gkn-account-is-authenticated .woocommerce-address-fields,
.gkn-account-is-authenticated .woocommerce-ResetPassword,
.gkn-account-is-authenticated #add_payment_method #payment {
	padding: 16px;
	border: 1px solid #e4e7eb;
	border-radius: 15px;
	background: #fff;
}

.gkn-account-is-authenticated .woocommerce-EditAccountForm {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 10px;
}

.gkn-account-is-authenticated .woocommerce-EditAccountForm > .form-row-first,
.gkn-account-is-authenticated .woocommerce-EditAccountForm > .form-row-last {
	float: none;
	width: auto;
}

.gkn-account-is-authenticated .woocommerce-EditAccountForm > .form-row-wide,
.gkn-account-is-authenticated .woocommerce-EditAccountForm > fieldset,
.gkn-account-is-authenticated .woocommerce-EditAccountForm > p:last-of-type,
.gkn-account-is-authenticated .woocommerce-EditAccountForm > .clear,
.gkn-account-is-authenticated .woocommerce-EditAccountForm > .gkn-account-profile-note {
	grid-column: 1 / -1;
}

.gkn-account-profile-note {
	display: grid;
	grid-template-columns: 38px minmax(0, 1fr);
	align-items: center;
	gap: 9px;
	margin-bottom: 12px;
	padding: 10px 11px;
	border: 1px solid #d8ebdf;
	border-radius: 12px;
	background: #f5fbf7;
}

.gkn-account-profile-note > i {
	display: grid;
	width: 38px;
	height: 38px;
	place-items: center;
	border-radius: 11px;
	background: #e5f6eb;
	color: #16844a;
	font-size: 17px;
}

.gkn-account-profile-note span {
	display: flex;
	min-width: 0;
	flex-direction: column;
}

.gkn-account-profile-note strong {
	color: var(--gkn-ink);
	font-size: 10px;
	font-weight: 900;
}

.gkn-account-profile-note small,
.gkn-account-mobile-field small,
.gkn-account-is-authenticated #account_display_name_description {
	color: var(--gkn-muted);
	font-size: 8px;
	font-style: normal;
	line-height: 1.8;
}

.gkn-account-is-authenticated .woocommerce-EditAccountForm fieldset {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 10px;
	margin: 6px 0 12px;
	padding: 13px;
	border: 1px solid #e5e8ec;
	border-radius: 13px;
	background: #fafbfc;
}

.gkn-account-is-authenticated .woocommerce-EditAccountForm fieldset legend {
	padding-inline: 7px;
	color: var(--gkn-ink);
	font-size: 11px;
	font-weight: 900;
}

.gkn-account-is-authenticated .woocommerce-EditAccountForm fieldset .form-row:first-of-type {
	grid-column: 1 / -1;
}

.gkn-account-is-authenticated .woocommerce-address-fields__field-wrapper {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 10px;
}

.gkn-account-is-authenticated .woocommerce-address-fields__field-wrapper .form-row {
	float: none;
	width: auto;
}

.gkn-account-is-authenticated .woocommerce-address-fields__field-wrapper .form-row-wide {
	grid-column: 1 / -1;
}

.gkn-account-is-authenticated .select2-container {
	width: 100% !important;
}

.gkn-account-is-authenticated .select2-selection--single {
	min-height: 42px;
	border-color: #dfe2e7;
	border-radius: 10px;
}

.gkn-account-is-authenticated .select2-selection--single .select2-selection__rendered {
	padding: 7px 11px;
	font-size: 10px;
	line-height: 27px;
}

/* Orders, downloads and saved payment methods. */
.gkn-account-is-authenticated .woocommerce-orders-table,
.gkn-account-is-authenticated .woocommerce-table--order-downloads,
.gkn-account-is-authenticated .account-payment-methods-table {
	overflow: hidden;
	background: #fff;
	box-shadow: 0 7px 20px rgba(16, 17, 20, .025);
}

.gkn-account-is-authenticated .woocommerce-orders-table__cell-order-number a {
	color: var(--gkn-red);
	font-size: 10px;
	font-weight: 950;
}

.gkn-account-is-authenticated .woocommerce-orders-table__cell-order-status {
	color: #815c08;
	font-weight: 900;
}

.gkn-account-is-authenticated .woocommerce-orders-table__cell-order-actions,
.gkn-account-is-authenticated .payment-method-actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 5px;
}

.gkn-account-is-authenticated .woocommerce-orders-table__cell-order-actions .button,
.gkn-account-is-authenticated .payment-method-actions .button {
	min-height: 31px;
	padding: 5px 9px;
	font-size: 8px;
}

.gkn-account-is-authenticated .woocommerce-pagination {
	display: flex;
	justify-content: space-between;
	gap: 8px;
	margin-top: 10px;
}

/* Order details and timeline. */
.gkn-account-is-authenticated mark {
	padding: 2px 6px;
	border-radius: 6px;
	background: #fff0f1;
	color: #a91b22;
}

.gkn-account-is-authenticated .woocommerce-OrderUpdates {
	position: relative;
	margin: 0 0 12px;
	padding: 0 18px 0 0;
	list-style: none;
}

.gkn-account-is-authenticated .woocommerce-OrderUpdates::before {
	position: absolute;
	top: 7px;
	right: 4px;
	bottom: 7px;
	width: 2px;
	background: #f1c7c9;
	content: "";
}

.gkn-account-is-authenticated .woocommerce-OrderUpdate {
	position: relative;
	margin-bottom: 8px;
	padding: 10px 12px;
	border: 1px solid #e7e9ed;
	border-radius: 11px;
	background: #fff;
}

.gkn-account-is-authenticated .woocommerce-OrderUpdate::before {
	position: absolute;
	top: 15px;
	right: -20px;
	width: 9px;
	height: 9px;
	border: 2px solid #fff;
	border-radius: 50%;
	background: var(--gkn-red);
	box-shadow: 0 0 0 1px #edb9bc;
	content: "";
}

.gkn-account-is-authenticated .woocommerce-OrderUpdate-meta {
	margin: 0 0 4px;
	color: var(--gkn-muted);
	font-size: 8px;
}

.gkn-account-is-authenticated .woocommerce-order-details,
.gkn-account-is-authenticated .woocommerce-customer-details {
	padding: 14px;
	border: 1px solid #e4e7eb;
	border-radius: 14px;
	background: #fff;
}

.gkn-account-is-authenticated .woocommerce-customer-details address {
	padding: 11px;
	border: 1px solid #eceef1;
	border-radius: 11px;
	background: #fafbfc;
}

/* GKN notification, preference and proforma endpoints. */
.gkn-account-is-authenticated .gkn-account-panel {
	padding: 15px;
	border: 1px solid #e4e7eb;
	border-radius: 15px;
	background: #fff;
}

.gkn-account-is-authenticated .gkn-account-panel > h2 {
	margin: 0 0 4px;
	font-size: 16px;
}

.gkn-account-is-authenticated .gkn-proforma__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: auto;
	padding-top: 10px;
}

.gkn-account-is-authenticated .button-link-delete {
	border-color: #e3e5e8 !important;
	background: #fff !important;
	color: #a91b22 !important;
}

.gkn-account-is-authenticated .gkn-proforma__meta {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 6px;
	margin: 12px 0;
}

.gkn-account-is-authenticated .gkn-proforma__meta > * {
	min-width: 0;
	padding: 8px;
	border: 1px solid #e7e9ed;
	border-radius: 10px;
	background: #fafbfc;
	font-size: 8px;
	text-align: center;
}

.gkn-account-is-authenticated .gkn-proforma__note,
.gkn-account-is-authenticated .gkn-empty-state {
	margin: 10px 0;
	padding: 10px;
	border: 1px solid #e2e8ee;
	border-radius: 11px;
	background: #f7fafc;
	color: #59636f;
	font-size: 8px;
	line-height: 1.9;
}

.gkn-account-is-authenticated .gkn-account-panel > p > label {
	display: grid;
	grid-template-columns: 18px minmax(0, 1fr);
	align-items: start;
	gap: 8px;
	width: 100%;
	margin: 0;
	padding: 10px;
	border: 1px solid #e5e8ec;
	border-radius: 11px;
	background: #fafbfc;
	font-size: 9px;
	line-height: 1.9;
}

.gkn-account-is-authenticated .gkn-account-panel > p > label input {
	margin-top: 4px;
}

/* Optional plugin panels: harmonize their shells without touching callbacks. */
.gkn-account-is-authenticated .farazsms-up {
	gap: 9px !important;
}

.gkn-account-is-authenticated .farazsms-up-nav {
	flex-basis: 180px !important;
	padding: 9px !important;
	border-color: #e4e7eb !important;
	border-radius: 13px !important;
	box-shadow: none !important;
}

.gkn-account-is-authenticated .farazsms-up-main {
	padding: 14px !important;
	border-color: #e4e7eb !important;
	border-radius: 13px !important;
	box-shadow: none !important;
}

.gkn-account-is-authenticated .farazsms-up-nav a {
	border-radius: 9px !important;
	font-family: inherit !important;
	font-size: 9px !important;
}

.gkn-account-is-authenticated .farazsms-up-nav a.is-active {
	background: #fff0f1 !important;
	color: var(--gkn-red) !important;
}

.gkn-account-is-authenticated .farazsms-up-cards {
	grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	gap: 7px !important;
}

.gkn-account-is-authenticated .farazsms-up-card {
	padding: 10px !important;
	border-radius: 11px !important;
}

.gkn-account-is-authenticated .farazsms-up-card-v {
	font-size: 12px !important;
}

.gkn-account-is-authenticated .farazsms-up-card-l,
.gkn-account-is-authenticated .farazsms-up-note {
	font-size: 8px !important;
}

.gkn-account-is-authenticated .wcwl_waitlist,
.gkn-account-is-authenticated .woocommerce-waitlist,
.gkn-account-is-authenticated .gkn-notifications {
	padding: 13px;
	border: 1px solid #e4e7eb;
	border-radius: 14px;
	background: #fff;
}

/* Live notification workspace. The Core shortcode stays as the no-JS fallback. */
.gkn-account-is-authenticated .gkn-notification-center {
	overflow: hidden;
	border: 1px solid #e2e5e9;
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 10px 28px rgba(16, 17, 20, .035);
}

.gkn-notification-center.is-loading {
	opacity: .72;
	cursor: progress;
}

.gkn-notification-center__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	padding: 16px 18px;
	border-bottom: 1px solid #eceef1;
	background:
		radial-gradient(circle at 8% 12%, rgba(237, 28, 36, .06), transparent 26%),
		linear-gradient(104deg, #fff 52%, #fff8f8 100%);
}

.gkn-account-endpoint-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	color: var(--gkn-red);
	font-size: 8px;
	font-weight: 900;
}

.gkn-notification-center__header h2 {
	margin: 2px 0 0;
	color: var(--gkn-ink);
	font-size: 18px;
	font-weight: 950;
}

.gkn-notification-center__header p {
	margin: 2px 0 0;
	color: var(--gkn-muted);
	font-size: 9px;
}

.gkn-notification-center__header .button {
	display: inline-flex;
	min-height: 40px;
	align-items: center;
	justify-content: center;
	gap: 6px;
	margin: 0;
	padding: 8px 13px;
	border: 1px solid #f0b6ba;
	border-radius: 11px;
	background: #fff;
	color: #b61920;
	font-size: 9px;
	font-weight: 900;
}

.gkn-notification-center__toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 10px 14px;
	border-bottom: 1px solid #eceef1;
	background: #fafbfc;
}

.gkn-notification-center__toolbar > div {
	display: inline-flex;
	gap: 5px;
	padding: 3px;
	border: 1px solid #e2e5e8;
	border-radius: 11px;
	background: #fff;
}

.gkn-notification-center__toolbar > div button,
.gkn-notification-center__refresh {
	display: inline-flex;
	min-height: 34px;
	align-items: center;
	justify-content: center;
	gap: 5px;
	padding: 6px 10px;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: #646d78;
	font-size: 9px;
	font-weight: 850;
}

.gkn-notification-center__toolbar > div button[aria-pressed="true"] {
	background: #fff0f1;
	color: #b71820;
}

.gkn-notification-center__toolbar button span {
	display: inline-grid;
	min-width: 20px;
	height: 20px;
	place-items: center;
	padding: 0 4px;
	border-radius: 999px;
	background: #f0f2f4;
	font-size: 8px;
}

.gkn-notification-center__toolbar button[aria-pressed="true"] span {
	background: #fff;
}

.gkn-notification-center__refresh {
	border: 1px solid transparent;
}

.gkn-notification-center__refresh:hover,
.gkn-notification-center__refresh:focus-visible {
	border-color: #e0e3e7;
	background: #fff;
	color: var(--gkn-ink);
}

.gkn-notification-center__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.gkn-notification-card {
	display: grid;
	grid-template-columns: 44px minmax(0, 1fr) auto;
	align-items: center;
	gap: 11px;
	min-height: 84px;
	padding: 13px 16px;
	border-bottom: 1px solid #eceef1;
	background: #fff;
}

.gkn-notification-card:last-child {
	border-bottom: 0;
}

.gkn-notification-card.is-unread {
	background: linear-gradient(90deg, #fff 50%, #fff8f8 100%);
	box-shadow: inset -3px 0 var(--gkn-red);
}

.gkn-notification-card__icon {
	display: grid;
	width: 44px;
	height: 44px;
	place-items: center;
	border-radius: 13px;
	background: #f1f3f5;
	color: #606975;
	font-size: 19px;
}

.gkn-notification-card.is-unread .gkn-notification-card__icon {
	background: #ffecee;
	color: var(--gkn-red);
}

.gkn-notification-card__copy {
	min-width: 0;
}

.gkn-notification-card__meta {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 10px;
}

.gkn-notification-card__meta strong {
	overflow: hidden;
	color: var(--gkn-ink);
	font-size: 11px;
	font-weight: 900;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.gkn-notification-card__meta time {
	flex: 0 0 auto;
	color: #89919b;
	font-size: 8px;
}

.gkn-notification-card__copy p {
	margin: 4px 0 0;
	color: #626b76;
	font-size: 9px;
	line-height: 1.9;
}

.gkn-notification-card__read,
.gkn-notification-card__seen {
	display: inline-flex;
	min-height: 34px;
	align-items: center;
	justify-content: center;
	gap: 4px;
	padding: 6px 9px;
	border-radius: 9px;
	font-size: 8px;
	font-weight: 900;
	white-space: nowrap;
}

.gkn-notification-card__read {
	border: 1px solid #f0bec1;
	background: #fff;
	color: #b61920;
}

.gkn-notification-card__seen {
	color: #78818c;
}

.gkn-notification-center__empty {
	display: flex;
	min-height: 260px;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	padding: 26px;
	text-align: center;
}

.gkn-notification-center__empty > i {
	display: grid;
	width: 58px;
	height: 58px;
	place-items: center;
	margin-bottom: 10px;
	border-radius: 18px;
	background: #f1f3f5;
	color: #69727d;
	font-size: 24px;
}

.gkn-notification-center__empty strong {
	color: var(--gkn-ink);
	font-size: 12px;
}

.gkn-notification-center__empty p {
	margin: 4px 0 0;
	color: var(--gkn-muted);
	font-size: 9px;
}

.gkn-notification-center__error {
	margin: 10px 14px;
	padding: 9px 11px;
	border: 1px solid #f0d2aa;
	border-radius: 10px;
	background: #fff9ef;
	color: #775117;
	font-size: 8px;
	line-height: 1.8;
}

@container gkn-account-content (max-width: 650px) {
	.gkn-account-is-authenticated .woocommerce-EditAccountForm,
	.gkn-account-is-authenticated .woocommerce-EditAccountForm fieldset,
	.gkn-account-is-authenticated .woocommerce-address-fields__field-wrapper {
		grid-template-columns: 1fr;
	}

	.gkn-account-is-authenticated .woocommerce-EditAccountForm > *,
	.gkn-account-is-authenticated .woocommerce-EditAccountForm fieldset .form-row,
	.gkn-account-is-authenticated .woocommerce-address-fields__field-wrapper .form-row {
		grid-column: 1;
	}

	.gkn-account-is-authenticated .gkn-proforma__meta {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.gkn-notification-center__header {
		align-items: stretch;
		flex-direction: column;
		padding: 13px;
	}

	.gkn-notification-center__header .button {
		width: 100%;
	}

	.gkn-notification-center__toolbar {
		align-items: stretch;
		flex-direction: column;
		padding: 9px;
	}

	.gkn-notification-center__toolbar > div {
		display: grid;
		grid-template-columns: 1fr 1fr;
	}

	.gkn-notification-center__refresh {
		align-self: flex-end;
	}

	.gkn-notification-card {
		grid-template-columns: 42px minmax(0, 1fr);
		align-items: start;
		gap: 9px;
		padding: 12px;
	}

	.gkn-notification-card__icon {
		width: 42px;
		height: 42px;
	}

	.gkn-notification-card__meta {
		align-items: flex-start;
		flex-direction: column;
		gap: 2px;
	}

	.gkn-notification-card__meta strong {
		white-space: normal;
	}

	.gkn-notification-card__read,
	.gkn-notification-card__seen {
		grid-column: 2;
		justify-self: start;
	}

	.gkn-account-is-authenticated .woocommerce-EditAccountForm,
	.gkn-account-is-authenticated .woocommerce-address-fields,
	.gkn-account-is-authenticated .woocommerce-order-details,
	.gkn-account-is-authenticated .woocommerce-customer-details,
	.gkn-account-is-authenticated .gkn-account-panel {
		padding: 11px;
		border-radius: 13px;
	}

	.gkn-account-is-authenticated .shop_table_responsive.woocommerce-orders-table,
	.gkn-account-is-authenticated .shop_table_responsive.account-payment-methods-table {
		display: block;
		overflow: visible;
		border: 0;
		background: transparent;
		box-shadow: none;
	}

	.gkn-account-is-authenticated .woocommerce-orders-table thead,
	.gkn-account-is-authenticated .account-payment-methods-table thead {
		display: none;
	}

	.gkn-account-is-authenticated .woocommerce-orders-table tbody,
	.gkn-account-is-authenticated .account-payment-methods-table tbody {
		display: grid;
		gap: 8px;
	}

	.gkn-account-is-authenticated .woocommerce-orders-table tr,
	.gkn-account-is-authenticated .account-payment-methods-table tr {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 0 8px;
		overflow: hidden;
		border: 1px solid #e3e6ea;
		border-radius: 13px;
		background: #fff;
	}

	.gkn-account-is-authenticated .woocommerce-orders-table th,
	.gkn-account-is-authenticated .woocommerce-orders-table td,
	.gkn-account-is-authenticated .account-payment-methods-table td {
		display: grid;
		grid-template-columns: minmax(72px, auto) minmax(0, 1fr);
		align-items: center;
		gap: 7px;
		padding: 8px 9px;
		border-bottom: 1px solid #eef0f2;
		font-size: 8px;
		text-align: left !important;
	}

	.gkn-account-is-authenticated .woocommerce-orders-table th::before,
	.gkn-account-is-authenticated .woocommerce-orders-table td::before,
	.gkn-account-is-authenticated .account-payment-methods-table td::before {
		float: none;
		color: var(--gkn-muted);
		font-size: 7px;
		font-weight: 800;
		text-align: right;
	}

	.gkn-account-is-authenticated .woocommerce-orders-table__cell-order-number,
	.gkn-account-is-authenticated .woocommerce-orders-table__cell-order-actions,
	.gkn-account-is-authenticated .payment-method-actions {
		grid-column: 1 / -1;
	}

	.gkn-account-is-authenticated .woocommerce-orders-table__cell-order-actions,
	.gkn-account-is-authenticated .payment-method-actions {
		justify-content: flex-start;
		border-bottom: 0;
	}

	.gkn-account-is-authenticated .farazsms-up-nav {
		flex: 1 1 100% !important;
	}

	.gkn-account-is-authenticated .farazsms-up-nav ul {
		display: flex;
		gap: 5px;
		overflow-x: auto;
		scroll-snap-type: inline proximity;
	}

	.gkn-account-is-authenticated .farazsms-up-nav li {
		flex: 0 0 auto;
		scroll-snap-align: start;
	}

	.gkn-account-is-authenticated .farazsms-up-main {
		flex-basis: 100% !important;
	}

	.gkn-account-is-authenticated .farazsms-up-cards {
		grid-template-columns: 1fr !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	.gkn-account-is-authenticated .farazsms-up-nav a {
		transition: none !important;
	}
}
