/* PADELXP – address book (checkout + My Account)
   Palette (Tibi 2026-10-09): #043f67 product text, #065b94 default text / buttons, #2788C8 hover, #5D626E secondary text,
   #F7F7F7 page background, #ffffff boxes; field frame #ccc / radius 6px (as the checkout inputs). */

.px-ab-picker {
	margin: 0 0 18px;
}

.px-ab-title {
	margin: 0 0 8px;
	color: #065b94;
	font-weight: 600;
}

.px-ab-count {
	color: #5D626E;
	font-weight: 400;
	font-size: 0.9em;
}

.px-ab-cards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 10px;
}

.px-ab-card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-height: 84px;
	padding: 11px 13px;
	border: 1px solid #ccc;
	border-radius: 6px;
	background: #fff;
	box-shadow: none;
	color: #043f67;
	font: inherit;
	font-size: 14px;
	line-height: 1.4;
	text-align: left;
	cursor: pointer;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.px-ab-card:hover {
	border-color: #2788C8;
}

/* the selected card: the same blue frame as the country field, a hair thicker, nothing else */
.px-ab-card.is-selected {
	border-color: #065b94;
	box-shadow: inset 0 0 0 1px #065b94;
}

.px-ab-card:focus-visible {
	outline: 2px solid #2788C8;
	outline-offset: 2px;
}

.px-ab-card strong {
	color: #065b94;
}

.px-ab-card-head {
	padding-right: 48px;
}

/* the default address: a filled star in the site blue, „Implicită” as a small tooltip on hover / focus */
.px-ab-act.px-ab-badge {
	position: relative;
	display: inline-flex;
	color: #065b94 !important;
	cursor: default;
}

.px-ab-badge::after {
	content: attr(data-tip);
	position: absolute;
	top: calc(100% + 6px);
	right: 0;
	z-index: 5;
	padding: 3px 8px;
	border-radius: 4px;
	background: #043f67;
	color: #fff;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.4;
	white-space: nowrap;
	opacity: 0;
	pointer-events: none;
	transform: translateY(-2px);
	transition: opacity 0.15s ease, transform 0.15s ease;
}

.px-ab-badge:hover::after,
.px-ab-badge:focus::after {
	opacity: 1;
	transform: none;
}

.px-ab-badge:focus {
	outline: none;
}

.px-ab-muted,
.px-ab-line {
	color: #5D626E;
	font-size: 13px;
}

/* „Adresă nouă”: a discreet dashed box; on hover only the frame and the text turn light blue (never a filled button) */
.px-ab-card.px-ab-new,
.px-ab-card.px-ab-new:hover,
.px-ab-card.px-ab-new:focus,
.px-ab-card.px-ab-new:active {
	align-items: center;
	justify-content: center;
	gap: 4px;
	border: 1px dashed #ccc;
	background: #fff !important;
	box-shadow: none;
	color: #065b94 !important;
	font-weight: 600;
	text-decoration: none;
}

.px-ab-card.px-ab-new:hover,
.px-ab-card.px-ab-new:focus-visible {
	border-color: #2788C8;
	color: #2788C8 !important;
}

.px-ab-card.px-ab-new.is-selected {
	border: 1px solid #065b94;
	box-shadow: inset 0 0 0 1px #065b94;
	color: #065b94 !important;
}

.px-ab-plus {
	font-size: 20px;
	font-weight: 400;
	line-height: 1;
}

.px-ab-actions {
	position: absolute;
	top: 7px;
	right: 7px;
	display: flex;
	gap: 2px;
}

.px-ab-act {
	padding: 2px;
	border: 0;
	background: transparent;
	color: #5D626E;
	cursor: pointer;
}

.px-ab-act:hover,
.px-ab-act:focus,
.px-ab-act:active {
	border: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	color: #2788C8;
}

.px-ab-act.px-ab-del:hover,
.px-ab-act.px-ab-del:focus {
	color: #b32d2e;
}

.px-ab-act[hidden] {
	display: none;
}

.px-ab-newopts {
	margin-top: 12px;
}

.px-ab-full,
.px-ab-edited {
	margin: 8px 0 0;
	padding: 8px 12px;
	border-radius: 6px;
	background: #fcf4e5;
	color: #6b4b00;
	font-size: 13px;
}

.px-ab-edited {
	border-left: 3px solid #065b94;
	background: #fff;
	color: #043f67;
}

.px-ab-full[hidden],
.px-ab-edited[hidden],
.px-ab-save[hidden] {
	display: none;
}

/* PF / PJ: round radios in the site blue, close to their text */
.px-ab-type .woocommerce-input-wrapper {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 0; /* radio and its label are siblings here: the space between the two options is the label's margin */
}

