/**
 * CC_mp_added_to_cart_2026-11-13
 * CC_mp_added_to_cart_card_2026-11-13
 * Aprobado por Diego (t207u): escritorio estilo A3 a todo el ancho,
 * móvil como la maqueta A. Sección C (cross-sells) dormida.
 *
 * Restyle the WooCommerce success notice on the product page into a
 * compact confirmation card. Buttons reuse the mini-cart cut (red
 * plate #c61617 + black #111 diagonal). The existing add-to-cart
 * button states in cc-addtocart-ux.css are untouched.
 */

.woocommerce-message:has(.cc-atc-card__row),
.woocommerce-notices-wrapper .woocommerce-message:has(.cc-atc-card__row) {
	background: #fff !important;
	background-color: #fff !important;
	color: #111 !important;
	border: 1px solid #e6e6e6 !important;
	border-left: 3px solid #0f834d !important;
	border-radius: 2px !important;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
	padding: 16px 18px !important;
	margin: 0 0 24px !important;
	clear: both;
	float: none !important;
	display: block !important;
}

/* Theme sets .woocommerce-message a/strong to #fff for the green bar. */
.woocommerce-message:has(.cc-atc-card__row),
.woocommerce-message:has(.cc-atc-card__row) a,
.woocommerce-message:has(.cc-atc-card__row) p,
.woocommerce-message:has(.cc-atc-card__row) span,
.woocommerce-message:has(.cc-atc-card__row) strong,
.hentry .woocommerce-message:has(.cc-atc-card__row) strong {
	color: #111 !important;
}

/* The p/span reset above would paint the kicker black. Keep it green. */
.woocommerce-message:has(.cc-atc-card__row) .cc-atc-card__kicker {
	color: #0f834d !important;
}

.woocommerce-message:has(.cc-atc-card__row) .cc-atc-card__check {
	color: #fff !important;
	background: #0f834d;
}

.woocommerce-message:has(.cc-atc-card__row) a.cc-atc-btn--checkout,
.woocommerce-message:has(.cc-atc-card__row) a.cc-atc-btn--checkout:hover,
.woocommerce-message:has(.cc-atc-card__row) a.cc-atc-btn--checkout:focus,
.woocommerce-message:has(.cc-atc-card__row) a.cc-atc-btn--checkout span {
	color: #fff !important;
}

.woocommerce-message:has(.cc-atc-card__row) a.cc-atc-btn--cart:hover,
.woocommerce-message:has(.cc-atc-card__row) a.cc-atc-btn--cart:focus {
	color: #fff !important;
}

.woocommerce-message:has(.cc-atc-card__row)::before,
.woocommerce-message:has(.cc-atc-card__row)::after {
	display: none !important;
	content: none !important;
	background: none !important;
}

.cc-atc-card__row {
	display: flex;
	align-items: center;
	gap: 14px;
	flex-wrap: wrap;
}

.cc-atc-card__thumb,
.woocommerce-message:has(.cc-atc-card__row) img.cc-atc-card__thumb,
.woocommerce-message:has(.cc-atc-card__row) .cc-atc-card__row img {
	width: 64px;
	height: 64px;
	object-fit: contain;
	background: #f5f5f5;
	flex: 0 0 64px;
	margin: 0;
	display: block;
}

.cc-atc-card__copy {
	flex: 1 1 180px;
	min-width: 0;
}

.cc-atc-card__kicker {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #0f834d;
	margin: 0 0 4px;
}

.cc-atc-card__check {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: #0f834d;
	color: #fff;
	font-size: 11px;
	line-height: 1;
	flex: 0 0 18px;
}

.cc-atc-card__name {
	margin: 0;
	font-size: 15px;
	font-weight: 700;
	color: #111;
	line-height: 1.3;
}

.cc-atc-card__meta {
	margin: 2px 0 0;
	font-size: 13px;
	color: #555;
}

.cc-atc-card__sub {
	margin-left: auto;
	text-align: right;
	flex: 0 0 auto;
}

.cc-atc-card__sub > span {
	display: block;
	font-size: 11px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #777;
}

.cc-atc-card__sub strong,
.woocommerce-message:has(.cc-atc-card__row) .cc-atc-card__sub strong,
.woocommerce-message:has(.cc-atc-card__row) .cc-atc-card__sub .woocommerce-Price-amount {
	font-size: 18px;
	color: #111 !important;
	font-weight: 700;
}

.cc-atc-card__trust {
	margin: 10px 0 0 78px;
	font-size: 12px;
	color: #555;
}

.cc-atc-card__actions {
	display: flex;
	gap: 10px;
	margin-top: 14px;
	flex-wrap: wrap;
}

.cc-atc-btn {
	position: relative;
	isolation: isolate;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0 22px;
	margin: 0;
	border: 0 !important;
	border-radius: 0;
	background: transparent !important;
	background-color: transparent !important;
	box-shadow: none !important;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 1.2px;
	text-transform: uppercase;
	text-decoration: none !important;
	line-height: 1.2;
	box-sizing: border-box;
	flex: 1 1 140px;
	text-align: center;
	float: none !important;
}

