.tanoro-order [hidden],
.tanoro-checkout-page [hidden],
.tanoro-overlay[hidden],
.tanoro-bar[hidden] {
	display: none !important;
}

.tanoro-order {
	max-width: 1200px;
	margin: 0 auto;
}

/* Kategorinav */
.tanoro-nav {
	position: sticky;
	top: 0;
	z-index: 50;
	display: flex;
	gap: 0.4rem;
	overflow-x: auto;
	padding: 0.5rem 0;
	margin: 0.4rem 0 0.5rem !important;
	background: #fff;
	border-bottom: 1px solid rgba(0, 0, 0, 0.08);
	scrollbar-width: none;
}

.tanoro-nav::-webkit-scrollbar {
	display: none;
}

.tanoro-nav a {
	flex: 0 0 auto;
	font-size: 0.95rem;
	padding: 0.4rem 0.9rem;
	border-radius: 999px;
	border: 1px solid transparent;
	color: inherit;
	text-decoration: none;
	font-weight: 600;
	white-space: nowrap;
}

.tanoro-nav a span {
	font-weight: 400;
	color: #8a8a8a;
}

.tanoro-nav a.tanoro-active {
	color: #a92318;
	background: #fbeeed;
	border-color: #f1c9c5;
}

.tanoro-section {
	scroll-margin-top: 70px;
}

/* Två kolumner: produkter + varukorg */
.tanoro-layout {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2rem;
	align-items: start;
}

@media (min-width: 900px) {
	.tanoro-layout {
		grid-template-columns: minmax(0, 1fr) 340px;
	}
	.tanoro-bar {
		display: none !important;
	}
	.tanoro-has-bar {
		padding-bottom: 0;
	}
}

/* Sidokolumn: varukorg */
.tanoro-cart {
	display: none;
	position: sticky;
	top: 70px;
	padding: 1.25rem;
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 1px 6px rgba(0, 0, 0, 0.08);
}

@media (min-width: 900px) {
	.tanoro-cart {
		display: block;
	}
}

