/* Hide theme chrome on tracker pages */
body.apt-tracker-page #masthead,
body.apt-tracker-page .site-header,
body.apt-tracker-page header.header,
body.apt-tracker-page .wp-block-template-part.site-header,
body.apt-tracker-page .entry-header,
body.apt-tracker-page .page-header,
body.apt-tracker-page .page-title,
body.apt-tracker-page .site-footer,
body.apt-tracker-page footer.site-footer,
body.apt-tracker-page .wp-block-post-title {
	display: none !important;
}

body.apt-tracker-page .site,
body.apt-tracker-page .site-content,
body.apt-tracker-page .content-area,
body.apt-tracker-page .entry-content,
body.apt-tracker-page .wp-block-post-content,
body.apt-tracker-page main,
body.apt-tracker-page .page-content {
	max-width: none !important;
	width: 100% !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
}

body.apt-tracker-page {
	background: #f3f6fb;
}

.apt-app {
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	box-sizing: border-box;
	background: #f3f6fb;
	min-height: 70vh;
	color: #0f172a;
}

.apt-app a:not(.apt-btn):not(.apt-btn-primary):not(.apt-btn-danger) {
	color: #0f172a;
	text-decoration: none;
}

.apt-app a:not(.apt-btn):not(.apt-btn-primary):not(.apt-btn-danger):visited {
	color: #0f172a;
}

.apt-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 16px 28px;
	background: #fff;
	border-bottom: 1px solid #dbe3ef;
}

.apt-logo {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	text-decoration: none;
	color: #0f172a;
	font-size: 20px;
	font-weight: 700;
	line-height: 1;
}

.apt-logo-mark {
	display: inline-flex;
	flex-shrink: 0;
}

.apt-logo-text {
	white-space: nowrap;
}

.apt-header-logout {
	flex-shrink: 0;
}

.apt-wrap {
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 24px 28px 48px;
	box-sizing: border-box;
}

.apt-subnav {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 20px;
}

.apt-subnav-link {
	padding: 8px 16px;
	border-radius: 999px;
	text-decoration: none;
	color: #334155;
	font-weight: 600;
	background: #fff;
	border: 1px solid #dbe3ef;
}

.apt-subnav-link.is-active,
.apt-subnav-link:hover {
	background: #e8f2ff;
	border-color: #b9d7f5;
	color: #0f4c81;
}

.apt-page-head {
	margin-bottom: 16px;
}

.apt-page-head-row {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 16px;
}

.apt-page-head h1,
.apt-detail h1 {
	margin: 0 0 8px;
	font-size: 28px;
	line-height: 1.2;
}

.apt-card {
	background: #fff;
	border: 1px solid #dbe3ef;
	border-radius: 14px;
	padding: 20px 24px;
	margin-top: 16px;
	box-shadow: 0 4px 16px rgba(15, 39, 68, 0.04);
}

.apt-label {
	display: block;
	font-weight: 600;
	margin-bottom: 8px;
	color: #1e293b;
}

.apt-input {
	width: min(100%, 720px);
	padding: 10px 12px;
	border: 1px solid #cbd5e1;
	border-radius: 10px;
	font-size: 15px;
}

.apt-input-small {
	max-width: 220px;
}

.apt-toolbar {
	display: flex;
	align-items: center;
	gap: 16px;
	margin: 16px 0;
	flex-wrap: wrap;
}

.apt-muted {
	color: #64748b;
}

.apt-on-dark {
	color: rgba(255, 255, 255, 0.78) !important;
}

.apt-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 10px 16px;
	border: 1px solid #cbd5e1;
	border-radius: 10px;
	background: #fff;
	color: #0f172a;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	line-height: 1.2;
}

.apt-btn:hover {
	background: #f8fafc;
	color: #0f172a;
}

.apt-btn-primary {
	background: #0f6cbd;
	border-color: #0f6cbd;
	color: #fff;
}

.apt-btn-primary:hover {
	background: #0b5aa3;
	color: #fff;
}

.apt-btn-danger {
	color: #b42318;
	border-color: #fecaca;
}

