/* govostis.gr - Πεδία διεύθυνσης: Χώρα / ΤΚ / Πόλη / Νομός (includes/modules/gov_address_fields.php, js/gov_address.js) */
/* Τα dropdown παίρνουν το στυλ της φόρμας (δεν ορίζεται εδώ δικό τους) */

.gaf_postcode_hint {
	margin: -6px 0 8px 14px;
	font-size: 12.5px;
	color: #666;
}
.gaf_postcode_hint:empty { display: none; }
.gaf_postcode_hint.gaf_hint_error { color: #c0392b; font-weight: 600; }
.gaf_disprositi.active {
	margin: -4px 0 10px 14px;
	font-size: 13px;
	color: #b9770e;
	font-weight: 600;
}
.form_required_note {
	display: block;
	margin: 6px 0 12px;
	font-size: 13px;
	text-align: left;
}

/* ---------- Καλάθι: εκτίμηση μεταφορικών (shopping_cart.php) ---------- */
table.basket tr.ga-shipcalc-row td.ga-shipcalc-cell {
	padding: 16px 20px;
	text-align: right;
	vertical-align: middle;
	background: #fafbfc;
}
table.basket tr.ga-shipcalc-row td.ga-shipcalc-price {
	vertical-align: middle;
	background: #fafbfc;
	white-space: nowrap;
}
.ga-shipcalc {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 8px 12px;
	font-family: 'Fira Sans', sans-serif;
	font-size: 16px;
	color: #222;
}
.ga-shipcalc-label {
	font-weight: 600;
	white-space: nowrap;
}
.ga-shipcalc-label .fa {
	color: #0a5a9f;
	margin-right: 4px;
}
.ga-shipcalc-field {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	font-weight: 400;
}
.ga-shipcalc-to {
	color: #666;
	white-space: nowrap;
}
.ga-shipcalc-select {
	min-width: 220px;
	max-width: 100%;
	height: 40px;
	padding: 0 34px 0 12px;
	font-family: inherit;
	font-size: 15px;
	color: #222;
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%230a5a9f' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 12px center;
	border: 1px solid #c9ced8;
	border-radius: 4px;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	cursor: pointer;
}
.ga-shipcalc-select:hover { border-color: #0a5a9f; }
.ga-shipcalc-select:focus {
	outline: none;
	border-color: #0a5a9f;
	box-shadow: 0 0 0 3px rgba(10, 90, 159, .15);
}
.ga-shipcalc-note {
	margin-top: 6px;
	font-size: 13px;
	line-height: 1.4;
	color: #666;
}
.ga-shipcalc-note:empty { display: none; }
.ga-shipcalc-note strong { color: #0a5a9f; }
#shipcost .ga-ship-free { color: #1d9122; }
#shipcost .fa-spinner { font-size: 20px; color: #9aa3b2; }

@media (max-width: 767px) {
	.ga-shipcalc { justify-content: flex-start; }
	.ga-shipcalc-field { flex: 1 1 100%; }
	.ga-shipcalc-select { flex: 1 1 auto; min-width: 0; width: 100%; }
	table.basket tr.ga-shipcalc-row td.ga-shipcalc-cell { text-align: left; }
}

/* ---------- Καλάθι: ποσότητα (−  1  +) και αφαίρεση ---------- */
table.basket tr th.quantity,
table.basket tr td.quantity {
	width: 150px;
}
table.basket tr .quantity .ga-qty {
	display: inline-flex;
	align-items: stretch;
	height: 36px;
	border: 1px solid #c9ced8;
	border-radius: 18px;
	background: #fff;
	overflow: hidden;
	float: none;
	width: auto;
	transition: border-color .15s ease, box-shadow .15s ease;
}
table.basket tr .quantity .ga-qty:hover,
table.basket tr .quantity .ga-qty:focus-within {
	border-color: #0a5a9f;
}
table.basket tr .quantity .ga-qty:focus-within {
	box-shadow: 0 0 0 3px rgba(10, 90, 159, .15);
}
table.basket tr .quantity .ga-qty a.ga-qty-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: auto;
	margin: 0;
	padding: 0;
	font-family: Arial, sans-serif;
	font-size: 18px;
	font-weight: 400;
	line-height: 1;
	color: #0a5a9f;
	background: #f4f6f9;
	-webkit-user-select: none;
	user-select: none;
	text-decoration: none;
	clear: none;
	transition: background .15s ease, color .15s ease;
}
table.basket tr .quantity .ga-qty a.ga-qty-btn:hover {
	background: #0a5a9f;
	color: #fff;
	text-decoration: none;
}
table.basket tr .quantity .ga-qty input.quantity_check {
	float: none;
	display: block;
	width: 40px;
	height: auto;
	margin: 0;
	padding: 0;
	border: 0;
	border-left: 1px solid #e3e7ee;
	border-right: 1px solid #e3e7ee;
	border-radius: 0;
	text-align: center;
	font-family: 'Fira Sans', sans-serif;
	font-size: 15px;
	color: #222;
	background: #fff;
	-moz-appearance: textfield;
}
table.basket tr .quantity .ga-qty input.quantity_check:focus {
	outline: none;
}
table.basket tr .quantity .ga-qty.is-busy {
	opacity: .55;
	pointer-events: none;
}
table.basket tr .quantity p a.ga-del-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 4px;
	font-size: 13px;
	color: #8a8f99;
	text-decoration: none;
	transition: color .15s ease;
}
table.basket tr .quantity p a.ga-del-btn:hover {
	color: #d33;
	text-decoration: none;
}
table.basket tr .quantity p a.ga-del-btn .fa {
	font-size: 14px;
}

/* SweetAlert2: γραμματοσειρά του site */
.swal2-popup {
	font-family: 'Fira Sans', sans-serif;
}

@media (max-width: 767px) {
	table.basket tr th.quantity,
	table.basket tr td.quantity { width: 110px; }
	table.basket tr .quantity .ga-qty { height: 34px; }
	table.basket tr .quantity .ga-qty a.ga-qty-btn { width: 30px; }
	table.basket tr .quantity .ga-qty input.quantity_check { width: 34px; }
}

/* ---------- Καλάθι στο κινητό: κάρτες αντί για πίνακα 3 στηλών (να μην ξεχειλώνει) ---------- */
@media only screen and (max-width: 767px) {
	td.shopping_cart {
		display: block;
		width: 100%;
	}
	table.basket {
		display: block;
		width: 100%;
		border: 1px solid #989dab;
		border-bottom: 0;
	}
	table.basket > tbody {
		display: block;
		width: 100%;
	}
	table.basket > tbody > tr {
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto;
		align-items: center;
		border-bottom: 1px solid #989dab;
	}
	table.basket > tbody > tr:first-child {
		display: none;   /* επικεφαλίδες Προϊόν / Ποσότητα / Τιμή */
	}
	table.basket > tbody > tr > th,
	table.basket > tbody > tr > td {
		display: block;
		width: auto !important;
		min-width: 0;
		border: 0 !important;
		padding: 12px 14px !important;
	}
	/* γραμμή προϊόντος: φωτογραφία + όνομα σε όλο το πλάτος, από κάτω ποσότητα (αριστερά) και τιμή (δεξιά) */
	table.basket > tbody > tr > td:first-child:not([colspan]) {
		grid-column: 1 / -1;
		padding-bottom: 4px !important;
	}
	/* φωτογραφία αριστερά, όλο το κείμενο (όνομα, επιλογές, μηνύματα αποθέματος) σε στήλη δεξιά της */
	table.basket tr td .product,
	#main table.basket tr td .product {
		position: relative;
		min-height: 80px;
		padding-left: 94px;
	}
	table.basket tr td .product p.photo,
	#main table.basket tr td .product p.photo {
		position: absolute;
		left: 0;
		top: 0;
		float: none;
		width: 80px !important;
		min-height: 0 !important;
		margin: 0 !important;
	}
	table.basket tr td .product h3:empty {
		display: none;
	}
	table.basket tr td .product p.photo img,
	.shopping_cart td .product p.photo img {
		width: 80px;
		height: auto;
		float: none;
		padding: 0;
	}
	table.basket .product h4 {
		font-size: 15px;
		line-height: 1.35;
	}
	table.basket > tbody > tr > td.quantity {
		display: flex;
		align-items: center;
		flex-wrap: wrap;
		gap: 6px 14px;
		text-align: left;
	}
	table.basket > tbody > tr > td.quantity p,
	#main table.basket > tbody > tr > td.quantity p {
		margin: 0;
		clear: none;
	}
	table.basket tr .quantity p a.ga-del-btn {
		margin-top: 0;
	}
	table.basket > tbody > tr > td.price {
		font-size: 20px !important;
		text-align: right;
		white-space: nowrap;
		align-self: center;
	}
	/* μεταφορικά & σύνολο: περιγραφή αριστερά, ποσό δεξιά */
	table.basket > tbody > tr.ga-shipcalc-row {
		background: #fafbfc;
	}
	table.basket > tbody > tr.ga-shipcalc-row > td.ga-shipcalc-cell {
		text-align: left;
	}
	table.basket > tbody > tr.total > td {
		font-size: 20px !important;
		line-height: 1.4;
	}
	table.basket > tbody > tr.total > td:first-child {
		text-align: left;
	}
}

/* ---------- Καλάθι: πράσινο κουμπί «Ολοκλήρωση» ---------- */
.scart_buttons a.ga-checkout-link {
	display: inline-block;
	text-decoration: none;
}
.scart_buttons .custom_btn.green.ga-checkout-btn {
	background: #3f9a0c;
	padding: 11px 30px;
	font-size: 15px;
	font-weight: 600;
	transition: background .15s ease;
}
.scart_buttons a.ga-checkout-link:hover .custom_btn.green.ga-checkout-btn,
.scart_buttons .custom_btn.green.ga-checkout-btn:hover {
	background: #33800a;
	opacity: 1;
}
