/* main/cart.css  -  the new full page cart and checkout (22/09/2026)
 * The PUBLIC site's colours (main/css/main.css): pale blue page #def, white
 * panel, teal #008fb9 for links, headings and buttons, grey text, the red
 * #be0217 for errors. The first version wore the back office's world map and
 * navy panels, which is the service system's look, not the shop's (Dimitar,
 * 22/09/2026). Layout is still the check-in form's: one card, 50px inputs,
 * a phone first. Used by main/cart.php and main/order.php. */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; min-height: 100%; }
body {
	color: #444;
	font: normal 16px/1.45 Arial, Verdana, sans-serif;
	background: #def;
	padding: 16px 12px 40px 12px;
}
/* inside main/cart_modal.js's iframe: the modal is the panel, so no page
 * colour, no second frame around the card, room for the close button */
body.in-modal { background: #fff; padding: 10px 8px 30px 8px; }
body.in-modal .card { border: 0; box-shadow: none; padding-top: 12px; }
body.in-modal .head { padding: 0 44px; }
/* 'Continue shopping' stays flush right; without the TEST MODE strip above it
 * the row drops below the round close button instead of sitting under it */
body.in-modal > main.card:first-child .h2row { margin-top: 38px; }
.testbar {
	max-width: 640px;
	margin: 0 auto 12px auto;
	background: #b8860b;
	color: #fff;
	font-weight: bold;
	font-size: 14px;
	letter-spacing: 0.04em;
	text-align: center;
	border-radius: 10px;
	padding: 10px 12px;
}
.card {
	max-width: 640px;
	margin: 0 auto;
	background: #fff;
	border: 1px solid #ccc;
	border-radius: 14px;
	padding: 22px 20px 26px 20px;
	box-shadow: 0 4px 18px rgba(0, 60, 90, 0.12);
}
.head { text-align: center; margin-bottom: 8px; }
.head h1 { font-size: 26px; line-height: 1.2; margin: 0 0 4px 0; font-weight: bold; color: #008fb9; }
.head .org { margin: 0; color: #777; font-size: 14px; }

.step { border-top: 1px solid #dbecfb; padding-top: 16px; margin-top: 16px; }
.card > .step:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
.step h2 { font-size: 18px; margin: 0 0 12px 0; font-weight: bold; color: #008fb9; }
/* step 1: the heading with 'Continue shopping' on the same line, right */
.h2row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.h2row h2 { margin: 0; }
.h2row .back { font-size: 15px; white-space: nowrap; margin-left: auto; text-align: right; }
.step h2 .n {
	display: inline-block; width: 26px; height: 26px; line-height: 26px; text-align: center;
	border-radius: 50%; background: #008fb9; color: #fff; font-size: 14px; margin-right: 10px;
}

.field { margin-bottom: 14px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; }
.row .grow { flex: 1 1 180px; }
.row .small { flex: 0 0 120px; }
label { display: block; font-size: 13px; letter-spacing: 0.02em; text-transform: uppercase; color: #777; margin-bottom: 5px; }
label .opt { text-transform: none; letter-spacing: 0; color: #777; font-size: 12px; }
input[type=text], input[type=tel], input[type=email], select {
	width: 100%;
	font: inherit;
	font-size: 17px;
	color: #222;
	background: #f2f8fd;
	border: 1px solid #b9cfdf;
	border-radius: 9px;
	height: 50px;
	padding: 0 13px;
	outline: none;
}
select {
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	padding-right: 34px;
	background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23008fb9' stroke-width='2'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
}
input:focus, select:focus { box-shadow: 0 0 0 3px rgba(0, 143, 185, 0.35); border-color: #008fb9; background-color: #fff; }
.hint { margin: 6px 0 0 0; font-size: 13px; color: #777; }
.err { margin: 5px 0 0 0; font-size: 13px; color: #be0217; }
.err:empty { display: none; }
.err.big { font-size: 15px; margin: 10px 0; }
.field.has-err input, .field.has-err select { box-shadow: 0 0 0 3px rgba(190, 2, 23, 0.35); border-color: #be0217; }
.big { font-size: 20px; }
a, a:visited { color: #008fb9; }
a.link { color: #008fb9; text-decoration: underline; }

/* the cart lines */
.item {
	display: grid;
	grid-template-columns: 1fr 110px 110px 110px;
	gap: 6px 10px;
	align-items: center;
	padding: 12px 0;
	border-bottom: 1px solid #dbecfb;
}
.iname { font-weight: bold; color: #333; }
.iqty { display: flex; align-items: center; gap: 8px; }
.iqty label { margin: 0; flex: 0 0 auto; }
.iqty input { width: 68px; height: 44px; text-align: center; }
.iprice, .iline { text-align: right; white-space: nowrap; }
.lbl { display: none; color: #777; font-size: 12px; margin-right: 6px; }
@media screen and (max-width: 640px) {
	.item { grid-template-columns: 1fr auto; }
	.iname { grid-column: 1 / -1; }
	.iqty { grid-column: 1 / -1; }
	.lbl { display: inline; }
	.row .small { flex: 1 1 130px; }
}

.sums { margin-top: 14px; }
.sum { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; }
.sum small { color: #777; }
.sum .num { white-space: nowrap; }
.sum.sep { border-top: 1px solid #dbecfb; margin-top: 8px; padding-top: 10px; }
.sum.grand { font-size: 20px; font-weight: bold; color: #222; }
.sum.save { color: #1a7a3a; }
.paybar { border-top: 1px solid #dbecfb; margin-top: 14px; padding-top: 12px; }

.blocked {
	border: 1px solid #be0217;
	border-radius: 10px;
	padding: 12px 14px;
	margin-bottom: 14px;
	background: #fde;
}
.bline { display: flex; gap: 10px; align-items: center; justify-content: space-between; padding: 5px 0; }

.addr { position: relative; }
.suggest {
	position: absolute; left: 0; right: 0; top: 100%; z-index: 5;
	list-style: none; margin: 4px 0 0 0; padding: 4px 0;
	background: #fff; color: #222; border: 1px solid #b9cfdf; border-radius: 9px;
	box-shadow: 0 8px 24px rgba(0, 60, 90, 0.2); max-height: 240px; overflow: auto;
}
.suggest li { padding: 10px 13px; cursor: pointer; font-size: 15px; }
.suggest li:hover, .suggest li.on { background: #dbecfb; }
.suggest li.none { color: #777; cursor: default; }

.policy {
	font-size: 15px;
	line-height: 1.5;
	color: #333;
	background: #f2f8fd;
	border: 1px solid #008fb9;
	border-radius: 10px;
	padding: 12px 14px;
	margin: 0 0 14px 0;
}
.accept {
	display: flex; gap: 10px; align-items: flex-start;
	text-transform: none; letter-spacing: 0; font-size: 16px; color: #444; cursor: pointer;
}
.accept input { width: 22px; height: 22px; margin: 2px 0 0 0; flex: 0 0 22px; accent-color: #008fb9; }

.pay { margin: 16px 0 10px 0; }
.payopt {
	display: flex; gap: 10px; align-items: flex-start;
	text-transform: none; letter-spacing: 0; font-size: 16px; color: #444; cursor: pointer;
	border: 1px solid #b9cfdf;
	border-radius: 10px; padding: 12px 14px; margin-bottom: 10px;
}
.payopt input { width: 22px; height: 22px; margin: 2px 0 0 0; flex: 0 0 22px; accent-color: #008fb9; }
.payopt small { color: #777; }
.bank {
	border: 1px solid #b9cfdf;
	border-radius: 10px; padding: 12px 14px; margin-bottom: 10px;
	background: #f2f8fd;
}

button.primary {
	display: block; width: 100%; margin-top: 8px;
	font: inherit; font-size: 18px; font-weight: bold; color: #fff; cursor: pointer;
	background: #008fb9; border: 0; border-radius: 10px; padding: 15px;
}
button.primary:hover { background: #007597; }
button.primary[disabled] { opacity: 0.6; cursor: wait; }
button.secondary, button.small {
	font: inherit; font-size: 16px; color: #008fb9; cursor: pointer;
	background: #fff; border: 1px solid #008fb9;
	border-radius: 10px; padding: 13px 18px;
}
button.small { font-size: 14px; padding: 8px 12px; }
button.secondary:hover, button.small:hover { background: #dbecfb; }
.btns { display: flex; gap: 10px; align-items: center; margin-top: 14px; }
.btns.wrap { flex-wrap: wrap; }
.btns.center { justify-content: center; }

/* the order page */
.backrow { margin: 8px 0 0 0; text-align: right; font-size: 15px; }
a.btnlink, a.btnlink:visited { display: inline-block; color: #fff; background: #008fb9; border-radius: 10px; padding: 12px 18px; text-decoration: none; font-weight: bold; }
a.btnlink:hover { background: #007597; }
.status { font-size: 18px; font-weight: bold; border-radius: 10px; padding: 12px 14px; margin: 0 0 14px 0; }
.status.paid { background: #e3f5e8; border: 1px solid #1a7a3a; color: #1a7a3a; }
.status.unpaid { background: #fff4dc; border: 1px solid #b8860b; color: #7a5800; }
.status.pending { background: #f2f8fd; border: 1px solid #008fb9; color: #00769a; }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; }
.kv .k { color: #777; }