.px-ab-type input[type="radio"] {
	-webkit-appearance: none;
	appearance: none;
	flex: 0 0 auto;
	width: 20px;
	height: 20px;
	margin: 0 8px 0 0 !important;
	border: 2px solid #065b94;
	border-radius: 50%;
	background: #fff;
	vertical-align: middle;
	cursor: pointer;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.px-ab-type input[type="radio"]:hover {
	border-color: #2788C8;
}

.px-ab-type input[type="radio"]:checked {
	box-shadow: inset 0 0 0 4px #fff;
	background: #065b94;
}

.px-ab-type input[type="radio"]:focus-visible {
	outline: 2px solid #2788C8;
	outline-offset: 2px;
}

.px-ab-type label.radio {
	display: inline-flex !important;
	align-items: center;
	margin: 0 !important;
	padding: 0 !important;
	color: #065b94;
	font-weight: 600;
	cursor: pointer;
}

.px-ab-type .woocommerce-input-wrapper > input[type="radio"] + label.radio {
	margin-right: 32px !important;
}

/* ANAF status under the CUI */
.px-ab-anaf {
	display: block;
	margin-top: 4px;
	font-size: 13px;
}

.px-ab-anaf.is-ok {
	color: #116329;
}

.px-ab-anaf.is-error {
	color: #b32d2e;
}

.px-ab-anaf.is-wait {
	color: #5D626E;
}

/* My Account */
.px-ab-section {
	margin-bottom: 28px;
}

.px-ab-section h3 {
	margin-bottom: 10px;
}

.px-ab-cards--account .px-ab-card {
	cursor: default;
}

.px-ab-links {
	margin-top: 6px;
	font-size: 13px;
}

.px-ab-form .px-ab-cancel {
	margin-left: 6px;
}

@media (max-width: 600px) {
	.px-ab-cards {
		grid-template-columns: 1fr;
	}
}

.px-ab-newopts[hidden] {
	display: none;
}

.px-ab-type label.radio .required {
	display: none;
}


/* My Account / admin: three action icons on a card */
.px-ab-cards--account .px-ab-card-head,
.px-ab-cards--admin .px-ab-card-head {
	padding-right: 80px;
}

a.px-ab-act {
	display: inline-flex;
	text-decoration: none !important;
	box-shadow: none !important;
}

/* wp-admin: address cards modal (order) + profile manager */
.px-ab-modal {
	position: fixed;
	inset: 0;
	z-index: 100100;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding: 60px 16px 16px;
	background: rgba(0, 0, 0, 0.45);
	overflow-y: auto;
}

.px-ab-modal-box {
	position: relative;
	width: 100%;
	max-width: 760px;
	padding: 18px 20px 20px;
	border-radius: 6px;
	background: #fff;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.px-ab-modal-box h2 {
	margin: 0 30px 14px 0;
	font-size: 17px;
}

.px-ab-modal-close {
	position: absolute;
	top: 10px;
	right: 10px;
	border: 0;
	background: transparent;
	color: #646970;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
}

.px-ab-cards--admin {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 10px;
	max-width: 960px;
}

.px-ab-profile .px-ab-section h3 {
	margin: 18px 0 8px;
}

.px-ab-cards--admin .px-ab-card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 10px 12px;
	border: 1px solid #c3c4c7;
	border-radius: 6px;
	background: #fff;
	text-align: left;
	font-size: 13px;
	cursor: pointer;
}

.px-ab-profile .px-ab-card {
	cursor: default;
}

.px-ab-profile .px-ab-new {
	cursor: pointer;
}

.px-ab-admin-save input[type="text"] {
	width: 100%;
	margin-top: 4px;
}

.px-ab-admin-save[hidden] {
	display: none !important;
}

.px-ab-aform {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px 14px;
}

.px-ab-aform .px-ab-wide {
	grid-column: 1 / -1;
}

.px-ab-aform label {
	display: block;
	margin-bottom: 3px;
	font-weight: 600;
}

.px-ab-aform input[type="text"],
.px-ab-aform input[type="email"],
.px-ab-aform input[type="tel"],
.px-ab-aform select {
	width: 100%;
	max-width: none;
}

.px-ab-aform .px-ab-radios label {
	display: inline-block;
	margin-right: 16px;
	font-weight: 400;
}

.px-ab-aform-actions {
	margin-top: 16px;
}

.px-ab-aform-error {
	margin: 10px 0 0;
	color: #b32d2e;
}

@media (max-width: 600px) {
	.px-ab-aform {
		grid-template-columns: 1fr;
	}
}

.px-ab-aform p {
	margin: 0;
}

.px-ab-aform .px-ab-radios label:first-child {
	display: block;
	margin-bottom: 4px;
	font-weight: 600;
}

/* phone / e-mail: a soft warning under the field (the order is never blocked) */
.px-ab-warn {
	display: block;
	margin-top: 4px;
	color: #8a5a00;
	font-size: 13px;
}

.px-ab-warn .px-ab-fix {
	font-weight: 600;
	text-decoration: underline;
}

/* PF / PJ on narrow screens: one option per row, the radio next to its own text */
@media (max-width: 600px) {
	.px-ab-type .woocommerce-input-wrapper {
		display: grid;
		grid-template-columns: auto 1fr;
		gap: 12px 0;
	}

	.px-ab-type .woocommerce-input-wrapper > input[type="radio"] + label.radio {
		margin-right: 0 !important;
	}
}
