/**
 * All of the CSS for your public-facing functionality should be
 * included in this file.
 */
#billing_invoice_field .optional{display:none}
.select2-container {
    width: 100% !important;
}
.select2-container--open{z-index: 100000!important;}

#billing_invoice_field input[type="radio"] {margin-right: 0.3342343017em;}
#billing_invoice_field label[for="billing_invoice_n"],#billing_invoice_field label[for="billing_invoice_y"]{display: inline-block;}
#billing_invoice_field input#billing_invoice_y {margin-left:20px}

/* ── Select2 focus border (match input border for consistency) ─ */
.webexpert-timologio-settings-wrap .select2-container--default.select2-container--focus .select2-selection--multiple,
.webexpert-timologio-settings-wrap .select2-container--default.select2-container--focus .select2-selection--single {
	border-color: #d0d5dd;
}

/* ── Select2 default border (match input border) ─ */
.webexpert-timologio-settings-wrap .select2-container--default .select2-selection--multiple,
.webexpert-timologio-settings-wrap .select2-container--default .select2-selection--single {
	border-color: #d0d5dd;
}

/* ── Απόδειξη / Τιμολόγιο segmented toggle (radio mode) ─────────
   Full width, same height and roundness as the inputs, light thumb.
   Overrides Core's older black-block styling; radios stay focusable. */
#billing_invoice_field.we-doc-toggle .woocommerce-input-wrapper {
	position: relative;
	display: grid !important;
	grid-template-columns: 1fr 1fr;
	gap: 4px;
	width: 100% !important;
	padding: 4px;
	box-sizing: border-box;
	background: var(--we-input-bg, #f5f5f5);
	border: 1px solid var(--we-input-border, #dcd5cb);
	border-radius: var(--we-roundness, 10px);
	overflow: visible;
}
#billing_invoice_field.we-doc-toggle input[type="radio"] {
	display: block !important;
	position: absolute !important;
	opacity: 0;
	width: 1px;
	height: 1px;
	margin: 0 !important;
	pointer-events: none;
}
#billing_invoice_field.we-doc-toggle label.radio {
	display: flex !important;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 44px;
	margin: 0 !important;
	padding: 0 12px;
	border: 0;
	border-radius: calc(var(--we-roundness, 10px) * .75);
	background: transparent;
	color: #666;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.2;
	white-space: nowrap;
	cursor: pointer;
	transition: background .15s, color .15s, box-shadow .15s;
}
#billing_invoice_field.we-doc-toggle label.radio::before {
	content: "";
	width: 18px;
	height: 18px;
	flex: none;
	background: currentColor;
	-webkit-mask: var(--we-doc-icon) center / contain no-repeat;
	mask: var(--we-doc-icon) center / contain no-repeat;
}
#billing_invoice_field.we-doc-toggle label[for="billing_invoice_n"] {
	--we-doc-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 3h12v18l-3-2-3 2-3-2-3 2z'/%3E%3Cpath d='M9 8h6M9 12h6'/%3E%3C/svg%3E");
}
#billing_invoice_field.we-doc-toggle label[for="billing_invoice_y"] {
	--we-doc-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 21V7l8-4 8 4v14'/%3E%3Cpath d='M9 21v-6h6v6M9 10h.01M15 10h.01'/%3E%3C/svg%3E");
}
#billing_invoice_field.we-doc-toggle input:checked + label.radio {
	background: #fff;
	color: #111;
	font-weight: 600;
	box-shadow: 0 1px 3px rgba(0, 0, 0, .12), 0 0 0 1px var(--we-input-border, #dcd5cb);
}
#billing_invoice_field.we-doc-toggle input:focus-visible + label.radio {
	outline: 2px solid var(--we-brand, #111);
	outline-offset: 2px;
}
@media (hover: hover) {
	#billing_invoice_field.we-doc-toggle input:not(:checked) + label.radio:hover { color: #111; }
}
@media (prefers-reduced-motion: reduce) {
	#billing_invoice_field.we-doc-toggle label.radio { transition: none; }
}

/* ΑΦΜ lookup result under the field */
#billing_vat_id_field .we-vat-status {
	display: flex;
	align-items: flex-start;
	gap: 6px;
	margin-top: 6px;
	padding: 8px 10px;
	border-radius: calc(var(--we-roundness, 10px) * .75);
	font-size: 13px;
	line-height: 1.4;
}
#billing_vat_id_field .we-vat-status--found {
	background: #e9f6ef;
	color: #14532d;
}
#billing_vat_id_field .we-vat-status--found::before {
	content: "✓";
	font-weight: 700;
	color: var(--we-success, #2a9d60);
}
#billing_vat_id_field .we-vat-status--missing {
	background: #fff6e5;
	color: #7a4b00;
}
