/* Order bump */
.atpc-bump-container { margin: 16px 0; }
.atpc-bump {
	border: 2px dashed #e0a800;
	background: #fffdf5;
	border-radius: 8px;
	padding: 14px 16px;
	margin: 14px 0;
	position: relative;
}
.atpc-bump--loading { opacity: .5; pointer-events: none; }
.atpc-bump__label { display: flex; align-items: center; gap: 10px; font-weight: 700; cursor: pointer; margin: 0 0 8px; }
.atpc-bump__checkbox { width: 20px; height: 20px; }
.atpc-bump__title { font-size: 1.05em; }
.atpc-bump__body { display: flex; gap: 14px; align-items: center; }
.atpc-bump__body img { width: 64px; height: 64px; object-fit: cover; border-radius: 6px; }
.atpc-bump__desc { margin: 0 0 6px; color: #555; }
.atpc-bump__price del { color: #999; margin-right: 8px; }
.atpc-bump__price .atpc-bump__ins { color: #b12704; font-weight: 700; text-decoration: none; }

/* Offer page */
.atpc-offer-page {
	max-width: 720px;
	margin: 48px auto;
	padding: 0 20px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	text-align: center;
}
.atpc-offer-card {
	border: 1px solid #e5e5e5;
	border-radius: 14px;
	padding: 32px;
	box-shadow: 0 8px 30px rgba(0,0,0,.08);
	background: #fff;
}
.atpc-offer-card img { max-width: 260px; height: auto; border-radius: 10px; margin: 0 auto 18px; }
.atpc-offer-card h1 { font-size: 1.7em; margin: 0 0 10px; }
.atpc-offer-price { font-size: 1.4em; margin: 16px 0; }
.atpc-offer-price del { color: #999; margin-right: 10px; font-size: .8em; }
.atpc-offer-price .atpc-offer-ins { color: #b12704; font-weight: 800; text-decoration: none; }
.atpc-offer-actions { display: flex; flex-direction: column; gap: 12px; margin-top: 24px; }
.atpc-btn {
	display: inline-block; padding: 16px 24px; border-radius: 8px;
	font-size: 1.1em; font-weight: 700; cursor: pointer; border: 0;
}
.atpc-btn--accept { background: #16a34a; color: #fff; }
.atpc-btn--accept.atpc-loading { opacity: .6; }
.atpc-btn--decline { background: transparent; color: #777; text-decoration: underline; font-weight: 500; font-size: .95em; }
#atpc-offer-message { display: none; color: #b32d2e; margin-top: 14px; }
.atpc-offer-steps { color: #999; font-size: .85em; margin-bottom: 18px; }

/* Pre-payment modal */
.atpc-prepay-overlay {
	position: fixed; inset: 0; z-index: 99999;
	background: rgba(0,0,0,.55);
	display: flex; justify-content: center;
	padding: 48px 20px; /* room so the template's own border/shadow isn't clipped */
	overflow-y: auto;   /* scroll the backdrop if the modal is taller than the viewport */
}
/* Center when it fits, and allow scrolling to BOTH ends when it doesn't (margin:auto
   avoids the flex "align-items:center clips the top" problem). */
.atpc-prepay-overlay > * { margin: auto; }
.atpc-prepay-modal {
	max-width: 460px; width: 100%; max-height: 90vh; overflow: auto;
	text-align: center; background: #fff;
}
.atpc-prepay-modal img { max-width: 220px; height: auto; border-radius: 10px; margin: 0 auto 14px; }
.atpc-prepay-modal h2 { font-size: 1.4em; margin: 0 0 12px; }
/* Elementor-designed popup: the template controls its look 100%. We add no card
   styles and DON'T clip it (so its own shadow/rounded corners show fully); the
   overlay scrolls if the template is taller than the viewport. */
.atpc-prepay-bare { overflow: visible; }
/* Per-offer context text (pre-pago / post-compra) in the default designs. */
.atpc-offer-cta { margin: 10px 0 4px; font-size: 1.02em; }
/* Icon + text layout (Icon Box–style). Size/colour/gap/position/align come from
   the Elementor widget controls; these are the structural defaults. */
.atpc-offer-icon { display: inline-flex; align-items: center; justify-content: center; line-height: 0; flex: 0 0 auto; font-size: 1.2em; }
.atpc-offer-icon svg { width: 1.2em; height: 1.2em; display: block; }
.atpc-offer-icon img { height: 1.2em; width: auto; display: block; }
.atpc-ew-content.atpc-has-icon { display: flex; align-items: center; gap: var(--atpc-icon-gap, 8px); }
.atpc-ew-content.atpc-icon-before { flex-direction: row; }
.atpc-ew-content.atpc-icon-after  { flex-direction: row-reverse; }
.atpc-ew-content.atpc-icon-above  { flex-direction: column; align-items: center; }
.atpc-ew-content.atpc-icon-below  { flex-direction: column-reverse; align-items: center; }
.atpc-ew-text { min-width: 0; }

/* Price shortcode/widget: layout + strike styles + savings badge */
.atpc-price { display: inline-flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.atpc-price--sav-below { flex-direction: column; align-items: flex-start; gap: 4px; }
.atpc-price-main { display: inline-flex; gap: 6px; align-items: baseline; }
.atpc-price--reg-above .atpc-price-main { flex-direction: column; align-items: flex-start; gap: 2px; }
.atpc-price-offer { text-decoration: none; font-weight: 800; }
.atpc-price-regular { text-decoration: none; display: inline-block; background-repeat: no-repeat; }
.atpc-strike-horizontal { background-image: linear-gradient( to top, transparent 47%, var(--atpc-strike, currentColor) 47%, var(--atpc-strike, currentColor) 53%, transparent 53% ); }
.atpc-strike-oblique { background-image: linear-gradient( to left top, transparent 46%, var(--atpc-strike, currentColor) 46%, var(--atpc-strike, currentColor) 54%, transparent 54% ); }
.atpc-strike-double {
	background-image:
		linear-gradient( to left top, transparent 46%, var(--atpc-strike, currentColor) 46%, var(--atpc-strike, currentColor) 54%, transparent 54% ),
		linear-gradient( to right top, transparent 46%, var(--atpc-strike, currentColor) 46%, var(--atpc-strike, currentColor) 54%, transparent 54% );
}
.atpc-price-savings { display: inline-flex; gap: 4px; align-items: baseline; }

/* Widget wrapper safety: never overflow its Elementor container. */
.atpc-ew-content { max-width: 100%; }
.atpc-ew-content img { max-width: 100%; height: auto; }

/* Screen targeting (same shortcode twice, one per breakpoint) */
.atpc-only-mobile { display: none; }
@media (max-width: 768px) {
	.atpc-only-desktop { display: none; }
	.atpc-only-mobile { display: block; }
}