.cc-atc-btn span,
.cc-atc-btn .elementor-button-text {
	position: relative;
	z-index: 1;
}

.cc-atc-btn--checkout,
.woocommerce-message:has(.cc-atc-card__row) a.cc-atc-btn--checkout {
	color: #fff !important;
}

.cc-atc-btn--checkout::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: calc(100% - 2px);
	height: calc(100% - 2px);
	transform: skewX(-10deg);
	transform-origin: center center;
	background-color: #c61617;
	border-radius: 3px;
	z-index: -2;
	pointer-events: none;
}

.cc-atc-btn--checkout::after {
	content: "" !important;
	position: absolute;
	top: 0;
	left: 0;
	width: calc(100% - 2px);
	height: calc(100% - 2px);
	transform: skewX(-10deg) scaleX(0.93);
	transform-origin: center center;
	background-color: #111 !important;
	background: #111 !important;
	border-radius: 3px;
	z-index: -1;
	pointer-events: none;
	font-family: inherit !important;
}

.cc-atc-btn--checkout:hover,
.cc-atc-btn--checkout:focus {
	color: #fff !important;
}

.cc-atc-btn--checkout:hover::after,
.cc-atc-btn--checkout:focus::after {
	background-color: #c61617 !important;
	background: #c61617 !important;
}

.cc-atc-btn--cart,
.woocommerce-message:has(.cc-atc-card__row) a.cc-atc-btn--cart {
	color: #111 !important;
}

.cc-atc-btn--cart::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: calc(100% - 2px);
	height: calc(100% - 2px);
	transform: skewX(-10deg);
	transform-origin: center center;
	background: transparent;
	border: 1.5px solid #111;
	border-radius: 3px;
	z-index: -1;
	pointer-events: none;
}

.cc-atc-btn--cart::after {
	content: none !important;
	background: transparent !important;
}

.cc-atc-btn--cart:hover,
.cc-atc-btn--cart:focus {
	color: #fff !important;
}

.cc-atc-btn--cart:hover::before,
.cc-atc-btn--cart:focus::before {
	background: #111;
	border-color: #111;
}

.cc-atc-fbt {
	margin-top: 14px;
	padding-top: 12px;
	border-top: 1px solid #eee;
}

.cc-atc-fbt__title {
	margin: 0 0 8px;
	font-size: 12px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	font-weight: 700;
	color: #111;
}

