settings['display']['popup_position'] ?? 'center';
$positionMap = [
'top_left' => 'top: 20px; left: 20px;',
'top_center' => 'top: 20px; left: 50%; transform: translateX(-50%);',
'top_right' => 'top: 20px; right: 20px;',
'middle_left' => 'top: 50%; left: 20px; transform: translateY(-50%);',
'middle_right' => 'top: 50%; right: 20px; transform: translateY(-50%);',
'bottom_left' => 'bottom: 20px; left: 20px;',
'bottom_center' => 'bottom: 20px; left: 50%; transform: translateX(-50%);',
'bottom_right' => 'bottom: 20px; right: 20px;',
];
$positionCss = $positionMap[$popupPosition] ?? 'top: 50%; left: 50%; transform: translate(-50%, -50%);';
?>