/**
 * Styles for the "Other Solutions" admin tab.
 *
 * @package Wt_Smart_Coupon
 * @since   2.3.1
 */

/* -----------------------------------------------------------------------
   Host page overrides.

   The settings shell renders every tab inside a 65%-wide `.wt-sc-tab-container`
   with a right sidebar beside it. This tab needs the full width, so widen the
   container and drop the sidebar whenever Other Solutions is the active tab.
   `data-tab` is set on the container by wt_sc_freevspro_sidebar_switch().
----------------------------------------------------------------------- */
.wt-sc-tab-container[data-tab="wt-sc-other_solutions"] {
	width: 100%;
}

.wt-sc-tab-container[data-tab="wt-sc-other_solutions"] ~ .wt_smart_coupon_admin_form_right_box {
	display: none;
}

/* -----------------------------------------------------------------------
   Page wrapper
----------------------------------------------------------------------- */
.wt-sc-os-page {
	padding: 7px;
	background: #FFFFFF;
	box-sizing: border-box;
	width: 100%;
	float: left;
}

/* -----------------------------------------------------------------------
   Page header (above the two-panel layout)
----------------------------------------------------------------------- */
.wt-sc-os-header {
	margin: 0 0 24px;
}

.wt-sc-os-page-title {
	font-size: 26px;
	font-weight: 700;
	color: #212121;
	margin: 0 0 6px;
	line-height: 1.3;
	padding: 0;
}

.wt-sc-os-page-subtitle {
	font-size: 15px;
	color: #6B7280;
	margin: 0;
	line-height: 1.5;
}

/* -----------------------------------------------------------------------
   Two-panel layout
----------------------------------------------------------------------- */
.wt-sc-os-layout {
	display: flex;
	gap: 20px;
	align-items: flex-start;
}

/* -----------------------------------------------------------------------
   Sidebar
----------------------------------------------------------------------- */
.wt-sc-os-sidebar {
	width: 240px;
	flex-shrink: 0;
	background: #fff;
	border: 1px solid #ECECEC;
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 1px 3px rgba( 0, 0, 0, 0.04 );
}

.wt-sc-os-sidebar-nav {
	list-style: none;
	margin: 0;
	padding: 0;
}

.wt-sc-os-sidebar-nav li {
	margin: 0;
	padding: 0;
	border-bottom: 1px solid #ECECEC;
}

.wt-sc-os-sidebar-nav li:last-child {
	border-bottom: none;
}

.wt-sc-os-cat-link {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 20px;
	color: #212121;
	text-decoration: none;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.3;
	cursor: pointer;
	box-shadow: none;
	transition: color 0.15s ease, background 0.15s ease;
}

.wt-sc-os-cat-link:hover,
.wt-sc-os-cat-link:focus {
	color: #2369FF;
	background: #F8F8FE;
	text-decoration: none;
	box-shadow: none;
	outline: none;
}

.wt-sc-os-cat-link.active {
	color: #2369FF;
	font-weight: 600;
}

.wt-sc-os-cat-icon {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
	display: block;
}

/* Recolour the flat sidebar icons to the active blue (#2369FF). */
.wt-sc-os-cat-link.active .wt-sc-os-cat-icon,
.wt-sc-os-cat-link:hover .wt-sc-os-cat-icon {
	filter: invert(32%) sepia(82%) saturate(2956%) hue-rotate(213deg) brightness(101%) contrast(101%);
}

/* Trust badges (inside the same sidebar card) */
.wt-sc-os-trust-badges {
	border-top: 1px solid #ECECEC;
}

.wt-sc-os-trust-badge {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 16px 20px;
	font-size: 12px;
	color: #212121;
	line-height: 1.3;
	border-bottom: 1px solid #ECECEC;
	box-sizing: border-box;
}

.wt-sc-os-trust-badge:last-child {
	border-bottom: none;
}