.cc-atc-fbt__list {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

.cc-atc-fbt__item {
	display: flex;
	align-items: center;
	gap: 8px;
	flex: 1 1 160px;
	text-decoration: none !important;
	color: #111 !important;
	border: 1px solid #eee;
	padding: 6px 8px;
	background: #fafafa;
}

.cc-atc-fbt__item img {
	width: 40px;
	height: 40px;
	object-fit: contain;
	background: #fff;
	flex: 0 0 40px;
	margin: 0;
}

.cc-atc-fbt__item strong {
	display: block;
	font-size: 12px;
	line-height: 1.25;
	color: #111 !important;
}

.cc-atc-fbt__item span span,
.cc-atc-fbt__item .woocommerce-Price-amount {
	display: block;
	font-size: 12px;
	color: #555 !important;
}

@media (max-width: 767px) {
	.cc-atc-card__trust {
		margin-left: 0;
	}

	.cc-atc-card__sub {
		text-align: left;
		margin-left: 0;
		width: 100%;
	}

	.cc-atc-card__row {
		align-items: flex-start;
	}

	.cc-atc-btn {
		flex: 1 1 calc(50% - 10px);
		min-height: 44px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.cc-atc-btn--checkout::before,
	.cc-atc-btn--checkout::after,
	.cc-atc-btn--cart::before {
		transition: none;
	}
}

/* CC_mp_added_to_cart_card_2026-11-13 desktop (t207u)
   Mobile (<768) stays as the approved stacked card (maqueta A).
   Desktop: A3 visual styles (kicker, type, both diagonal-cut
   buttons) in one low row, full width of the notices container
   (no max-width, not right-aligned). */
@media (min-width: 768px) {
	.woocommerce-message:has(.cc-atc-card__row),
	.woocommerce-notices-wrapper .woocommerce-message:has(.cc-atc-card__row) {
		display: flex !important;
		flex-direction: row;
		flex-wrap: nowrap;
		align-items: center;
		gap: 12px;
		width: 100%;
		max-width: none;
		padding: 10px 14px !important;
		margin: 0 0 16px !important;
		background: #fff !important;
		background-color: #fff !important;
		border: 1px solid #e6e6e6 !important;
		border-left: 3px solid #0f834d !important;
		border-radius: 2px !important;
		box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
		box-sizing: border-box;
	}

	.cc-atc-card__row {
		flex: 1 1 auto;
		min-width: 0;
		flex-wrap: nowrap;
		align-items: center;
		gap: 10px;
	}

	.cc-atc-card__thumb,
	.woocommerce-message:has(.cc-atc-card__row) img.cc-atc-card__thumb,
	.woocommerce-message:has(.cc-atc-card__row) .cc-atc-card__row img {
		width: 40px;
		height: 40px;
		flex: 0 0 40px;
		background: #f5f5f5;
	}

	.cc-atc-card__copy {
		flex: 1 1 auto;
		min-width: 0;
		display: flex;
		flex-wrap: nowrap;
		align-items: baseline;
		gap: 0;
	}

	.cc-atc-card__kicker {
		display: inline-flex;
		align-items: center;
		flex: 0 0 auto;
		margin: 0;
		font-size: 12px;
		letter-spacing: 0.02em;
		text-transform: uppercase;
		font-weight: 700;
		color: #0f834d;
		white-space: nowrap;
	}

	.cc-atc-card__check {
		width: 18px;
		height: 18px;
		flex: 0 0 18px;
		font-size: 11px;
		margin-right: 6px;
		display: inline-flex;
	}

	.cc-atc-card__name {
		display: block;
		flex: 1 1 auto;
		font-size: 15px;
		font-weight: 700;
		line-height: 1.3;
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
		min-width: 0;
		color: #111;
	}

	.cc-atc-card__name::before {
		content: " · ";
		font-weight: 400;
		color: #555;
		letter-spacing: 0;
		text-transform: none;
	}

	.cc-atc-card__meta {
		display: none;
	}

	.cc-atc-card__sub {
		margin-left: 12px;
		text-align: right;
		flex: 0 0 auto;
		white-space: nowrap;
	}

	/* Hide only the "Subtotal" label. The price is a span inside <strong>. */
	.cc-atc-card__sub > span {
		display: none;
	}

	.cc-atc-card__sub strong,
	.woocommerce-message:has(.cc-atc-card__row) .cc-atc-card__sub strong,
	.woocommerce-message:has(.cc-atc-card__row) .cc-atc-card__sub .woocommerce-Price-amount {
		font-size: 16px;
		font-weight: 700;
		color: #111 !important;
	}

	.cc-atc-card__trust {
		display: none;
	}

	.cc-atc-card__actions {
		display: flex;
		flex-wrap: nowrap;
		align-items: center;
		gap: 6px;
		margin-top: 0;
		flex: 0 0 auto;
	}

	.cc-atc-btn {
		flex: 0 0 auto;
		min-height: 40px;
		padding: 0 12px;
		font-size: 13px;
		font-weight: 700;
		letter-spacing: 1.2px;
		text-transform: uppercase;
		text-decoration: none !important;
	}

	.cc-atc-btn--checkout,
	.woocommerce-message:has(.cc-atc-card__row) a.cc-atc-btn--checkout,
	.woocommerce-message:has(.cc-atc-card__row) a.cc-atc-btn--checkout span {
		min-width: 104px;
		color: #fff !important;
	}

	/* View cart uses the same outline-button treatment as maqueta A, just shorter. */
	.cc-atc-btn--cart,
	.woocommerce-message:has(.cc-atc-card__row) a.cc-atc-btn--cart {
		min-width: 104px;
		color: #111 !important;
	}

	.cc-atc-btn--cart::before,
	.woocommerce-message:has(.cc-atc-card__row) a.cc-atc-btn--cart::before {
		content: "" !important;
		display: block !important;
		position: absolute;
		top: 0;
		left: 0;
		width: calc(100% - 2px);
		height: calc(100% - 2px);
		transform: skewX(-10deg);
		transform-origin: center center;
		background: transparent;
		border: 1.5px solid #111;
		border-radius: 3px;
		z-index: -1;
		pointer-events: none;
	}

	.cc-atc-btn--cart::after,
	.woocommerce-message:has(.cc-atc-card__row) a.cc-atc-btn--cart::after {
		content: none !important;
		background: transparent !important;
	}

	.cc-atc-btn--cart:hover,
	.cc-atc-btn--cart:focus,
	.woocommerce-message:has(.cc-atc-card__row) a.cc-atc-btn--cart:hover,
	.woocommerce-message:has(.cc-atc-card__row) a.cc-atc-btn--cart:focus,
	.woocommerce-message:has(.cc-atc-card__row) a.cc-atc-btn--cart:hover span,
	.woocommerce-message:has(.cc-atc-card__row) a.cc-atc-btn--cart:focus span {
		color: #fff !important;
		text-decoration: none !important;
	}

	.cc-atc-btn--cart:hover::before,
	.cc-atc-btn--cart:focus::before,
	.woocommerce-message:has(.cc-atc-card__row) a.cc-atc-btn--cart:hover::before,
	.woocommerce-message:has(.cc-atc-card__row) a.cc-atc-btn--cart:focus::before {
		background: #111;
		border-color: #111;
		content: "" !important;
		display: block !important;
	}

	/* If cross-sells exist, they wrap under the single row and the card grows. */
	.cc-atc-fbt {
		flex-basis: 100%;
		margin-top: 10px;
		padding-top: 8px;
	}
}
