/* ── Shared button base (edit page is outside woocommerce-MyAccount-content) */

.pinha-b2c-header .button,
.pinha-b2c-actions .button,
.pinha-b2c-actions button.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 9999px;
	padding: 0.625rem 1.5rem;
	font-size: 0.75rem;
	font-weight: 600;
	line-height: 1.25rem;
	border: 1px solid transparent;
	cursor: pointer;
	text-decoration: none;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}

/* ── Cart quote card ─────────────────────────────────────────────────────── */

.pinha-b2c-quote-card {
	display: flex;
	align-items: center;
	gap: 16px;
	background: #fff;
	border-radius: 16px;
	border: 1px solid #e5e7eb;
	box-shadow: 0 1px 3px rgba(0,0,0,.06), 0 4px 16px rgba(0,0,0,.06);
	padding: 20px 24px;
	margin-top: 24px;
}

.pinha-b2c-quote-card__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 50%;
	background: #eff6ff;
	border: 1px solid #dbeafe;
	color: #1e3a8a;
	flex-shrink: 0;
}

.pinha-b2c-quote-card__icon i,
.pinha-b2c-quote-card__icon svg {
	width: 1.125rem;
	height: 1.125rem;
}

.pinha-b2c-quote-card__body {
	flex: 1;
	min-width: 0;
}

.pinha-b2c-quote-card__title {
	font-size: 0.9375rem;
	font-weight: 700;
	color: #0f172a;
	margin: 0 0 2px;
}

.pinha-b2c-quote-card__text {
	font-size: 0.8125rem;
	color: #64748b;
	margin: 0;
}

@media (max-width: 600px) {
	.pinha-b2c-quote-card {
		flex-wrap: wrap;
	}
	.pinha-b2c-quote-card .pinha-b2c-btn--copy {
		width: 100%;
		justify-content: center;
	}
}

/* ── Cart button ─────────────────────────────────────────────────────────── */

.pinha-b2c-btn--copy {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 9999px;
	background: #fff;
	color: #64748b !important;
	border: 1px solid #e5e7eb;
	padding: 0.5rem 1.25rem;
	font-size: 0.75rem;
	font-weight: 600;
	cursor: pointer;
	transition: border-color 0.15s, color 0.15s;
	text-decoration: none;
	white-space: nowrap;
}

.pinha-b2c-btn--copy:hover,
.pinha-b2c-btn--copy:focus {
	border-color: #00235a;
	color: #00235a !important;
	background: #fff;
}

/* ── Status badge select ─────────────────────────────────────────────────── */

.pinha-b2c-status-select {
	border-radius: 4px !important;
	font-size: 11px !important;
	font-weight: 600 !important;
	padding: 4px 8px !important;
	border: 1px solid currentColor !important;
	width: auto !important;
	cursor: pointer;
}

.pinha-b2c-edit-issuer .pinha-b2c-status-select {
	font-size: 13px !important;
	padding: 8px 32px 8px 14px !important;
	border-radius: 9999px !important;
	flex-shrink: 0;
	appearance: none !important;
	-webkit-appearance: none !important;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") !important;
	background-repeat: no-repeat !important;
	background-position: right 10px bottom 55% !important;
	background-size: 13px !important;
}

