/* PostThisDeal Live Feed. Uses the PostThisDeal theme's colours when present. */
.ptdf, .ptdf-sheet, .ptdf-site {
	/* PostThisDeal orange-and-navy (sheets live on <body>, outside .ptdf, so they need the tokens too) */
	--f-bg: #FFFFFF;
	--f-alt: #F8FAFC;
	--f-text: #10203F;
	--f-muted: #5B6577;
	--f-border: #E6E9F0;
	--f-accent: #FF365B;
	--f-accent-dark: #E62E50;
	--f-orange: #FF6600;
	--f-orange-soft: #FFF3EB;
	--f-radius: 14px;
	max-width: 600px;
	margin: 0 auto;
	color: var(--f-text);
	font-family: var(--ptd-font, inherit);
	position: relative;
}
.ptdf *, .ptdf *::before, .ptdf *::after, .ptdf-sheet *, .ptdf-sheet *::before, .ptdf-sheet *::after, .ptdf-site *, .ptdf-site *::before, .ptdf-site *::after { box-sizing: border-box; }

/* Composer (admins only) */
.ptdf__composer {
	display: grid;
	grid-template-columns: 132px 1fr;
	gap: 12px;
	background: var(--f-bg);
	border: 1px solid var(--f-border);
	border-radius: var(--f-radius);
	padding: 12px;
	margin-bottom: 16px;
}
.ptdf__drop {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 132px;
	border: 2px dashed var(--f-border);
	border-radius: 10px;
	background: var(--f-alt);
	color: var(--f-muted);
	font-size: 13px;
	line-height: 1.35;
	text-align: center;
	padding: 8px;
	cursor: pointer;
	overflow: hidden;
}
.ptdf__drop:focus-visible, .ptdf__drop--over { border-color: var(--f-accent); outline: none; }
.ptdf__drop--has { border-style: solid; padding: 0; }
.ptdf__preview { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.ptdf__clear { position: absolute; top: 6px; right: 6px; z-index: 2; width: 28px; height: 28px; border: 0; border-radius: 50%; background: rgba(15, 31, 61, .75); color: #fff; font-size: 18px; line-height: 28px; cursor: pointer; padding: 0; }
.ptdf__clear[hidden], .ptdf__preview[hidden] { display: none; }
.ptdf__fields { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ptdf__fields input, .ptdf__fields textarea {
	width: 100%;
	font: inherit;
	font-size: 15px;
	color: var(--f-text);
	background: var(--f-bg);
	border: 1px solid var(--f-border);
	border-radius: 8px;
	padding: 10px 12px;
}
.ptdf__fields textarea { resize: vertical; min-height: 44px; line-height: 1.4; }
.ptdf__fields input:focus, .ptdf__fields textarea:focus { border-color: var(--f-accent); outline: none; box-shadow: 0 0 0 3px rgba(255, 59, 92, .15); }
.ptdf__in-title { font-weight: 600; }
.ptdf__actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-top: auto; }
.ptdf__msg { color: var(--ptd-red, #dc2626); font-size: 13px; margin-right: auto; }
.ptdf__submit, .ptdf__go, .ptdf__new, .ptdf__more {
	font: inherit;
	font-weight: 700;
	border-radius: 999px;
	cursor: pointer;
	text-decoration: none;
	border: 0;
}
.ptdf__submit { background: var(--f-accent); color: #fff; padding: 9px 22px; font-size: 15px; }
.ptdf__submit:hover { background: var(--f-accent-dark); }
.ptdf__submit:disabled { opacity: .6; cursor: progress; }

/* New-posts button: sticks to the top while scrolled */
.ptdf__new {
	position: sticky;
	top: calc(var(--ptd-sticky-top, 0px) + 12px);
	z-index: 5;
	display: block;
	margin: 0 auto 12px;
	padding: 8px 18px;
	background: var(--f-accent);
	color: #fff;
	box-shadow: 0 4px 14px rgba(15, 31, 61, .18);
}
.ptdf__new[hidden] { display: none; }

/* Posts */
.ptdf__list { list-style: none; margin: 0; padding: 0; }
.ptdf__post { margin: 0 0 14px; padding: 0; }
.ptdf__post article {
	background: var(--f-bg);
	border: 1px solid var(--f-border);
	border-radius: var(--f-radius);
	padding: 14px 16px;
	box-shadow: var(--ptd-shadow, 0 1px 2px rgba(15, 31, 61, .06));
}
.ptdf__post--fresh article { animation: ptdf-in .5s ease-out; }
.ptdf__post--busy { opacity: .5; pointer-events: none; }
@keyframes ptdf-in {
	from { opacity: 0; transform: translateY(-8px); box-shadow: 0 0 0 3px rgba(255, 59, 92, .35); }
	to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) { .ptdf__post--fresh article { animation: none; } }

.ptdf__head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.ptdf__avatar { width: 40px; height: 40px; border-radius: 50%; flex: none; object-fit: cover; }
.ptdf__avatar--text { display: inline-flex; align-items: center; justify-content: center; background: var(--f-accent); color: #fff; font-weight: 800; }
.ptdf__who { flex: 1; min-width: 0; font-size: 15px; }
.ptdf__who time { color: var(--f-muted); font-size: 14px; }
.ptdf__who time::before { content: "· "; }
.ptdf__delete { border: 0; background: none; color: var(--f-muted); font-size: 22px; line-height: 1; padding: 4px 8px; border-radius: 999px; cursor: pointer; }
.ptdf__delete:hover { background: var(--ptd-red-soft, #fdecec); color: var(--ptd-red, #dc2626); }

.ptdf__title { font-size: 17px; line-height: 1.35; margin: 0 0 10px; font-weight: 600; }
.ptdf__title a { color: inherit; text-decoration: none; }
.ptdf__title a:hover { text-decoration: underline; }
.ptdf__details { font-size: 15px; line-height: 1.5; margin: -4px 0 10px; overflow-wrap: anywhere; }
.ptdf__details a { color: var(--ptd-blue, #2563eb); text-decoration: none; }
.ptdf__details a:hover { text-decoration: underline; }
.ptdf__pic { display: block; border-radius: 12px; overflow: hidden; border: 1px solid var(--f-border); background: var(--f-alt); }
.ptdf__pic--video { background: #000; }
.ptdf__pic video { display: block; width: 100%; height: auto; max-height: 560px; background: #000; }
.ptdf__pic img { display: block; width: 100%; height: auto; max-height: 520px; object-fit: contain; margin: 0 auto; }

.ptdf__foot { display: flex; align-items: center; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
.ptdf__go { background: var(--f-accent); color: #fff !important; padding: 9px 20px; font-size: 15px; }
.ptdf__go:hover { background: var(--f-accent-dark); }
.ptdf__host { color: var(--f-muted); font-size: 13px; overflow-wrap: anywhere; }

.ptdf__more { display: block; margin: 6px auto 0; padding: 10px 20px; background: var(--f-alt); color: var(--f-text); border: 1px solid var(--f-border); }
.ptdf__more:disabled { opacity: .6; }
.ptdf__empty, .ptdf__end { text-align: center; color: var(--f-muted); padding: 24px 0; margin: 0; }

@media (max-width: 520px) {
	.ptdf__composer { grid-template-columns: 1fr; }
	.ptdf__drop { min-height: 110px; }
	.ptdf__post article { padding: 12px; }
}

/* Inside wp-admin */
.wp-admin .ptdf { margin: 16px 0; }

/* Comments */
.ptdf__talk { margin-left: auto; border: 1px solid var(--f-border); background: var(--f-bg); color: var(--f-muted); font: inherit; font-size: 14px; font-weight: 600; border-radius: 999px; padding: 7px 14px; cursor: pointer; }
.ptdf__talk:hover, .ptdf__talk[aria-expanded="true"] { color: var(--f-text); border-color: var(--f-muted); }
.ptdf__comments { border-top: 1px solid var(--f-border); margin-top: 12px; padding-top: 12px; }
.ptdf__comments[hidden] { display: none; }
.ptdf__comment-list { list-style: none; margin: 0 0 10px; padding: 0; }
.ptdf__comment { background: var(--f-alt); border-radius: 12px; padding: 8px 12px; margin: 0 0 8px; font-size: 14px; line-height: 1.45; }
.ptdf__comment--held { background: var(--ptd-yellow-soft, #fff4d6); }
.ptdf__comment--busy { opacity: .5; pointer-events: none; }
.ptdf__comment-head { margin-bottom: 2px; }
.ptdf__comment-head time { color: var(--f-muted); font-size: 13px; margin-left: 4px; }
.ptdf__comment-text { overflow-wrap: anywhere; }
.ptdf__comment-none { color: var(--f-muted); font-size: 14px; padding: 4px 0 8px; }
.ptdf__badge { display: inline-block; font-size: 12px; font-weight: 700; color: #8a6116; background: rgba(255, 209, 102, .5); border-radius: 999px; padding: 1px 8px; margin-left: 4px; }
.ptdf__held-note { margin: 0 0 8px; font-size: 13px; font-weight: 600; color: #8a6116; }
.ptdf__mod { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 6px; }
.ptdf__mod button { font: inherit; font-size: 13px; font-weight: 600; border: 1px solid var(--f-border); background: var(--f-bg); color: var(--f-text); border-radius: 999px; padding: 3px 12px; cursor: pointer; }
.ptdf__mod .ptdf__mod-approve { background: var(--ptd-green, #16a34a); border-color: var(--ptd-green, #16a34a); color: #fff; }
.ptdf__mod-email { color: var(--f-muted); font-size: 12px; overflow-wrap: anywhere; }
.ptdf__cform { display: flex; flex-direction: column; gap: 8px; }
.ptdf__crow { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ptdf__cform input, .ptdf__cform textarea { width: 100%; font: inherit; font-size: 14px; color: var(--f-text); background: var(--f-bg); border: 1px solid var(--f-border); border-radius: 8px; padding: 8px 10px; }
.ptdf__cform textarea { resize: vertical; min-height: 40px; }
.ptdf__cform input:focus, .ptdf__cform textarea:focus { border-color: var(--f-accent); outline: none; }
.ptdf__submit--small { padding: 7px 18px; font-size: 14px; }
.ptdf__msg--note { color: var(--f-muted); }
.ptdf__msg--ok { color: var(--ptd-green, #16a34a); font-weight: 600; }
.ptdf__trap { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ptdf .screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 520px) { .ptdf__crow { grid-template-columns: 1fr; } }

/* Live Feed → Comments (wp-admin) */
.ptdf-mod-page .ptdf__comment-list { max-width: 720px; }
.ptdf-mod-on { list-style: none; font-size: 13px; color: #50575e; margin: 14px 0 4px; }
.ptdf-mod-page .ptdf__comment { background: #fff; border: 1px solid #dcdcde; }
.ptdf-mod-page .ptdf__comment--held { background: #fff8e5; }
.ptdf-mod-page { --f-bg: #fff; --f-alt: #f6f7f7; --f-text: #1d2327; --f-muted: #50575e; --f-border: #dcdcde; --f-accent: #ff3b5c; --f-accent-dark: #e02744; }

.ptdf__paste { position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); z-index: 2; border: 1px solid var(--f-border); background: var(--f-bg); color: var(--f-text); font: inherit; font-size: 12px; font-weight: 700; border-radius: 999px; padding: 4px 10px; cursor: pointer; white-space: nowrap; }
.ptdf__paste:hover { border-color: var(--f-accent); color: var(--f-accent-dark); }
.ptdf__drop--has .ptdf__paste { display: none; }
.ptdf__drop-text { margin-bottom: 22px; }

/* Rewrite with AI */
.ptdf__ai-btn { font: inherit; font-size: 14px; font-weight: 700; border: 1px solid var(--f-border); background: var(--f-bg); color: var(--f-text); border-radius: 999px; padding: 8px 14px; cursor: pointer; white-space: nowrap; }
.ptdf__ai-btn:hover { border-color: #7c5cff; color: #5b3fd6; }
.ptdf__ai-btn:disabled { opacity: .7; cursor: progress; }
.ptdf__ai { border: 1px solid #d9d0ff; background: #f7f4ff; border-radius: 10px; padding: 10px 12px; }
.ptdf__ai[hidden] { display: none; }
.ptdf__ai-head { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: #5b3fd6; margin-bottom: 4px; }
.ptdf__ai-title { font-weight: 700; font-size: 15px; line-height: 1.35; }
.ptdf__ai-details { white-space: pre-line; font-size: 14px; line-height: 1.45; margin-top: 4px; overflow-wrap: anywhere; }
.ptdf__ai-note { font-size: 12px; color: var(--f-muted); margin-top: 6px; }
.ptdf__ai-row { display: flex; gap: 8px; margin-top: 8px; }
.ptdf__ai-use, .ptdf__ai-keep { font: inherit; font-size: 13px; font-weight: 700; border-radius: 999px; padding: 6px 14px; cursor: pointer; }
.ptdf__ai-use { background: #5b3fd6; color: #fff; border: 0; }
.ptdf__ai-keep { background: var(--f-bg); color: var(--f-text); border: 1px solid var(--f-border); }
@media (max-width: 520px) { .ptdf__actions { flex-wrap: wrap; } }

/* Discount badge */
.ptdf__media { position: relative; }
.ptdf__off { position: absolute; top: 10px; left: 10px; z-index: 3; background: var(--f-accent); color: #fff; font-weight: 800; font-size: 18px; line-height: 1; padding: 8px 12px; border-radius: 999px; box-shadow: 0 2px 8px rgba(15, 31, 61, .25); letter-spacing: .01em; pointer-events: none; font-variant-numeric: tabular-nums; }
.ptdf__off[hidden] { display: none; }
.ptdf__off--preview { font-size: 14px; padding: 5px 9px; top: 6px; left: 6px; }
.ptdf__offrow { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 14px; color: var(--f-muted); }
.ptdf__offlabel { font-weight: 600; color: var(--f-text); }
.ptdf__offwrap { display: inline-flex; align-items: center; gap: 2px; font-weight: 700; color: var(--f-text); }
.ptdf__fields .ptdf__in-off { width: 64px; padding: 6px 8px; font-size: 14px; text-align: center; }
.ptdf__offhint { font-size: 13px; }
@media (max-width: 520px) { .ptdf__off { font-size: 15px; padding: 6px 10px; } }

/* An admin's comment: links live, marked with the site's name */
.ptdf__comment--admin { background: #eef4ff; }
.ptdf__comment-text a { color: var(--ptd-blue, #2563eb); text-decoration: none; font-weight: 600; }
.ptdf__comment-text a:hover { text-decoration: underline; }
.ptdf__badge--team { color: #1e40af; background: #dbe7ff; }

/* A feed opened on one deal (?deal=) */
.ptdf__focus { margin: 0 0 18px; }
.ptdf__focus-label, .ptdf__focus-more { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--f-accent-dark); margin: 0 0 8px; }
.ptdf__focus-more { color: var(--f-muted); margin: 18px 0 0; padding-top: 14px; border-top: 1px solid var(--f-border); }
.ptdf__list--focus .ptdf__post article { border: 2px solid var(--f-accent); box-shadow: 0 0 0 4px rgba(255, 59, 92, .12), var(--ptd-shadow, 0 1px 2px rgba(15, 31, 61, .06)); }
.ptdf__gone { background: var(--ptd-yellow-soft, #fff4d6); border-radius: 10px; padding: 10px 14px; margin: 0 0 14px; font-size: 14px; }
.ptdf__when { color: inherit; text-decoration: none; }
.ptdf__when:hover time { text-decoration: underline; }
.ptdf__share { border: 1px solid var(--f-border); background: var(--f-bg); color: var(--f-muted); font: inherit; font-size: 14px; font-weight: 600; border-radius: 999px; padding: 7px 14px; cursor: pointer; }
.ptdf__share:hover { color: var(--f-text); border-color: var(--f-muted); }
.ptdf__share--done { color: var(--ptd-green, #16a34a); border-color: var(--ptd-green, #16a34a); }
.ptdf__foot .ptdf__talk { margin-left: auto; }
@media (max-width: 520px) { .ptdf__foot { gap: 8px; } .ptdf__share, .ptdf__talk { padding: 6px 11px; } }

/* Disclosure, tabs, notices */
.ptdf__disclosure { font-size: 12px; color: var(--f-muted); margin: 0 0 10px; line-height: 1.45; }
.ptdf__notice { background: var(--ptd-green-soft, #e6f7ec); border-radius: 10px; padding: 10px 14px; margin: 0 0 12px; font-size: 14px; }
.ptdf__setup { background: #FFF7E6; border: 1px dashed #F59E0B; border-radius: 12px; padding: 12px 14px; margin: 0 0 12px; font-size: 14px; line-height: 1.45; color: var(--f-text); }
.ptdf__setup ol { margin: 6px 0 8px; padding-left: 20px; }
.ptdf__setup a { font-weight: 800; color: #C2410C; }
.ptdf__tabs { display: flex; gap: 6px; margin: 0 0 14px; }
.ptdf__tabs a { text-decoration: none; font-weight: 700; font-size: 14px; color: var(--f-muted); border: 1px solid var(--f-border); background: var(--f-bg); border-radius: 999px; padding: 6px 16px; }
.ptdf__tabs a[aria-current="page"] { color: #fff; background: var(--f-text); border-color: var(--f-text); }

/* Price line (Amazon: with its time, and hidden after 24 hours) */
.ptdf__price { margin: -4px 0 10px; font-size: 15px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.ptdf__price strong { font-size: 20px; color: var(--ptd-red, #dc2626); }
.ptdf__price s { color: var(--f-muted); }
.ptdf__asof { flex-basis: 100%; font-size: 12px; color: var(--f-muted); }
.ptdf__price--check { font-size: 14px; color: var(--f-muted); }

/* Codes */
.ptdf__code { display: flex; align-items: center; gap: 8px; margin: 12px 0 0; font-size: 14px; color: var(--f-muted); }
.ptdf__code-label { font-weight: 700; color: var(--f-text); }
.ptdf__chip { display: inline-flex; align-items: center; gap: 6px; border: 1.5px dashed var(--f-accent); background: #fff5f7; color: var(--f-text); border-radius: 8px; padding: 3px 4px 3px 10px; font: inherit; cursor: pointer; vertical-align: baseline; }
.ptdf__chip code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 800; font-size: 14px; letter-spacing: .04em; background: none; padding: 0; }
.ptdf__chip-do { background: var(--f-accent); color: #fff; font-size: 12px; font-weight: 700; border-radius: 6px; padding: 2px 8px; }
.ptdf__chip-do.is-done { background: var(--ptd-green, #16a34a); }
.ptdf__toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--ptd-text, #0f1f3d); color: #fff; padding: 10px 18px; border-radius: 999px; font: 600 14px/1.3 var(--ptd-font, sans-serif); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 99999; max-width: calc(100vw - 32px); text-align: center; }
.ptdf__toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* Footer: the main button left, social buttons right */
.ptdf__actions-right { display: inline-flex; gap: 6px; margin-left: auto; flex-wrap: wrap; }
.ptdf__foot .ptdf__talk { margin-left: 0; }
.ptdf__fire { border: 1px solid var(--f-border); background: var(--f-bg); color: var(--f-muted); font: inherit; font-size: 14px; font-weight: 700; border-radius: 999px; padding: 7px 12px; cursor: pointer; min-width: 44px; }
.ptdf__fire.is-on { background: #fff1e6; border-color: #fb923c; color: #c2410c; }
.ptdf__fire-n:empty { display: none; }
.ptdf__proof { margin: 10px 0 0; font-size: 13px; font-weight: 600; color: var(--f-muted); }

/* Labels and ended deals */
.ptdf__tag { display: inline-block; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; border-radius: 999px; padding: 2px 8px; margin-left: 4px; vertical-align: 1px; }
.ptdf__tag--sponsored { background: #eef2ff; color: #3730a3; }
.ptdf__tag--ended { background: #f1f5f9; color: #475569; }
.ptdf__post--ended .ptdf__media, .ptdf__post--ended .ptdf__price { opacity: .55; filter: grayscale(.6); }
.ptdf__post--ended .ptdf__go { background: #64748b; }

/* Admin row on each card */
.ptdf__admin { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--f-border); font-size: 13px; }
.ptdf__admin button, .ptdf__admin a { font: inherit; font-size: 13px; font-weight: 600; border: 1px solid var(--f-border); background: var(--f-bg); color: var(--f-text); border-radius: 999px; padding: 3px 12px; cursor: pointer; text-decoration: none; }
.ptdf__admin-stat { margin-left: auto; color: var(--f-muted); }

/* Composer: link + fill, price row, Amazon note, sponsored */
.ptdf__linkrow { display: flex; gap: 6px; }
.ptdf__linkrow input { flex: 1; min-width: 0; }
.ptdf__fill { font: inherit; font-size: 13px; font-weight: 700; border: 1px solid var(--f-border); background: var(--f-alt); color: var(--f-text); border-radius: 8px; padding: 0 10px; cursor: pointer; white-space: nowrap; }
.ptdf__fill:disabled { opacity: .7; cursor: progress; }
.ptdf__pricerow { display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 6px; }
.ptdf__fields .ptdf__pricerow input { padding: 8px 10px; font-size: 14px; }
.ptdf__in-code { text-transform: uppercase; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.ptdf__amznote { font-size: 12px; color: #92400e; background: #fffbeb; border-radius: 8px; padding: 6px 10px; }
.ptdf__amznote[hidden] { display: none; }
.ptdf__spons { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--f-muted); white-space: nowrap; }

/* Email sign-up */
.ptdf__subscribe { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; background: var(--f-bg); border: 1px solid var(--f-border); border-radius: var(--f-radius); padding: 12px 14px; margin: 0 0 16px; }
.ptdf__subscribe-text { font-weight: 700; font-size: 14px; }
.ptdf__subscribe-row { display: flex; gap: 6px; flex: 1; min-width: 240px; }
.ptdf__subscribe input[type="email"] { flex: 1; min-width: 0; font: inherit; font-size: 14px; border: 1px solid var(--f-border); border-radius: 8px; padding: 8px 10px; }
.ptdf__subscribe button { font: inherit; font-weight: 700; font-size: 14px; background: var(--f-accent); color: #fff; border: 0; border-radius: 999px; padding: 8px 16px; cursor: pointer; }
.ptdf__subscribe-msg { flex-basis: 100%; font-size: 13px; color: var(--ptd-green, #16a34a); }
.ptdf__subscribe-msg:empty { display: none; }
.ptdf__subscribe.is-done .ptdf__subscribe-row { display: none; }

@media (max-width: 520px) {
	.ptdf__pricerow { grid-template-columns: 1fr 1fr; }
	.ptdf__in-code { grid-column: 1 / -1; }
	.ptdf__actions-right { margin-left: 0; width: 100%; }
}

/* The page's tagline (above the feed) */
.ptdf-tagline { max-width: 600px; margin: 0 auto 14px; color: var(--ptd-muted, #5b6577); font-size: 16px; line-height: 1.5; }


/* ===== 2.1 — Deal Hunter redesign (orange and navy, mobile first) ===== */
.ptdf { font-size: 15px; }
.ptdf button, .ptdf a { -webkit-tap-highlight-color: transparent; }

/* Compact bar: search, saved, alerts */
.ptdf__bar { position: sticky; top: var(--ptd-sticky-top, 0px); z-index: 20; display: flex; gap: 8px; align-items: center; background: rgba(248, 250, 252, .94); backdrop-filter: saturate(1.4) blur(8px); -webkit-backdrop-filter: saturate(1.4) blur(8px); padding: 8px 0; margin: 0 0 10px; }
.ptdf__search { flex: 1; min-width: 0; }
.ptdf__search input { width: 100%; height: 42px; border: 1px solid var(--f-border); border-radius: 999px; padding: 0 16px 0 38px; font: inherit; color: var(--f-text); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%235B6577' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='8' cy='8' r='6'/%3E%3Cpath d='M13 13l4 4'/%3E%3C/svg%3E") no-repeat 13px center; }
.ptdf__search input:focus { outline: none; border-color: var(--f-orange); box-shadow: 0 0 0 3px rgba(255, 102, 0, .15); }
.ptdf__bar-btn { position: relative; flex: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--f-border); background: #fff; color: var(--f-text); font-size: 19px; line-height: 1; cursor: pointer; }
.ptdf__bar-btn:focus-visible { outline: 3px solid rgba(255, 102, 0, .4); outline-offset: 2px; }
.ptdf__badge-n { position: absolute; top: -3px; right: -3px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--f-orange); color: #fff; font-size: 11px; font-weight: 800; line-height: 18px; }
.ptdf__badge-n[hidden] { display: none; }

/* The Deal Hunter banner */
.ptdf__hunt { position: relative; background: linear-gradient(135deg, #FFF3EB 0%, #FFE6D5 100%); border: 1px solid #FFD3B5; border-radius: var(--f-radius); padding: 14px 14px 12px; margin: 0 0 12px; color: var(--f-text); }
.ptdf__hunt-kicker { margin: 0 0 2px; font-size: 13px; font-weight: 800; color: #C2410C; }
.ptdf__hunt-title { margin: 0 0 2px; font-size: 19px; line-height: 1.25; font-weight: 800; color: var(--f-text); }
.ptdf__hunt-sub { margin: 0 0 10px; font-size: 14px; color: #3B4A66; }
.ptdf__hunt .ptdf__vb, .ptdf__hunt[data-v="b"] .ptdf__va { display: none; }
.ptdf__hunt[data-v="b"] .ptdf__vb { display: inline; }
.ptdf__hunt-x { position: absolute; top: 6px; right: 6px; width: 32px; height: 32px; border: 0; background: none; font-size: 20px; color: #7C6A5D; border-radius: 50%; cursor: pointer; }
.ptdf__chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 2px 0 10px; margin: 0 -2px; flex-wrap: nowrap; }
.ptdf__chips::-webkit-scrollbar { display: none; }
.ptdf__chip-cat { flex: none; border: 1px solid #FFC59E; background: #fff; color: var(--f-text); font: inherit; font-size: 13px; font-weight: 700; border-radius: 999px; padding: 7px 12px; min-height: 36px; cursor: pointer; white-space: nowrap; }
.ptdf__chip-cat[aria-pressed="true"] { background: var(--f-text); border-color: var(--f-text); color: #fff; }
.ptdf__hunt-cta { display: block; width: 100%; min-height: 46px; border: 0; border-radius: 999px; background: var(--f-orange); color: #fff; font: inherit; font-size: 16px; font-weight: 800; cursor: pointer; box-shadow: 0 6px 16px rgba(255, 102, 0, .25); }
.ptdf__hunt-cta:hover { background: #E85C00; }
.ptdf__hunt-mini { display: none; width: 100%; text-align: left; border: 0; background: none; font: inherit; font-size: 14px; color: var(--f-text); padding: 2px 30px 2px 0; cursor: pointer; }
.ptdf__hunt[data-state="compact"] { padding: 10px 14px; }
.ptdf__hunt[data-state="compact"] > :not(.ptdf__hunt-mini):not(.ptdf__hunt-x) { display: none; }
.ptdf__hunt[data-state="compact"] .ptdf__hunt-mini { display: block; }
.ptdf__hunt[data-state="hidden"] { display: none; }

/* Cards: short title, specs, steady picture, clear button order */
.ptdf__title { font-size: 17px; line-height: 1.3; margin: 0 0 2px; }
.ptdf__specs { margin: 0 0 8px; color: var(--f-muted); font-size: 13px; }
.ptdf__price { margin: 0 0 8px; font-size: 13px; gap: 2px 8px; }
.ptdf__price s { color: var(--f-muted); }
.ptdf__was { color: var(--f-muted); }
.ptdf__pic { aspect-ratio: 4 / 3; background: #fff; display: flex; align-items: center; justify-content: center; }
.ptdf__pic img { width: 100%; height: 100%; max-height: none; object-fit: contain; }
.ptdf__pic--video { aspect-ratio: auto; background: #000; }
.ptdf__tag--hot { background: #FFF1E6; color: #C2410C; }
.ptdf__foot { margin-top: 12px; }
.ptdf__go { flex: 1 1 auto; text-align: center; min-height: 46px; display: inline-flex; align-items: center; justify-content: center; background: var(--f-accent); font-size: 16px; padding: 10px 20px; box-shadow: 0 6px 14px rgba(255, 54, 91, .22); }
.ptdf__host { flex: none; }
.ptdf__more-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; }
.ptdf__alert-btn, .ptdf__save-btn { min-height: 40px; border: 1px solid var(--f-border); background: #fff; color: var(--f-text); font: inherit; font-size: 14px; font-weight: 700; border-radius: 999px; padding: 6px 14px; cursor: pointer; }
.ptdf__alert-btn { border: 1.5px solid var(--f-orange); color: #C2410C; background: var(--f-orange-soft); font-weight: 800; }
.ptdf__alert-btn:hover { background: var(--f-orange); color: #fff; }
.ptdf__alert-btn.is-on { background: #ECFDF3; border-color: #86EFAC; color: #166534; }
.ptdf__save-btn.is-on { color: var(--f-accent); border-color: #FFC2CF; background: #FFF5F7; }
.ptdf__more-actions .ptdf__actions-right { margin-left: auto; }
.ptdf__more-actions .ptdf__fire, .ptdf__more-actions .ptdf__talk, .ptdf__more-actions .ptdf__share { min-height: 40px; }

/* In-feed sign-up card */
.ptdf__inline { list-style: none; margin: 0 0 14px; }
.ptdf__inline[hidden] { display: none; }
.ptdf__inline-box { display: grid; gap: 6px; background: var(--f-text); color: #fff; border-radius: var(--f-radius); padding: 16px; }
.ptdf__inline-box strong { font-size: 17px; }
.ptdf__inline-box span { color: #C9D3E6; font-size: 14px; }
.ptdf__inline-box button { justify-self: start; border: 0; border-radius: 999px; background: var(--f-orange); color: #fff; font: inherit; font-weight: 800; padding: 10px 18px; min-height: 44px; cursor: pointer; }

/* Bottom sheet */
html.ptdf-locked, html.ptdf-locked body { overflow: hidden; }
.ptdf-sheet { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: flex-end; justify-content: center; font-family: var(--ptd-font, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif); color: #10203F; }
.ptdf-sheet__bg { position: absolute; inset: 0; background: rgba(16, 32, 63, .5); opacity: 0; transition: opacity .2s; }
.ptdf-sheet__panel { position: relative; width: 100%; max-width: 520px; max-height: 88vh; overflow: auto; background: #fff; border-radius: 20px 20px 0 0; padding: 16px 16px calc(16px + env(safe-area-inset-bottom)); transform: translateY(24px); opacity: 0; transition: transform .22s ease-out, opacity .22s; box-shadow: 0 -10px 40px rgba(16, 32, 63, .25); }
.ptdf-sheet.is-open .ptdf-sheet__bg { opacity: 1; }
.ptdf-sheet.is-open .ptdf-sheet__panel { transform: none; opacity: 1; }
@media (min-width: 640px) { .ptdf-sheet { align-items: center; } .ptdf-sheet__panel { border-radius: 20px; } }
@media (prefers-reduced-motion: reduce) { .ptdf-sheet__panel, .ptdf-sheet__bg { transition: none; } }
.ptdf-sheet__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 6px; }
.ptdf-sheet__title { margin: 0; font-size: 20px; line-height: 1.25; font-weight: 800; color: #10203F; }
.ptdf-sheet__x { width: 40px; height: 40px; border: 0; border-radius: 50%; background: #F1F5F9; font-size: 22px; color: #10203F; cursor: pointer; flex: none; }

/* Forms inside sheets */
.ptdf-form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.ptdf-form__sub, .ptdf-form__product { margin: 0; color: #3B4A66; font-size: 15px; }
.ptdf-form__product { font-weight: 700; color: #10203F; }
.ptdf-form__now { margin: 0; font-size: 15px; }
.ptdf-form__label { margin: 6px 0 0; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: #5B6577; }
.ptdf-form .ptdf__chips { flex-wrap: wrap; overflow: visible; padding: 0; }
.ptdf-form .ptdf__chip-cat { border-color: #E6E9F0; }
.ptdf-form__freq { border: 0; padding: 0; margin: 0; display: grid; gap: 6px; }
.ptdf-form__freq legend { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: #5B6577; padding: 0; margin: 0 0 4px; }
.ptdf-form__radio { display: flex; align-items: center; gap: 8px; font-size: 15px; min-height: 36px; }
.ptdf-form__radio input, .ptdf-form__consent input { width: 20px; height: 20px; accent-color: #FF6600; flex: none; }
.ptdf-form input[type="email"], .ptdf-form input[type="number"] { width: 100%; min-height: 48px; border: 1px solid #CBD5E1; border-radius: 12px; padding: 0 14px; font: inherit; font-size: 16px; color: #10203F; }
.ptdf-form input:focus { outline: none; border-color: #FF6600; box-shadow: 0 0 0 3px rgba(255, 102, 0, .18); }
.ptdf-form__target { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.ptdf-form__target input { max-width: 140px; }
.ptdf-form__consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: #3B4A66; }
.ptdf-form__go { min-height: 50px; border: 0; border-radius: 999px; background: #FF6600; color: #fff; font: inherit; font-size: 17px; font-weight: 800; cursor: pointer; }
.ptdf-form__go:disabled { opacity: .6; cursor: progress; }
.ptdf-form__push { min-height: 44px; border: 1px solid #CBD5E1; border-radius: 999px; background: #fff; color: #10203F; font: inherit; font-weight: 700; cursor: pointer; }
.ptdf-form__privacy { margin: 0; font-size: 12px; color: #5B6577; line-height: 1.45; }
.ptdf-form__privacy a { color: #5B6577; }
.ptdf-form__msg { margin: 0; font-size: 14px; color: #B91C1C; }
.ptdf-form__msg:empty { display: none; }
.ptdf-form__msg.is-ok { color: #166534; font-weight: 700; font-size: 15px; }
.ptdf-form__link { border: 0; background: none; color: #C2410C; font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; padding: 4px 0; justify-self: start; }
.ptdf-form__unsub { color: #5B6577; margin-top: 8px; }
.ptdf-prefs__alerts { margin: 0; padding-left: 18px; display: grid; gap: 6px; font-size: 14px; }
.ptdf-ios { margin: 0; padding-left: 20px; display: grid; gap: 8px; font-size: 15px; }
.ptdf-saved { max-width: none; }
.ptdf-saved__foot { display: grid; gap: 8px; margin-top: 8px; }

/* One row of actions on phones: Comment and Share as icons (their words stay for screen readers) */
@media (max-width: 460px) {
	.ptdf__more-actions { flex-wrap: nowrap; gap: 5px; }
	.ptdf__alert-btn, .ptdf__save-btn { padding: 6px 11px; font-size: 13px; white-space: nowrap; }
	.ptdf__more-actions .ptdf__actions-right { flex-wrap: nowrap; gap: 5px; width: auto; margin-left: auto; }
	.ptdf__more-actions .ptdf__fire, .ptdf__more-actions .ptdf__talk, .ptdf__more-actions .ptdf__share { padding: 6px 9px; min-width: 38px; }
	.ptdf__share { font-size: 0; }
	.ptdf__more-actions .ptdf__talk-n--word { display: none; }
	.ptdf__share span[aria-hidden] { font-size: 15px; }
}

/* Deal alerts on the rest of the site (deal pages, deal lists, [ptd_deal_alerts]) */
.ptdf-site { margin: 16px 0; padding: 14px 16px; background: var(--f-orange-soft); border: 1.5px solid #FFC59E; border-radius: var(--f-radius); color: var(--f-text); font-family: var(--ptd-font, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif); }
.ptdf-site[hidden] { display: none; }
.ptdf-site__t { margin: 0 0 8px; font-size: 16px; font-weight: 800; line-height: 1.3; }
.ptdf-site__b { display: flex; flex-wrap: wrap; gap: 8px; }
.ptdf-site__s { margin: 8px 0 0; font-size: 13px; line-height: 1.45; color: var(--f-muted); }
.ptdf-site__go { margin-top: 10px; min-height: 46px; padding: 0 20px; border: 0; border-radius: 999px; background: var(--f-orange); color: #fff; font: inherit; font-size: 16px; font-weight: 800; cursor: pointer; }
.ptdf-site__go:hover { background: #E25A00; }
.ptdf-site .ptdf__alert-btn { min-height: 44px; }

/* ---- 2.5.0: the deal a visitor came for, prices as text, trust notes ------------------------ */
.ptdf .screen-reader-text, .ptdf-site .screen-reader-text { border: 0; clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; white-space: nowrap; }

/* Compact page heading when a deal was opened, so the deal shows without scrolling */
body.ptdf-focus-view .ptdf-tagline { display: none; }
body.ptdf-focus-view .ptd-page__head { margin: 0 0 10px; }
body.ptdf-focus-view .ptd-page__title { font-size: clamp(1.15rem, 3vw, 1.5rem); margin: 0; }
@media (max-width: 639px) { body.ptdf-focus-view .ptd-breadcrumbs { display: none; } body.ptdf-focus-view .ptd-page__head { margin-top: 12px; } }

/* The deal first */
.ptdf h2.ptdf__focus-label, .ptdf h2.ptdf__focus-more { font-family: inherit; font-size: 13px; line-height: 1.3; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--f-accent-dark); margin: 0 0 8px; }
.ptdf h2.ptdf__focus-more { color: var(--f-muted); margin: 22px 0 6px; padding-top: 14px; border-top: 1px solid var(--f-border); }
.ptdf__focus { margin: 0 0 14px; }
.ptdf__list--focus .ptdf__post > article { border: 2px solid var(--f-accent); box-shadow: 0 8px 24px rgba(16, 32, 63, .10); }
.ptdf__list--focus, .ptdf__list--similar { margin-bottom: 8px; }
.ptdf__similar { margin: 8px 0 0; }
.ptdf__focus .ptdf__disclosure { margin: 6px 2px 4px; font-size: 13px; }
/* With the deal first, the big alert panel isn't shown (the layout test's "panel" variant keeps it) */
.ptdf--focus:not([data-exp="panel"]) .ptdf__hunt { display: none; }
.ptdf[data-exp="panel"] .ptdf__ctx { display: none; }

/* Price block: price, comparison price, savings, freshness — all text */
.ptdf .ptdf__price { display: block; margin: 2px 0 10px; font-size: 14px; }
.ptdf__price p { margin: 0; }
.ptdf__price-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.ptdf__now { font-size: 24px; line-height: 1.15; font-weight: 800; color: var(--f-text); }
.ptdf__was { color: var(--f-muted); font-size: 15px; }
.ptdf__was-l { font-size: 13px; }
.ptdf__save { margin-top: 2px !important; font-size: 15px; font-weight: 800; color: #B42318; }
.ptdf__basis, .ptdf__checked, .ptdf__claims { font-size: 12.5px; line-height: 1.45; color: var(--f-muted); margin-top: 4px !important; }
.ptdf__checked--checked { color: #166534; }
.ptdf__checked--changed, .ptdf__checked--unavailable, .ptdf__checked--old { color: #9A3412; }
.ptdf__price--check .ptdf__price-row { font-weight: 700; color: var(--f-text); }
.ptdf__code-how { font-size: 13px; color: var(--f-muted); }
.ptdf__claims { margin: 6px 0 0; }

/* Tags that explain themselves */
a.ptdf__tag { text-decoration: none; }
a.ptdf__tag:hover, a.ptdf__tag:focus-visible { text-decoration: underline; }

/* Opinion and editor flags */
.ptdf__why { margin: 12px 0 0; padding: 10px 12px; background: var(--f-alt); border-left: 3px solid var(--f-orange); border-radius: 8px; font-size: 14px; line-height: 1.5; }
.ptdf__why p { margin: 0; }
.ptdf__why-t { font-weight: 800; margin-bottom: 2px !important; }
.ptdf__why-k { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--f-muted); margin-left: 4px; }
.ptdf__details { margin-top: 10px; }
.ptdf__flag { flex-basis: 100%; margin: 0 0 6px; padding: 6px 10px; background: #FFFBEB; border: 1px solid #FCD34D; border-radius: 8px; font-size: 13px; color: #78350F; }

/* How we pick these deals */
.ptdf__how { margin: 6px 0 14px; padding: 0 12px; background: var(--f-alt); border: 1px solid var(--f-border); border-radius: 10px; font-size: 14px; line-height: 1.5; }
.ptdf__how summary { cursor: pointer; padding: 10px 0; font-weight: 700; min-height: 44px; display: flex; align-items: center; }
.ptdf__how ul { margin: 0 0 10px; padding-left: 18px; display: grid; gap: 6px; }
.ptdf__how p { margin: 0 0 10px; }

/* The sign-up under the deal */
.ptdf__ctx { margin: 0 0 8px; padding: 16px; background: var(--f-orange-soft); border: 1.5px solid #FFC59E; border-radius: var(--f-radius); }
.ptdf__ctx[hidden] { display: none; }
.ptdf__ctx [hidden] { display: none !important; }
.ptdf .ptdf__ctx-t { margin: 0 0 4px; font-family: inherit; letter-spacing: 0; font-size: 19px; line-height: 1.25; font-weight: 800; color: var(--f-text); }
.ptdf__ctx-s { margin: 0 0 10px; font-size: 14px; color: #3B4A66; }
.ptdf__ctx .ptdf__chips { flex-wrap: wrap; overflow: visible; padding: 0 0 10px; }
.ptdf__ctx-form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.ptdf__ctx-l { font-size: 13px; font-weight: 800; color: #3B4A66; margin: 2px 0 -4px; }
.ptdf__ctx select, .ptdf__ctx input[type="email"] { width: 100%; min-height: 48px; border: 1px solid #CBD5E1; border-radius: 12px; padding: 0 12px; font: inherit; font-size: 16px; color: var(--f-text); background: #fff; }
.ptdf__ctx select:focus, .ptdf__ctx input[type="email"]:focus { outline: none; border-color: var(--f-orange); box-shadow: 0 0 0 3px rgba(255, 102, 0, .18); }
.ptdf__ctx-go { width: 100%; min-height: 50px; border: 0; border-radius: 999px; background: var(--f-orange); color: #fff; font: inherit; font-size: 16px; font-weight: 800; padding: 0 20px; cursor: pointer; }
.ptdf__ctx-go:hover { background: #E25A00; }
.ptdf__ctx-go:disabled { opacity: .6; cursor: progress; }
.ptdf__ctx .ptdf-form__consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: #3B4A66; }
.ptdf__ctx .ptdf-form__consent input { width: 20px; height: 20px; accent-color: #FF6600; flex: none; margin-top: 1px; }
.ptdf__ctx-fine { margin: 0; font-size: 12.5px; line-height: 1.45; color: var(--f-muted); }
.ptdf__ctx-fine a { color: var(--f-muted); }
.ptdf__ctx-msg, .ptdf__ctx-pmsg { margin: 0; font-size: 14px; color: #B91C1C; }
.ptdf__ctx-msg:empty, .ptdf__ctx-pmsg:empty { display: none; }
.ptdf__ctx-msg.is-ok, .ptdf__ctx-pmsg.is-ok { color: #166534; font-weight: 700; font-size: 15px; }
.ptdf__ctx-push { margin-top: 12px; padding-top: 12px; border-top: 1px dashed #FFC59E; display: grid; gap: 6px; }
.ptdf__ctx-push p { margin: 0; font-size: 13px; color: #3B4A66; }
.ptdf__ctx-pushbtn { justify-self: start; min-height: 44px; border: 1px solid #CBD5E1; border-radius: 999px; background: #fff; color: var(--f-text); font: inherit; font-weight: 700; padding: 0 16px; cursor: pointer; }
.ptdf__ctx-pushbtn:disabled { opacity: .6; }

/* Focused card: the button sits right under the price, the picture after it */
.ptdf__post--focus .ptdf__foot { margin: 4px 0 12px; }
.ptdf__post--focus .ptdf__basis { margin: 8px 0 0; }

/* On a phone, with a deal opened, the shopping assistant's button is just its icon, so it
   covers as little of the deal as possible (its name stays for screen readers) */
@media (max-width: 640px) {
	body.ptdf-focus-view .ptda__bubble { width: 52px; padding: 0; justify-content: center; }
	body.ptdf-focus-view .ptda__bubble-t { display: none; }
}

/* The shopping assistant's button never sits on top of the end of the feed */
.ptdf--focus { padding-bottom: 72px; }
@media (max-width: 460px) { .ptdf__now { font-size: 22px; } .ptdf__go { font-size: 15px; } }
