/**
 * SMM Fame cart v2.
 * Compact, campaign-first cart styling for classic and block carts.
 */

body.woocommerce-cart .site-page,
body.woocommerce-cart .woocommerce-area {
	padding: clamp(24px, 4vw, 48px) 0 clamp(56px, 7vw, 88px);
	background:
		radial-gradient(circle at 8% 8%, rgba(139, 92, 246, 0.10), transparent 28%),
		var(--smm-page-background);
}

body.woocommerce-cart .site-page__header {
	display: none;
}

body.woocommerce-cart .site-page__container,
body.woocommerce-cart .woocommerce-area > .site-container {
	width: min(1180px, calc(100% - 48px));
	max-width: none;
}

body.woocommerce-cart .site-page__content,
body.woocommerce-cart .site-page__content > .woocommerce,
body.woocommerce-cart .woocommerce-area .woocommerce {
	width: 100%;
	max-width: none;
}

.smm-cart {
	min-width: 0;
}

.smm-cart__hero {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 28px;
	margin-bottom: 22px;
	padding: clamp(22px, 4vw, 34px);
	border: 1px solid var(--smm-border);
	border-radius: 24px;
	background:
		linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(246, 243, 255, 0.95)),
		var(--smm-surface);
	box-shadow: var(--smm-shadow-sm);
}

.smm-cart__eyebrow {
	display: block;
	margin-bottom: 7px;
	color: var(--smm-primary);
	font-size: 0.72rem;
	font-weight: 850;
	letter-spacing: 0.13em;
	text-transform: uppercase;
}

.smm-cart__hero h1 {
	margin: 0;
	font-size: clamp(2.15rem, 5vw, 3.8rem);
	letter-spacing: -0.055em;
}

.smm-cart__hero p {
	max-width: 670px;
	margin: 10px 0 0;
	color: var(--smm-muted);
	font-size: 1rem;
}

.smm-cart__steps {
	display: flex;
	margin: 0;
	padding: 0;
	list-style: none;
	gap: 8px;
}

.smm-cart__steps li {
	display: flex;
	align-items: center;
	gap: 8px;
	min-width: max-content;
	padding: 9px 11px;
	border: 1px solid var(--smm-border);
	border-radius: 999px;
	background: var(--smm-surface);
	color: var(--smm-muted);
	font-size: 0.78rem;
	font-weight: 750;
}

.smm-cart__steps li span {
	display: grid;
	width: 24px;
	height: 24px;
	place-items: center;
	border-radius: 50%;
	background: var(--smm-soft-background);
	color: var(--smm-primary);
	font-size: 0.72rem;
}

.smm-cart__steps .is-complete,
.smm-cart__steps .is-current {
	border-color: rgba(109, 40, 217, 0.24);
	color: var(--smm-primary-dark);
}

.smm-cart__steps .is-current {
	background: var(--smm-primary-light);
}

.smm-cart__layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(320px, 390px);
	align-items: start;
	gap: 22px;
}

.smm-cart__main,
.smm-cart__summary {
	min-width: 0;
}

.smm-cart__section-heading {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 18px;
	margin-bottom: 12px;
}

.smm-cart__section-heading h2 {
	margin: 0;
	font-size: clamp(1.45rem, 3vw, 2rem);
}

.smm-cart__count {
	padding: 7px 12px;
	border: 1px solid var(--smm-border);
	border-radius: 999px;
	background: var(--smm-surface);
	color: var(--smm-muted);
	font-size: 0.78rem;
	font-weight: 750;
}

.smm-cart-form {
	margin: 0 !important;
}

.smm-cart-items {
	display: grid;
	gap: 12px;
}

.smm-cart-item {
	position: relative;
	display: grid;
	grid-template-columns: 74px minmax(0, 1fr) auto auto auto 38px;
	align-items: center;
	gap: 16px;
	padding: 18px;
	border: 1px solid var(--smm-border);
	border-radius: 20px;
	background: var(--smm-surface);
	box-shadow: 0 8px 24px rgba(39, 24, 82, 0.045);
}