.pinha-b2c-status--draft    { background: #f0f0f0; color: #555; }
.pinha-b2c-status--sent     { background: #d4edda; color: #155724; }
.pinha-b2c-status--accepted { background: #cce5ff; color: #004085; }
.pinha-b2c-status--rejected { background: #e5e7eb; color: #374151; }

/* ── Icon action buttons (quotes list) ───────────────────────────────────── */

.pinha-b2c-actions-cell {
	white-space: nowrap;
}

.pinha-b2c-icon-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border-radius: 6px;
	border: 1px solid #e5e7eb;
	background: #fff;
	color: #6b7280;
	cursor: pointer;
	padding: 0;
	text-decoration: none;
	transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.pinha-b2c-icon-btn:hover {
	background: #f3f4f6;
	border-color: #d1d5db;
	color: #111827;
}

.pinha-b2c-icon-btn--danger:hover {
	background: #fee2e2;
	border-color: #fca5a5;
	color: #dc2626;
}

.pinha-b2c-table-wrap .pinha-b2c-row--sent     td { background: #f0fdf4; }
.pinha-b2c-table-wrap .pinha-b2c-row--accepted  td { background: #eff6ff; }
.pinha-b2c-table-wrap .pinha-b2c-row--rejected  td { background: #f3f4f6; color: #6b7280; }

.pinha-b2c-table-wrap .pinha-b2c-row--sent:hover     td { background: #dcfce7; }
.pinha-b2c-table-wrap .pinha-b2c-row--accepted:hover  td { background: #dbeafe; }
.pinha-b2c-table-wrap .pinha-b2c-row--rejected:hover  td { background: #e5e7eb; }

/* ── Toast position override (top-right below header) ───────────────────── */

.toast-container {
	top: 1.5rem !important;
	bottom: auto !important;
}

/* ── Toolbar ─────────────────────────────────────────────────────────────── */

.pinha-b2c-toolbar {
	display: flex;
	justify-content: flex-end;
	margin-bottom: 12px;
}

.pinha-b2c-btn--settings {
	display: inline-flex !important;
	align-items: center;
	gap: 6px;
	font-size: 11px !important;
	font-weight: 600 !important;
	letter-spacing: 0.05em !important;
	text-transform: uppercase !important;
	padding: 7px 16px !important;
	color: #374151 !important;
	border: 1px solid #e5e7eb !important;
	background: #fff !important;
	border-radius: 9999px !important;
	box-shadow: 0 1px 2px rgba(0,0,0,.05) !important;
	transition: background 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s !important;
}

.pinha-b2c-btn--settings:hover {
	background: #f9fafb !important;
	border-color: #d1d5db !important;
	color: #111827 !important;
	box-shadow: 0 2px 4px rgba(0,0,0,.08) !important;
}

.pinha-b2c-btn--settings.pinha-b2c-btn--settings--active {
	background: #172554 !important;
	border-color: #172554 !important;
	color: #fff !important;
	box-shadow: 0 2px 6px rgba(23,37,84,.25) !important;
}

/* ── Issuer settings panel ───────────────────────────────────────────────── */

.pinha-b2c-issuer-panel {
	background: #fff;
	border-radius: 10px;
	box-shadow: 0 2px 12px rgba(0,0,0,.07), 0 0 0 1px rgba(0,0,0,.04);
	margin-bottom: 20px;
	overflow: hidden;
}

.pinha-b2c-issuer-panel__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 20px;
	border-bottom: 1px solid #f3f4f6;
	background: #fafafa;
}

.pinha-b2c-issuer-panel__title {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #374151;
	display: flex;
	align-items: center;
}

.pinha-b2c-issuer-panel__close {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	border: none;
	background: transparent;
	color: #9ca3af;
	cursor: pointer;
	transition: background 0.15s, color 0.15s;
	padding: 0;
}

.pinha-b2c-issuer-panel__close:hover {
	background: #f3f4f6;
	color: #374151;
}

.pinha-b2c-issuer-body {
	padding: 0 20px;
}

.pinha-b2c-issuer-section {
	padding: 18px 0;
	border-bottom: 1px solid #f3f4f6;
}

.pinha-b2c-issuer-section:last-child {
	border-bottom: none;
}

.pinha-b2c-issuer-section__label {
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #9ca3af;
	margin-bottom: 12px;
}

/* Logo zone */

.pinha-b2c-logo-wrap {
	position: relative;
	flex-shrink: 0;
}

.pinha-b2c-logo-remove {
	position: absolute;
	top: -7px;
	right: -7px;
	z-index: 2;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	border: 1.5px solid #e5e7eb;
	background: #fff;
	color: #6b7280;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	padding: 0;
	transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.pinha-b2c-logo-remove:hover {
	background: #fee2e2;
	border-color: #fca5a5;
	color: #dc2626;
}

.pinha-b2c-issuer-identity {
	display: flex;
	gap: 16px;
	align-items: flex-start;
}

.pinha-b2c-logo-zone {
	position: relative;
	flex-shrink: 0;
	width: 96px;
	height: 72px;
	border: 2px dashed #e5e7eb;
	border-radius: 8px;
	background: #f9fafb;
	cursor: pointer;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: border-color 0.15s, background 0.15s;
}

.pinha-b2c-logo-zone:hover {
	border-color: #172554;
	background: #eff6ff;
}

.pinha-b2c-logo-zone img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.pinha-b2c-logo-zone__placeholder {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	font-size: 10px;
	color: #9ca3af;
	font-weight: 500;
}

.pinha-b2c-logo-zone__overlay {
	position: absolute;
	inset: 0;
	background: rgba(23,37,84,.45);
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	opacity: 0;
	transition: opacity 0.15s;
}

.pinha-b2c-logo-zone:hover .pinha-b2c-logo-zone__overlay {
	opacity: 1;
}

.pinha-b2c-logo-zone__spinner {
	position: absolute;
	inset: 0;
	background: rgba(255,255,255,.8);
	display: flex;
	align-items: center;
	justify-content: center;
	color: #172554;
}

@keyframes pinha-spin { to { transform: rotate(360deg); } }
.pinha-b2c-logo-zone__spinner i { animation: pinha-spin 0.8s linear infinite; }

.pinha-b2c-issuer-identity__fields {
	flex: 1;
	display: grid;
	grid-template-columns: 3fr 1fr;
	gap: 10px;
}

/* Fields grid */

.pinha-b2c-issuer-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px 16px;
}

.pinha-b2c-issuer-field {
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.pinha-b2c-issuer-field--wide {
	grid-column: 1 / -1;
}

.pinha-b2c-issuer-field label {
	font-size: 10.5px;
	font-weight: 600;
	color: #6b7280;
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.pinha-b2c-issuer-field input,
.pinha-b2c-issuer-field textarea {
	width: 100%;
	border: 1px solid #e5e7eb;
	border-radius: 6px;
	padding: 9px 11px;
	font-size: 13px;
	font-family: inherit;
	color: #111827;
	background: #fff;
	transition: border-color 0.15s, box-shadow 0.15s;
	outline: none;
}

.pinha-b2c-issuer-field input:focus,
.pinha-b2c-issuer-field textarea:focus {
	border-color: #172554;
	box-shadow: 0 0 0 3px rgba(23,37,84,.1);
}

.pinha-b2c-issuer-field input::placeholder,
.pinha-b2c-issuer-field textarea::placeholder {
	color: #d1d5db;
}

.pinha-b2c-issuer-field textarea {
	resize: vertical;
}

.pinha-b2c-issuer-panel__footer {
	padding: 14px 20px;
	border-top: 1px solid #f3f4f6;
	background: #fafafa;
	display: flex;
	justify-content: flex-end;
}

#pinha-b2c-save-issuer {
	display: inline-flex !important;
	align-items: center;
	gap: 7px;
	font-size: 11px !important;
	font-weight: 700 !important;
	letter-spacing: 0.07em !important;
	text-transform: uppercase !important;
	padding: 9px 24px !important;
	background: #172554 !important;
	border: none !important;
	border-radius: 9999px !important;
	color: #fff !important;
	box-shadow: 0 2px 6px rgba(23,37,84,.3) !important;
	transition: background 0.15s, box-shadow 0.15s, transform 0.1s !important;
	cursor: pointer;
}

#pinha-b2c-save-issuer:hover:not(:disabled) {
	background: #1e3a8a !important;
	box-shadow: 0 4px 10px rgba(23,37,84,.35) !important;
	transform: translateY(-1px);
}

#pinha-b2c-save-issuer:active:not(:disabled) {
	transform: translateY(0);
	box-shadow: 0 1px 3px rgba(23,37,84,.2) !important;
}

#pinha-b2c-save-issuer:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

/* ── Status filter tabs ──────────────────────────────────────────────────── */

.pinha-b2c-filter-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 12px;
}

.pinha-b2c-filter-tab {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 14px;
	border-radius: 9999px;
	border: 1px solid #e5e7eb;
	background: #fff;
	color: #6b7280;
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.pinha-b2c-filter-tab:hover {
	background: #f9fafb;
	border-color: #d1d5db;
	color: #374151;
}

.pinha-b2c-filter-tab--active {
	background: #172554;
	border-color: #172554;
	color: #fff;
}

.pinha-b2c-filter-tab--hidden {
	display: none;
}

.pinha-b2c-filter-tab--active:hover {
	background: #1e3a8a;
	border-color: #1e3a8a;
	color: #fff;
}

.pinha-b2c-filter-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	border-radius: 9999px;
	background: rgba(255,255,255,0.2);
	font-size: 10px;
	font-weight: 700;
}

.pinha-b2c-filter-tab:not(.pinha-b2c-filter-tab--active) .pinha-b2c-filter-count {
	background: #f3f4f6;
	color: #374151;
}

/* ── Table — same style as erpc-table-wrap ───────────────────────────────── */

.pinha-b2c-table-wrap {
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 1px 3px rgba(0,0,0,.06), 0 4px 16px rgba(0,0,0,.06);
	overflow: hidden;
	margin-bottom: 24px;
}

.pinha-b2c-table-wrap table.shop_table {
	border: none !important;
	border-collapse: collapse;
	width: 100%;
	margin: 0;
}

.pinha-b2c-table-wrap table.shop_table thead th {
	background: transparent;
	border: none !important;
	border-bottom: 1px solid #f3f4f6 !important;
	padding: 12px 16px;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: #9ca3af;
	text-align: left;
}

.pinha-b2c-table-wrap table.shop_table tbody tr {
	border-bottom: 1px solid #f3f4f6;
}

.pinha-b2c-table-wrap table.shop_table tbody tr:last-child {
	border-bottom: none;
}

.pinha-b2c-table-wrap table.shop_table td {
	border: none !important;
	padding: 14px 16px;
	font-size: 14px;
	vertical-align: middle;
}

.pinha-b2c-table-wrap table.shop_table tbody tr:hover {
	background: #f9fafb;
	color: inherit;
}

.pinha-b2c-table-wrap table.shop_table tbody tr:hover td {
	color: inherit;
}

.pinha-b2c-table-wrap table.shop_table tfoot td {
	border-top: 1px solid #f3f4f6 !important;
	font-weight: 700;
	background: #f9fafb;
	font-size: 14px;
}

.pinha-b2c-table-wrap .pinha-b2c-num    { text-align: right; }
.pinha-b2c-table-wrap .pinha-b2c-center { text-align: center; }

.pinha-b2c-table-wrap table.shop_table thead th,
.pinha-b2c-table-wrap table.shop_table td {
	vertical-align: middle;
}

/* ── Edit page issuer bar ────────────────────────────────────────────────── */

.pinha-b2c-edit-issuer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 12px 20px;
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 1px 3px rgba(0,0,0,.06);
	margin-bottom: 16px;
}

.pinha-b2c-edit-issuer__left {
	display: flex;
	align-items: center;
	gap: 16px;
	min-width: 0;
}

.pinha-b2c-edit-issuer__logo {
	max-height: 44px;
	max-width: 140px;
	object-fit: contain;
	flex-shrink: 0;
}

.pinha-b2c-edit-issuer__name {
	font-size: 15px;
	font-weight: 700;
	color: #111827;
	flex-shrink: 0;
}

.pinha-b2c-edit-issuer__details {
	display: flex;
	flex-wrap: wrap;
	gap: 2px 16px;
	font-size: 11.5px;
	color: #6b7280;
	line-height: 1.5;
}

.pinha-b2c-edit-issuer__details span::before {
	content: '';
}

/* ── Quote edit ──────────────────────────────────────────────────────────── */

.pinha-b2c-header {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	margin-bottom: 20px;
}

.pinha-b2c-header h2 {
	margin: 0;
}

.pinha-b2c-header__actions {
	display: flex;
	align-items: center;
	gap: 8px;
}

.pinha-b2c-header__actions .pinha-b2c-btn--labour-toggle {
	margin-left: 24px;
}

/* ── Labour (Mão de Obra) toggle ─────────────────────────────────────────── */

.pinha-b2c-btn--labour-toggle {
	background: transparent;
	color: #6b7280;
	border-color: #e5e7eb;
	display: inline-flex;
	align-items: center;
	gap: 5px;
}

.pinha-b2c-btn--labour-toggle:hover,
.pinha-b2c-btn--labour-toggle:focus {
	background: #f3f4f6;
	color: #111827;
	border-color: #d1d5db;
}

.button.pinha-b2c-btn--labour-toggle--active,
.pinha-b2c-btn--labour-toggle--active {
	background: #172554 !important;
	color: #fff !important;
	border-color: #172554 !important;
}

.button.pinha-b2c-btn--labour-toggle--active:hover,
.button.pinha-b2c-btn--labour-toggle--active:focus,
.pinha-b2c-btn--labour-toggle--active:hover,
.pinha-b2c-btn--labour-toggle--active:focus {
	background: #1e3a8a !important;
	border-color: #1e3a8a !important;
	color: #fff !important;
}

/* ── Labour row ──────────────────────────────────────────────────────────── */

#pinha-b2c-labour-row {
	display: none;
}

#pinha-b2c-labour-row.pinha-b2c-labour-row--visible {
	display: table-row;
}

#pinha-b2c-labour-row td {
	background: #eff6ff;
	border-top: 1px solid #dbeafe;
}

.pinha-b2c-labour-label {
	font-size: 12px;
	font-weight: 600;
	color: #1e40af;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.pinha-b2c-labour-input-group {
	display: flex;
	align-items: center;
	gap: 4px;
	justify-content: flex-end;
}

.pinha-b2c-labour-input-group span {
	font-size: 11px;
	color: #6b7280;
	white-space: nowrap;
}

.pinha-b2c-table-wrap .pinha-b2c-labour-input {
	border: 1px solid #bfdbfe;
	border-radius: 6px;
	padding: 4px 8px;
	background: #fff;
	transition: border-color 0.15s;
	outline: none;
	text-align: right;
}

.pinha-b2c-table-wrap .pinha-b2c-labour-input:focus {
	border-color: #1d4ed8;
	background: #fff;
}

#pinha-b2c-labour-hours {
	width: 70px;
}

#pinha-b2c-labour-price {
	width: 90px;
}

.pinha-b2c-btn--markup {
	background: transparent;
	color: #6b7280;
	border-color: #e5e7eb;
}

.pinha-b2c-btn--markup:hover,
.pinha-b2c-btn--markup:focus {
	background: #f3f4f6;
	color: #111827;
	border-color: #d1d5db;
}

.pinha-b2c-markup-input {
	width: 90px;
	border: 1px solid #e5e7eb;
	border-radius: 9999px;
	padding: 0.375rem 0.75rem;
	font-size: 0.875rem;
	text-align: center;
	outline: none;
	transition: border-color 0.15s;
}

.pinha-b2c-markup-input:focus {
	border-color: #00235a;
}

.pinha-b2c-btn--markup-custom {
	background: #172554;
	color: #fff;
	border-color: #172554;
}

.pinha-b2c-btn--markup-custom:hover,
.pinha-b2c-btn--markup-custom:focus {
	background: #1e3a8a;
	border-color: #1e3a8a;
	color: #fff;
}

.pinha-b2c-btn--reset-prices {
	background: transparent;
	color: #dc2626;
	border-color: #fecaca;
}

.pinha-b2c-btn--reset-prices:hover,
.pinha-b2c-btn--reset-prices:focus {
	background: #fef2f2;
	color: #b91c1c;
	border-color: #fca5a5;
}

.pinha-b2c-table-wrap .pinha-b2c-price-input,
.pinha-b2c-table-wrap .pinha-b2c-qty-input {
	border: 1px solid #d1d5db;
	border-radius: 6px;
	padding: 4px 8px;
	background: #f9fafb;
	transition: border-color 0.15s;
	outline: none;
}

.pinha-b2c-table-wrap .pinha-b2c-price-input:focus,
.pinha-b2c-table-wrap .pinha-b2c-qty-input:focus {
	border-color: #00235a;
	background: #fff;
}

.pinha-b2c-table-wrap .pinha-b2c-price-input {
	width: 90px;
	text-align: right;
}

.pinha-b2c-table-wrap .pinha-b2c-qty-input {
	width: 60px;
	text-align: center;
}

.pinha-b2c-qty-wrap {
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

.pinha-b2c-unit {
	font-size: 11px;
	color: #9ca3af;
}

.pinha-b2c-edit-table {
	table-layout: fixed;
}

.pinha-b2c-edit-table thead th {
	white-space: nowrap;
}

.pinha-b2c-edit-table .pinha-b2c-num,
.pinha-b2c-edit-table .pinha-b2c-subtotal,
.pinha-b2c-edit-table .pinha-b2c-total-value {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.pinha-b2c-subtotal,
.pinha-b2c-total-value {
	text-align: right;
	font-weight: 600;
}

.pinha-b2c-total-label {
	text-align: right;
}

/* ── Consumer data ───────────────────────────────────────────────────────── */

.pinha-b2c-consumer {
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 1px 3px rgba(0,0,0,.06), 0 4px 16px rgba(0,0,0,.06);
	padding: 20px 24px;
	margin-bottom: 20px;
}

.pinha-b2c-consumer h3 {
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: #9ca3af;
	margin: 0 0 14px;
}

.pinha-b2c-consumer__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 12px 16px;
}

.pinha-b2c-consumer__field--name {
	grid-column: span 2;
}

.pinha-b2c-consumer__field--nif {
	grid-column: span 2;
}

.pinha-b2c-consumer__field--phone {
	grid-column: span 2;
}

.pinha-b2c-consumer__field--email {
	grid-column: span 2;
}

.pinha-b2c-consumer__field--wide {
	grid-column: 1 / -1;
}

.pinha-b2c-consumer__field label {
	display: block;
	font-size: 11px;
	font-weight: 600;
	color: #6b7280;
	margin-bottom: 4px;
	text-transform: uppercase;
	letter-spacing: .04em;
}

.pinha-b2c-consumer__field input {
	width: 100%;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	padding: 8px 10px;
	font-size: 14px;
	background: #f9fafb;
	transition: border-color 0.15s;
	outline: none;
}

.pinha-b2c-consumer__field input:focus {
	border-color: #00235a;
	background: #fff;
}

/* ── Notes ───────────────────────────────────────────────────────────────── */

.pinha-b2c-notes {
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 1px 3px rgba(0,0,0,.06), 0 4px 16px rgba(0,0,0,.06);
	padding: 20px 24px;
	margin-bottom: 20px;
}

.pinha-b2c-notes h3 {
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: #9ca3af;
	margin: 0 0 14px;
}

.pinha-b2c-notes textarea {
	width: 100%;
	font-family: inherit;
	font-size: 14px;
	line-height: 1.6;
	color: #1e293b;
	background: #f9fafb;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	padding: 12px 14px;
	resize: vertical;
	outline: none;
	transition: border-color 0.15s, background 0.15s;
	box-sizing: border-box;
}

.pinha-b2c-notes textarea:focus {
	border-color: #00235a;
	background: #fff;
}

.pinha-b2c-notes textarea::placeholder {
	color: #9ca3af;
}

.pinha-b2c-actions {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	margin-top: 20px;
	align-items: center;
}

.pinha-b2c-actions__right {
	margin-left: auto;
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

/* Primary – Guardar */
.pinha-b2c-actions #pinha-b2c-save {
	padding-left: 3rem;
	padding-right: 3rem;
}

.pinha-b2c-actions .button-primary {
	background: #172554;
	color: #fff;
	border-color: #172554;
}
.pinha-b2c-actions .button-primary:hover,
.pinha-b2c-actions .button-primary:focus {
	background: #1e3a8a;
	border-color: #1e3a8a;
	color: #fff;
}

/* Back button – outline */
.pinha-b2c-header__actions .button {
	background: transparent;
	color: #172554;
	border-color: #172554;
}
.pinha-b2c-header__actions .button:hover,
.pinha-b2c-header__actions .button:focus {
	background: #172554;
	color: #fff;
}

/* Print */
.pinha-b2c-btn--print {
	background: #fff;
	color: #374151;
	border-color: #e5e7eb;
	gap: 6px;
}
.pinha-b2c-btn--print:hover,
.pinha-b2c-btn--print:focus {
	background: #f9fafb;
	border-color: #d1d5db;
	color: #111827;
}

/* Restore – green solid */
.pinha-b2c-btn--restore {
	background: #16a34a;
	color: #fff;
	border-color: #16a34a;
}
.pinha-b2c-btn--restore:hover,
.pinha-b2c-btn--restore:focus {
	background: #15803d;
	border-color: #15803d;
	color: #fff;
}

/* List – small action buttons */
.pinha-b2c-table-wrap .button.button-small {
	border-radius: 9999px;
	padding: 0.375rem 0.875rem;
	font-size: 0.75rem;
	font-weight: 600;
}

/* Remove line item */
.pinha-b2c-btn--remove-line {
	background: none;
	border: none;
	color: #d1d5db;
	font-size: 16px;
	line-height: 1;
	cursor: pointer;
	padding: 2px 4px;
	transition: color 0.15s;
}

.pinha-b2c-btn--remove-line:hover {
	color: #dc2626;
}

/* Delete – danger ghost */
.pinha-b2c-btn--delete {
	background: transparent !important;
	color: #dc2626 !important;
	border: 1px solid #fecaca !important;
}
.pinha-b2c-btn--delete:hover,
.pinha-b2c-btn--delete:focus {
	background: #fef2f2 !important;
	border-color: #fca5a5 !important;
	color: #b91c1c !important;
}

/* ── Modal ───────────────────────────────────────────────────────────────── */

.pinha-b2c-modal-overlay {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(15, 23, 42, 0);
	transition: background 0.18s ease;
}

.pinha-b2c-modal-overlay--in {
	background: rgba(15, 23, 42, 0.45);
}

.pinha-b2c-modal-overlay--out {
	background: rgba(15, 23, 42, 0) !important;
}

.pinha-b2c-modal-overlay--out .pinha-b2c-modal-card {
	opacity: 0;
	transform: translateY(6px) scale(0.98);
}

.pinha-b2c-modal-card {
	background: #fff;
	border-radius: 20px;
	border: 1px solid #f1f5f9;
	box-shadow: 0 12px 40px rgba(15, 23, 42, 0.14), 0 2px 8px rgba(15, 23, 42, 0.06);
	padding: 28px 28px 22px;
	min-width: 320px;
	max-width: 440px;
	width: 90vw;
	opacity: 0;
	transform: translateY(6px) scale(0.98);
	transition: opacity 0.18s ease, transform 0.18s ease;
}

.pinha-b2c-modal-overlay--in .pinha-b2c-modal-card {
	opacity: 1;
	transform: translateY(0) scale(1);
}

.pinha-b2c-modal-msg {
	font-size: 14px;
	line-height: 1.6;
	color: #1e293b;
	margin: 0 0 20px;
	white-space: pre-line;
}

.pinha-b2c-modal-footer {
	display: flex;
	justify-content: flex-end;
	gap: 8px;
}

.pinha-b2c-modal-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 9999px;
	padding: 0.5rem 1.25rem;
	font-size: 0.875rem;
	font-weight: 600;
	border: 1px solid #e5e7eb;
	background: transparent;
	color: #475569;
	cursor: pointer;
	transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.pinha-b2c-modal-btn:hover {
	background: #f8fafc;
	border-color: #cbd5e1;
}

.pinha-b2c-modal-btn--primary {
	background: #172554;
	color: #fff;
	border-color: #172554;
}

.pinha-b2c-modal-btn--primary:hover {
	background: #1e3a8a;
	border-color: #1e3a8a;
	color: #fff;
}

/* ── Print media ─────────────────────────────────────────────────────────── */

@media print {
	.pinha-b2c-actions,
	.pinha-b2c-header .button,
	.pinha-b2c-price-input {
		display: none !important;
	}
}
