
/* Phase 3 — dashboard summary, global edit bar, polish */

/* Dashboard quote summary */
.techmall-dashboard-quote-summary {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1.25rem;
	margin-bottom: 1.75rem;
	padding: 1.35rem 1.5rem;
	border-radius: 14px;
	border: 1px solid rgba(0, 102, 180, 0.15);
	background: linear-gradient(135deg, #f8fbff 0%, #eef5fc 100%);
	box-shadow: 0 6px 20px rgba(0, 102, 180, 0.06);
}

.techmall-dashboard-quote-summary__title {
	margin: 0 0 0.35rem;
	font-size: 1.15rem;
	font-weight: 700;
	color: #0066b4;
}

.techmall-dashboard-quote-summary__stats {
	margin: 0 0 0.5rem;
	font-size: 1rem;
	font-weight: 600;
	color: #2c3e50;
}

.techmall-dashboard-quote-summary__latest {
	margin: 0;
	font-size: 0.9rem;
	color: #5c6b7a;
}

.techmall-dashboard-quote-summary__latest a {
	font-weight: 600;
	color: #0066b4;
	text-decoration: none;
}

.techmall-dashboard-quote-summary__latest a:hover {
	text-decoration: underline;
}

.techmall-dashboard-quote-summary__status {
	display: inline-block;
	margin-left: 0.35rem;
	padding: 0.15rem 0.5rem;
	border-radius: 999px;
	background: rgba(0, 102, 180, 0.1);
	color: #0066b4;
	font-size: 0.75rem;
	font-weight: 600;
}

.techmall-dashboard-quote-summary__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	align-items: center;
}

.techmall-dashboard-quote-summary__actions .button {
	margin: 0 !important;
	border-radius: 8px !important;
	font-weight: 600 !important;
}

.techmall-dashboard-quote-summary__actions .button.alt {
	background: #0066b4 !important;
	border-color: #0066b4 !important;
	color: #fff !important;
}

/* Global fixed edit bar */
.techmall-global-edit-bar {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 99998;
	background: linear-gradient(135deg, #004a85 0%, #0066b4 100%);
	color: #fff;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

body.admin-bar .techmall-global-edit-bar {
	top: 32px;
}

body.techmall-has-global-edit-bar {
	padding-top: 52px;
}

body.admin-bar.techmall-has-global-edit-bar {
	padding-top: 84px;
}

.techmall-global-edit-bar__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	max-width: 1280px;
	margin: 0 auto;
	padding: 0.55rem 1.25rem;
}

.techmall-global-edit-bar__text {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
	min-width: 0;
}

.techmall-global-edit-bar__badge {
	display: inline-block;
	padding: 0.2rem 0.55rem;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.2);
	font-size: 0.7rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.techmall-global-edit-bar__label {
	font-size: 0.9rem;
	font-weight: 600;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 280px;
}

.techmall-global-edit-bar__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.4rem;
}

.techmall-global-edit-bar__btn {
	display: inline-block;
	padding: 0.35rem 0.75rem;
	border-radius: 6px;
	background: rgba(255, 255, 255, 0.15);
	border: 1px solid rgba(255, 255, 255, 0.35);
	color: #fff !important;
	font-size: 0.8rem;
	font-weight: 600;
	text-decoration: none !important;
	white-space: nowrap;
}

.techmall-global-edit-bar__btn:hover {
	background: rgba(255, 255, 255, 0.28);
	color: #fff !important;
}

.techmall-global-edit-bar__btn--primary {
	background: #fff;
	border-color: #fff;
	color: #0066b4 !important;
}

.techmall-global-edit-bar__btn--primary:hover {
	background: #f0f8ff;
	color: #0052a3 !important;
}

.techmall-global-edit-bar__btn--ghost {
	background: transparent;
}

.techmall-global-edit-bar__cancel {
	color: rgba(255, 255, 255, 0.85) !important;
	font-size: 0.78rem;
	font-weight: 600;
	text-decoration: underline !important;
	padding: 0.35rem 0.5rem;
}

.techmall-global-edit-bar__cancel:hover {
	color: #fff !important;
}

/* Empty quote list panel (request-quote page) */
.techmall-quote-empty-panel {
	margin: 0 0 1.5rem;
	padding: 1.25rem 1.5rem;
	border-radius: 12px;
	border: 2px dashed rgba(0, 102, 180, 0.25);
	background: #f8fbff;
}

.techmall-quote-empty-panel h4 {
	margin: 0 0 0.75rem;
	color: #0066b4;
	font-size: 1.05rem;
}

.techmall-quote-empty-panel__steps {
	margin: 0 0 1rem;
	padding-left: 1.25rem;
	color: #495057;
	line-height: 1.6;
}

.techmall-quote-empty-panel__steps li {
	margin-bottom: 0.35rem;
}

.techmall-quote-empty-panel__cta {
	margin: 0;
}

.techmall-quote-empty-panel__cta .button {
	background: #0066b4 !important;
	border-color: #0066b4 !important;
	color: #fff !important;
	border-radius: 8px !important;
	font-weight: 600 !important;
}