.smm-cart-item__icon {
	display: grid;
	width: 74px;
	height: 74px;
	place-items: center;
	border: 1px solid rgba(109, 40, 217, 0.16);
	border-radius: 18px;
	background: linear-gradient(145deg, #f5f1ff, #ece5ff);
	color: var(--smm-primary);
}

.smm-cart-item__icon svg {
	width: 36px;
	height: 36px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
}

.smm-cart-item__icon .platform-icon__fill,
.smm-cart-item__icon .platform-icon__dot {
	fill: currentColor;
	stroke: none;
}

.smm-cart-item__platform {
	display: block;
	margin-bottom: 3px;
	color: var(--smm-primary);
	font-size: 0.68rem;
	font-weight: 850;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.smm-cart-item h3 {
	margin: 0;
	font-size: 1.02rem;
	line-height: 1.25;
}

.smm-cart-item h3 a {
	color: var(--smm-text);
	text-decoration: none;
}

.smm-cart-item h3 a:hover {
	color: var(--smm-primary);
}

.smm-cart-item__meta {
	min-width: 0;
	margin-top: 7px;
}

.smm-cart-item__meta dl.variation {
	display: grid;
	grid-template-columns: max-content minmax(0, 1fr);
	gap: 2px 8px;
	margin: 0;
	font-size: 0.75rem;
}

.smm-cart-item__meta dt {
	color: var(--smm-muted);
	font-weight: 700;
}

.smm-cart-item__meta dd {
	min-width: 0;
	margin: 0;
	color: var(--smm-text);
	font-weight: 650;
	overflow-wrap: anywhere;
}

.smm-cart-item__meta dd p {
	margin: 0;
}

.smm-cart-item__meta a {
	word-break: break-all;
}

.smm-cart-item__facts {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 9px;
}

.smm-cart-item__facts span {
	padding: 5px 8px;
	border-radius: 999px;
	background: var(--smm-soft-background);
	color: var(--smm-muted);
	font-size: 0.68rem;
	font-weight: 700;
}

.smm-cart-item__price,
.smm-cart-item__subtotal {
	min-width: 82px;
}

.smm-cart-item__price span,
.smm-cart-item__subtotal span,
.smm-cart-item__quantity label {
	display: block;
	margin-bottom: 4px;
	color: var(--smm-muted);
	font-size: 0.67rem;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.smm-cart-item__price strong,
.smm-cart-item__subtotal strong {
	white-space: nowrap;
	color: var(--smm-primary-dark);
	font-size: 0.96rem;
}

.smm-cart-item__quantity .quantity {
	margin: 0 !important;
}

.smm-cart-item__quantity input.qty {
	width: 76px;
	min-height: 42px;
	padding: 7px 8px;
	border: 1px solid var(--smm-border);
	border-radius: 11px;
	background: #fbfaff;
	text-align: center;
}

.smm-cart-item__remove .remove {
	display: grid !important;
	width: 36px !important;
	height: 36px !important;
	place-items: center;
	border: 1px solid #f0cad0 !important;
	border-radius: 11px !important;
	background: #fff1f3 !important;
	color: var(--smm-danger) !important;
	font-size: 1.2rem !important;
	line-height: 1 !important;
	text-decoration: none !important;
}

.smm-cart-item__remove .remove:hover {
	background: #ffe4e8 !important;
}

.smm-cart-actions {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 14px;
	margin-top: 12px;
	padding: 14px;
	border: 1px solid var(--smm-border);
	border-radius: 18px;
	background: rgba(255, 255, 255, 0.75);
}

.smm-cart-coupon {
	min-width: 0;
}

.smm-cart-coupon > label {
	display: block;
	margin-bottom: 5px;
	color: var(--smm-muted);
	font-size: 0.72rem;
	font-weight: 800;
}

.smm-cart-coupon > div {
	display: flex;
	gap: 8px;
}

.smm-cart-coupon .input-text {
	width: 220px !important;
	min-height: 44px;
	margin: 0 !important;
	border-radius: 11px !important;
}

.smm-cart-coupon .button,
.smm-cart-update {
	min-height: 44px;
	margin: 0 !important;
	padding: 10px 15px !important;
	border-radius: 11px !important;
}

.smm-cart-update {
	background: var(--smm-surface) !important;
	color: var(--smm-primary) !important;
	box-shadow: inset 0 0 0 1px var(--smm-primary) !important;
}

.smm-cart__assurance {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
	margin-top: 12px;
}

.smm-cart__assurance > div {
	display: grid;
	grid-template-columns: 28px minmax(0, 1fr);
	gap: 1px 9px;
	padding: 13px;
	border: 1px solid var(--smm-border);
	border-radius: 15px;
	background: var(--smm-surface);
}

.smm-cart__assurance span {
	display: grid;
	grid-row: 1 / span 2;
	width: 28px;
	height: 28px;
	place-items: center;
	border-radius: 9px;
	background: var(--smm-primary-light);
	color: var(--smm-primary);
	font-weight: 850;
}

.smm-cart__assurance strong {
	font-size: 0.78rem;
}

.smm-cart__assurance small {
	color: var(--smm-muted);
	font-size: 0.68rem;
	line-height: 1.4;
}

.smm-cart__summary {
	position: sticky;
	top: 104px;
}

body.woocommerce-cart .smm-cart__summary .cart-collaterals,
body.woocommerce-cart .smm-cart__summary .cart_totals {
	display: block;
	float: none;
	width: 100%;
	margin: 0;
}

body.woocommerce-cart .smm-cart__summary .cart_totals {
	padding: 24px;
	border: 1px solid rgba(109, 40, 217, 0.18);
	border-radius: 22px;
	background: var(--smm-surface);
	box-shadow: var(--smm-shadow-md);
}

.smm-cart__summary .cart_totals h2 {
	margin: 0;
	font-size: 1.65rem;
}

.smm-cart-totals__intro {
	margin: 8px 0 18px;
	color: var(--smm-muted);
	font-size: 0.82rem;
	line-height: 1.55;
}

.smm-cart__summary table.shop_table {
	width: 100%;
	margin: 0;
	border: 0 !important;
	border-collapse: collapse;
	background: transparent;
}

.smm-cart__summary table.shop_table tr {
	border-bottom: 1px solid var(--smm-border);
}

.smm-cart__summary table.shop_table th,
.smm-cart__summary table.shop_table td {
	padding: 13px 0 !important;
	border: 0 !important;
	background: transparent !important;
}

.smm-cart__summary table.shop_table th {
	color: var(--smm-muted);
	font-size: 0.82rem;
	font-weight: 700;
	text-align: left;
}

.smm-cart__summary table.shop_table td {
	color: var(--smm-text);
	font-size: 0.86rem;
	font-weight: 800;
	text-align: right;
}

.smm-cart__summary .order-total {
	border-bottom: 0 !important;
}

.smm-cart__summary .order-total th,
.smm-cart__summary .order-total td {
	padding-top: 18px !important;
	color: var(--smm-text) !important;
	font-size: 1rem !important;
}

.smm-cart__summary .order-total .amount {
	color: var(--smm-primary) !important;
	font-size: 1.35rem;
}

.smm-cart-totals__notes {
	display: grid;
	gap: 7px;
	margin: 14px 0 0;
	padding: 13px;
	border-radius: 14px;
	background: var(--smm-soft-background);
}

.smm-cart-totals__notes span {
	display: flex;
	align-items: center;
	gap: 7px;
	color: var(--smm-muted);
	font-size: 0.72rem;
	font-weight: 650;
}

.smm-cart-totals__notes i {
	display: grid;
	width: 18px;
	height: 18px;
	place-items: center;
	border-radius: 50%;
	background: #eaf8ef;
	color: var(--smm-success);
	font-size: 0.68rem;
	font-style: normal;
}

.smm-cart__summary .wc-proceed-to-checkout {
	padding: 16px 0 0 !important;
}

.smm-cart__summary .checkout-button {
	display: flex !important;
	align-items: center;
	justify-content: center;
	width: 100% !important;
	min-height: 52px;
	margin: 0 !important;
	border: 0 !important;
	border-radius: 13px !important;
	background: linear-gradient(90deg, #6d28d9, #9b2bd4) !important;
	color: #fff !important;
	font-size: 0.95rem !important;
	font-weight: 850 !important;
	box-shadow: 0 12px 26px rgba(109, 40, 217, 0.24) !important;
}

.smm-cart__summary .checkout-button:hover {
	transform: translateY(-1px);
	box-shadow: 0 15px 30px rgba(109, 40, 217, 0.29) !important;
}

.smm-cart-continue {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-top: 11px;
	color: var(--smm-muted);
	font-size: 0.78rem;
	font-weight: 750;
	text-decoration: none;
}

.smm-cart-empty {
	max-width: 680px;
	margin: 0 auto;
	padding: clamp(30px, 6vw, 56px);
	border: 1px solid var(--smm-border);
	border-radius: 24px;
	background: var(--smm-surface);
	box-shadow: var(--smm-shadow-md);
	text-align: center;
}

.smm-cart-empty__icon {
	display: grid;
	width: 62px;
	height: 62px;
	margin: 0 auto 16px;
	place-items: center;
	border-radius: 18px;
	background: var(--smm-primary-light);
	color: var(--smm-primary);
	font-size: 1.8rem;
}

.smm-cart-empty h1 {
	margin: 0;
	font-size: clamp(2rem, 5vw, 3.2rem);
}

.smm-cart-empty p {
	margin: 12px auto 20px;
	color: var(--smm-muted);
}

.smm-cart-empty .button {
	min-height: 50px;
	padding: 13px 20px !important;
	border-radius: 13px !important;
	background: linear-gradient(90deg, #6d28d9, #9b2bd4) !important;
	color: #fff !important;
}

/* WooCommerce block cart compatibility. */
body.woocommerce-cart .wp-block-woocommerce-cart,
body.woocommerce-cart .wc-block-cart {
	max-width: 1180px;
	margin: 0 auto;
}

body.woocommerce-cart .wc-block-cart .wc-block-components-sidebar-layout {
	gap: 22px;
}

body.woocommerce-cart .wc-block-cart .wc-block-cart-items,
body.woocommerce-cart .wc-block-cart .wc-block-components-sidebar {
	border: 1px solid var(--smm-border);
	border-radius: 20px;
	background: var(--smm-surface);
	box-shadow: var(--smm-shadow-sm);
}

body.woocommerce-cart .wc-block-cart .wc-block-cart-items {
	overflow: hidden;
}

body.woocommerce-cart .wc-block-cart .wc-block-cart-item__wrap {
	padding-block: 12px;
}

body.woocommerce-cart .wc-block-cart .wc-block-components-product-name {
	color: var(--smm-text);
	font-weight: 800;
}

body.woocommerce-cart .wc-block-cart .wc-block-components-sidebar {
	padding: 22px;
}

body.woocommerce-cart .wc-block-cart .wc-block-cart__submit-button {
	border-radius: 13px;
	background: linear-gradient(90deg, #6d28d9, #9b2bd4);
	color: #fff;
	font-weight: 850;
}

@media (max-width: 1040px) {
	.smm-cart__hero {
		align-items: flex-start;
		flex-direction: column;
	}

	.smm-cart__layout {
		grid-template-columns: minmax(0, 1fr);
	}

	.smm-cart__summary {
		position: static;
	}
}

@media (max-width: 780px) {
	body.woocommerce-cart .site-page__container,
	body.woocommerce-cart .woocommerce-area > .site-container {
		width: min(100% - 28px, 1180px);
	}

	.smm-cart__hero {
		margin-bottom: 16px;
		padding: 20px;
		border-radius: 19px;
	}

	.smm-cart__steps {
		width: 100%;
		overflow-x: auto;
		padding-bottom: 2px;
	}

	.smm-cart-item {
		grid-template-columns: 60px minmax(0, 1fr) auto;
		gap: 12px;
		padding: 15px;
	}

	.smm-cart-item__icon {
		width: 60px;
		height: 60px;
		border-radius: 15px;
	}

	.smm-cart-item__icon svg {
		width: 30px;
		height: 30px;
	}

	.smm-cart-item__price,
	.smm-cart-item__quantity,
	.smm-cart-item__subtotal {
		padding-top: 10px;
		border-top: 1px solid var(--smm-border);
	}

	.smm-cart-item__price {
		grid-column: 1;
	}

	.smm-cart-item__quantity {
		grid-column: 2;
	}

	.smm-cart-item__subtotal {
		grid-column: 3;
		text-align: right;
	}

	.smm-cart-item__remove {
		position: absolute;
		top: 12px;
		right: 12px;
	}

	.smm-cart-item__content {
		padding-right: 38px;
	}

	.smm-cart-actions {
		align-items: stretch;
		flex-direction: column;
	}

	.smm-cart-coupon > div {
		width: 100%;
	}

	.smm-cart-coupon .input-text {
		width: 100% !important;
	}

	.smm-cart-update {
		width: 100%;
	}

	.smm-cart__assurance {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 520px) {
	body.woocommerce-cart .site-page,
	body.woocommerce-cart .woocommerce-area {
		padding-top: 16px;
		padding-bottom: 48px;
	}

	body.woocommerce-cart .site-page__container,
	body.woocommerce-cart .woocommerce-area > .site-container {
		width: min(100% - 20px, 1180px);
	}

	.smm-cart__hero {
		gap: 16px;
		padding: 17px;
		border-radius: 17px;
	}

	.smm-cart__hero h1 {
		font-size: 2.05rem;
	}

	.smm-cart__hero p {
		font-size: 0.88rem;
	}

	.smm-cart__steps li {
		padding: 7px 9px;
		font-size: 0.7rem;
	}

	.smm-cart__section-heading {
		align-items: center;
	}

	.smm-cart__section-heading h2 {
		font-size: 1.35rem;
	}

	.smm-cart-item {
		grid-template-columns: 50px minmax(0, 1fr);
		border-radius: 16px;
	}

	.smm-cart-item__icon {
		width: 50px;
		height: 50px;
		border-radius: 13px;
	}

	.smm-cart-item__icon svg {
		width: 26px;
		height: 26px;
	}

	.smm-cart-item h3 {
		font-size: 0.94rem;
	}

	.smm-cart-item__price,
	.smm-cart-item__quantity,
	.smm-cart-item__subtotal {
		grid-column: auto;
		min-width: 0;
	}

	.smm-cart-item__price {
		grid-column: 1 / span 2;
		display: flex;
		align-items: center;
		justify-content: space-between;
	}

	.smm-cart-item__quantity {
		grid-column: 1;
	}

	.smm-cart-item__subtotal {
		grid-column: 2;
		text-align: right;
	}

	.smm-cart-item__quantity input.qty {
		width: 68px;
	}

	.smm-cart-actions {
		padding: 12px;
		border-radius: 15px;
	}

	.smm-cart-coupon > div {
		align-items: stretch;
		flex-direction: column;
	}

	.smm-cart-coupon .button {
		width: 100%;
	}

	body.woocommerce-cart .smm-cart__summary .cart_totals {
		padding: 19px;
		border-radius: 18px;
	}

	.smm-cart__summary .cart_totals h2 {
		font-size: 1.45rem;
	}

	.smm-cart-empty {
		padding: 28px 18px;
		border-radius: 18px;
	}
}
