/**
 * My Account — Payment Methods + Add Payment Method (dealer dashboard).
 *
 * Plain CSS outside the Tailwind build so it ships without a rebuild.
 * Enqueued only on those two endpoints by inc/payment-methods.php.
 * WooCommerce's own stylesheets are removed theme-wide, so the add form
 * is styled from scratch here.
 */

/* ---- Page header ---- */
.hitek-pm__header {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 1.5rem;
}

.hitek-pm__title {
	margin: 0 0 0.35rem;
	font-size: 1.5rem;
	font-weight: 700;
	line-height: 1.2;
	color: #fff;
}

.hitek-pm__intro {
	max-width: 38rem;
	margin: 0;
	font-size: 0.85rem;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.5);
}

.hitek-account-content .hitek-pm__header a.hitek-pm__back {
	display: inline-block;
	margin-bottom: 0.75rem;
	font-size: 0.7rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: rgba(255, 255, 255, 0.4);
}

.hitek-account-content .hitek-pm__header a.hitek-pm__back:hover {
	color: #fff;
}

/* ---- Saved methods list ---- */
.hitek-pm__list {
	display: grid;
	gap: 0.75rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.hitek-pm__item {
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: 1rem 1.25rem;
	background: #1a1a1a;
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 0.5rem;
	transition: border-color 0.2s;
}

.hitek-pm__item:hover {
	border-color: rgba(255, 255, 255, 0.16);
}

.hitek-pm__item.is-primary {
	border-color: rgba(237, 0, 4, 0.45);
	box-shadow: inset 3px 0 0 #ed0004;
}

.hitek-pm__brand {
	flex: none;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 3rem;
	height: 1.9rem;
	border-radius: 0.3rem;
	background: rgba(255, 255, 255, 0.06);
	color: rgba(255, 255, 255, 0.6);
	overflow: hidden;
}

.hitek-pm__brand img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hitek-pm__details {
	flex: 1;
	min-width: 0;
}

.hitek-pm__method {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
}

.hitek-pm__name {
	font-size: 0.95rem;
	font-weight: 700;
	color: #fff;
	overflow-wrap: anywhere;
}

.hitek-pm__expires {
	margin-top: 0.2rem;
	font-size: 0.8rem;
	color: rgba(255, 255, 255, 0.45);
}

.hitek-pm__badge {
	display: inline-block;
	padding: 0.15rem 0.55rem;
	font-size: 0.62rem;
	font-weight: 700;
	line-height: 1.4;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	border-radius: 999px;
}

.hitek-pm__badge--primary {
	background: rgba(237, 0, 4, 0.12);
	border: 1px solid rgba(237, 0, 4, 0.45);
	color: #fff;
}

.hitek-pm__badge--expired {
	background: rgba(245, 158, 11, 0.1);
	border: 1px solid rgba(245, 158, 11, 0.35);
	color: #f59e0b;
}

/* ---- Row actions ---- */
.hitek-pm__actions {
	flex: none;
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 0.5rem;
}

.hitek-account-content .hitek-pm__actions a.hitek-pm__action {
	display: inline-block;
	padding: 0.45rem 0.9rem;
	font-size: 0.68rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: rgba(255, 255, 255, 0.75);
	background: transparent;
	border: 1px solid rgba(255, 255, 255, 0.15);
	border-radius: 0.5rem;
	transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.hitek-account-content .hitek-pm__actions a.hitek-pm__action:hover {
	color: #fff;
	border-color: rgba(255, 255, 255, 0.5);
}

.hitek-account-content .hitek-pm__actions a.hitek-pm__action--default {
	color: #fff;
	border-color: rgba(237, 0, 4, 0.5);
}

.hitek-account-content .hitek-pm__actions a.hitek-pm__action--default:hover {
	background: rgba(237, 0, 4, 0.15);
	border-color: #ed0004;
}

.hitek-account-content .hitek-pm__actions a.hitek-pm__action--delete,
.hitek-account-content .hitek-pm__actions a.hitek-pm__action--wcs_deletion_error {
	color: rgba(255, 255, 255, 0.45);
	border-color: transparent;
}

.hitek-account-content .hitek-pm__actions a.hitek-pm__action--delete:hover,
.hitek-account-content .hitek-pm__actions a.hitek-pm__action--wcs_deletion_error:hover {
	color: #ed0004;
	border-color: rgba(237, 0, 4, 0.35);
}

/* ---- Add Payment Method form ---- */
.hitek-account-content #add_payment_method {
	max-width: 40rem;
}

.hitek-account-content #add_payment_method .payment_methods {
	display: grid;
	gap: 0.75rem;
	margin: 0 0 1.25rem;
	padding: 0;
	list-style: none;
}

.hitek-account-content #add_payment_method .payment_methods > li {
	padding: 1rem 1.25rem;
	background: #1a1a1a;
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 0.5rem;
}

.hitek-account-content #add_payment_method .payment_methods > li > label {
	display: inline;
	margin: 0;
	font-size: 0.9rem;
	text-transform: none;
	letter-spacing: normal;
	color: #fff;
}

.hitek-account-content #add_payment_method .payment_methods > li > label img {
	display: inline-block;
	max-height: 1.5rem;
	margin-left: 0.35rem;
	vertical-align: middle;
}

.hitek-account-content #add_payment_method .payment_methods .input-radio {
	margin: 0 0.6rem 0 0;
	accent-color: #ed0004;
}

/* A single gateway needs no chooser. */
.hitek-account-content #add_payment_method .payment_methods > li:only-child > .input-radio {
	display: none;
}

.hitek-account-content #add_payment_method .payment_box {
	margin-top: 1rem;
	color: rgba(255, 255, 255, 0.6);
}

.hitek-account-content #add_payment_method fieldset {
	margin: 0;
	padding: 0;
	border: 0;
}

.hitek-account-content .hitek-pm__primary-field label {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	margin: 0;
	font-size: 0.85rem;
	font-weight: 400;
	text-transform: none;
	letter-spacing: normal;
	color: rgba(255, 255, 255, 0.8);
	cursor: pointer;
}

.hitek-account-content .hitek-pm__primary-field input {
	width: 1rem;
	height: 1rem;
	margin: 0;
	accent-color: #ed0004;
}

/* ---- Phones ---- */
@media (max-width: 639px) {
	.hitek-pm__item {
		flex-wrap: wrap;
	}

	.hitek-pm__actions {
		width: 100%;
		justify-content: flex-start;
		padding-left: 4rem;
	}
}