.apt-btn-danger:hover {
	background: #fef2f2;
	color: #b42318;
}

.apt-btn-ghost {
	background: transparent;
}

.apt-btn-small {
	padding: 7px 12px;
	font-size: 13px;
}

.apt-btn-large {
	padding: 12px 20px;
	font-size: 15px;
}

.apt-form-actions {
	margin-top: 16px;
}

.apt-inline-form {
	display: inline;
}

.apt-notice {
	padding: 12px 16px;
	border-radius: 10px;
	margin: 12px 0;
}

.apt-notice-success {
	background: #ecfdf3;
	border: 1px solid #abefc6;
	color: #067647;
}

.apt-notice-warning {
	background: #fffaeb;
	border: 1px solid #fedf89;
	color: #b54708;
}

.apt-notice-error {
	background: #fef3f2;
	border: 1px solid #fecdca;
	color: #b42318;
}

.apt-table-wrap {
	overflow-x: auto;
	padding: 0 !important;
	border: none !important;
	box-shadow: none !important;
	background: transparent !important;
}

.apt-table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0 10px;
}

.apt-table thead th {
	padding: 0 16px 10px;
	text-align: left;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: #475569;
	border: none;
	background: transparent;
}

.apt-table tbody tr.apt-table-row {
	background: #fff;
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
	transition: box-shadow 0.15s ease;
}

.apt-table tbody tr.apt-table-row:hover {
	box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
}

.apt-table tbody td {
	padding: 16px;
	vertical-align: middle;
	border-top: 1px solid #e2e8f0;
	border-bottom: 1px solid #e2e8f0;
	background: #fff;
}

.apt-table tbody td:first-child {
	border-left: 1px solid #e2e8f0;
	border-radius: 12px 0 0 12px;
}

.apt-table tbody td:last-child {
	border-right: 1px solid #e2e8f0;
	border-radius: 0 12px 12px 0;
}

.apt-product-cell {
	min-width: 220px;
	max-width: 340px;
}

.apt-product-title {
	display: block;
	color: #0f172a !important;
	font-weight: 600;
	font-size: 14px;
	line-height: 1.4;
	text-decoration: none !important;
}

.apt-product-title:hover {
	color: #0f6cbd !important;
}

.apt-product-title:visited {
	color: #0f172a !important;
}

.apt-store-badge {
	display: inline-flex;
	align-items: center;
	padding: 6px 12px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
	text-transform: capitalize;
	white-space: nowrap;
}

.apt-store-amazon {
	background: #fff4e5;
	color: #c45500;
}

.apt-store-flipkart {
	background: #eef4ff;
	color: #2874f0;
}

.apt-price-current {
	font-size: 18px;
	font-weight: 800;
	color: #0f172a;
	white-space: nowrap;
}

.apt-price-lowest {
	font-size: 15px;
	font-weight: 700;
	color: #007cba;
	white-space: nowrap;
}

.apt-col-offers {
	min-width: 220px;
	max-width: 320px;
}

