/**
 * Service Card — matches Elementor Pro Price Table look used on wpestack.com/services/.
 * Base layout comes from Elementor Pro's widget-price-table.css; these are site defaults.
 */

.elementor-widget-wpess-service-card {
	--e-price-table-header-background-color: var(--e-global-color-primary, #1564B6);
	--e-price-table-features-list-color: var(--e-global-color-text, #282727);
}

.elementor-widget-wpess-service-card .elementor-widget-container,
.elementor-widget-wpess-service-card:not(:has(.elementor-widget-container)) {
	background-color: #f9fafa;
	overflow: hidden;
	border-radius: 10px;
}

.elementor-widget-wpess-service-card .elementor-price-table {
	text-align: center;
	border-radius: 10px;
	overflow: hidden;
}

.elementor-widget-wpess-service-card .elementor-price-table__header {
	padding-left: 10px;
	padding-right: 10px;
}

.elementor-widget-wpess-service-card .elementor-price-table__heading {
	color: var(--e-global-color-eb4cbb6, #FCFCFC);
}

.elementor-widget-wpess-service-card .wpess-price-table__title-link {
	color: inherit;
	text-decoration: none;
}

.elementor-widget-wpess-service-card .wpess-price-table__title-link:hover,
.elementor-widget-wpess-service-card .wpess-price-table__title-link:focus {
	color: inherit;
	text-decoration: underline;
}

.elementor-widget-wpess-service-card .elementor-price-table__subheading,
.elementor-widget-wpess-service-card .wpess-price-table__header-text {
	color: var(--e-global-color-eb4cbb6, #FCFCFC);
	opacity: 0.95;
}

.elementor-widget-wpess-service-card .wpess-price-table__header-text {
	margin: 0.35em 0 0;
	font-size: 1rem;
	font-weight: 500;
	line-height: 1.35;
}

.elementor-widget-wpess-service-card .elementor-price-table__currency {
	align-self: flex-start;
}

.elementor-widget-wpess-service-card .elementor-price-table__after-price {
	justify-content: flex-start;
}

/* Feature dividers (same as services page) */
.elementor-widget-wpess-service-card .elementor-price-table__features-list li:not(:first-child):before {
	border-top-style: solid;
	border-top-color: #ddd;
	border-top-width: 2px;
	margin-top: 15px;
	margin-bottom: 15px;
}

.elementor-widget-wpess-service-card .elementor-price-table__button {
	background-color: var(--e-global-color-accent, #4485ED);
	color: #fff;
	border-radius: 8px;
	font-family: var(--e-global-typography-accent-font-family, Roboto), Sans-serif;
	font-weight: var(--e-global-typography-accent-font-weight, 500);
}

.elementor-widget-wpess-service-card .elementor-price-table__button:hover,
.elementor-widget-wpess-service-card .elementor-price-table__button:focus {
	color: #fff;
	opacity: 0.92;
}

.elementor-widget-wpess-service-card .wpess-price-table__disclaimer {
	margin: 0.75rem 0 0;
	padding: 0 1rem;
	font-size: 0.8rem;
	line-height: 1.4;
	color: var(--e-global-color-secondary, #54595F);
	opacity: 0.9;
}

.elementor-widget-wpess-service-card .wpess-service-card--empty {
	padding: 2rem 1rem;
	color: #666;
	background: #f9fafa;
}

/* Primary selected price — tighten bottom padding so alt grid sits close */
.elementor-widget-wpess-service-card .wpess-price-primary {
	padding-bottom: 12px;
}

.elementor-widget-wpess-service-card .wpess-price-primary__save {
	display: block;
	width: 100%;
	margin-top: 0.5rem;
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--e-global-color-accent, #4485ED);
}

.elementor-widget-wpess-service-card .wpess-price-alts-wrap {
	padding: 0 0.75rem 1.25rem;
}

.elementor-widget-wpess-service-card .wpess-price-alts-toggle {
	display: inline-block;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	color: var(--e-global-color-accent, #4485ED);
	font: inherit;
	font-size: 0.9rem;
	font-weight: 500;
	text-decoration: underline;
	cursor: pointer;
	line-height: 1.4;
}

.elementor-widget-wpess-service-card .wpess-price-alts-toggle:hover,
.elementor-widget-wpess-service-card .wpess-price-alts-toggle:focus {
	opacity: 0.85;
}

/* Other billing intervals */
.elementor-widget-wpess-service-card .wpess-price-alts {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 0.5rem;
	margin-top: 0.85rem;
	box-sizing: border-box;
}

.elementor-widget-wpess-service-card .wpess-price-alts[hidden] {
	display: none !important;
}

.elementor-widget-wpess-service-card .wpess-price-alts__item {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.2rem;
	padding: 0.65rem 0.35rem;
	background: #fff;
	border: 1px solid #e5e5e5;
	border-radius: 3px;
	text-align: center;
	min-width: 0;
}

.elementor-widget-wpess-service-card .wpess-price-alts__label {
	font-size: 0.7rem;
	line-height: 1.2;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	opacity: 0.75;
	color: var(--e-global-color-secondary, #54595F);
}

.elementor-widget-wpess-service-card .wpess-price-alts__amount {
	font-size: 0.95rem;
	font-weight: 700;
	line-height: 1.2;
	color: var(--e-global-color-text, #282727);
	word-break: break-word;
}

.elementor-widget-wpess-service-card .wpess-price-alts__save {
	font-size: 0.68rem;
	font-weight: 600;
	line-height: 1.2;
	color: var(--e-global-color-accent, #4485ED);
}

.elementor-widget-wpess-service-card .wpess-price-alts__save--muted {
	font-weight: 400;
	opacity: 0.65;
	color: var(--e-global-color-secondary, #54595F);
}

@media (max-width: 767px) {
	.elementor-widget-wpess-service-card .wpess-price-alts {
		grid-template-columns: 1fr;
	}

	.elementor-widget-wpess-service-card .wpess-price-alts__item {
		flex-direction: row;
		justify-content: space-between;
		gap: 0.5rem;
		padding: 0.55rem 0.75rem;
	}
}
