:root {
	--pcc-green: #174d36;
	--pcc-green-dark: #103b29;
	--pcc-gold: #f4b800;
	--pcc-cream: #fffaf0;
	--pcc-ink: #17211c;
}

.pcc[hidden], .pcc [hidden], .pcc-manage[hidden] { display: none !important; }
.pcc { position: fixed; inset: 0; z-index: 2147483000; display: flex; align-items: flex-end; justify-content: center; padding: 24px; font-family: inherit; }
.pcc__backdrop { position: absolute; inset: 0; background: rgba(8, 28, 19, .48); backdrop-filter: blur(2px); }
.pcc__dialog { position: relative; width: min(920px, 100%); max-height: calc(100vh - 48px); overflow: auto; color: var(--pcc-ink); background: var(--pcc-cream); border: 1px solid rgba(23, 77, 54, .18); border-radius: 20px; box-shadow: 0 22px 70px rgba(8, 28, 19, .26); padding: 28px; }
.pcc__eyebrow { margin: 0 0 5px; color: var(--pcc-green); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.pcc h2 { margin: 0 0 10px; color: var(--pcc-green-dark); font-size: clamp(22px, 3vw, 30px); line-height: 1.2; }
.pcc p { margin: 0; font-size: 15px; line-height: 1.6; }
.pcc__actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 22px; }
.pcc__button { min-height: 48px; border: 2px solid var(--pcc-green); border-radius: 12px; padding: 10px 16px; font: inherit; font-weight: 800; cursor: pointer; transition: transform .16s ease, box-shadow .16s ease, background .16s ease; }
.pcc__button:hover { transform: translateY(-1px); box-shadow: 0 7px 18px rgba(23, 77, 54, .14); }
.pcc__button:focus-visible, .pcc-manage:focus-visible, .pcc__switch input:focus-visible + span { outline: 3px solid #1a73e8; outline-offset: 3px; }
.pcc__button--accept { background: var(--pcc-gold); color: #151515; }
.pcc__button--reject { background: #fff; color: var(--pcc-green-dark); }
.pcc__button--customize, .pcc__button--save { background: var(--pcc-green); color: #fff; }
.pcc__category { display: flex; align-items: center; justify-content: space-between; gap: 24px; border-top: 1px solid rgba(23, 77, 54, .16); padding: 16px 0; }
.pcc__category:first-of-type { margin-top: 18px; }
.pcc__category strong, .pcc__category span { display: block; }
.pcc__category strong { color: var(--pcc-green-dark); font-size: 16px; }
.pcc__category div > span { margin-top: 2px; color: #58645e; font-size: 13px; }
.pcc__switch { position: relative; flex: 0 0 48px; width: 48px; height: 26px; }
.pcc__switch input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.pcc__switch > span:last-child { position: absolute; inset: 0; border-radius: 30px; background: #c7cec9; cursor: pointer; transition: background .16s ease; }
.pcc__switch > span:last-child::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .28); transition: transform .16s ease; }
.pcc__switch input:checked + span { background: var(--pcc-green); }
.pcc__switch input:checked + span::after { transform: translateX(22px); }
.pcc__switch input:disabled + span { cursor: not-allowed; opacity: .72; }
.pcc-manage { position: fixed; z-index: 2147482000; left: 16px; bottom: 16px; border: 1px solid rgba(23, 77, 54, .28); border-radius: 999px; padding: 9px 14px; background: #fffaf0; color: #174d36; box-shadow: 0 5px 18px rgba(8, 28, 19, .16); font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; }

@media (max-width: 680px) {
	.pcc { padding: 12px; }
	.pcc__dialog { max-height: calc(100vh - 24px); border-radius: 16px; padding: 21px 18px; }
	.pcc__actions { grid-template-columns: 1fr; gap: 9px; margin-top: 18px; }
	.pcc__category { gap: 14px; padding: 13px 0; }
	.pcc-manage { left: 10px; bottom: 10px; padding: 8px 12px; }
}

@media (prefers-reduced-motion: reduce) {
	.pcc__button, .pcc__switch > span:last-child, .pcc__switch > span:last-child::after { transition: none; }
}