.apt-offers-list {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.apt-offer-chip {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	padding: 7px 10px;
	border-radius: 10px;
	font-size: 12px;
	line-height: 1.35;
	border: 1px solid transparent;
}

.apt-offer-chip-label {
	flex-shrink: 0;
	padding: 2px 7px;
	border-radius: 999px;
	font-size: 10px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.apt-offer-chip-text {
	color: #334155;
}

.apt-offer-emi {
	background: #f0fdf4;
	border-color: #bbf7d0;
}

.apt-offer-emi .apt-offer-chip-label {
	background: #16a34a;
	color: #fff;
}

.apt-offer-bank {
	background: #eff6ff;
	border-color: #bfdbfe;
}

.apt-offer-bank .apt-offer-chip-label {
	background: #2563eb;
	color: #fff;
}

.apt-offer-offer {
	background: #faf5ff;
	border-color: #e9d5ff;
}

.apt-offer-offer .apt-offer-chip-label {
	background: #9333ea;
	color: #fff;
}

.apt-offers-empty {
	font-size: 12px;
}

.apt-col-action {
	width: 90px;
	text-align: center;
}

.apt-btn-view {
	padding: 8px 14px;
	font-size: 13px;
	border-color: #0f6cbd;
	color: #0f6cbd;
	background: #f8fbff;
}

.apt-btn-view:hover {
	background: #0f6cbd;
	color: #fff;
}

.apt-error-text {
	color: #b42318;
	font-size: 12px;
	margin-top: 4px;
}

.apt-badge {
	display: inline-block;
	padding: 4px 10px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 600;
}

.apt-badge-alert {
	background: #eff8ff;
	color: #175cd3;
}

.apt-empty {
	text-align: center;
	padding: 40px 24px;
}

.apt-back {
	margin-bottom: 8px;
}

.apt-detail .apt-hero {
	display: grid;
	grid-template-columns: 180px 1fr;
	gap: 24px;
	background: linear-gradient(135deg, #0f2744, #16365d);
	color: #fff;
	border: none;
}

.apt-hero-image {
	width: 100%;
	background: #fff;
	border-radius: 8px;
	padding: 8px;
}

.apt-platform-badge {
	display: inline-block;
	background: rgba(255, 255, 255, 0.12);
	padding: 4px 10px;
	border-radius: 999px;
	font-size: 12px;
	margin-bottom: 8px;
}

.apt-detail .apt-hero h1 {
	color: #fff;
	margin: 0 0 8px;
	font-size: 24px;
	line-height: 1.3;
}

.apt-current-price {
	font-size: 42px;
	font-weight: 700;
	margin: 12px 0;
}

.apt-hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 8px;
	align-items: center;
}

.apt-stats-row {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
	margin-top: 16px;
}

.apt-stat {
	background: #fff;
	border: 1px solid #dbe3ef;
	border-radius: 14px;
	padding: 18px 20px;
}

.apt-stat-label {
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	margin-bottom: 8px;
}

.apt-stat-value {
	font-size: 28px;
	font-weight: 700;
}

.apt-stat-high .apt-stat-label,
.apt-stat-high .apt-stat-value {
	color: #d63638;
}

.apt-stat-avg .apt-stat-label,
.apt-stat-avg .apt-stat-value {
	color: #dba617;
}

.apt-stat-low .apt-stat-label,
.apt-stat-low .apt-stat-value {
	color: #007cba;
}

.apt-buy-card h2,
.apt-card h2,
.apt-alert-card h2 {
	margin-top: 0;
}

.apt-alert-fields {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
	margin-top: 16px;
}

.apt-check {
	display: flex;
	align-items: center;
	gap: 10px;
	font-weight: 600;
}

.apt-buy-layout {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px;
	align-items: center;
}

.apt-gauge-labels {
	display: flex;
	justify-content: space-between;
	font-size: 12px;
	color: #64748b;
	margin-bottom: 8px;
}

.apt-gauge-track {
	position: relative;
	height: 14px;
	border-radius: 999px;
	background: linear-gradient(90deg, #d63638 0%, #dba617 35%, #72aee6 65%, #00a32a 100%);
}

.apt-gauge-marker {
	position: absolute;
	top: 50%;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: #fff;
	border: 3px solid #1d2327;
	transform: translate(-50%, -50%);
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.apt-gauge-status {
	margin-top: 12px;
	font-weight: 600;
}

.apt-gauge-yes { color: #00a32a; }
.apt-gauge-okay { color: #007cba; }
.apt-gauge-wait { color: #dba617; }
.apt-gauge-skip { color: #d63638; }

.apt-login-card {
	max-width: 460px;
}

.apt-login-form .apt-label {
	margin-top: 14px;
}

.apt-login-form .apt-label:first-of-type {
	margin-top: 0;
}

@media (max-width: 782px) {
	.apt-header,
	.apt-wrap {
		padding-left: 16px;
		padding-right: 16px;
	}

	.apt-page-head-row,
	.apt-detail .apt-hero,
	.apt-buy-layout,
	.apt-stats-row,
	.apt-alert-fields {
		grid-template-columns: 1fr;
	}
}
