/**
 * Global mobile-responsive fixes for Ray Knowledge Base theme.
 */

html {
	-webkit-text-size-adjust: 100%;
}

body.ray-kb-site,
body.page-template-new-ray-support-home,
body[class*="view-all"],
body.single-docs,
body.search,
body.error404 {
	overflow-x: hidden;
}

img,
video,
iframe,
svg {
	max-width: 100%;
	height: auto;
}

/* Custom footer */
.ray-support-custom-footer {
	padding: 16px 12px !important;
	font-size: 12px !important;
	line-height: 1.5 !important;
	height: auto !important;
	min-height: 0 !important;
	word-break: break-word;
}

/* WordPress block layout containers */
.wp-site-blocks,
.site-main,
.entry-content,
#page {
	max-width: 100%;
	overflow-x: clip;
}

/* BetterDocs / content tables on small screens */
.ray-doc-content table,
.ray-doc-content pre,
.ray-doc-content code,
.entry-content table,
.entry-content pre {
	display: block;
	max-width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.ray-doc-content table {
	width: 100%;
}

@media (max-width: 767px) {
	.ray-support-custom-header-inner {
		flex-wrap: wrap;
		gap: 10px;
	}

	.ray-support-custom-header-right {
		width: 100%;
		justify-content: flex-end;
		flex-wrap: wrap;
	}

	.ray-support-custom-header-login-btn,
	.ray-support-custom-header-signup-btn {
		padding: 8px 16px !important;
		font-size: 12px !important;
	}
}

@media (max-width: 480px) {
	.ray-support-custom-header-inner {
		padding: 10px 12px !important;
	}

	.ray-support-custom-header-logo img {
		max-height: 24px !important;
	}

	.ray-support-custom-header-right {
		justify-content: center;
	}

	.ray-support-custom-footer {
		padding: 12px 10px !important;
		font-size: 11px !important;
	}
}
