/* ==========================================================================
   Kalon brand override for the oui OntheSide off-canvas sidebar.
   Loaded after 'ots-public'. Most colours come from the plugin's option-driven
   inline CSS (set to the Kalon palette); this file hides the native trigger
   (we open from our own header hamburger) and styles the injected extras
   (cart link + accessibility/consent buttons), defending against the global
   <button> leak.
   ========================================================================== */

/* Hide the plugin's own floating trigger — the header hamburger opens the
   panel instead (it proxy-clicks .ots-trigger, which stays in the DOM). */
.ots-trigger {
	display: none !important;
}

/* Constrain the panel to the viewport height. In "slide" mode the plugin
   transforms <body>, which turns the fixed panel's % height into the (tall)
   document height and pushes the footer content off-screen; this caps it. */
#ots-sidebar.ots-panel {
	height: 100vh !important;
	max-height: 100vh !important;
}
#ots-sidebar .ots-scroll-wrap {
	max-height: 100vh;
	overflow-y: auto;
}

/* Menu typography to match the header nav. */
#ots-sidebar .ots-menu a {
	font-family: "Roboto Slab", serif;
}

/* --- Injected extras: cart link + accessibility/consent ----------------- */
.kalon-ots-extra {
	padding: 16px 20px;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.kalon-ots-cart {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 12px 16px;
	border-radius: 10px;
	background: #e9530d;
	color: #fff;
	text-decoration: none;
	font-family: "Roboto Slab", serif;
	font-size: 15px;
}
.kalon-ots-cart:hover,
.kalon-ots-cart:focus-visible {
	background: #c8460b;
	color: #fff;
}

.kalon-ots-tools {
	display: flex;
	gap: 10px;
}

/* <button> — defend against the global orange-square leak. */
.kalon-ots-extra .kalon-ots-tool {
	flex: 1 1 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 10px 12px !important;
	border: 1px solid rgba(255, 255, 255, 0.14) !important;
	border-radius: 10px !important;
	background: rgba(255, 255, 255, 0.05) !important;
	box-shadow: none !important;
	color: #e8ddd6 !important;
	font-family: "Roboto Slab", serif;
	font-size: 13px;
	cursor: pointer;
}
.kalon-ots-extra .kalon-ots-tool svg {
	stroke: currentColor;
	flex-shrink: 0;
}
.kalon-ots-extra .kalon-ots-tool:hover,
.kalon-ots-extra .kalon-ots-tool:focus-visible {
	background: rgba(233, 83, 13, 0.16) !important;
	border-color: #e9530d !important;
	color: #fff !important;
}

/* Install-app button (PWA) — full width, shown only when installable. */
.kalon-ots-extra .kalon-ots-install {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	padding: 11px 16px !important;
	border: 1px solid #e9530d !important;
	border-radius: 10px !important;
	background: transparent !important;
	box-shadow: none !important;
	color: #e9530d !important;
	font-family: "Roboto Slab", serif;
	font-size: 14px;
	cursor: pointer;
}
.kalon-ots-extra .kalon-ots-install:hover,
.kalon-ots-extra .kalon-ots-install:focus-visible {
	background: #e9530d !important;
	color: #fff !important;
}
.kalon-ots-extra .kalon-ots-install[hidden] {
	display: none;
}

/* TikTok icon injected into the plugin's social row inherits .ots-social-link. */