.wt-sc-os-trust-badge img {
	width: 44px;
	height: 44px;
	flex-shrink: 0;
}

/* -----------------------------------------------------------------------
   Main content area
----------------------------------------------------------------------- */
.wt-sc-os-main {
	flex: 1;
	min-width: 0;
}

.wt-sc-os-category-panel {
	display: none;
}

.wt-sc-os-category-panel.active {
	display: block;
}

/* -----------------------------------------------------------------------
   Shared: crown glyph on the "Get premium" buttons.

   Drawn as a mask so it inherits the button's text colour instead of
   shipping a separate light/dark image.
----------------------------------------------------------------------- */
.wt-sc-os-crown {
	width: 16px;
	height: 13px;
	flex-shrink: 0;
	display: inline-block;
	background-color: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 16'%3E%3Cpath d='M2 3.8l4.6 4.1L10 2.6l3.4 5.3L18 3.8l-1.2 8H3.2L2 3.8zM3.2 13h13.6v2H3.2z'/%3E%3C/svg%3E") no-repeat center / contain;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 16'%3E%3Cpath d='M2 3.8l4.6 4.1L10 2.6l3.4 5.3L18 3.8l-1.2 8H3.2L2 3.8zM3.2 13h13.6v2H3.2z'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* -----------------------------------------------------------------------
   Shared: star ratings
----------------------------------------------------------------------- */
.wt-sc-os-star {
	color: #FFB900;
	font-size: 13px;
	line-height: 1;
}

/* -----------------------------------------------------------------------
   Shared: call-to-action buttons
----------------------------------------------------------------------- */
.wt-sc-os-actions {
	display: flex;
	gap: 10px;
	margin-top: auto;
}

.wt-sc-os-btn-premium {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	flex: 1;
	padding: 11px 12px;
	background: #2369FF;
	color: #fff;
	border-radius: 6px;
	text-decoration: none;
	font-size: 13px;
	font-weight: 600;
	box-sizing: border-box;
	transition: background 0.15s ease;
}

.wt-sc-os-btn-premium:hover,
.wt-sc-os-btn-premium:focus {
	background: #1A55D6;
	color: #fff;
	text-decoration: none;
	box-shadow: none;
	outline: none;
}

/* -----------------------------------------------------------------------
   Card grid (3-column)
----------------------------------------------------------------------- */
.wt-sc-os-card-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
	margin-bottom: 16px;
}

/* -----------------------------------------------------------------------
   Standard plugin card
----------------------------------------------------------------------- */
.wt-sc-os-card {
	background: #fff;
	border: 1px solid #ECECEC;
	border-radius: 10px;
	display: flex;
	flex-direction: column;
	box-shadow: 0 1px 3px rgba( 0, 0, 0, 0.04 );
	overflow: hidden;
}

.wt-sc-os-card-body {
	padding: 16px;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.wt-sc-os-card--with-image {
	grid-column: span 2;
	flex-direction: row;
	align-items: stretch;
}

.wt-sc-os-card--with-image .wt-sc-os-card-body {
	flex: 1 1 50%;
	min-width: 0;
}

.wt-sc-os-card-image-side {
	flex: 1 1 50%;
	background: #F6F4FD;
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 0;
	overflow: hidden;
}

.wt-sc-os-card-image-side img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	padding: 0px;
	box-sizing: border-box;
	display: block;
}

.wt-sc-os-card-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 6px;
	background: #F8F8FF;
	margin: -16px -16px 12px;
	padding: 16px;
	border-bottom: 1px solid #ECECEC;
}

.wt-sc-os-card-icon-name {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	flex: 1;
	min-width: 0;
}

.wt-sc-os-card-icon {
	width: 36px;
	height: 36px;
	flex-shrink: 0;
}

.wt-sc-os-card-name {
	font-size: 14px;
	font-weight: 600;
	color: #212121;
	line-height: 1.4;
	margin-top: 2px;
	min-height: 2.8em;
	display: flex;
	align-items: center;
}