/* Hide per-page edit banners when the global bar is active */
body.techmall-has-global-edit-bar .techmall-quote-edit-banner {
	display: none !important;
}

/* Stronger My Quotes hub empty state */
.techmall-quote-hub__empty {
	padding: 2.5rem 1.5rem;
}

.techmall-quote-hub__empty-steps {
	margin: 1rem auto 1.25rem;
	max-width: 420px;
	text-align: left;
	padding-left: 1.25rem;
	color: #5c6b7a;
	line-height: 1.65;
}

.techmall-quote-hub__empty-secondary {
	margin: 1rem 0 0;
	font-size: 0.9rem;
}

.techmall-quote-hub__empty-secondary a {
	color: #0066b4;
	font-weight: 600;
	text-decoration: none;
}

.techmall-quote-hub__empty-secondary a:hover {
	text-decoration: underline;
}

/* Mobile refinements (Phase 3) */
@media (max-width: 782px) {
	body.admin-bar .techmall-global-edit-bar {
		top: 46px;
	}

	body.admin-bar.techmall-has-global-edit-bar {
		padding-top: 98px;
	}
}

@media (max-width: 640px) {
	body.techmall-has-global-edit-bar {
		padding-top: 0;
	}

	body.admin-bar.techmall-has-global-edit-bar {
		padding-top: 46px;
	}

	.techmall-global-edit-bar {
		position: sticky;
	}

	.techmall-global-edit-bar__inner {
		flex-direction: column;
		align-items: stretch;
		padding: 0.65rem 1rem;
	}

	.techmall-global-edit-bar__label {
		max-width: 100%;
		white-space: normal;
	}

	.techmall-global-edit-bar__actions {
		flex-direction: column;
		align-items: stretch;
	}

	.techmall-global-edit-bar__btn,
	.techmall-global-edit-bar__cancel {
		width: 100%;
		text-align: center;
	}

	.techmall-dashboard-quote-summary {
		flex-direction: column;
	}

	.techmall-dashboard-quote-summary__actions {
		width: 100%;
		flex-direction: column;
	}

	.techmall-dashboard-quote-summary__actions .button {
		width: 100%;
		text-align: center;
	}

	.techmall-quote-edit-banner__inner {
		padding: 0.85rem 1rem;
	}

	.techmall-quote-card__meta {
		grid-template-columns: 1fr 1fr;
	}

	.techmall-quote-card__total-cell {
		grid-column: 1 / -1;
	}
}

/* Phase 4 — business profile page & setup prompts */
.techmall-profile-setup-banner {
	margin: 0 0 1.5rem;
	padding: 1.1rem 1.35rem;
	border-radius: 12px;
	border: 1px solid rgba(0, 102, 180, 0.25);
	background: linear-gradient(135deg, #fff8e6 0%, #fff3cd 100%);
}

.techmall-profile-setup-banner--request-quote {
	margin-bottom: 1.25rem;
}

.techmall-profile-setup-banner__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}

.techmall-profile-setup-banner__text {
	flex: 1 1 220px;
}

.techmall-profile-setup-banner__text strong {
	display: block;
	margin-bottom: 0.25rem;
	color: #7c4a00;
	font-size: 1rem;
}

.techmall-profile-setup-banner__text p {
	margin: 0;
	color: #5c4a32;
	font-size: 0.9rem;
	line-height: 1.5;
}

.techmall-profile-setup-banner__cta {
	margin: 0 !important;
	white-space: nowrap;
	border-radius: 8px !important;
	font-weight: 600 !important;
}

.techmall-business-profile__intro {
	margin: 0 0 1.25rem;
	color: #5c6b7a;
	font-size: 0.95rem;
	line-height: 1.55;
}

.techmall-business-profile__form {
	max-width: 560px;
	padding: 1.5rem;
	border-radius: 14px;
	border: 1px solid rgba(0, 102, 180, 0.12);
	background: #fff;
	box-shadow: 0 4px 18px rgba(0, 102, 180, 0.05);
}

.techmall-business-profile__row {
	display: flex;
	flex-wrap: wrap;
	gap: 0;
}

.techmall-business-profile__row .form-row-first,
.techmall-business-profile__row .form-row-last {
	flex: 1 1 200px;
}

.techmall-business-profile__form label {
	font-weight: 600;
	color: #2c3e50;
}

.techmall-business-profile__form .required {
	color: #c0392b;
}

.techmall-business-profile__actions {
	margin: 1.25rem 0 0;
}

.techmall-business-profile__actions .button {
	background: #0066b4 !important;
	border-color: #0066b4 !important;
	border-radius: 8px !important;
	font-weight: 600 !important;
}

body.techmall-business-profile-page .woocommerce-MyAccount-content > h2,
body.techmall-business-profile-page .woocommerce-MyAccount-content > .woocommerce-notices-wrapper + h2 {
	color: #0066b4;
}

@media (max-width: 640px) {
	.techmall-profile-setup-banner__inner {
		flex-direction: column;
		align-items: stretch;
	}

	.techmall-profile-setup-banner__cta {
		width: 100%;
		text-align: center;
	}
}
