/* Shiv27 Turnstile — widget box inside WHMCS forms */
.ph-ts { margin: 0 0 16px; clear: both; }
.ph-ts-widget { min-height: 65px; }
/* Normal (300px) and Compact widgets don't fill the row: centre them under the fields */
.ph-ts-size-normal .ph-ts-widget, .ph-ts-size-compact .ph-ts-widget { display: flex; justify-content: center; }
.ph-ts-size-compact .ph-ts-widget { min-height: 140px; }
.ph-ts-size-normal .ph-ts-note, .ph-ts-size-compact .ph-ts-note { text-align: center; }
/* "Only when a click is needed": no empty gap while the widget is hidden */
.ph-ts-show-interaction-only .ph-ts-widget { min-height: 0; }
.ph-ts-msg { margin: 0 0 8px; padding: 8px 12px; border: 1px solid #fecaca; border-radius: 8px; background: #fef2f2; color: #991b1b; font-size: 13.5px; line-height: 1.4; text-align: left; }
.ph-ts-msg[hidden] { display: none; }
.ph-ts-note { margin-top: 4px; font-size: 11.5px; color: #b45309; }
.ph-ts-shake { animation: ph-ts-shake .4s; }
@keyframes ph-ts-shake { 0%, 100% { transform: none; } 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
@media (prefers-reduced-motion: reduce) { .ph-ts-shake { animation: none; } }
/* admin login box is narrow: let the widget use the full width */
.login-body .ph-ts { margin: 4px 0 14px; }
html[data-theme="dark"] .ph-ts-msg { background: #3a1416; border-color: #7f1d1d; color: #fecaca; }
html[data-theme="dark"] .ph-ts-note { color: #fbbf24; }