.tanoro-cart-head {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	padding-bottom: 0.75rem;
	border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.tanoro-cart-head h3 {
	margin: 0;
	font-size: 1.2rem;
	font-weight: 800;
}

.tanoro-cart-head span {
	color: #8a8a8a;
	font-size: 0.9rem;
}

.tanoro-cart-lines,
.tanoro-summary {
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

.tanoro-cart-lines li {
	display: grid;
	grid-template-columns: 56px 1fr auto;
	gap: 0.75rem;
	align-items: start;
	margin: 0 !important;
	padding: 0.9rem 0 !important;
	border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.tanoro-cart-thumb {
	width: 56px;
	height: 56px;
	border-radius: 8px;
	background: #f2f2f2 center / cover no-repeat;
}

.tanoro-cart-info {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	padding-top: 0.35rem;
}

.tanoro-cart-name {
	color: #555;
}

.tanoro-cart-right {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 0.4rem;
}

.tanoro-cart-price {
	font-weight: 700;
}

.tanoro-cart-ctrl {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	border: 1px solid rgba(0, 0, 0, 0.15);
	border-radius: 999px;
	padding: 0.3rem 0.7rem;
}

.tanoro-cart-ctrl button {
	border: none;
	background: none;
	cursor: pointer;
	font-size: 1rem;
	line-height: 1;
	padding: 0;
	color: #333;
}

.tanoro-cart-ctrl span {
	min-width: 1.2em;
	text-align: center;
	font-weight: 600;
}

.tanoro-cart-empty {
	color: #8a8a8a;
	padding: 1.25rem 0 0.5rem;
	margin: 0;
	text-align: center;
}

.tanoro-cart-empty p {
	margin: 0.75rem 0 0;
}

.tanoro-empty-svg {
	width: 100%;
	max-width: 220px;
	height: auto;
	display: block;
	margin: 0 auto;
}

.tanoro-pickup-note {
	display: inline-block;
	margin: 0 !important;
	padding: 0.35rem 0.8rem;
	border-radius: 999px;
	background: #fbeeed;
	color: #a92318;
	font-size: 0.85rem;
	font-weight: 600;
}

.tanoro-help {
	margin: 1.5rem 0 0.5rem !important;
	text-align: center;
	font-size: 0.9rem;
	color: #8a8a8a;
}

.tanoro-help a {
	color: #a92318;
	font-weight: 600;
}

.tanoro-cart-totals {
	margin: 1rem 0;
	padding: 0.9rem 1rem;
	background: #f7f7f7;
	border-radius: 10px;
}

.tanoro-cart-totals > div {
	display: flex;
	justify-content: space-between;
	padding: 0.35rem 0;
	color: #555;
}

.tanoro-cart-grand {
	font-weight: 700;
	font-size: 1.05rem;
	color: #111 !important;
}

.tanoro-cart-btn {
	display: block;
	text-align: center;
	background: #a92318;
	color: #fff !important;
	text-decoration: none !important;
	font-weight: 700;
	padding: 0.9rem;
	border-radius: 999px;
}

.tanoro-cat {
	margin: 1.25rem 0 0.75rem;
	font-size: 1.4rem;
	font-weight: 800;
}

.tanoro-products {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.25rem;
	margin-bottom: 2rem;
}

@media (min-width: 640px) {
	.tanoro-products {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* Produktkort: bild överst, namn, beskrivning, pris + röd plusknapp */
.tanoro-product {
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 1px 6px rgba(0, 0, 0, 0.08);
	overflow: hidden;
}

.tanoro-card-img {
	width: 100%;
	aspect-ratio: 4 / 3;
	background-size: cover;
	background-position: center;
}

.tanoro-card-body {
	padding: 0.85rem 1rem 1rem;
}

.tanoro-card-name {
	margin: 0 0 0.15rem !important;
	padding: 0 !important;
	font-size: 1.1rem;
	line-height: 1.3;
	font-weight: 800;
}

.tanoro-card-desc {
	margin: 0 0 0.5rem !important;
	padding: 0 !important;
	color: #8a8a8a;
	font-size: 0.9rem;
	line-height: 1.35;
}

.tanoro-card-foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.tanoro-card-price {
	font-size: 1.05rem;
	font-weight: 800;
	line-height: 1;
	margin: 0 !important;
}

.tanoro-card-add,
.tanoro-card-add:hover,
.tanoro-card-add:focus {
	flex: 0 0 36px;
	width: 36px !important;
	height: 36px !important;
	min-width: 0 !important;
	min-height: 0 !important;
	max-width: 36px;
	padding: 0 !important;
	margin: 0;
	border: none !important;
	border-radius: 50% !important;
	box-sizing: border-box;
	background: #a92318 !important;
	color: #fff !important;
	font-size: 1.15rem;
	font-weight: 400;
	line-height: 1;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-shadow: none;
	text-shadow: none;
}

/* Popup */
.tanoro-noscroll {
	overflow: hidden;
}

.tanoro-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.5);
	z-index: 9999;
	display: flex;
	align-items: flex-end;
	justify-content: center;
}

.tanoro-sheet {
	position: relative;
	width: 100%;
	max-width: 560px;
	max-height: 92vh;
	background: #fff;
	border-radius: 20px 20px 0 0;
	overflow-y: auto;
}

@media (min-width: 640px) {
	.tanoro-overlay {
		align-items: center;
	}
	.tanoro-sheet {
		border-radius: 20px;
	}
}

.tanoro-close,
.tanoro-close:hover,
.tanoro-close:focus {
	position: absolute;
	top: 14px;
	right: 14px;
	width: 44px !important;
	height: 44px !important;
	min-width: 0 !important;
	min-height: 0 !important;
	padding: 0 !important;
	margin: 0 !important;
	border: none !important;
	border-radius: 50% !important;
	background: #fff !important;
	color: #222 !important;
	font-size: 1.6rem !important;
	font-weight: 400;
	line-height: 1 !important;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: 0 1px 6px rgba(0, 0, 0, 0.15);
	text-shadow: none;
	z-index: 1;
}

.tanoro-sheet-img {
	width: 100%;
	aspect-ratio: 16 / 11;
	background-size: cover;
	background-position: center;
}

.tanoro-sheet-body {
	padding: 1.25rem 1.25rem 0.5rem;
}

.tanoro-sheet-body h3 {
	margin: 0 0 0.25rem;
	font-size: 1.5rem;
	font-weight: 800;
}

.tanoro-sheet-desc {
	margin: 0 0 1rem;
	color: #8a8a8a;
}

.tanoro-sheet-label {
	display: block;
	font-size: 1.15rem;
	margin-bottom: 0.5rem;
}

.tanoro-sheet-body textarea {
	width: 100%;
	box-sizing: border-box;
	font: inherit;
	padding: 0.7rem 0.9rem;
	border: 1px solid rgba(0, 0, 0, 0.2);
	border-radius: 12px;
	resize: vertical;
}

.tanoro-sheet-footer {
	display: flex;
	gap: 0.9rem;
	align-items: center;
	padding: 1rem 1.25rem 1.25rem;
	position: sticky;
	bottom: 0;
	background: #fff;
	box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.06);
}

.tanoro-stepper {
	display: flex;
	align-items: center;
	gap: 0.9rem;
	background: #f5f3f1;
	border-radius: 999px;
	padding: 0.55rem 1rem;
}

.tanoro-stepper button {
	border: none;
	background: none;
	color: #a92318;
	font-size: 1.4rem;
	line-height: 1;
	cursor: pointer;
	padding: 0;
}

.tanoro-stepper span {
	min-width: 1.2em;
	text-align: center;
	font-weight: 700;
	font-size: 1.1rem;
}

.tanoro-add {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	border: none;
	border-radius: 999px;
	background: #a92318;
	color: #fff;
	font: inherit;
	font-weight: 700;
	font-size: 1.05rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	padding: 0.9rem 1.4rem;
	cursor: pointer;
}

/* Kassa */
.tanoro-checkout {
	margin-top: 2.5rem;
	padding: 1.25rem;
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 1px 6px rgba(0, 0, 0, 0.08);
}

.tanoro-summary {
	list-style: none;
	margin: 0 0 0.5rem;
	padding: 0;
}

.tanoro-summary li {
	display: grid;
	grid-template-columns: 48px 1fr auto;
	align-items: center;
	gap: 0.75rem;
	margin: 0 !important;
	padding: 0.5rem 0 !important;
	border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.tanoro-line-thumb {
	width: 48px;
	height: 48px;
	border-radius: 8px;
	background: #f2f2f2 center / cover no-repeat;
}

.tanoro-line-text {
	display: flex;
	flex-direction: column;
	gap: 0.1rem;
}

.tanoro-line-sum {
	font-weight: 700;
	white-space: nowrap;
}

.tanoro-line-note {
	color: #8a8a8a;
}

.tanoro-line-remove {
	border: none;
	background: none;
	color: #a92318;
	font-size: 1.2rem;
	line-height: 1;
	cursor: pointer;
	padding: 0 0.3rem;
}

.tanoro-empty {
	color: #8a8a8a;
}

.tanoro-total {
	font-size: 1.1rem;
	font-weight: 700;
	text-align: right;
	margin: 0.75rem 0 0 !important;
}

.tanoro-paynote {
	font-size: 0.9rem;
	color: #8a8a8a;
}

.tanoro-fields {
	display: grid;
	gap: 0.9rem;
	margin: 1rem 0;
}

.tanoro-fields label {
	display: grid;
	gap: 0.25rem;
	font-weight: 600;
	font-size: 0.9rem;
}

.tanoro-fields input,
.tanoro-fields select,
.tanoro-fields textarea {
	font: inherit;
	padding: 0.6rem 0.8rem;
	border: 1px solid rgba(0, 0, 0, 0.2);
	border-radius: 10px;
	width: 100%;
	box-sizing: border-box;
}

.tanoro-hp {
	position: absolute;
	left: -9999px;
}

.tanoro-submit {
	width: 100%;
	padding: 0.9rem;
	font: inherit;
	font-weight: 700;
	border: none;
	border-radius: 999px;
	background: #a92318;
	color: #fff;
	cursor: pointer;
}

.tanoro-submit:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.tanoro-error {
	color: #a92318;
	font-weight: 600;
}

.tanoro-done {
	margin-top: 2rem;
	padding: 1.25rem;
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 1px 6px rgba(0, 0, 0, 0.08);
}

/* Fast kassarad på beställningssidan */
.tanoro-has-bar {
	padding-bottom: 88px;
}

.tanoro-bar {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 9000;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.85rem 1.25rem;
	padding-bottom: calc(0.85rem + env(safe-area-inset-bottom));
	background: #fff;
	box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.1);
}

.tanoro-bar-info {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	line-height: 1.3;
	color: #222;
	background: none;
	border: none;
	padding: 0;
	margin: 0;
	font: inherit;
	text-align: left;
	cursor: pointer;
	flex: 1;
}

.tanoro-bar-total,
.tanoro-bar-count,
.tanoro-cart-head span,
.tanoro-clear,
.tanoro-cart-name {
	text-transform: none !important;
	letter-spacing: normal !important;
}

.tanoro-bar-total {
	font-size: 1.1rem;
}

.tanoro-bar-count {
	font-size: 0.85rem;
	color: #8a8a8a;
}

.tanoro-bar-btn {
	display: inline-block;
	background: #a92318;
	color: #fff !important;
	text-decoration: none !important;
	font-weight: 700;
	padding: 0.8rem 2rem;
	border-radius: 999px;
}

/* Kassasidan */
.tanoro-checkout-page {
	max-width: 640px;
	margin: 0 auto;
}

.tanoro-back {
	display: inline-block;
	margin-bottom: 1rem;
	color: #a92318;
	text-decoration: none;
	font-weight: 600;
}

.tanoro-empty-state,
.tanoro-checkout-page .tanoro-checkout {
	margin-top: 0;
}

.tanoro-empty-state {
	padding: 1.5rem;
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 1px 6px rgba(0, 0, 0, 0.08);
	text-align: center;
}

.tanoro-summary-foot {
	display: flex;
	flex-direction: row-reverse;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}

.tanoro-clear {
	border: none;
	background: none;
	color: #8a8a8a;
	text-decoration: underline;
	font: inherit;
	font-size: 0.9rem;
	cursor: pointer;
	padding: 0;
}

.tanoro-btn-link {
	display: block;
	text-align: center;
	text-decoration: none !important;
	color: #fff !important;
	box-sizing: border-box;
	margin-top: 1rem;
}

.tanoro-conf-meta {
	font-size: 1.05rem;
	line-height: 1.6;
}

.tanoro-cart-clear {
	display: block;
	margin: 0.75rem auto 0;
}

.tanoro-logo {
	display: block;
	max-width: 160px;
	margin: 0 auto 1rem;
}

/* Varukorgspanel på mobil */
.tanoro-cart-close {
	display: none;
	margin-left: auto;
	border: none;
	background: none;
	font-size: 1.6rem;
	line-height: 1;
	cursor: pointer;
	padding: 0 0.2rem;
	color: #333;
}

.tanoro-cart-backdrop {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.5);
	z-index: 9100;
}

@media (max-width: 899px) {
	.tanoro-cart-open .tanoro-cart {
		display: block;
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		top: auto;
		z-index: 9200;
		max-height: 80vh;
		overflow-y: auto;
		border-radius: 20px 20px 0 0;
		box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.2);
		padding-bottom: calc(1.25rem + env(safe-area-inset-bottom));
	}
	.tanoro-cart-open .tanoro-cart-close {
		display: block;
	}
	.tanoro-cart-open .tanoro-bar {
		display: none;
	}
}

