/* TGCC Checkout Upgrade Popup 1.0.0
 * Learning Centre dark-card style. Uses the shared --tgcc-* tokens when the checkout style plugin has loaded them,
 * with the same values repeated as fallbacks so the pop-up looks right on its own. */

.tgcc-cup{
	--c-bg:var(--tgcc-bg,#0b0814);--c-panel:var(--tgcc-panel,#150e1f);--c-panel2:var(--tgcc-panel2,#1d1430);
	--c-line:var(--tgcc-line,rgba(255,255,255,.08));--c-txt:var(--tgcc-txt,#f3f1f6);--c-msg:var(--tgcc-msg-txt,#e7e1ef);
	--c-mut:var(--tgcc-mut,#a89fb8);--c-sky:var(--tgcc-sky,#5ec8ff);--c-red:#ff6b68;--c-green:var(--tgcc-green,#3ddc84);
	--c-grad:var(--tgcc-btn-grad,linear-gradient(135deg,#8e43f0,#6300e2));--c-shadow:var(--tgcc-btn-shadow,0 10px 30px rgba(142,67,240,.45));
	position:fixed;inset:0;z-index:2147483000;display:flex;align-items:center;justify-content:center;padding:20px;
	font-family:var(--tgcc-font,Montserrat,Arial,sans-serif);font-size:16px;line-height:1.5;color:var(--c-msg);
	-webkit-font-smoothing:antialiased;text-align:left;
}
.tgcc-cup[hidden]{display:none!important}
.tgcc-cup *,.tgcc-cup *:before,.tgcc-cup *:after{box-sizing:border-box}
.tgcc-cup__backdrop{position:absolute;inset:0;background:rgba(5,3,10,.78);backdrop-filter:blur(3px);-webkit-backdrop-filter:blur(3px);animation:tgcc-cup-fade .2s ease-out}
.tgcc-cup__card{
	position:relative;width:100%;max-width:460px;max-height:calc(100vh - 40px);max-height:calc(100dvh - 40px);overflow:auto;
	padding:34px;background:var(--c-panel);border:1px solid var(--c-line);border-radius:var(--tgcc-card-radius,22px);
	background-image:radial-gradient(420px 260px at 90% 0%,rgba(94,200,255,.12),transparent 70%),radial-gradient(380px 260px at 0% 100%,rgba(142,67,240,.18),transparent 70%);
	box-shadow:var(--tgcc-card-shadow,0 30px 80px rgba(0,0,0,.55));animation:tgcc-cup-pop .22s ease-out;outline:none;
}
@keyframes tgcc-cup-fade{from{opacity:0}to{opacity:1}}
@keyframes tgcc-cup-pop{from{opacity:0;transform:translateY(10px) scale(.98)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){.tgcc-cup__backdrop,.tgcc-cup__card{animation:none}}

.tgcc-cup .tgcc-cup__x{
	position:absolute;top:14px;right:14px;width:36px;height:36px;margin:0;padding:0;display:flex;align-items:center;justify-content:center;
	background:transparent;border:1px solid var(--tgcc-pill2-line,rgba(255,255,255,.16));border-radius:999px;color:var(--tgcc-pill2-txt,#d8d2e4);
	font:400 20px/1 Arial,sans-serif;cursor:pointer;box-shadow:none;text-transform:none;letter-spacing:normal;
}
.tgcc-cup .tgcc-cup__x:hover{background:rgba(255,255,255,.08);color:#fff}
.tgcc-cup__eyebrow{display:inline-block;padding:var(--tgcc-pill-pad,6px 14px);border:1px solid var(--c-sky);border-radius:999px;color:var(--c-sky);font-size:12px;font-weight:700;line-height:1.5;letter-spacing:2px;text-transform:uppercase}
.tgcc-cup .tgcc-cup__title{margin:16px 44px 0 0;padding:0;color:#fff;font-family:inherit;font-size:24px;font-weight:800;line-height:1.2;letter-spacing:normal;text-transform:none}
.tgcc-cup .tgcc-cup__lead{margin:12px 0 0;padding:0;color:var(--c-msg);font-size:15px;line-height:1.6}
.tgcc-cup .tgcc-cup__lead strong{color:#fff}
.tgcc-cup__form{margin:22px 0 0;padding:0}
.tgcc-cup__field{margin:0 0 14px}
.tgcc-cup .tgcc-cup__field label{display:block;margin:0 0 6px;color:var(--c-mut);font-size:12px;font-weight:700;letter-spacing:1.5px;text-transform:uppercase}
.tgcc-cup .tgcc-cup__field input{
	display:block;width:100%;height:auto;margin:0;padding:13px 14px;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.16);border-radius:12px;
	color:#fff;font:400 16px/1.3 var(--tgcc-font,Montserrat,Arial,sans-serif);box-shadow:none;
}
.tgcc-cup .tgcc-cup__field input:focus{border-color:var(--c-sky);outline:none;box-shadow:0 0 0 3px rgba(94,200,255,.25)}
.tgcc-cup__pw{position:relative}
.tgcc-cup__pw input{padding-right:84px!important}
.tgcc-cup .tgcc-cup__show{position:absolute;top:50%;right:8px;transform:translateY(-50%);margin:0;padding:6px 10px;background:transparent;border:0;border-radius:8px;color:var(--c-sky);font:700 12px/1 var(--tgcc-font,Montserrat,Arial,sans-serif);letter-spacing:.5px;cursor:pointer;box-shadow:none;text-transform:none}
.tgcc-cup .tgcc-cup__show:hover{color:#fff}
.tgcc-cup .tgcc-cup__go{
	display:block;width:100%;margin:6px 0 0;padding:var(--tgcc-btn-pad,15px 26px);background:var(--c-grad);border:0;border-radius:var(--tgcc-btn-radius,12px);
	color:#fff;font:800 15px/1.2 var(--tgcc-font,Montserrat,Arial,sans-serif);letter-spacing:normal;text-transform:none;text-align:center;cursor:pointer;box-shadow:var(--c-shadow);
}
.tgcc-cup .tgcc-cup__go:hover{filter:brightness(1.08)}
.tgcc-cup .tgcc-cup__go[disabled]{opacity:.65;cursor:wait}
.tgcc-cup__err{margin:0 0 14px;padding:11px 14px;background:rgba(255,107,104,.1);border:1px solid rgba(255,107,104,.4);border-radius:12px;color:#ffd5d4;font-size:14px;line-height:1.5}
.tgcc-cup__err[hidden]{display:none}
.tgcc-cup__ok{margin:0 0 14px;padding:11px 14px;background:rgba(61,220,132,.1);border:1px solid rgba(61,220,132,.4);border-radius:12px;color:#d4f7e2;font-size:14px;line-height:1.5}
.tgcc-cup__ok[hidden]{display:none}
.tgcc-cup__links{display:flex;flex-wrap:wrap;gap:6px 18px;margin:18px 0 0;padding:0}
.tgcc-cup .tgcc-cup__links a,.tgcc-cup .tgcc-cup__links button{margin:0;padding:0;background:none;border:0;box-shadow:none;color:var(--c-sky);font:700 14px/1.5 var(--tgcc-font,Montserrat,Arial,sans-serif);text-decoration:underline;text-transform:none;letter-spacing:normal;cursor:pointer}
.tgcc-cup .tgcc-cup__links a:hover,.tgcc-cup .tgcc-cup__links button:hover{color:#fff}
.tgcc-cup .tgcc-cup__links .tgcc-cup__quiet{color:var(--c-mut);font-weight:600}
.tgcc-cup a:focus-visible,.tgcc-cup button:focus-visible,.tgcc-cup input:focus-visible{outline:var(--tgcc-focus,2px solid #5ec8ff);outline-offset:var(--tgcc-focus-offset,2px)}

/* small note under the email field once the pop-up has been dismissed */
.tgcc-cup-hint,body .pmpro .pmpro_form_field .tgcc-cup-hint{
	display:block!important;width:100%!important;box-sizing:border-box!important;margin:10px 0 0!important;padding:11px 16px!important;
	background:var(--tgcc-note-bg,rgba(255,176,32,.06))!important;border:1px solid var(--tgcc-note-line,rgba(255,176,32,.35))!important;border-radius:12px!important;
	color:var(--tgcc-msg-txt,#e7e1ef)!important;font-size:14px!important;line-height:1.5!important;text-align:left!important;
}
.tgcc-cup-hint button,body .pmpro .tgcc-cup-hint button{display:inline!important;width:auto!important;margin:0 0 0 6px!important;padding:0!important;background:none;border:0;box-shadow:none;color:var(--tgcc-sky,#5ec8ff);font:700 14px/1.5 inherit;text-decoration:underline;text-transform:none;cursor:pointer}
.tgcc-cup-hint button:hover{color:#fff}

body.tgcc-cup-open{overflow:hidden}

@media (max-width:480px){
	.tgcc-cup{padding:12px;align-items:flex-end}
	.tgcc-cup__card{padding:26px 22px;max-height:calc(100dvh - 24px);border-radius:20px}
	.tgcc-cup .tgcc-cup__title{font-size:21px}
	.tgcc-cup .tgcc-cup__field input{font-size:16px} /* 16px stops iOS zooming into the field */
}