.wt-sc-os-card-rating {
	display: inline-flex;
	align-items: center;
	gap: 3px;
	font-size: 13px;
	font-weight: 600;
	color: #212121;
	white-space: nowrap;
	flex-shrink: 0;
	background: #fff;
	border: 1px solid #ECECEC;
	border-radius: 6px;
	padding: 4px 8px;
	box-shadow: 0 1px 2px rgba( 0, 0, 0, 0.04 );
}

.wt-sc-os-card-rating--stars {
	background: transparent;
	border: 0;
	box-shadow: none;
	padding: 0;
	gap: 2px;
}

.wt-sc-os-card-rating--stars .wt-sc-os-star {
	font-size: 16px;
}

/* Cards whose rating is a star row put it under the name, not beside it. */
.wt-sc-os-card--stacked-rating .wt-sc-os-card-header {
	flex-direction: column;
	align-items: flex-start;
	gap: 4px;
}

.wt-sc-os-card--stacked-rating .wt-sc-os-card-name {
	min-height: 0;
}

.wt-sc-os-card-features {
	list-style: none;
	margin: 0 0 12px;
	padding: 0;
	flex: 1;
}

.wt-sc-os-card-features li {
	font-size: 14px;
	color: #434343;
	padding: 4px 0;
	display: flex;
	align-items: flex-start;
	gap: 6px;
	line-height: 1.45;
	margin: 0;
}

.wt-sc-os-card-features li .dashicons {
	color: #18C01D;
	font-size: 16px;
	width: 16px;
	height: 16px;
	flex-shrink: 0;
	margin-top: 1px;
}

/* -----------------------------------------------------------------------
   Hero / featured card (full-width with screenshot)
----------------------------------------------------------------------- */
.wt-sc-os-hero-card {
	background: #fff;
	border: 1px solid #ECECEC;
	border-radius: 10px;
	display: flex;
	overflow: hidden;
	margin-bottom: 16px;
	box-shadow: 0 1px 3px rgba( 0, 0, 0, 0.04 );
}

.wt-sc-os-hero-left {
	flex: 1;
	padding: 24px;
	min-width: 0;
	display: flex;
	flex-direction: column;
}

.wt-sc-os-hero-right {
	width: 40%;
	/* Tinted panels opt in via the card's panel_bg; the default stays white. */
	background: #FFFFFF;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	overflow: hidden;
}

.wt-sc-os-hero-right img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* Artwork shown whole rather than cropped to fill the panel. */
.wt-sc-os-hero-right--contain img {
	object-fit: contain;
}

/* Inset only when the panel supplies the backdrop, so the art doesn't touch its edges. */
.wt-sc-os-hero-right--inset img {
	padding: 50px;
	box-sizing: border-box;
}

/* Icon on the left; name stacked over its star row on the right. */
.wt-sc-os-hero-title-row {
	display: flex;
	align-items: center;
	gap: 12px;
	padding-bottom: 16px;
	margin-bottom: 16px;
	border-bottom: 1px solid #ECECEC;
}

.wt-sc-os-hero-heading {
	min-width: 0;
}

.wt-sc-os-hero-icon {
	width: 44px;
	height: 44px;
	flex-shrink: 0;
	border-radius: 8px;
}

.wt-sc-os-hero-name {
	font-size: 15px;
	font-weight: 700;
	color: #212121;
	line-height: 1.3;
	margin: 0;
	padding: 0;
}

.wt-sc-os-hero-stars {
	display: flex;
	gap: 2px;
	margin-top: 6px;
}

.wt-sc-os-hero-stars .wt-sc-os-star {
	font-size: 18px;
}

.wt-sc-os-hero-desc {
	font-size: 14px;
	color: #434343;
	margin: 0 0 18px;
	line-height: 1.6;
}

.wt-sc-os-hero-features {
	list-style: none;
	margin: 0 0 18px;
	padding: 0;
}