.tanoro-cart-head {
	gap: 0.6rem;
}

.tanoro-cart-head span {
	margin-left: auto;
}

.tanoro-cart-head .tanoro-cart-close {
	margin-left: 0;
}


/* Bekräftelsesidan: luft mellan Totalt och texten under */
.tanoro-done .tanoro-total {
	margin-bottom: 1.5rem !important;
}

/* Betalningsruta i kassan */
.tanoro-payment {
	margin: 0.5rem 0 1rem;
	padding: 0.9rem 1rem;
	border: 1px solid rgba(0, 0, 0, 0.12);
	border-radius: 12px;
	background: #fafafa;
}

.tanoro-payment p {
	margin: 0.35rem 0 0 !important;
	font-size: 0.95rem;
	color: #444;
}

.tanoro-payment-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.tanoro-payment-title {
	font-weight: 700;
}

.tanoro-cards {
	display: inline-flex;
	gap: 0.4rem;
	align-items: center;
}

.tanoro-card-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 24px;
	border-radius: 4px;
	background: #fff;
	border: 1px solid rgba(0, 0, 0, 0.15);
	font-size: 0.6rem;
	font-weight: 800;
	letter-spacing: 0.02em;
}

.tanoro-card-visa {
	color: #1a1f71;
	font-style: italic;
}

