/**
 * WebXtrm Tool Integrations Widget Styles
 */

.wx-ti-wrap {
	width: 100%;
	display: flex;
	justify-content: center;
	box-sizing: border-box;
}

.wx-ti-wrap * {
	box-sizing: border-box;
}

/* ===== CARD ===== */
.wx-ti-card {
	width: 100%;
	max-width: 1200px;
	background: #0f131a;
	border: 1px solid rgba(255, 255, 255, 0.05);
	border-radius: 16px;
	padding: 20px;
}

/* ===== GRID ===== */
.wx-ti-grid {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	column-gap: 8px;
	row-gap: 16px;
	align-items: stretch;
}

/* ===== ITEM ===== */
.wx-ti-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 10px 8px;
	text-decoration: none;
	color: inherit;
	transition: transform 0.3s ease, opacity 0.3s ease;
	position: relative;
	min-width: 0;
}

.wx-ti-item:hover {
	transform: translateY(-3px);
}

a.wx-ti-item {
	cursor: pointer;
}

a.wx-ti-item:hover {
	text-decoration: none;
}

/* ===== ICON ===== */
.wx-ti-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 30px;
	/* Default color set by Elementor's `icon_default_color` control.
	   Per-tool color is injected as inline style on this span.
	   Inner svg/i inherits via currentColor → see rules below. */
}

.wx-ti-icon svg {
	width: 30px;
	height: 30px;
	display: block;
	fill: currentColor;
	color: currentColor;
}

/* Ensure inner SVG path/circle/polygon all follow currentColor */
.wx-ti-icon svg path,
.wx-ti-icon svg circle,
.wx-ti-icon svg polygon,
.wx-ti-icon svg rect,
.wx-ti-icon svg g {
	fill: currentColor;
}

.wx-ti-icon i {
	font-size: 30px;
	line-height: 1;
	color: inherit;
}

/* ===== IMAGE LOGO ===== */
.wx-ti-image {
	height: 30px;
	max-width: 60px;
	width: auto;
	object-fit: contain;
	display: block;
}

/* ===== NAME ===== */
.wx-ti-name {
	font-family: 'Inter', sans-serif;
	font-size: 13px;
	font-weight: 600;
	color: #ffffff;
	line-height: 1.2;
	text-align: center;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 100%;
}

/* ===== "AND MORE" ITEM ===== */
.wx-ti-more {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 100%;
}

.wx-ti-more-text {
	font-family: 'Inter', sans-serif;
	font-size: 14px;
	font-weight: 700;
	color: #00c9f0;
	line-height: 1.2;
	text-align: center;
	transition: color 0.3s ease;
	white-space: nowrap;
}

.wx-ti-more:hover .wx-ti-more-text {
	color: #00e8ff;
}

/* ===== DIVIDERS (optional, between items) ===== */
.wx-ti-grid--dividers .wx-ti-item:not(:last-child)::after {
	content: '';
	position: absolute;
	right: -4px;
	top: 20%;
	bottom: 20%;
	width: 1px;
	background: rgba(255, 255, 255, 0.06);
}

/* Hide dividers on the wrapped row boundaries — only applies on flex but
   safe for grid since pseudo-element is constrained inside cell */
@media (max-width: 767px) {
	.wx-ti-grid--dividers .wx-ti-item::after {
		display: none;
	}
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
	.wx-ti-name {
		font-size: 12px;
	}
	.wx-ti-more-text {
		font-size: 13px;
	}
}

@media (max-width: 540px) {
	.wx-ti-card {
		border-radius: 12px;
	}
	.wx-ti-name {
		font-size: 11px;
	}
	.wx-ti-more-text {
		font-size: 12px;
	}
}