.wt-sc-os-hero-features li {
	font-size: 14px;
	color: #434343;
	padding: 5px 0;
	display: flex;
	align-items: flex-start;
	gap: 8px;
	line-height: 1.45;
	margin: 0;
}

.wt-sc-os-hero-features li .dashicons {
	color: #18C01D;
	font-size: 16px;
	width: 16px;
	height: 16px;
	flex-shrink: 0;
	margin-top: 1px;
}

/* Hero CTAs are a fixed width rather than full bleed. */
.wt-sc-os-hero-left .wt-sc-os-actions {
	max-width: 320px;
}

/* -----------------------------------------------------------------------
   Bundle offer section
----------------------------------------------------------------------- */
.wt-sc-os-bundle {
	background: linear-gradient(90deg, #FFFFFF 0%, #FDFBEB 55%, #F2F6D3 100%);
	border: 1px solid #ECECEC;
	border-radius: 10px;
	padding: 24px;
	margin-bottom: 16px;
	display: flex;
	align-items: center;
	gap: 28px;
}

.wt-sc-os-bundle-content {
	flex: 1;
	min-width: 0;
}

.wt-sc-os-bundle-illustration {
	flex-shrink: 0;
	width: 240px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.wt-sc-os-bundle-illustration img {
	max-width: 100%;
	max-height: 220px;
	object-fit: contain;
}

.wt-sc-os-bundle-tag {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: #212121;
	border-radius: 10px;
	padding: 6px 14px;
	font-size: 13px;
	font-weight: 600;
	margin-bottom: 14px;
}

.wt-sc-os-bundle-tag--green {
	background: #DFFAD9;
}

.wt-sc-os-bundle-tag--yellow {
	background: #FFF4C2;
}

.wt-sc-os-bundle-tag-emoji {
	font-size: 14px;
	line-height: 1;
}

.wt-sc-os-bundle-title {
	font-size: 20px;
	font-weight: 700;
	color: #212121;
	margin-bottom: 8px;
	display: flex;
	align-items: center;
	gap: 8px;
}

.wt-sc-os-bundle-title a {
	color: inherit;
	text-decoration: none;
	box-shadow: none;
}

.wt-sc-os-bundle-title a:hover {
	color: #2369FF;
}

.wt-sc-os-bundle-title .dashicons {
	font-size: 14px;
	width: 14px;
	height: 14px;
	color: #2369FF;
}

.wt-sc-os-bundle-desc {
	font-size: 13px;
	color: #434343;
	margin-bottom: 12px;
	line-height: 1.5;
}

.wt-sc-os-bundle-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 12px;
}

.wt-sc-os-bundle-pill {
	background: #F1F5FB;
	border: 1px solid #E2E8F0;
	border-radius: 20px;
	padding: 6px 14px;
	font-size: 13px;
	color: #212121;
	font-weight: 500;
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.wt-sc-os-bundle-pill .dashicons {
	color: #18C01D;
	font-size: 14px;
	width: 14px;
	height: 14px;
}

.wt-sc-os-bundle-pricing {
	font-size: 16px;
	color: #212121;
	margin-bottom: 16px;
	font-weight: 500;
}

/* Grey digits struck through in red, per the design. */
.wt-sc-os-bundle-pricing s {
	color: #727272;
	-webkit-text-decoration-color: #EA3323;
	text-decoration-color: #EA3323;
	margin-right: 6px;
	font-weight: 400;
}

.wt-sc-os-bundle-pricing strong {
	color: #2369FF;
	font-weight: 700;
	font-size: 22px;
	margin-right: 8px;
}

.wt-sc-os-savings {
	color: #EB4B27;
	font-weight: 600;
}

.wt-sc-os-btn-bundle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-width: 280px;
	padding: 11px 12px;
	background: #2369FF;
	color: #fff;
	border-radius: 6px;
	text-decoration: none;
	font-size: 13px;
	font-weight: 600;
	box-sizing: border-box;
	transition: background 0.15s ease;
}

.wt-sc-os-btn-bundle:hover,
.wt-sc-os-btn-bundle:focus {
	background: #1A55D6;
	color: #fff;
	text-decoration: none;
	box-shadow: none;
	outline: none;
}

/* -----------------------------------------------------------------------
   Standalone app card (e.g. the marketing automation app)
----------------------------------------------------------------------- */
.wt-sc-os-standalone {
	background: #fff;
	border: 1px solid #ECECEC;
	border-radius: 10px;
	margin-bottom: 16px;
	display: flex;
	overflow: hidden;
	box-shadow: 0 1px 3px rgba( 0, 0, 0, 0.04 );
}

.wt-sc-os-standalone-content {
	flex: 1;
	padding: 18px 22px;
	min-width: 0;
	display: flex;
	flex-direction: column;
}

.wt-sc-os-standalone-header {
	display: flex;
	align-items: center;
	gap: 14px;
	padding-bottom: 12px;
	margin-bottom: 12px;
	border-bottom: 1px solid #ECECEC;
}

.wt-sc-os-standalone-icon {
	width: 44px;
	height: 44px;
	flex-shrink: 0;
	border-radius: 8px;
}

.wt-sc-os-standalone-name {
	font-size: 15px;
	font-weight: 700;
	color: #212121;
	line-height: 1.3;
	margin: 0;
	padding: 0;
}

.wt-sc-os-standalone-desc {
	font-size: 14px;
	color: #434343;
	line-height: 1.55;
	margin: 0 0 14px;
}

.wt-sc-os-standalone-content .wt-sc-os-actions {
	max-width: 320px;
}

.wt-sc-os-standalone-screenshot {
	width: 40%;
	background: #F5EFFB;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.wt-sc-os-standalone-screenshot img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
}

/* -----------------------------------------------------------------------
   Responsive
----------------------------------------------------------------------- */
@media ( max-width: 1200px ) {
	.wt-sc-tab-container[data-tab="wt-sc-other_solutions"] {
		width: 100%;
	}
}

@media ( max-width: 960px ) {
	.wt-sc-os-sidebar {
		width: 180px;
	}
}

@media ( max-width: 900px ) {
	.wt-sc-os-card-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.wt-sc-os-hero-right {
		display: none;
	}

	.wt-sc-os-card--with-image {
		flex-direction: column;
	}

	.wt-sc-os-card--with-image .wt-sc-os-card-image-side {
		min-height: 180px;
	}

	.wt-sc-os-bundle,
	.wt-sc-os-standalone {
		flex-direction: column;
		align-items: stretch;
	}

	.wt-sc-os-bundle-illustration,
	.wt-sc-os-standalone-screenshot {
		width: 100%;
		max-height: 220px;
	}
}

@media ( max-width: 782px ) {
	.wt-sc-os-layout {
		flex-direction: column;
	}

	.wt-sc-os-sidebar {
		width: 100%;
	}

	.wt-sc-os-sidebar-nav {
		display: flex;
		flex-wrap: wrap;
		padding: 8px;
		gap: 4px;
	}

	.wt-sc-os-sidebar-nav li {
		border-bottom: none;
	}

	.wt-sc-os-cat-link {
		border-radius: 4px;
		padding: 8px 12px;
	}

	.wt-sc-os-cat-link.active {
		background: #F0F6FF;
	}

	.wt-sc-os-trust-badges {
		display: none;
	}
}

@media ( max-width: 600px ) {
	.wt-sc-os-page {
		padding: 15px;
	}

	.wt-sc-os-card-grid {
		grid-template-columns: 1fr;
	}

	.wt-sc-os-card--with-image {
		grid-column: span 1;
	}

	.wt-sc-os-btn-bundle {
		min-width: 0;
		width: 100%;
	}
}