.tanoro-card-mc {
	gap: 0;
}

.tanoro-card-mc i {
	display: block;
	width: 13px;
	height: 13px;
	border-radius: 50%;
	opacity: 0.9;
}

.tanoro-card-mc i:first-child {
	background: #eb001b;
	margin-right: -5px;
}

.tanoro-card-mc i:last-child {
	background: #f79e1b;
}

/* Rubrik med räknare på kassa- och bekräftelsesidan */
.tanoro-checkout .tanoro-cart-head,
.tanoro-done .tanoro-cart-head {
	margin-bottom: 0.5rem;
}

.tanoro-checkout .tanoro-cart-head h3,
.tanoro-done .tanoro-cart-head h4 {
	margin: 0 !important;
	font-size: 1.2rem;
	font-weight: 800;
}

.tanoro-done .tanoro-cart-head {
	margin-top: 1.25rem;
}

.tanoro-checkout .tanoro-pickup-note {
	margin-bottom: 0.75rem !important;
}

/* Skrivbart antal */
.tanoro-stepper input,
.tanoro-cart-ctrl input {
	width: 2.6em !important;
	min-width: 0 !important;
	padding: 0 !important;
	margin: 0 !important;
	border: none !important;
	background: transparent !important;
	text-align: center;
	font: inherit;
	font-weight: 700 !important;
	-moz-appearance: textfield;
	appearance: textfield;
	box-shadow: none !important;
}

.tanoro-stepper input::-webkit-outer-spin-button,
.tanoro-stepper input::-webkit-inner-spin-button,
.tanoro-cart-ctrl input::-webkit-outer-spin-button,
.tanoro-cart-ctrl input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.tanoro-stepper input {
	font-size: 1.1rem;
}
